commit c2e98d105ef0fa0598f6a55cf27f8a761c87916d Author: jmcqueen Date: Mon Aug 24 15:12:08 2026 -0400 Initial commit: ServChan Webex bot for ServiceChannel work orders. ServiceChannel webhook processor, proposal approval cards, attachment auto-post, CollabSupport commands, and Docker deployment configuration. Co-authored-by: Cursor diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..53af995 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,28 @@ +node_modules +npm-debug.log +Dockerfile +.dockerignore +.git +.gitignore +README.md +.env +.env.* +data +logs +src/logs + +# Non-runtime directories (keeps prod images small and clean) +archive +downloads +tools +*.md + +# Any legacy secrets files — the app reads all credentials from env now. +# Redacted config.json is still built; anything with secrets is excluded. +config/config-test.json +config/*.local.json +config/secrets.json +*.pem +*.key +credentials* +secrets* diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..de08148 --- /dev/null +++ b/.env.example @@ -0,0 +1,102 @@ +# === ServChan Environment Variables (All Secrets) === +# Copy this file to .env and fill in the real values. +# Never commit the real .env file. +# +# The application now loads ALL secrets exclusively from environment variables. +# config/config.json should no longer contain any credentials. + +# --- Required for core bot operation --- +WEBEX_BOT_TOKEN=your-production-or-dev-bot-token +SC_CLIENT_ID=your-servicechannel-client-id +SC_CLIENT_SECRET=your-servicechannel-client-secret +SC_USERNAME=your-servicechannel-username +SC_PASSWORD=your-servicechannel-password + +# --- xAI (Grok) --- +XAI_TOKEN=your-xai-api-key +XAI_MODEL=grok-4-1-fast-reasoning + +# --- Optional / Integration specific --- +WEBEX_BASE_URL=https://webexapis.com/v1 +WEBEX_BOT_PERSON_ID=your-bot-person-id # Used by space cleanup (see note below) +# CollabSupport (collabFinder) HTTP API — required for /woSummary, /woHistory, +# /avStatus, and /woAttachments. +# +# Host / smoke tests (public URL behind nginx): +CS_API_BASE=https://bot.joesjavajoint.com/CollabSupport +# +# Docker (set in docker-compose — do not put in .env unless overriding): +# CS_API_BASE_INTERNAL=http://collabfinder:1800 +# Requires collabFinder running and servchan-bot on network collabfinder_collabnet. + +# RED, Meraki, Atlas, Optisign — only needed if you use the related features +# RED_CLIENT_ID=... +# RED_API_KEY=... +# RED_COMPANY_IDS=... +# MERAKI_API_KEY=... +# MERAKI_ORG_ID=... +# ATLAS_AUTH_KEY=... +# OPTISIGN_API_KEY=... + +# --- Admin endpoints (/cleanup-test, /stale-workorders) --- +# Required in production. If unset in NODE_ENV=production the endpoints refuse +# requests with 503. In dev (NODE_ENV!=production) unset means "allow" with a +# warning in the log. +ADMIN_TOKEN=change-me-to-a-long-random-string + +# --- Webhook authentication (optional, off by default) --- +# ServiceChannel signs every webhook per their docs: +# https://developer.servicechannel.com/guides/wh/receive-events-and-respond/ +# Sign-Type: HMACSHA256 +# Sign-Data: +# +# Setup: +# 1. Fetch the Signing Key with: +# GET /v3/NotificationSubscriptions/SigningKey +# or copy it from the ServiceChannel UI. +# 2. Paste it into SC_WEBHOOK_SIGNING_SECRET below and set +# SC_WEBHOOK_AUTH_MODE=log +# to observe verification results without rejecting anything. +# 3. Once the log shows repeated OK lines for real webhooks, flip to +# SC_WEBHOOK_AUTH_MODE=enforce +# +# See src/server/webhookAuth.js for full docs. + +SC_WEBHOOK_AUTH_MODE=off # off | log | enforce +# SC_WEBHOOK_SIGNING_SECRET=paste-the-servicechannel-signing-key-here + +# The defaults below match ServiceChannel's format exactly — for SC you should +# NOT need to override any of them. They exist for other webhook sources. +# SC_WEBHOOK_SIGNATURE_HEADER=sign-data # SC's default: "Sign-Data" +# SC_WEBHOOK_SIGNATURE_ENCODING=base64 # SC uses base64; auto also works +# SC_WEBHOOK_SIGNATURE_ALGO=sha256 # SC uses HMAC-SHA256 +# SC_WEBHOOK_SIGNATURE_PREFIX= # SC has no prefix; leave empty + +# Alternative to HMAC signing: a static shared-secret header. Not used by +# ServiceChannel — only relevant if you're proxying webhooks through something +# else that adds a bearer-style token. +# SC_WEBHOOK_TOKEN=some-long-random-value +# SC_WEBHOOK_TOKEN_HEADER=x-webhook-token + +# --- Proposal approval (optional) --- +# RejectReasonCodeId used when auto-rejecting a superseded approved proposal. +# Fetch valid values via GET /proposals/RejectionReasons in ServiceChannel. +# If unset, ServChan picks the first reason matching "revised"/"superseded"/etc. +# SC_PROPOSAL_REJECT_REASON_ID=7 + +# --- Attachment auto-post (optional) --- +# When true (default), ServChan posts SC photos/invoices to the Webex WO room +# on room creation and when WorkOrderNoteAdded webhooks include AttachmentIds. +# Set to false to disable automatic posting (manual /woAttachments still works). +# AUTO_POST_ATTACHMENTS=true + +# --- Runtime configuration (non-secret) --- +DB_PATH=./data/webex_sc_mappings.db +# Directory for daily *.log files. Every logger in the app resolves to this +# single location (structured logs, webhook payload archive, cleanup cron). +# In Docker the container's WORKDIR is /app, so ./logs → /app/logs, which is +# where docker-compose mounts the host ./logs volume. Change this only if +# you're intentionally routing logs elsewhere (e.g. /var/log/servchan). +LOG_DIR=./logs +PORT=1458 +NODE_ENV=production diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f2b0e90 --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +# Dependencies +node_modules/ + +# Environment & Secrets +.env +.env.local +.env.*.local +config/config.json +config/config-test.json + +# Database files (production data) +*.db +data/*.db + +# Logs +logs/ +*.log + +# OS / Editor +.DS_Store +*.swp +*.swo +.idea/ +.vscode/ + +# Archive / old code +archive/ + +# Temporary / test artifacts +dev_webex_sc_mappings.db +test-*.db + +# Large data files from tools +*.csv +*.json +!package-lock.json +!package.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2b41486 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,50 @@ +# ------------------- Base Stage ------------------- +FROM node:20-slim AS base + +WORKDIR /app + +# Install build dependencies for sqlite3 native module +RUN apt-get update && apt-get install -y \ + python3 \ + make \ + g++ \ + && rm -rf /var/lib/apt/lists/* + +COPY package*.json ./ + +# ------------------- Development Stage ------------------- +FROM base AS development + +ENV NODE_ENV=development + +RUN npm ci + +COPY . . + +EXPOSE 1458 + +CMD ["npm", "run", "dev"] + +# ------------------- Production Stage ------------------- +FROM base AS production + +ENV NODE_ENV=production + +RUN npm ci --only=production && \ + npm rebuild sqlite3 --build-from-source + +COPY . . + +# Create runtime dirs owned by the non-root 'node' user (uid 1000). +# This ensures /app/logs and /app/data exist inside the image with correct perms +# even if no volume is mounted at start. Volumes will override at runtime. +RUN mkdir -p /app/logs /app/data && chown -R node:node /app/logs /app/data + +EXPOSE 1458 + +# Run as non-root user (node user in the image has uid 1000). +# On Linux hosts you may need to ensure the host data/logs dirs are owned by 1000:1000 +# or use user namespaces / volume permissions. +USER node + +CMD ["npm", "start"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c0bf822 --- /dev/null +++ b/README.md @@ -0,0 +1,264 @@ +# ServChan + +Service Channel + Webex Bot for retail facilities coordination. + +ServChan automatically creates dedicated Webex collaboration spaces for every ServiceChannel work order, posts rich updates (including AI-summarized descriptions), and provides useful slash commands for technicians and support teams. + +The goal of this document is to help you understand how the system actually works — both architecturally (how data and actions flow) and operationally (how to run, monitor, and debug it). + +## How the System Works (High-Level Flow) + +### 1. Webhook Path (ServiceChannel → Webex Spaces) + +This is the core automated behavior: + +1. ServiceChannel sends a webhook to `POST /webhook` (handled in `src/server/app.js`). +2. The route immediately calls `webhookProcessor.processWebhook(payload)`. +3. `webhookProcessor` (src/services/webhookProcessor.js) does the following: + - Uses a **per-workOrderId Mutex + queue** to safely handle multiple events for the same work order arriving at the same time. + - Checks the SQLite DB (`src/db/mappings.js`) to see if a Webex room already exists for this work order. + - If no room exists: + - Calls `webexService.createWorkOrderRoom(...)` to create a new group space under the configured team. + - Adds the default list of members. + - Stores the `workOrderId ↔ roomId` mapping in the database. + - Builds a message based on the `EventType` (`WorkOrderCreated`, `WorkOrderNoteAdded`, etc.). + - For `WorkOrderCreated`, it calls `summarizeTicketDescription()` from `src/integrations/xai/client.js` to turn the messy ServiceChannel description into something readable. + - Posts the message using `webexService.sendMarkdown(...)`. + +4. `webexService` (src/services/webexService.js) is a thin wrapper. It currently delegates to `botClient` but gives us a place to add ServChan-specific logic or change the underlying client later without touching the processor. + +### 2. Command Path (User → Bot) + +Users interact with the bot via mentions in Webex: + +- The Webex Framework is initialized in `src/bot/index.js`. +- All commands are routed through a single `Framework.hears(...)` handler. +- Commands are dispatched to handlers in `src/commands/` (`help.js`, `avStatus.js`, `woSummary.js`, etc.). +- Many of these handlers call the external CollabSupport service (configured via `CS_API_BASE`) rather than doing heavy work locally. + +### Key Classes / Modules and Their Responsibilities + +| Module / Class | Role | +|-----------------------------------|------| +| `index.js` | Thin bootstrap. Creates DB connection, instantiates `webhookProcessor` + `webexService`, starts the bot and Express server. | +| `webhookProcessor.js` | The heart of automation. Owns concurrency control (mutex/queue), room lifecycle decisions, and message construction. | +| `webexService.js` | Thin service layer on top of the Webex client. Preferred interface for anything that needs to talk to Webex. | +| `botClient.js` (in `integrations/webex/`) | Low-level Webex bot operations using the bot token (create rooms, post messages, add members). | +| `adminClient.js` (in `integrations/webex/`) | Separate client for privileged operations (DECT, phone lookups, etc.) that require different scopes. | +| `src/integrations/xai/client.js` | All Grok/xAI calls. Contains both the short initial-description summarizer and the more detailed ticket summarizer. | +| `src/db/mappings.js` + `path.js` | Database access for work order ↔ room mappings. Path resolution is centralized here for safety. | +| `src/server/app.js` | Express routes (`/health`, `/webhook`, `/cleanup-test`, etc.). | +| `src/commands/*.js` | Individual slash command implementations. | + +### Data & Action Flow Summary + +- **Incoming webhook** → `server` → `webhookProcessor` → (DB + `webexService` + `xai`) → Webex room +- **User command** → Webex Framework (`bot/`) → specific command handler → (often external CollabSupport API) → response back to Webex +- **Space cleanup** → `cleanup-test` or scheduled job → `spaceCleanupService` → reads DB + ServiceChannel status → acts via `botClient` + +All persistent state for work order rooms lives in the SQLite database (see "Database Constraint" below). + +### What Happens When a Work Order Is Created (End-to-End Walkthrough) + +Here is a concrete trace of what occurs when ServiceChannel sends a `WorkOrderCreated` webhook: + +1. **Webhook arrives** + ServiceChannel calls `POST /webhook` with a payload containing `EventType: "WorkOrderCreated"` and the full work order object. + +2. **Route hands off immediately** + `src/server/app.js` receives the request, logs it, returns `200 OK` quickly, and calls: + ```js + webhookProcessor.processWebhook(payload) + ``` + +3. **Concurrency protection** + `src/services/webhookProcessor.js` looks up (or creates) a Mutex for this specific `workOrderId`. It also maintains a small queue so multiple rapid events for the same work order are processed in order. + +4. **Room lookup** + It queries the database (`src/db/mappings.js`) to see if a Webex room already exists for this work order. + +5. **Room creation (first time only)** + If no room exists: + - Calls `webexService.createWorkOrderRoom(workOrder, teamId)` + - `webexService` calls `botClient.createRoom(...)` with the standard title format: + `ServChan WO-123456 | Store 2477 | Store Name` + - Adds the default members (the list currently hardcoded in `index.js`) + - Saves the mapping (`workOrderId → roomId`) to the database + +6. **Description summarization** + Because this is a `WorkOrderCreated` event, it calls: + ```js + summarizeTicketDescription(description, xaiToken) + ``` + from `src/integrations/xai/client.js`. This sends a focused prompt to Grok to turn the often messy ServiceChannel description into a clean 2–6 sentence summary. + +7. **Message construction** + The processor builds a rich Markdown message containing: + - Link to the work order in ServiceChannel + - Store and trade information + - Priority, category, problem code + - Status + - The AI-generated description summary + +8. **Message posted** + Calls `webexService.sendMarkdown(roomId, text)`, which ultimately calls `botClient.sendMarkdown(...)`. + +9. **Cleanup** + The mutex is released. If the queue for this work order is now empty, the mutex and queue objects are removed from memory. + +The result is a new, populated Webex space ready for the team, usually within a few seconds of the work order being created in ServiceChannel. + +## Directory Structure + +``` +ServChan/ +├── index.js # Thin bootstrap / orchestrator +├── src/ +│ ├── bot/ # Webex Framework + command routing +│ ├── server/ # Express app (routes + handlers) +│ ├── services/ # Core business logic (webhookProcessor, webexService, etc.) +│ ├── integrations/ # External system clients (webex, serviceChannel, xai) +│ ├── db/ # Database access + safe path resolution +│ ├── commands/ # Individual slash command implementations +│ ├── legacy/ # Old code kept during transition (avoid editing) +│ ├── experimental/ # Superseded device code (mostly unused now) +│ └── utils/ +├── tools/ # Standalone operational scripts +├── config/ # Non-secret config (secrets still here too) +├── data/ # SQLite database (handle with care) +├── Dockerfile +├── docker-compose.yml +├── REFACTOR-LOG.md # History of major changes (reference only) +└── README.md +``` + +## Operational Considerations + +### The Database Constraint (Very Important) + +The SQLite database file used by the live production bot must **never** be moved, renamed, or have a second copy accidentally created. + +- All code resolves the DB path through `src/db/path.js`, which respects `DB_PATH` from your environment. +- The main application creates **one** connection in `index.js` and passes that instance around. +- When debugging, always verify which database file is actually being used (check logs at startup — it prints the path). + +If you ever see two different `.db` files being touched, stop and investigate immediately. + +### Remote Service Dependency + +Many user-facing commands (`/avStatus`, `/woSummary`, `/woAttachments`, `/woHistory`) do **not** do the heavy lifting locally. They call an external service via the `CS_API_BASE` environment variable (currently pointing at a CollabSupport instance). + +If those commands start failing but the webhook automation still works, the problem is usually with the remote service or network connectivity to it. + +### Webex Token Separation + +- Normal bot actions (creating rooms for work orders, posting messages, adding members) use the bot token via `botClient`. +- Advanced lookups (DECT networks, phones assigned to stores, etc.) require a different privileged token and go through `adminClient`. + +Keep these two concerns separate. Do not mix the tokens. + +### Logging & Observability + +- Application logs are written daily to `./logs/YYYYMMDD.log`. +- The good structured logger lives in `src/utils/logger.js`. +- Some older legacy paths still use simpler console + file logging. +- The `/health` endpoint is your best friend for runtime state (DB connectivity, memory, uptime). + +### Space Cleanup + +Automated (or manual via `/cleanup-test`) removal of old completed work order spaces is handled by `spaceCleanupService.js`. + +It reads work order status from ServiceChannel and then acts on the Webex rooms via the bot client. It is intentionally conservative. + +## Running the Application + +### Local + +```bash +npm run dev +``` + +### Docker (recommended for consistency) + +**Development** (live reload, source mounted, node --watch): + +```bash +docker compose up --build +``` + +**Production** (optimized image, no source mount, persistent logs volume): + +```bash +docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build +``` + +After the first build you can usually omit `--build`: + +```bash +docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d +``` + +See [docker-compose.prod.yml](docker-compose.prod.yml) for the production-specific settings. + +**Important for production images**: +- All secrets must come from `.env` (via `env_file`). The application now enforces this via `src/config/secrets.js`. +- `config/config.json` must **not** contain real credentials (it can still hold non-secret values like server name/port or legacy non-token webex fields for compatibility). +- The production stage runs as the non-root `node` user (uid 1000). On Linux hosts ensure your `./data` and `./logs` host directories are writable by uid 1000 if you see permission errors. + +### Production Considerations + +- Use the production compose files for any long-lived or customer-facing deployment. +- Logs and the SQLite DB are the only things that need to persist across container restarts/recreates. Everything else is in the image. +- The `/health` and `/healthz` endpoints are suitable for container orchestrators (Kubernetes liveness/readiness, etc.). +- Consider adding resource limits, secrets management (Docker secrets / Vault), and log rotation outside the container for full prod ops. +- Always run `docker compose ... config` to validate before deploying. + +### Health Checks + +- `GET /healthz` → Simple liveness (used by Docker healthcheck) +- `GET /health` → Detailed JSON report including database connectivity and memory usage + +### Common Debugging Commands + +- Check which DB file is in use → Look at the very first logs after startup. +- Test space cleanup logic → `GET /cleanup-test?dryRun=true` +- Force a fresh xAI summary on a new work order → Create a test work order in ServiceChannel. + +## Bot Commands + +| Command | Context | Notes | +|------------------|----------------------------------|-------| +| `/help` | Anywhere | Context-aware | +| `/avStatus` | In WO space or with store number | Often calls remote service | +| `/woSummary` | In WO space or with WO number | Often calls remote service | +| `/woAttachments` | In WO space or with WO number | Often calls remote service | +| `/woHistory` | With store number | Often calls remote service | +| `/woApprove` | In WO space (or with WO#) | Manually posts proposal approval Adaptive Card (when status is IN PROGRESS \| WAITING FOR APPROVAL). Auto-triggered on relevant webhooks too. | + +**Approval Cards (new)**: When a webhook arrives with `IN PROGRESS | WAITING FOR APPROVAL` (typically with a "Proposal created" note), ServChan automatically posts an Adaptive Card v1.3 in the room. The card shows proposal details/costs, prepopulates the suggested new NTE (current + proposal sums), and allows submit to PATCH the NTE in ServiceChannel + record approver attribution from the Webex user. Use `/woApprove` to re-trigger. + +## Development Guidelines + +When making changes: + +- Prefer dependency injection (especially passing the `db` instance) over creating new connections. +- If you need to talk to Webex for normal bot operations, go through `webexService` rather than calling `botClient` directly. +- All AI summarization should live in or be called from `src/integrations/xai/`. +- Respect the production database path resolution — never hardcode a `.db` path. +- If you're touching webhook behavior, be extremely careful with concurrency (the mutex/queue pattern exists for a reason). + +## Environment Variables + +| Variable | Purpose | Notes | +|-------------------------|----------------------------------------------|-------| +| `DB_PATH` | SQLite database location | Critical — production uses this | +| `WEBEX_BOT_TOKEN` | Token for normal bot operations | Used by botClient | +| `CS_API_BASE` | Base URL for remote CollabSupport service | Powers many commands | +| `WEBEX_BOT_PERSON_ID` | Used to identify the bot during cleanup | Prevents removing itself | +| `WEBEX_ADMIN_TOKEN` (or similar) | Token for privileged Webex calls | Used by adminClient (if configured) | + +Secrets must be provided exclusively via environment variables (loaded by `src/config/secrets.js` and required at startup for core functionality). `config/config.json` should contain **only non-secret values**. The code no longer depends on secrets living in the JSON file. + +--- + +This document is meant to be living. Update it when you add significant new behavior or change how major flows work. \ No newline at end of file diff --git a/REFACTOR-LOG.md b/REFACTOR-LOG.md new file mode 100644 index 0000000..b658f16 --- /dev/null +++ b/REFACTOR-LOG.md @@ -0,0 +1,89 @@ +# ServChan Refactor Log + +**Date**: 2026-05-28 +**Operator**: Grok (assisting jmcqueen) +**Phase**: Initial cleanup & modularization (pre-security hardening) + +## Backup Performed + +**Primary backup (filesystem tarball)**: +- Location: `~/backups/ServChan-pre-refactor-20260528-122917.tar.gz` +- Size: 22 MB +- Exclusions: `node_modules/`, `.git/` (none existed), `logs/`, `*.csv`, `*.json` (large data files), `AppleTVEnriched*` +- Created with: `tar -czf ...` from `/Users/jmcqueen/Docker` + +**Note on version control**: +- At the time of backup, this directory was **not** a git repository (`fatal: not a git repository`). +- The tarball is the authoritative rollback artifact for this refactor. + +**Rollback instructions**: +1. Stop any running containers: `docker compose down` +2. `cd /Users/jmcqueen/Docker` +3. `rm -rf ServChan/` (or move the current tree aside) +4. `tar -xzf ~/backups/ServChan-pre-refactor-20260528-122917.tar.gz` +5. `cd ServChan && docker compose up --build` + +## Goals of This Refactor Pass + +- Make `src/` the single source of truth with a clean, logical structure. +- Thin `index.js` to pure bootstrap. +- Rationalize the multiple overlapping Webex clients (bot operations vs. privileged admin/telephony operations). +- Remove dead/broken references to local device integrations that have moved to the remote CollabSupport service. +- Stabilize the core webhook → per-WO room flow. +- Add minimal but useful documentation (README + this log). +- Create a solid base before touching high-risk security items (secrets in config.json, etc.). + +## Key Decisions Captured During Planning + +- **Webex clients**: Keep a deliberate split. `botClient.js` for standard ServChan bot actions (messages, rooms, memberships using the bot token). Separate `adminClient.js` (or telephony client) for DECT/phone lookups that require a different privileged token/scope. +- **Remote services**: `avStatus`, `woSummary`, `woHistory`, `woAttachments` (and phone status) now primarily delegate to the external CollabSupport service (`CS_API_BASE`). Local heavy device libraries (meraki, mdm, red, atlas, optisigns, deviceService, phoneService) are obsolete for current operations and will be removed or isolated. +- **No git history** at start of work — rely on the tarball above. + +## Work Status + +(Will be updated as the refactor progresses) + +- [x] Full backup created and verified +- [x] Started core webhook logic extraction (webhookProcessor) +- [x] Wired new webhookProcessor into the live /webhook route in index.js (old functions marked LEGACY but left in place for safety during transition) +- [x] Moved the entire remaining legacy block (createWebexSpace, addMember, postToWebexSpace, old processWebhook, summarizeTicketDescription, cleanupOldLogs, etc.) into src/legacy/old-index-helpers.js. index.js is now a thin ~108-line orchestrator. + +### Step 4 - Thin webexService Wrapper (2026-05-28) +- Created `src/services/webexService.js` — a thin service layer over `botClient`. +- Provides the same low-level interface (`createRoom`, `addMember`, `sendMarkdown`) for drop-in compatibility with the current `webhookProcessor`. +- Also includes higher-level ServChan-specific helpers (`createWorkOrderRoom`, `addDefaultMembers`, `postWorkOrderMessage`). +- Wired into `index.js`: the `webhookProcessor` now receives a `WebexService` instance instead of raw `botClient`. +- This improves isolation, testability, and gives a clear place for future Webex business logic. + +### Step 3 - Consolidate Summarizer (2026-05-28) +- Moved the initial WorkOrderCreated description summarizer (`summarizeTicketDescription`) from the legacy file into `src/integrations/xai/client.js` as a proper, well-documented export. +- Updated `index.js` to import the summarizer from the canonical xAI integration module. +- Cleaned up `src/legacy/old-index-helpers.js` (removed the summarizer and updated its header). +- The legacy file is now significantly smaller and closer to being deletable. +- All summarization logic for the bot now lives under `src/integrations/xai/`. + +### Step 2 - Safe DB Layer Improvements (2026-05-28) +- Created `src/db/path.js` — centralized, safe `getDbPath()` that respects `process.env.DB_PATH` with the exact same fallback the original production code used. +- Updated `src/db/mappings.js` to use the centralized path resolver instead of hardcoding `./webex_sc_mappings.db`. This was the biggest risk for accidentally creating/connecting to the wrong database file. +- Enhanced `runSpaceCleanup` to accept an optional `{ db }` instance so callers can explicitly pass the production connection. +- Updated `src/server/app.js` to forward the real `db` instance to the cleanup test endpoint. +- **No database files were moved, renamed, or had new ones created.** The production DB remains exactly where it was. + +All changes were designed to reduce the chance of the codebase accidentally using a different SQLite file than the live production bot. +- [ ] DB path handling: **Hard constraint** — production bot actively uses the current DB file. No moves, renames, or changes to the physical DB file/location during this refactor phase. Code changes only (env-driven resolution where safe, without altering the file itself). + +### DB Constraint (2026-05-28) +The SQLite database backing the live production ServChan bot must remain untouched. +- Do not `mv`, `cp`, or rename any `.db` file. +- Do not change the default fallback path in a way that would cause a new DB file to be created in a different location. +- All DB-related work in this phase must be read-only from the code perspective (improving how we resolve the path from `DB_PATH` env when possible) while the actual file stays exactly where production expects it. + +## Post-Refactor Notes + +(Added after completion) + +--- + +**If anything feels off after changes, restore from the tarball above immediately.** Do not attempt manual fixes on a broken refactor state without the backup in hand. + +Last updated: 2026-05-28 (start of cleanup) \ No newline at end of file diff --git a/dev-start.sh b/dev-start.sh new file mode 100755 index 0000000..3da2ebb --- /dev/null +++ b/dev-start.sh @@ -0,0 +1,75 @@ +#!/bin/bash + +# ============================================================ +# ServChan DEV Instance Startup Script +# ============================================================ +# +# Purpose: +# Safely run a development/test instance of the bot without +# affecting the production instance. +# +# Usage: +# ./dev-start.sh +# +# Configuration (edit these values as needed): +# ------------------------------------------------------------ + +# === DEV INSTANCE CONFIGURATION === +# Never commit real tokens. +# +# The application requires ALL secrets via environment variables. +# Example: +# WEBEX_BOT_TOKEN="dev-..." \ +# SC_CLIENT_ID="..." SC_CLIENT_SECRET="..." \ +# SC_USERNAME="..." SC_PASSWORD="..." \ +# XAI_TOKEN="..." \ +# ./dev-start.sh +# +# The application now respects WEBEX_BOT_TOKEN (and other *_TOKEN / SC_* variables) +# even if they exist in .env or config/config.json. + +if [ -z "$WEBEX_BOT_TOKEN" ]; then + echo "ERROR: WEBEX_BOT_TOKEN is not set." + echo "Please run as: WEBEX_BOT_TOKEN=\"your-dev-token\" ./dev-start.sh" + exit 1 +fi + +# Use a different port so it doesn't conflict with production (which uses 1458) +export PORT=1460 + +# Use a completely separate database file for testing +export DB_PATH="./data/dev_webex_sc_mappings.db" + +# Set environment for clarity in logs +export NODE_ENV=development + +# You can override CS_API_BASE here if you want to point the dev bot +# at a different backend. Leaving it unset will use whatever is in .env +# or the default. +# export CS_API_BASE="https://bot.joesjavajoint.com/CollabSupport" + +# ============================================================ + +echo "==============================================================" +echo " Starting ServChan DEV instance" +echo "==============================================================" +echo "" +echo " Port: $PORT" +echo " Database: $DB_PATH" +echo " Environment: $NODE_ENV" +echo " Bot Token: (provided via WEBEX_BOT_TOKEN env var)" +echo "" +echo " Health checks will be available at:" +echo " http://localhost:$PORT/healthz" +echo " http://localhost:$PORT/health" +echo "" +echo " To test commands, mention the DEV bot in Webex." +echo "" +echo "==============================================================" +echo "" + +# Ensure the data directory exists +mkdir -p "$(dirname "$DB_PATH")" + +# Start the application +npm run dev diff --git a/discover-note-timestamps.js b/discover-note-timestamps.js new file mode 100644 index 0000000..4431a2b --- /dev/null +++ b/discover-note-timestamps.js @@ -0,0 +1,107 @@ +/** + * Temporary discovery script. + * Goal: Inspect the shape of notes returned by the ServiceChannel API + * to determine the correct timestamp field name. + * + * Run with: node discover-note-timestamps.js + * + * This script now loads credentials from environment variables (via .env) + * — same as the main app — so there's no plaintext credential in this file. + * Feel free to delete once you're done using it. + */ + +import 'dotenv/config'; +import axios from 'axios'; +import qs from 'node:querystring'; + +const SC = { + clientId: process.env.SC_CLIENT_ID, + clientSecret: process.env.SC_CLIENT_SECRET, + username: process.env.SC_USERNAME, + password: process.env.SC_PASSWORD, + baseUrl: process.env.SC_BASE_URL || 'https://api.servicechannel.com/v3', + oauthUrl: process.env.SC_OAUTH_URL || 'https://login.servicechannel.com/oauth/token', +}; + +if (!SC.clientId || !SC.clientSecret || !SC.username || !SC.password) { + console.error('Missing ServiceChannel credentials. Set SC_CLIENT_ID, SC_CLIENT_SECRET, SC_USERNAME, SC_PASSWORD in .env.'); + process.exit(1); +} + +async function getToken() { + const basicAuth = Buffer.from(`${SC.clientId}:${SC.clientSecret}`).toString('base64'); + + const response = await axios.post( + SC.oauthUrl, + qs.stringify({ + grant_type: 'password', + username: SC.username, + password: SC.password, + }), + { + headers: { + 'Authorization': `Basic ${basicAuth}`, + 'Content-Type': 'application/x-www-form-urlencoded', + }, + timeout: 15000, + } + ); + + return response.data.access_token; +} + +async function main() { + const workOrderId = Number(process.argv[2] || 352088878); + + console.log(`Discovering note structure for work order ${workOrderId}...\n`); + + try { + const token = await getToken(); + + const notesRes = await axios.get( + `${SC.baseUrl}/workorders/${workOrderId}/notes`, + { + headers: { Authorization: `Bearer ${token}` }, + timeout: 30000, + } + ); + + const notes = notesRes.data?.Notes || notesRes.data || []; + + console.log(`Found ${notes.length} notes.\n`); + + if (notes.length === 0) { + console.log("No notes found on this work order."); + return; + } + + const firstNote = notes[0]; + console.log("Keys on the first note object:"); + console.log(Object.keys(firstNote)); + console.log("\n"); + + console.log("=== First note (full object) ==="); + console.dir(firstNote, { depth: null, colors: true }); + + console.log("\n=== Last 3 notes - looking for timestamp fields ==="); + const lastNotes = notes.slice(-3).reverse(); + lastNotes.forEach((note, i) => { + console.log(`\nNote ${i + 1}:`); + const possibleTimestampFields = Object.keys(note).filter(k => + /time|date|stamp|created|updated/i.test(k) + ); + console.log(" Possible timestamp fields:", possibleTimestampFields); + possibleTimestampFields.forEach(field => { + console.log(` ${field}: ${note[field]}`); + }); + }); + + } catch (err) { + console.error("Error:", err.response?.data || err.message); + if (err.response) { + console.error("Status:", err.response.status); + } + } +} + +main(); diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml new file mode 100644 index 0000000..7acece4 --- /dev/null +++ b/docker-compose.prod.yml @@ -0,0 +1,74 @@ +# docker-compose.prod.yml +# +# Production override / standalone compose file for ServChan. +# +# Usage (recommended - merges with base for any common settings): +# docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build +# +# Or standalone (also works): +# docker compose -f docker-compose.prod.yml up -d --build +# +# Key differences from dev: +# - Uses the production stage of the Dockerfile (optimized, non-root, no dev deps/watch) +# - NO full source bind mount (code is baked into the image at build time) +# - Dedicated persistent volume for logs (separate from any source tree) +# - NODE_ENV=production +# - Suitable for long-running detached production use +# +# Prerequisites: +# - .env must contain all required secrets (WEBEX_BOT_TOKEN, SC_*, XAI_TOKEN, etc.) +# - ./data and ./logs directories will be created on the host as needed +# - For best security, ensure config/config.json contains NO real credentials +# (the code now loads secrets exclusively from environment variables) +# +# After first run you can drop --build: docker compose -f ... up -d + +services: + bot: + build: + context: . + target: production + container_name: servchan-bot + restart: unless-stopped + ports: + - "1458:1458" + env_file: + - .env + volumes: + # Persistent storage for the SQLite database (the "sacred" production DB). + # The exact file referenced by DB_PATH in .env must never be moved or renamed. + - ./data:/app/data + # Persistent logs (written by both legacy and structured loggers). + # Separate volume so logs survive container recreation without source mount. + - ./logs:/app/logs + environment: + - NODE_ENV=production + - CS_API_BASE_INTERNAL=http://collabfinder:1800 + + networks: + - default + - collabnet + + # Healthcheck hits /health so DB connectivity is part of the signal. + # /healthz still exists as a pure liveness probe if you want to fall back. + healthcheck: + test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:1458/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s + + # Example production resource constraints (uncomment and tune): + # deploy: + # resources: + # limits: + # cpus: '1.0' + # memory: 512M + # reservations: + # cpus: '0.25' + # memory: 128M + +networks: + collabnet: + external: true + name: collabfinder_collabnet diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..58090ac --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,55 @@ +# docker-compose.yml +# +# Development compose file for ServChan. +# Recommended for local development and testing (live code reload via bind mount + node --watch). +# +# Start dev: +# docker compose up --build +# +# For PRODUCTION use the override file instead: +# docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build +# +# See docker-compose.prod.yml for details on the production setup +# (production stage, no source mount, dedicated logs volume, NODE_ENV=production). + +services: + bot: + build: + context: . + target: development + container_name: servchan-bot + restart: unless-stopped + ports: + - "1458:1458" + env_file: + - .env + volumes: + - .:/app + - /app/node_modules + - ./data:/app/data + environment: + - NODE_ENV=development + # Reach collabFinder on the Docker network (see networks below). + # Overrides CS_API_BASE from .env — the public URL often fails inside + # containers when bot.joesjavajoint.com resolves to this host (hairpin). + - CS_API_BASE_INTERNAL=http://collabfinder:1800 + + networks: + - default + - collabnet + + # Healthcheck hits /health so DB connectivity is part of the signal. + # /healthz still exists as a pure liveness probe if you want to fall back. + healthcheck: + test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:1458/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s + +# Shared with collabFinder (docker compose in ../collabFinder). +# Create it by starting collabFinder first: cd ../collabFinder && docker compose up -d +networks: + collabnet: + external: true + name: collabfinder_collabnet \ No newline at end of file diff --git a/downloads/INVOICE_85282.pdf b/downloads/INVOICE_85282.pdf new file mode 100644 index 0000000..d448e10 Binary files /dev/null and b/downloads/INVOICE_85282.pdf differ diff --git a/downloads/Store 2511 Audio Rack.png b/downloads/Store 2511 Audio Rack.png new file mode 100644 index 0000000..4071291 Binary files /dev/null and b/downloads/Store 2511 Audio Rack.png differ diff --git a/downloads/Store 2511 Volume Control.png b/downloads/Store 2511 Volume Control.png new file mode 100644 index 0000000..5b26b10 Binary files /dev/null and b/downloads/Store 2511 Volume Control.png differ diff --git a/index.js b/index.js new file mode 100644 index 0000000..44e70a5 --- /dev/null +++ b/index.js @@ -0,0 +1,161 @@ +import 'dotenv/config'; +import sqlite3 from 'sqlite3'; +import path from 'node:path'; +import fs from 'node:fs'; + +import { runSpaceCleanup } from './src/services/spaceCleanupService.js'; +import { createWebhookProcessor } from './src/services/webhookProcessor.js'; +import { initializeBot, stopBot } from './src/bot/index.js'; +import { createApp, setupCron } from './src/server/app.js'; +import { summarizeTicketDescription } from './src/integrations/xai/client.js'; +import { WebexService } from './src/services/webexService.js'; +import { getStaleWorkOrdersReport } from './src/services/staleWorkOrderReportService.js'; + +// ──────────────────────────────────────────────────────────────────────────────── +// CONFIGURATION +// ──────────────────────────────────────────────────────────────────────────────── +// Non-secret config only (server name/port, etc.). Secrets come exclusively from env. +// See src/config/index.js and src/config/secrets.js. +import nonSecretConfig from './src/config/index.js'; +import { loadSecrets } from './src/config/secrets.js'; +import { getDbPath } from './src/db/path.js'; +import { ensureLogDir } from './src/utils/logPath.js'; +import { getCollabSupportBase } from './src/integrations/collabSupport/client.js'; + +const secrets = loadSecrets(); + +const PORT = process.env.PORT || nonSecretConfig.server?.port || 1458; +// Use the shared resolver so index.js, src/db/path.js, and every downstream +// module agree on which file to open. Previously the fallback here (bot.db) +// disagreed with .env.example (webex_sc_mappings.db), which meant a missing +// DB_PATH env var would silently spawn a brand-new empty database. +const DB_PATH = getDbPath(); + +// Ensure runtime directories exist early. Log dir goes through the shared +// resolver (LOG_DIR env, default ./logs) so mounts, cleanup, and every logger +// call agree on one location. +const dataDir = path.dirname(DB_PATH); +if (!fs.existsSync(dataDir)) { + fs.mkdirSync(dataDir, { recursive: true }); +} +const logsDir = ensureLogDir(); +console.log(`[boot] Logs → ${logsDir}`); +const csBase = getCollabSupportBase(); +if (csBase) { + console.log(`[boot] CollabSupport → ${csBase}${process.env.CS_API_BASE_INTERNAL ? ' (internal)' : ''}`); +} + +// Build webexConfig for the Framework: +// - Token (and baseUrl) ALWAYS come from secrets/env (never baked into config.json or image). +// - Other fields (name, email, wbx_base_url) can still come from a (clean) config.json for compatibility. +const baseWebex = nonSecretConfig.auth?.webex || nonSecretConfig.webex || {}; +const webexConfig = { + ...baseWebex, + token: secrets.webex.token, // force from env + baseUrl: secrets.webex.baseUrl || baseWebex.wbx_base_url || baseWebex.baseUrl || 'https://webexapis.com/v1', + wbx_base_url: baseWebex.wbx_base_url || secrets.webex.baseUrl || 'https://webexapis.com/v1', +}; + +// ──────────────────────────────────────────────────────────────────────────────── +// SQLite Database +// (Production DB file location is sacred — see REFACTOR-LOG.md) +const db = new sqlite3.Database(DB_PATH); + +db.serialize(() => { + db.run(` + CREATE TABLE IF NOT EXISTS mappings ( + workOrderId INTEGER PRIMARY KEY, + roomId TEXT UNIQUE NOT NULL + ) + `); + db.run(` + CREATE TABLE IF NOT EXISTS posted_attachments ( + workOrderId INTEGER NOT NULL, + attachmentId INTEGER NOT NULL, + postedAt TEXT NOT NULL, + PRIMARY KEY (workOrderId, attachmentId) + ) + `); + db.run(` + CREATE TABLE IF NOT EXISTS pending_approval_cards ( + workOrderId INTEGER PRIMARY KEY, + roomId TEXT NOT NULL, + messageId TEXT NOT NULL, + proposalId INTEGER, + postedAt TEXT NOT NULL + ) + `); + console.log(`[DB] Connected to ${DB_PATH}`); +}); + +// ──────────────────────────────────────────────────────────────────────────────── +// Core Webhook Processor (extracted logic — see src/services/webhookProcessor.js) +// We pass the existing db instance so we never create a second connection or touch +// the production DB file location. +// ──────────────────────────────────────────────────────────────────────────────── +const hardcodedTeamId = 'Y2lzY29zcGFyazovL3VzL1RFQU0vMmI3MTJhZjAtZjc5NS0xMWYwLTk4MDYtYjczNjhlY2UzNjQx'; +const defaultMembers = [ + "mcqueenj@ae.com", + "bollandd@ae.com", + "ferrerij@ae.com", + "wagurakj@ae.com", + "karpuszkav@ae.com" +]; + +// Wrapper for the initial description summarizer used on WorkOrderCreated events. +// Prefer token passed in or from secrets (xai); fall back to legacy config only for transition. +async function summarizeForNewWO(rawDescription, token, opts = {}) { + const xaiToken = token || secrets.xai?.token || baseWebex.xai?.token; + return summarizeTicketDescription(rawDescription, xaiToken, opts); +} + +// Webex service provides a thin, ServChan-aware layer over the raw bot client. +// This improves isolation and testability of the webhook processor. +const webexService = new WebexService(); + +const webhookProcessor = createWebhookProcessor({ + db, + webex: webexService, + summarizeDescription: summarizeForNewWO, + teamId: hardcodedTeamId, + defaultMembers, +}); + +// ──────────────────────────────────────────────────────────────────────────────── +// Webex Bot (Framework + commands) +// ──────────────────────────────────────────────────────────────────────────────── +const Framework = initializeBot({ + webexConfig, +}); + +// ──────────────────────────────────────────────────────────────────────────────── +// Cron + Express App (extracted) +// ──────────────────────────────────────────────────────────────────────────────── +setupCron(); + +const app = createApp({ + db, + DB_PATH, + webhookProcessor, + runSpaceCleanup, + Framework, + getStaleWorkOrdersReport: (db) => getStaleWorkOrdersReport(db), +}); + +// ──────────────────────────────────────────────────────────────────────────────── +// Start server (thin bootstrap) +// ──────────────────────────────────────────────────────────────────────────────── +app.listen(PORT, () => { + console.log(`${nonSecretConfig.server?.name || 'ServChan'} → Webex webhook receiver running on port ${PORT}`); +}); + +// Graceful shutdown (handles both local Ctrl-C and Docker/K8s SIGTERM) +function shutdown(signal) { + console.log(`[shutdown] Received ${signal}, stopping...`); + stopBot(Framework).then(() => { + try { db.close(); } catch (_) {} + process.exit(0); + }).catch(() => process.exit(0)); +} +process.on('SIGINT', () => shutdown('SIGINT')); +process.on('SIGTERM', () => shutdown('SIGTERM')); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..b4c8a14 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,14344 @@ +{ + "name": "servchan", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "servchan", + "version": "1.0.0", + "dependencies": { + "async-mutex": "^0.5.0", + "axios": "^1.13.2", + "body-parser": "^2.2.2", + "crypto": "^1.0.1", + "csv-parser": "^3.2.0", + "dotenv": "^17.3.1", + "express": "^5.2.1", + "formdata-node": "^6.0.3", + "graphql-request": "^7.4.0", + "heic-convert": "^2.1.0", + "json2csv": "^6.0.0-alpha.2", + "node-cron": "^4.2.1", + "p-limit": "^7.3.0", + "sqlite3": "^5.1.7", + "webex-node-bot-framework": "^2.5.1" + } + }, + "node_modules/@0no-co/graphql.web": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@0no-co/graphql.web/-/graphql.web-1.2.0.tgz", + "integrity": "sha512-/1iHy9TTr63gE1YcR5idjx8UREz1s0kFhydf3bBLCXyqjhkIc6igAzTOx3zPifCwFR87tsh/4Pa9cNts6d2otw==", + "license": "MIT", + "optional": true, + "peer": true, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0" + }, + "peerDependenciesMeta": { + "graphql": { + "optional": true + } + } + }, + "node_modules/@babel/code-frame": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", + "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/highlight": "^7.10.4" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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/core/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==", + "license": "MIT", + "optional": true, + "peer": true, + "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/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.0.tgz", + "integrity": "sha512-vSH118/wwM/pLR38g/Sgk05sNtro6TlTJKuiMXDaZqPUfjTFcudpCOt00IhOfj+1BFAX+UFAlzCU+6WXr3GLFQ==", + "license": "MIT", + "optional": true, + "peer": true, + "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-annotate-as-pure": { + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/types": "^7.27.3" + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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-compilation-targets/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==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.6.tgz", + "integrity": "sha512-dTOdvsjnG3xNT9Y0AUg1wAl38y+4Rl4sf9caSQZOXdNqVn+H+HbbJ4IyyHaIqNR6SW9oJpA/RuRjsjCw2IdIow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-member-expression-to-functions": "^7.28.5", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/helper-replace-supers": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/traverse": "^7.28.6", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.28.5.tgz", + "integrity": "sha512-N1EhvLtHzOvj7QQOUCCS3NrPJP8c5W6ZXCHDn7Yialuy1iu4r5EmIYkXlKNqT99Ciw+W0mDqWoR6HWMZlFP3hw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "regexpu-core": "^6.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.6.tgz", + "integrity": "sha512-mOAsxeeKkUKayvZR3HeTYD/fICpCPLJrU5ZjelT/PA6WHtNDBOE436YiaEUvHN454bRM3CebhDsIpieCc4texA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "debug": "^4.4.3", + "lodash.debounce": "^4.0.8", + "resolve": "^1.22.11" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.28.5.tgz", + "integrity": "sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/traverse": "^7.28.5", + "@babel/types": "^7.28.5" + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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-optimise-call-expression": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", + "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz", + "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-wrap-function": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.28.6.tgz", + "integrity": "sha512-mq8e+laIk94/yFec3DxSjCRD2Z0TAjhVbEJY3UQrlwVo15Lmt7C2wAUbK4bjnTs4APkwsYLTahXRraQXhb1WCg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.28.5", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", + "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.28.6.tgz", + "integrity": "sha512-z+PwLziMNBeSQJonizz2AGnndLsP2DeGHIxDAn+wdHOGuo4Fo1x1HBPPXeE9TAOPHNNWQKCSlA2VZyYyyibDnQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.9.tgz", + "integrity": "sha512-llL88JShoCsth8fF8R4SJnIn+WLvR6ccFxu1H3FlMhDontdcmZWf2HgIZ7AIqV3Xcck1idlohrN4EUBQz6klbw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.25.9", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.29.0.tgz", + "integrity": "sha512-CVBVv3VY/XRMxRYq5dwr2DS7/MvqPm23cOCjbwNnVrfOqcWlnefua1uUs0sjdKOGjvPUG633o07uWzJq4oI6dA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-syntax-decorators": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-export-default-from": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.27.1.tgz", + "integrity": "sha512-hjlsMBl1aJc5lp8MoCDEZCiYzlgdRAShOjAfRw6X+GlpLpUPU7c3XNLsKFZbQk/1cRzBlJ7CXg3xJAJMrFa1Uw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.28.6.tgz", + "integrity": "sha512-71EYI0ONURHJBL4rSFXnITXqXrrY8q4P0q006DPfN+Rk+ASM+++IBXem/ruokgBZR8YNEWZ8R6B+rCb8VcUTqA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-default-from": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.28.6.tgz", + "integrity": "sha512-Svlx1fjJFnNz0LZeUaybRukSxZI3KkpApUmIRzEdXC5k8ErTOz0OD0kNrICi5Vc3GlpP5ZCeRyRO+mfWTSz+iQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-flow": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.28.6.tgz", + "integrity": "sha512-D+OrJumc9McXNEBI/JmFnc/0uCM2/Y3PEBG3gfV3QIYkKv5pvnpzFrl1kYCrcHJP8nOeFB/SHi1IHz29pNGuew==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", + "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", + "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz", + "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz", + "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==", + "license": "MIT", + "optional": true, + "peer": true, + "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-async-generator-functions": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.29.0.tgz", + "integrity": "sha512-va0VdWro4zlBr2JsXC+ofCPB2iG12wPtVGTWFx2WLDOM3nYQZZIGP82qku2eW/JR83sD+k2k+CsNtyEbUqhU6w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-remap-async-to-generator": "^7.27.1", + "@babel/traverse": "^7.29.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.28.6.tgz", + "integrity": "sha512-ilTRcmbuXjsMmcZ3HASTe4caH5Tpo93PkTxF9oG2VZsSWsahydmcEHhix9Ik122RcTnZnUzPbmux4wh1swfv7g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-remap-async-to-generator": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.28.6.tgz", + "integrity": "sha512-tt/7wOtBmwHPNMPu7ax4pdPz6shjFrmHDghvNC+FG9Qvj7D6mJcoRQIF5dy4njmxR941l6rgtvfSB2zX3VlUIw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.28.6.tgz", + "integrity": "sha512-dY2wS3I2G7D697VHndN91TJr8/AAfXQNt5ynCTI/MpxMsSzHp+52uNivYT5wCPax3whc47DR8Ba7cmlQMg24bw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.28.6.tgz", + "integrity": "sha512-rfQ++ghVwTWTqQ7w8qyDxL1XGihjBss4CmTgGRCTAC9RIbhVpyp4fOeZtta0Lbf+dTNIVJer6ych2ibHwkZqsQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.6.tgz", + "integrity": "sha512-EF5KONAqC5zAqT783iMGuM2ZtmEBy+mJMOKl2BCvPZ2lVrwvXnB6o+OBWCS+CoeCCpVRF2sA2RBKUxvT8tQT5Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-globals": "^7.28.0", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-replace-supers": "^7.28.6", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.28.6.tgz", + "integrity": "sha512-bcc3k0ijhHbc2lEfpFHgx7eYw9KNXqOerKWfzbxEHUGKnS3sz9C4CNL9OiFN1297bDNfUiSO7DaLzbvHQQQ1BQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/template": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.5.tgz", + "integrity": "sha512-Kl9Bc6D0zTUcFUvkNuQh4eGXPKKNDOJQXVyyM4ZAQPMveniJdxi8XMJwLo+xSoW3MIq81bD33lcUe9kZpl0MCw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz", + "integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==", + "license": "MIT", + "optional": true, + "peer": true, + "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-flow-strip-types": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.27.1.tgz", + "integrity": "sha512-G5eDKsu50udECw7DL2AcsysXiQyB7Nfg521t2OAJ4tbfTJ27doHLeF/vlI1NZGlLdbb/v+ibvtL1YBQqYOwJGg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-syntax-flow": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz", + "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz", + "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz", + "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==", + "license": "MIT", + "optional": true, + "peer": true, + "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-logical-assignment-operators": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.28.6.tgz", + "integrity": "sha512-+anKKair6gpi8VsM/95kmomGNMD0eLz1NQ8+Pfw5sAwWH9fGYXT50E55ZpV0pHUHWf6IUTWPM+f/7AAff+wr9A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.28.6.tgz", + "integrity": "sha512-jppVbf8IV9iWWwWTQIxJMAJCWBuuKx71475wHwYytrRGQ2CWiDvYlADQno3tcYpS/T2UUWFQp3nVtYfK/YBQrA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.29.0.tgz", + "integrity": "sha512-1CZQA5KNAD6ZYQLPw7oi5ewtDNxH/2vuCh+6SmvgDfhumForvs8a1o9n0UrEoBD8HU4djO2yWngTQlXl1NDVEQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.28.5", + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.28.6.tgz", + "integrity": "sha512-3wKbRgmzYbw24mDJXT7N+ADXw8BC/imU9yo9c9X9NKaLF1fW+e5H1U5QjMUBe4Qo4Ox/o++IyUkl1sVCLgevKg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.28.6.tgz", + "integrity": "sha512-SJR8hPynj8outz+SlStQSwvziMN4+Bq99it4tMIf5/Caq+3iOc0JtKyse8puvyXkk3eFRIA5ID/XfunGgO5i6w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.28.6.tgz", + "integrity": "sha512-5rh+JR4JBC4pGkXLAcYdLHZjXudVxWMXbB6u6+E9lRL5TrGVbHt1TjxGbZ8CkmYw9zjkB7jutzOROArsqtncEA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-transform-destructuring": "^7.28.5", + "@babel/plugin-transform-parameters": "^7.27.7", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.28.6.tgz", + "integrity": "sha512-R8ja/Pyrv0OGAvAXQhSTmWyPJPml+0TMqXlO5w+AsMEiwb2fg3WkOvob7UxFSL3OIttFSGSRFKQsOhJ/X6HQdQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.28.6.tgz", + "integrity": "sha512-A4zobikRGJTsX9uqVFdafzGkqD30t26ck2LmOzAuLL8b2x6k3TIqRiT2xVvA9fNmFeTX484VpsdgmKNA0bS23w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.7.tgz", + "integrity": "sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==", + "license": "MIT", + "optional": true, + "peer": true, + "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-private-methods": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.28.6.tgz", + "integrity": "sha512-piiuapX9CRv7+0st8lmuUlRSmX6mBcVeNQ1b4AYzJxfCMuBfB0vBXDiGSmm03pKJw1v6cZ8KSeM+oUnM6yAExg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.28.6.tgz", + "integrity": "sha512-b97jvNSOb5+ehyQmBpmhOCiUC5oVK4PMnpRvO7+ymFBoqYjeDHIU9jnrNUuwHOiL9RpGDoKBpSViarV+BU+eVA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.28.0.tgz", + "integrity": "sha512-D6Eujc2zMxKjfa4Zxl4GHMsmhKKZ9VpcqIchJLvwTxad9zWIYulwYItBovpDOoNLISpcZSXoDJ5gaGbQUDqViA==", + "license": "MIT", + "optional": true, + "peer": true, + "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": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.28.6.tgz", + "integrity": "sha512-61bxqhiRfAACulXSLd/GxqmAedUSrRZIu/cbaT18T1CetkTmtDN15it7i80ru4DVqRK1WMxQhXs+Lf9kajm5Ow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-syntax-jsx": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.27.1.tgz", + "integrity": "sha512-ykDdF5yI4f1WrAolLqeF3hmYU12j9ntLQl/AOG1HAS21jxyg1Q0/J/tpREuYLfatGdGmXp/3yS0ZA76kOlVq9Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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-pure-annotations": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.27.1.tgz", + "integrity": "sha512-JfuinvDOsD9FVMTHpzA/pBLisxpv1aSf+OIV8lgH3MuWrks19R27e6a6DipIg4aX1Zm9Wpb04p8wljfKrVSnPA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.29.0.tgz", + "integrity": "sha512-FijqlqMA7DmRdg/aINBSs04y8XNTYw/lr1gJ2WsmBnnaNw1iS43EPkJW+zK7z65auG3AWRFXWj+NcTQwYptUog==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.29.0.tgz", + "integrity": "sha512-jlaRT5dJtMaMCV6fAuLbsQMSwz/QkvaHOHOSXRitGGwSpR1blCY4KUKoyP2tYO8vJcqYe8cEj96cqSztv3uF9w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "babel-plugin-polyfill-corejs2": "^0.4.14", + "babel-plugin-polyfill-corejs3": "^0.13.0", + "babel-plugin-polyfill-regenerator": "^0.6.5", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz", + "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==", + "license": "MIT", + "optional": true, + "peer": true, + "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-spread": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.28.6.tgz", + "integrity": "sha512-9U4QObUC0FtJl05AsUcodau/RWDytrU6uKgkxu09mLR9HLDAtUMoPuuskm5huQsoktmsYpI+bGmq+iapDcriKA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz", + "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==", + "license": "MIT", + "optional": true, + "peer": true, + "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-typescript": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.28.6.tgz", + "integrity": "sha512-0YWL2RFxOqEm9Efk5PvreamxPME8OyY0wM5wh5lHjF+VtVhdneCWGzZeSqzOfiobVqQaNCd2z0tQvnI9DaPWPw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/plugin-syntax-typescript": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz", + "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/polyfill": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.12.1.tgz", + "integrity": "sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==", + "deprecated": "🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.", + "license": "MIT", + "dependencies": { + "core-js": "^2.6.5", + "regenerator-runtime": "^0.13.4" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.28.5.tgz", + "integrity": "sha512-Z3J8vhRq7CeLjdC58jLv4lnZ5RKFUJWqH5emvxmv9Hv3BD1T9R/Im713R4MTKwvFaV74ejZ3sM01LyEKk4ugNQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-option": "^7.27.1", + "@babel/plugin-transform-react-display-name": "^7.28.0", + "@babel/plugin-transform-react-jsx": "^7.27.1", + "@babel/plugin-transform-react-jsx-development": "^7.27.1", + "@babel/plugin-transform-react-pure-annotations": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.28.5.tgz", + "integrity": "sha512-+bQy5WOI2V6LJZpPVxY+yp66XdZ2yifu0Mc1aP5CQKgjn4QM5IN2i5fAZ4xKop47pr8rpVhiAeu+nDQa12C8+g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-option": "^7.27.1", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/plugin-transform-modules-commonjs": "^7.27.1", + "@babel/plugin-transform-typescript": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.6.tgz", + "integrity": "sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/runtime-corejs2": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.28.6.tgz", + "integrity": "sha512-pOHfxftxpetWUeBacCB3ZOPc/OO6hiT9MLv0qd9j474khiCcduwO8uuJI3N7vX3m8GJotTT6lxlA89TS/PylGg==", + "license": "MIT", + "dependencies": { + "core-js": "^2.6.12" + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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/template/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==", + "license": "MIT", + "optional": true, + "peer": true, + "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/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "license": "MIT", + "optional": true, + "peer": true, + "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/traverse--for-generate-function-map": { + "name": "@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==", + "license": "MIT", + "optional": true, + "peer": true, + "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/traverse--for-generate-function-map/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==", + "license": "MIT", + "optional": true, + "peer": true, + "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/traverse/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==", + "license": "MIT", + "optional": true, + "peer": true, + "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/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@ciscospark/test-users-legacy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ciscospark/test-users-legacy/-/test-users-legacy-1.2.0.tgz", + "integrity": "sha512-WEAe6ntEZOk3TPzk7BGyattgh9OZnKPYNb9idfZnI3Dkb9iO3zUB3AlCqrAMp1I6dQ5+RTkgTuSGdgWP4Toluw==", + "license": "UNLICENSED", + "optional": true, + "dependencies": { + "btoa": "^1.1.2", + "lodash": "^4.17.4", + "node-random-name": "^1.0.1", + "request": "^2.81.0" + } + }, + "node_modules/@expo/cli": { + "version": "54.0.23", + "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-54.0.23.tgz", + "integrity": "sha512-km0h72SFfQCmVycH/JtPFTVy69w6Lx1cHNDmfLfQqgKFYeeHTjx7LVDP4POHCtNxFP2UeRazrygJhlh4zz498g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@0no-co/graphql.web": "^1.0.8", + "@expo/code-signing-certificates": "^0.0.6", + "@expo/config": "~12.0.13", + "@expo/config-plugins": "~54.0.4", + "@expo/devcert": "^1.2.1", + "@expo/env": "~2.0.8", + "@expo/image-utils": "^0.8.8", + "@expo/json-file": "^10.0.8", + "@expo/metro": "~54.2.0", + "@expo/metro-config": "~54.0.14", + "@expo/osascript": "^2.3.8", + "@expo/package-manager": "^1.9.10", + "@expo/plist": "^0.4.8", + "@expo/prebuild-config": "^54.0.8", + "@expo/schema-utils": "^0.1.8", + "@expo/spawn-async": "^1.7.2", + "@expo/ws-tunnel": "^1.0.1", + "@expo/xcpretty": "^4.3.0", + "@react-native/dev-middleware": "0.81.5", + "@urql/core": "^5.0.6", + "@urql/exchange-retry": "^1.3.0", + "accepts": "^1.3.8", + "arg": "^5.0.2", + "better-opn": "~3.0.2", + "bplist-creator": "0.1.0", + "bplist-parser": "^0.3.1", + "chalk": "^4.0.0", + "ci-info": "^3.3.0", + "compression": "^1.7.4", + "connect": "^3.7.0", + "debug": "^4.3.4", + "env-editor": "^0.4.1", + "expo-server": "^1.0.5", + "freeport-async": "^2.0.0", + "getenv": "^2.0.0", + "glob": "^13.0.0", + "lan-network": "^0.1.6", + "minimatch": "^9.0.0", + "node-forge": "^1.3.3", + "npm-package-arg": "^11.0.0", + "ora": "^3.4.0", + "picomatch": "^3.0.1", + "pretty-bytes": "^5.6.0", + "pretty-format": "^29.7.0", + "progress": "^2.0.3", + "prompts": "^2.3.2", + "qrcode-terminal": "0.11.0", + "require-from-string": "^2.0.2", + "requireg": "^0.2.2", + "resolve": "^1.22.2", + "resolve-from": "^5.0.0", + "resolve.exports": "^2.0.3", + "semver": "^7.6.0", + "send": "^0.19.0", + "slugify": "^1.3.4", + "source-map-support": "~0.5.21", + "stacktrace-parser": "^0.1.10", + "structured-headers": "^0.4.1", + "tar": "^7.5.2", + "terminal-link": "^2.1.1", + "undici": "^6.18.2", + "wrap-ansi": "^7.0.0", + "ws": "^8.12.1" + }, + "bin": { + "expo-internal": "build/bin/cli" + }, + "peerDependencies": { + "expo": "*", + "expo-router": "*", + "react-native": "*" + }, + "peerDependenciesMeta": { + "expo-router": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, + "node_modules/@expo/cli/node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@expo/cli/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@expo/cli/node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/@expo/cli/node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@expo/cli/node_modules/glob": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz", + "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "minimatch": "^10.1.1", + "minipass": "^7.1.2", + "path-scurry": "^2.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/cli/node_modules/glob/node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/cli/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@expo/cli/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", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@expo/cli/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", + "optional": true, + "peer": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@expo/cli/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/cli/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@expo/cli/node_modules/minizlib": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@expo/cli/node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@expo/cli/node_modules/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/@expo/cli/node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/@expo/cli/node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@expo/cli/node_modules/tar": { + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.7.tgz", + "integrity": "sha512-fov56fJiRuThVFXD6o6/Q354S7pnWMJIVlDBYijsTNx6jKSE4pvrDTs6lUnmGvNyfJwFQQwWy3owKz1ucIhveQ==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@expo/cli/node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/@expo/code-signing-certificates": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@expo/code-signing-certificates/-/code-signing-certificates-0.0.6.tgz", + "integrity": "sha512-iNe0puxwBNEcuua9gmTGzq+SuMDa0iATai1FlFTMHJ/vUmKvN/V//drXoLJkVb5i5H3iE/n/qIJxyoBnXouD0w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "node-forge": "^1.3.3" + } + }, + "node_modules/@expo/config": { + "version": "12.0.13", + "resolved": "https://registry.npmjs.org/@expo/config/-/config-12.0.13.tgz", + "integrity": "sha512-Cu52arBa4vSaupIWsF0h7F/Cg//N374nYb7HAxV0I4KceKA7x2UXpYaHOL7EEYYvp7tZdThBjvGpVmr8ScIvaQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/code-frame": "~7.10.4", + "@expo/config-plugins": "~54.0.4", + "@expo/config-types": "^54.0.10", + "@expo/json-file": "^10.0.8", + "deepmerge": "^4.3.1", + "getenv": "^2.0.0", + "glob": "^13.0.0", + "require-from-string": "^2.0.2", + "resolve-from": "^5.0.0", + "resolve-workspace-root": "^2.0.0", + "semver": "^7.6.0", + "slugify": "^1.3.4", + "sucrase": "~3.35.1" + } + }, + "node_modules/@expo/config-plugins": { + "version": "54.0.4", + "resolved": "https://registry.npmjs.org/@expo/config-plugins/-/config-plugins-54.0.4.tgz", + "integrity": "sha512-g2yXGICdoOw5i3LkQSDxl2Q5AlQCrG7oniu0pCPPO+UxGb7He4AFqSvPSy8HpRUj55io17hT62FTjYRD+d6j3Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/config-types": "^54.0.10", + "@expo/json-file": "~10.0.8", + "@expo/plist": "^0.4.8", + "@expo/sdk-runtime-versions": "^1.0.0", + "chalk": "^4.1.2", + "debug": "^4.3.5", + "getenv": "^2.0.0", + "glob": "^13.0.0", + "resolve-from": "^5.0.0", + "semver": "^7.5.4", + "slash": "^3.0.0", + "slugify": "^1.6.6", + "xcode": "^3.0.1", + "xml2js": "0.6.0" + } + }, + "node_modules/@expo/config-plugins/node_modules/glob": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz", + "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "minimatch": "^10.1.1", + "minipass": "^7.1.2", + "path-scurry": "^2.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/config-plugins/node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/config-plugins/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@expo/config-types": { + "version": "54.0.10", + "resolved": "https://registry.npmjs.org/@expo/config-types/-/config-types-54.0.10.tgz", + "integrity": "sha512-/J16SC2an1LdtCZ67xhSkGXpALYUVUNyZws7v+PVsFZxClYehDSoKLqyRaGkpHlYrCc08bS0RF5E0JV6g50psA==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@expo/config/node_modules/glob": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz", + "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "minimatch": "^10.1.1", + "minipass": "^7.1.2", + "path-scurry": "^2.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/config/node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/config/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@expo/devcert": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@expo/devcert/-/devcert-1.2.1.tgz", + "integrity": "sha512-qC4eaxmKMTmJC2ahwyui6ud8f3W60Ss7pMkpBq40Hu3zyiAaugPXnZ24145U7K36qO9UHdZUVxsCvIpz2RYYCA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/sudo-prompt": "^9.3.1", + "debug": "^3.1.0" + } + }, + "node_modules/@expo/devcert/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/@expo/devtools": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@expo/devtools/-/devtools-0.1.8.tgz", + "integrity": "sha512-SVLxbuanDjJPgc0sy3EfXUMLb/tXzp6XIHkhtPVmTWJAp+FOr6+5SeiCfJrCzZFet0Ifyke2vX3sFcKwEvCXwQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "chalk": "^4.1.2" + }, + "peerDependencies": { + "react": "*", + "react-native": "*" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, + "node_modules/@expo/env": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@expo/env/-/env-2.0.8.tgz", + "integrity": "sha512-5VQD6GT8HIMRaSaB5JFtOXuvfDVU80YtZIuUT/GDhUF782usIXY13Tn3IdDz1Tm/lqA9qnRZQ1BF4t7LlvdJPA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "chalk": "^4.0.0", + "debug": "^4.3.4", + "dotenv": "~16.4.5", + "dotenv-expand": "~11.0.6", + "getenv": "^2.0.0" + } + }, + "node_modules/@expo/env/node_modules/dotenv": { + "version": "16.4.7", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", + "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/@expo/fingerprint": { + "version": "0.15.4", + "resolved": "https://registry.npmjs.org/@expo/fingerprint/-/fingerprint-0.15.4.tgz", + "integrity": "sha512-eYlxcrGdR2/j2M6pEDXo9zU9KXXF1vhP+V+Tl+lyY+bU8lnzrN6c637mz6Ye3em2ANy8hhUR03Raf8VsT9Ogng==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/spawn-async": "^1.7.2", + "arg": "^5.0.2", + "chalk": "^4.1.2", + "debug": "^4.3.4", + "getenv": "^2.0.0", + "glob": "^13.0.0", + "ignore": "^5.3.1", + "minimatch": "^9.0.0", + "p-limit": "^3.1.0", + "resolve-from": "^5.0.0", + "semver": "^7.6.0" + }, + "bin": { + "fingerprint": "bin/cli.js" + } + }, + "node_modules/@expo/fingerprint/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@expo/fingerprint/node_modules/glob": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz", + "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "minimatch": "^10.1.1", + "minipass": "^7.1.2", + "path-scurry": "^2.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/fingerprint/node_modules/glob/node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/fingerprint/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/fingerprint/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@expo/fingerprint/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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@expo/fingerprint/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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@expo/image-utils": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@expo/image-utils/-/image-utils-0.8.8.tgz", + "integrity": "sha512-HHHaG4J4nKjTtVa1GG9PCh763xlETScfEyNxxOvfTRr8IKPJckjTyqSLEtdJoFNJ1vqiABEjW7tqGhqGibZLeA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/spawn-async": "^1.7.2", + "chalk": "^4.0.0", + "getenv": "^2.0.0", + "jimp-compact": "0.16.1", + "parse-png": "^2.1.0", + "resolve-from": "^5.0.0", + "resolve-global": "^1.0.0", + "semver": "^7.6.0", + "temp-dir": "~2.0.0", + "unique-string": "~2.0.0" + } + }, + "node_modules/@expo/json-file": { + "version": "10.0.8", + "resolved": "https://registry.npmjs.org/@expo/json-file/-/json-file-10.0.8.tgz", + "integrity": "sha512-9LOTh1PgKizD1VXfGQ88LtDH0lRwq9lsTb4aichWTWSWqy3Ugfkhfm3BhzBIkJJfQQ5iJu3m/BoRlEIjoCGcnQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/code-frame": "~7.10.4", + "json5": "^2.2.3" + } + }, + "node_modules/@expo/metro": { + "version": "54.2.0", + "resolved": "https://registry.npmjs.org/@expo/metro/-/metro-54.2.0.tgz", + "integrity": "sha512-h68TNZPGsk6swMmLm9nRSnE2UXm48rWwgcbtAHVMikXvbxdS41NDHHeqg1rcQ9AbznDRp6SQVC2MVpDnsRKU1w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "metro": "0.83.3", + "metro-babel-transformer": "0.83.3", + "metro-cache": "0.83.3", + "metro-cache-key": "0.83.3", + "metro-config": "0.83.3", + "metro-core": "0.83.3", + "metro-file-map": "0.83.3", + "metro-minify-terser": "0.83.3", + "metro-resolver": "0.83.3", + "metro-runtime": "0.83.3", + "metro-source-map": "0.83.3", + "metro-symbolicate": "0.83.3", + "metro-transform-plugins": "0.83.3", + "metro-transform-worker": "0.83.3" + } + }, + "node_modules/@expo/metro-config": { + "version": "54.0.14", + "resolved": "https://registry.npmjs.org/@expo/metro-config/-/metro-config-54.0.14.tgz", + "integrity": "sha512-hxpLyDfOR4L23tJ9W1IbJJsG7k4lv2sotohBm/kTYyiG+pe1SYCAWsRmgk+H42o/wWf/HQjE5k45S5TomGLxNA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.20.0", + "@babel/core": "^7.20.0", + "@babel/generator": "^7.20.5", + "@expo/config": "~12.0.13", + "@expo/env": "~2.0.8", + "@expo/json-file": "~10.0.8", + "@expo/metro": "~54.2.0", + "@expo/spawn-async": "^1.7.2", + "browserslist": "^4.25.0", + "chalk": "^4.1.0", + "debug": "^4.3.2", + "dotenv": "~16.4.5", + "dotenv-expand": "~11.0.6", + "getenv": "^2.0.0", + "glob": "^13.0.0", + "hermes-parser": "^0.29.1", + "jsc-safe-url": "^0.2.4", + "lightningcss": "^1.30.1", + "minimatch": "^9.0.0", + "postcss": "~8.4.32", + "resolve-from": "^5.0.0" + }, + "peerDependencies": { + "expo": "*" + }, + "peerDependenciesMeta": { + "expo": { + "optional": true + } + } + }, + "node_modules/@expo/metro-config/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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@expo/metro-config/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@expo/metro-config/node_modules/dotenv": { + "version": "16.4.7", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", + "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/@expo/metro-config/node_modules/glob": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz", + "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "minimatch": "^10.1.1", + "minipass": "^7.1.2", + "path-scurry": "^2.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/metro-config/node_modules/glob/node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/metro-config/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@expo/metro-config/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@expo/osascript": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@expo/osascript/-/osascript-2.3.8.tgz", + "integrity": "sha512-/TuOZvSG7Nn0I8c+FcEaoHeBO07yu6vwDgk7rZVvAXoeAK5rkA09jRyjYsZo+0tMEFaToBeywA6pj50Mb3ny9w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/spawn-async": "^1.7.2", + "exec-async": "^2.2.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@expo/package-manager": { + "version": "1.9.10", + "resolved": "https://registry.npmjs.org/@expo/package-manager/-/package-manager-1.9.10.tgz", + "integrity": "sha512-axJm+NOj3jVxep49va/+L3KkF3YW/dkV+RwzqUJedZrv4LeTqOG4rhrCaCPXHTvLqCTDKu6j0Xyd28N7mnxsGA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/json-file": "^10.0.8", + "@expo/spawn-async": "^1.7.2", + "chalk": "^4.0.0", + "npm-package-arg": "^11.0.0", + "ora": "^3.4.0", + "resolve-workspace-root": "^2.0.0" + } + }, + "node_modules/@expo/plist": { + "version": "0.4.8", + "resolved": "https://registry.npmjs.org/@expo/plist/-/plist-0.4.8.tgz", + "integrity": "sha512-pfNtErGGzzRwHP+5+RqswzPDKkZrx+Cli0mzjQaus1ZWFsog5ibL+nVT3NcporW51o8ggnt7x813vtRbPiyOrQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.2.3", + "xmlbuilder": "^15.1.1" + } + }, + "node_modules/@expo/prebuild-config": { + "version": "54.0.8", + "resolved": "https://registry.npmjs.org/@expo/prebuild-config/-/prebuild-config-54.0.8.tgz", + "integrity": "sha512-EA7N4dloty2t5Rde+HP0IEE+nkAQiu4A/+QGZGT9mFnZ5KKjPPkqSyYcRvP5bhQE10D+tvz6X0ngZpulbMdbsg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/config": "~12.0.13", + "@expo/config-plugins": "~54.0.4", + "@expo/config-types": "^54.0.10", + "@expo/image-utils": "^0.8.8", + "@expo/json-file": "^10.0.8", + "@react-native/normalize-colors": "0.81.5", + "debug": "^4.3.1", + "resolve-from": "^5.0.0", + "semver": "^7.6.0", + "xml2js": "0.6.0" + }, + "peerDependencies": { + "expo": "*" + } + }, + "node_modules/@expo/schema-utils": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@expo/schema-utils/-/schema-utils-0.1.8.tgz", + "integrity": "sha512-9I6ZqvnAvKKDiO+ZF8BpQQFYWXOJvTAL5L/227RUbWG1OVZDInFifzCBiqAZ3b67NRfeAgpgvbA7rejsqhY62A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@expo/sdk-runtime-versions": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@expo/sdk-runtime-versions/-/sdk-runtime-versions-1.0.0.tgz", + "integrity": "sha512-Doz2bfiPndXYFPMRwPyGa1k5QaKDVpY806UJj570epIiMzWaYyCtobasyfC++qfIXVb5Ocy7r3tP9d62hAQ7IQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@expo/spawn-async": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@expo/spawn-async/-/spawn-async-1.7.2.tgz", + "integrity": "sha512-QdWi16+CHB9JYP7gma19OVVg0BFkvU8zNj9GjWorYI8Iv8FUxjOCcYRuAmX4s/h91e4e7BPsskc8cSrZYho9Ew==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "cross-spawn": "^7.0.3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@expo/sudo-prompt": { + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/@expo/sudo-prompt/-/sudo-prompt-9.3.2.tgz", + "integrity": "sha512-HHQigo3rQWKMDzYDLkubN5WQOYXJJE2eNqIQC2axC2iO3mHdwnIR7FgZVvHWtBwAdzBgAP0ECp8KqS8TiMKvgw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@expo/vector-icons": { + "version": "15.0.3", + "resolved": "https://registry.npmjs.org/@expo/vector-icons/-/vector-icons-15.0.3.tgz", + "integrity": "sha512-SBUyYKphmlfUBqxSfDdJ3jAdEVSALS2VUPOUyqn48oZmb2TL/O7t7/PQm5v4NQujYEPLPMTLn9KVw6H7twwbTA==", + "license": "MIT", + "optional": true, + "peer": true, + "peerDependencies": { + "expo-font": ">=14.0.4", + "react": "*", + "react-native": "*" + } + }, + "node_modules/@expo/ws-tunnel": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@expo/ws-tunnel/-/ws-tunnel-1.0.6.tgz", + "integrity": "sha512-nDRbLmSrJar7abvUjp3smDwH8HcbZcoOEa5jVPUv9/9CajgmWw20JNRwTuBRzWIWIkEJDkz20GoNA+tSwUqk0Q==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@expo/xcpretty": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@expo/xcpretty/-/xcpretty-4.4.0.tgz", + "integrity": "sha512-o2qDlTqJ606h4xR36H2zWTywmZ3v3842K6TU8Ik2n1mfW0S580VHlt3eItVYdLYz+klaPp7CXqanja8eASZjRw==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.20.0", + "chalk": "^4.1.0", + "js-yaml": "^4.1.0" + }, + "bin": { + "excpretty": "build/cli.js" + } + }, + "node_modules/@expo/xcpretty/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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@gar/promisify": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", + "license": "MIT", + "optional": true + }, + "node_modules/@graphql-typed-document-node/core": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz", + "integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==", + "license": "MIT", + "peerDependencies": { + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "minipass": "^7.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@isaacs/fs-minipass/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@isaacs/ttlcache": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@isaacs/ttlcache/-/ttlcache-1.4.1.tgz", + "integrity": "sha512-RQgQ4uQ+pLbqXfOmieB91ejmLwvSgv9nLx6sT6sD83s7umBypgg+OIBOBbEUiJXrfpnp9j0mRhYYdzp9uqq3lA==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/create-cache-key-function": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-29.7.0.tgz", + "integrity": "sha512-4QqS3LY5PBmTRHj9sAg1HLoPzqAI0uOX6wI/TRqHIcOxlFidy6YEmCQJk6FSZjNLGCeubDMfmkWL+qaLKhSGQA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/types": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz", + "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "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==", + "license": "MIT", + "optional": true, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@npmcli/fs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", + "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + } + }, + "node_modules/@npmcli/move-file": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", + "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "deprecated": "This functionality has been moved to @npmcli/fs", + "license": "MIT", + "optional": true, + "dependencies": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@peculiar/asn1-schema": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.6.0.tgz", + "integrity": "sha512-xNLYLBFTBKkCzEZIw842BxytQQATQv+lDTCEMZ8C196iJcJJMBUZxrhSTxLaohMyKK8QlzRNTRkUmanucnDSqg==", + "license": "MIT", + "dependencies": { + "asn1js": "^3.0.6", + "pvtsutils": "^1.3.6", + "tslib": "^2.8.1" + } + }, + "node_modules/@peculiar/asn1-schema/node_modules/asn1js": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.7.tgz", + "integrity": "sha512-uLvq6KJu04qoQM6gvBfKFjlh6Gl0vOKQuR5cJMDHQkmwfMOQeN3F3SHCv9SNYSL+CRoHvOGFfllDlVz03GQjvQ==", + "license": "BSD-3-Clause", + "dependencies": { + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@peculiar/json-schema": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", + "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@peculiar/webcrypto": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.5.0.tgz", + "integrity": "sha512-BRs5XUAwiyCDQMsVA9IDvDa7UBR9gAvPHgugOeGng3YN6vJ9JYonyDc0lNczErgtCWtucjR5N7VtaonboD/ezg==", + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.3.8", + "@peculiar/json-schema": "^1.1.12", + "pvtsutils": "^1.3.5", + "tslib": "^2.6.2", + "webcrypto-core": "^1.8.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/@react-native/assets-registry": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/assets-registry/-/assets-registry-0.83.1.tgz", + "integrity": "sha512-AT7/T6UwQqO39bt/4UL5EXvidmrddXrt0yJa7ENXndAv+8yBzMsZn6fyiax6+ERMt9GLzAECikv3lj22cn2wJA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/babel-plugin-codegen": { + "version": "0.81.5", + "resolved": "https://registry.npmjs.org/@react-native/babel-plugin-codegen/-/babel-plugin-codegen-0.81.5.tgz", + "integrity": "sha512-oF71cIH6je3fSLi6VPjjC3Sgyyn57JLHXs+mHWc9MoCiJJcM4nqsS5J38zv1XQ8d3zOW2JtHro+LF0tagj2bfQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/traverse": "^7.25.3", + "@react-native/codegen": "0.81.5" + }, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/babel-preset": { + "version": "0.81.5", + "resolved": "https://registry.npmjs.org/@react-native/babel-preset/-/babel-preset-0.81.5.tgz", + "integrity": "sha512-UoI/x/5tCmi+pZ3c1+Ypr1DaRMDLI3y+Q70pVLLVgrnC3DHsHRIbHcCHIeG/IJvoeFqFM2sTdhSOLJrf8lOPrA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "@babel/plugin-proposal-export-default-from": "^7.24.7", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-default-from": "^7.24.7", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-transform-arrow-functions": "^7.24.7", + "@babel/plugin-transform-async-generator-functions": "^7.25.4", + "@babel/plugin-transform-async-to-generator": "^7.24.7", + "@babel/plugin-transform-block-scoping": "^7.25.0", + "@babel/plugin-transform-class-properties": "^7.25.4", + "@babel/plugin-transform-classes": "^7.25.4", + "@babel/plugin-transform-computed-properties": "^7.24.7", + "@babel/plugin-transform-destructuring": "^7.24.8", + "@babel/plugin-transform-flow-strip-types": "^7.25.2", + "@babel/plugin-transform-for-of": "^7.24.7", + "@babel/plugin-transform-function-name": "^7.25.1", + "@babel/plugin-transform-literals": "^7.25.2", + "@babel/plugin-transform-logical-assignment-operators": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.8", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", + "@babel/plugin-transform-numeric-separator": "^7.24.7", + "@babel/plugin-transform-object-rest-spread": "^7.24.7", + "@babel/plugin-transform-optional-catch-binding": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.8", + "@babel/plugin-transform-parameters": "^7.24.7", + "@babel/plugin-transform-private-methods": "^7.24.7", + "@babel/plugin-transform-private-property-in-object": "^7.24.7", + "@babel/plugin-transform-react-display-name": "^7.24.7", + "@babel/plugin-transform-react-jsx": "^7.25.2", + "@babel/plugin-transform-react-jsx-self": "^7.24.7", + "@babel/plugin-transform-react-jsx-source": "^7.24.7", + "@babel/plugin-transform-regenerator": "^7.24.7", + "@babel/plugin-transform-runtime": "^7.24.7", + "@babel/plugin-transform-shorthand-properties": "^7.24.7", + "@babel/plugin-transform-spread": "^7.24.7", + "@babel/plugin-transform-sticky-regex": "^7.24.7", + "@babel/plugin-transform-typescript": "^7.25.2", + "@babel/plugin-transform-unicode-regex": "^7.24.7", + "@babel/template": "^7.25.0", + "@react-native/babel-plugin-codegen": "0.81.5", + "babel-plugin-syntax-hermes-parser": "0.29.1", + "babel-plugin-transform-flow-enums": "^0.0.2", + "react-refresh": "^0.14.0" + }, + "engines": { + "node": ">= 20.19.4" + }, + "peerDependencies": { + "@babel/core": "*" + } + }, + "node_modules/@react-native/codegen": { + "version": "0.81.5", + "resolved": "https://registry.npmjs.org/@react-native/codegen/-/codegen-0.81.5.tgz", + "integrity": "sha512-a2TDA03Up8lpSa9sh5VRGCQDXgCTOyDOFH+aqyinxp1HChG8uk89/G+nkJ9FPd0rqgi25eCTR16TWdS3b+fA6g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "@babel/parser": "^7.25.3", + "glob": "^7.1.1", + "hermes-parser": "0.29.1", + "invariant": "^2.2.4", + "nullthrows": "^1.1.1", + "yargs": "^17.6.2" + }, + "engines": { + "node": ">= 20.19.4" + }, + "peerDependencies": { + "@babel/core": "*" + } + }, + "node_modules/@react-native/community-cli-plugin": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/community-cli-plugin/-/community-cli-plugin-0.83.1.tgz", + "integrity": "sha512-FqR1ftydr08PYlRbrDF06eRiiiGOK/hNmz5husv19sK6iN5nHj1SMaCIVjkH/a5vryxEddyFhU6PzO/uf4kOHg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@react-native/dev-middleware": "0.83.1", + "debug": "^4.4.0", + "invariant": "^2.2.4", + "metro": "^0.83.3", + "metro-config": "^0.83.3", + "metro-core": "^0.83.3", + "semver": "^7.1.3" + }, + "engines": { + "node": ">= 20.19.4" + }, + "peerDependencies": { + "@react-native-community/cli": "*", + "@react-native/metro-config": "*" + }, + "peerDependenciesMeta": { + "@react-native-community/cli": { + "optional": true + }, + "@react-native/metro-config": { + "optional": true + } + } + }, + "node_modules/@react-native/community-cli-plugin/node_modules/@react-native/debugger-frontend": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/debugger-frontend/-/debugger-frontend-0.83.1.tgz", + "integrity": "sha512-01Rn3goubFvPjHXONooLmsW0FLxJDKIUJNOlOS0cPtmmTIx9YIjxhe/DxwHXGk7OnULd7yl3aYy7WlBsEd5Xmg==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/community-cli-plugin/node_modules/@react-native/dev-middleware": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/dev-middleware/-/dev-middleware-0.83.1.tgz", + "integrity": "sha512-QJaSfNRzj3Lp7MmlCRgSBlt1XZ38xaBNXypXAp/3H3OdFifnTZOeYOpFmcpjcXYnDqkxetuwZg8VL65SQhB8dg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/ttlcache": "^1.4.1", + "@react-native/debugger-frontend": "0.83.1", + "@react-native/debugger-shell": "0.83.1", + "chrome-launcher": "^0.15.2", + "chromium-edge-launcher": "^0.2.0", + "connect": "^3.6.5", + "debug": "^4.4.0", + "invariant": "^2.2.4", + "nullthrows": "^1.1.1", + "open": "^7.0.3", + "serve-static": "^1.16.2", + "ws": "^7.5.10" + }, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/community-cli-plugin/node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@react-native/community-cli-plugin/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@react-native/community-cli-plugin/node_modules/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/@react-native/community-cli-plugin/node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/@react-native/community-cli-plugin/node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@react-native/community-cli-plugin/node_modules/serve-static": { + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", + "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "~0.19.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/@react-native/community-cli-plugin/node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@react-native/debugger-frontend": { + "version": "0.81.5", + "resolved": "https://registry.npmjs.org/@react-native/debugger-frontend/-/debugger-frontend-0.81.5.tgz", + "integrity": "sha512-bnd9FSdWKx2ncklOetCgrlwqSGhMHP2zOxObJbOWXoj7GHEmih4MKarBo5/a8gX8EfA1EwRATdfNBQ81DY+h+w==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/debugger-shell": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/debugger-shell/-/debugger-shell-0.83.1.tgz", + "integrity": "sha512-d+0w446Hxth5OP/cBHSSxOEpbj13p2zToUy6e5e3tTERNJ8ueGlW7iGwGTrSymNDgXXFjErX+dY4P4/3WokPIQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "cross-spawn": "^7.0.6", + "fb-dotslash": "0.5.8" + }, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/dev-middleware": { + "version": "0.81.5", + "resolved": "https://registry.npmjs.org/@react-native/dev-middleware/-/dev-middleware-0.81.5.tgz", + "integrity": "sha512-WfPfZzboYgo/TUtysuD5xyANzzfka8Ebni6RIb2wDxhb56ERi7qDrE4xGhtPsjCL4pQBXSVxyIlCy0d8I6EgGA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@isaacs/ttlcache": "^1.4.1", + "@react-native/debugger-frontend": "0.81.5", + "chrome-launcher": "^0.15.2", + "chromium-edge-launcher": "^0.2.0", + "connect": "^3.6.5", + "debug": "^4.4.0", + "invariant": "^2.2.4", + "nullthrows": "^1.1.1", + "open": "^7.0.3", + "serve-static": "^1.16.2", + "ws": "^6.2.3" + }, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@react-native/dev-middleware/node_modules/serve-static": { + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", + "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "~0.19.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/ws": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.3.tgz", + "integrity": "sha512-jmTjYU0j60B+vHey6TfR3Z7RD61z/hmxBS3VMSGIrroOWXQEneK1zNuotOUrGyBHQj0yrpsLHPWtigEFd13ndA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "async-limiter": "~1.0.0" + } + }, + "node_modules/@react-native/gradle-plugin": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/gradle-plugin/-/gradle-plugin-0.83.1.tgz", + "integrity": "sha512-6ESDnwevp1CdvvxHNgXluil5OkqbjkJAkVy7SlpFsMGmVhrSxNAgD09SSRxMNdKsnLtzIvMsFCzyHLsU/S4PtQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/js-polyfills": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/js-polyfills/-/js-polyfills-0.83.1.tgz", + "integrity": "sha512-qgPpdWn/c5laA+3WoJ6Fak8uOm7CG50nBsLlPsF8kbT7rUHIVB9WaP6+GPsoKV/H15koW7jKuLRoNVT7c3Ht3w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 20.19.4" + } + }, + "node_modules/@react-native/normalize-colors": { + "version": "0.81.5", + "resolved": "https://registry.npmjs.org/@react-native/normalize-colors/-/normalize-colors-0.81.5.tgz", + "integrity": "sha512-0HuJ8YtqlTVRXGZuGeBejLE04wSQsibpTI+RGOyVqxZvgtlLLC/Ssw0UmbHhT4lYMp2fhdtvKZSs5emWB1zR/g==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@react-native/virtualized-lists": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/virtualized-lists/-/virtualized-lists-0.83.1.tgz", + "integrity": "sha512-MdmoAbQUTOdicCocm5XAFDJWsswxk7hxa6ALnm6Y88p01HFML0W593hAn6qOt9q6IM1KbAcebtH6oOd4gcQy8w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "invariant": "^2.2.4", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 20.19.4" + }, + "peerDependencies": { + "@types/react": "^19.2.0", + "react": "*", + "react-native": "*" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@streamparser/json": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@streamparser/json/-/json-0.0.6.tgz", + "integrity": "sha512-vL9EVn/v+OhZ+Wcs6O4iKE9EUpwHUqHmCtNUMWjqp+6dr85+XPOSGTEsqYNq1Vn04uk9SWlOVmx9J48ggJVT2Q==", + "license": "MIT" + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", + "license": "MIT" + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 6" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/node": { + "version": "25.2.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.0.tgz", + "integrity": "sha512-DZ8VwRFUNzuqJ5khrvwMXHmvPe+zGayJhr2CDNiKB1WBE1ST8Djl00D0IC4vvNmHMdj6DlbYRIaFE7WHjlDl5w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@types/yargs": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/@unimodules/core": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@unimodules/core/-/core-7.2.0.tgz", + "integrity": "sha512-Nu+bAd/xG4B2xyYMrmV3LnDr8czUQgV1XhoL3sOOMwGydDJtfpWNodGhPhEMyKq2CXo4X7DDIo8qG6W2fk6XAQ==", + "deprecated": "replaced by the 'expo' package, learn more: https://blog.expo.dev/whats-new-in-expo-modules-infrastructure-7a7cdda81ebc", + "license": "MIT", + "optional": true, + "dependencies": { + "expo-modules-core": "~0.4.0" + } + }, + "node_modules/@unimodules/react-native-adapter": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@unimodules/react-native-adapter/-/react-native-adapter-6.5.0.tgz", + "integrity": "sha512-F2J6gVw9a57DTVTQQunp64fqD4HVBkltOpUz1L5lEccNbQlZEA7SjnqKJzXakI7uPhhN76/n+SGb7ihzHw2swQ==", + "deprecated": "replaced by the 'expo' package, learn more: https://blog.expo.dev/whats-new-in-expo-modules-infrastructure-7a7cdda81ebc", + "license": "MIT", + "optional": true, + "dependencies": { + "expo-modules-autolinking": "^0.3.2", + "expo-modules-core": "~0.4.0" + } + }, + "node_modules/@urql/core": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@urql/core/-/core-5.2.0.tgz", + "integrity": "sha512-/n0ieD0mvvDnVAXEQgX/7qJiVcvYvNkOHeBvkwtylfjydar123caCXcl58PXFY11oU1oquJocVXHxLAbtv4x1A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@0no-co/graphql.web": "^1.0.13", + "wonka": "^6.3.2" + } + }, + "node_modules/@urql/exchange-retry": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@urql/exchange-retry/-/exchange-retry-1.3.2.tgz", + "integrity": "sha512-TQMCz2pFJMfpNxmSfX1VSfTjwUIFx/mL+p1bnfM1xjjdla7Z+KnGMW/EhFbpckp3LyWAH4PgOsMwOMnIN+MBFg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@urql/core": "^5.1.2", + "wonka": "^6.3.2" + }, + "peerDependencies": { + "@urql/core": "^5.0.0" + } + }, + "node_modules/@webex/common": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/common/-/common-2.60.0.tgz", + "integrity": "sha512-o6dbes91uqxLO9gjafIl46ycQVpzFmsENTldFh0uFb0LbT2ONX9DRO6599nS6Jd9xa4g+R2DoNHMJSwvj2Zjgw==", + "license": "MIT", + "dependencies": { + "backoff": "^2.5.0", + "bowser": "^2.11.0", + "core-decorators": "^0.20.0", + "global": "^4.4.0", + "lodash": "^4.17.21", + "safe-buffer": "^5.2.0", + "urlsafe-base64": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/common-timers": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/common-timers/-/common-timers-2.60.0.tgz", + "integrity": "sha512-DvxvEYGuqM80sH1y+YdB+u4Bl7dqle6FIP0FsE+N5k4bCWbred+yDy7ZmuLZ4a1SK/SSLxSBTo+VzIWk6Oithw==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/helper-html": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/helper-html/-/helper-html-2.60.0.tgz", + "integrity": "sha512-qyKsajx8gNZkZnp21LasfTiKoxqaIYzYgT9XvEL0QRmQOJZWxZIzYFQQVDOa2UgULC721xTLfdnCriSL5Qfn3w==", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/helper-image": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/helper-image/-/helper-image-2.60.0.tgz", + "integrity": "sha512-2q0ZZyDegBeMv5DIW0VORf8WYmTNgAAv7MeRAzM+kvurBDE+yJabqoBXYj+nf5lSUjEOUnWwWtgFOELnN+YwbQ==", + "license": "MIT", + "dependencies": { + "@webex/http-core": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-file": "2.60.0", + "@webex/test-helper-mocha": "2.60.0", + "exifr": "^5.0.3", + "gm": "^1.23.1", + "lodash": "^4.17.21", + "mime": "^2.4.4", + "safe-buffer": "^5.2.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/http-core": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/http-core/-/http-core-2.60.0.tgz", + "integrity": "sha512-z+GHjx3d4Q0exVIfLex2iS1wYpkYscctIHiK1CPInivubpgtvt04E/qETtDV1iCo8wxhyzG2eAW/n0FcA7rdJQ==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/test-helper-test-users": "2.60.0", + "@webex/webex-core": "2.60.0", + "file-type": "^16.0.1", + "global": "^4.4.0", + "is-function": "^1.0.1", + "lodash": "^4.17.21", + "parse-headers": "^2.0.2", + "qs": "^6.7.3", + "request": "^2.88.0", + "safe-buffer": "^5.2.0", + "xtend": "^4.0.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-media-core": { + "version": "0.0.7-beta", + "resolved": "https://registry.npmjs.org/@webex/internal-media-core/-/internal-media-core-0.0.7-beta.tgz", + "integrity": "sha512-GxSRFKDdvL/gzZ67aIO2378kbVWAeGUQk5/pUprPcdY0cC4T6aoXa7AiLV+HiFmJSChPzBYZbOlFY49oSndgww==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.9", + "@webex/ts-sdp": "^1.0.1", + "detectrtc": "^1.4.1", + "events": "^3.3.0", + "sdp-transform": "^2.14.1", + "typed-emitter": "^2.1.0", + "uuid": "^8.3.2", + "webrtc-adapter": "^8.1.1", + "xstate": "^4.30.6" + }, + "engines": { + "node": ">=14.x" + } + }, + "node_modules/@webex/internal-media-core/node_modules/sdp": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/sdp/-/sdp-3.2.1.tgz", + "integrity": "sha512-lwsAIzOPlH8/7IIjjz3K0zYBk7aBVVcvjMwt3M4fLxpjMYyy7i3I97SLHebgn4YBjirkzfp3RvRDWSKsh/+WFw==", + "license": "MIT" + }, + "node_modules/@webex/internal-media-core/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@webex/internal-media-core/node_modules/webrtc-adapter": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-8.2.4.tgz", + "integrity": "sha512-VwtwbYNKnVQW8koB9qb8YcxNwpSVHTvvKEZLzY6uQ3gFrA9E87VPbB5xE+m1AGwUjL1UgN35jRR9hQgteZI5bg==", + "license": "BSD-3-Clause", + "dependencies": { + "sdp": "^3.2.0" + }, + "engines": { + "node": ">=6.0.0", + "npm": ">=3.10.0" + } + }, + "node_modules/@webex/internal-plugin-calendar": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-calendar/-/internal-plugin-calendar-2.60.0.tgz", + "integrity": "sha512-xcT60Q2TKXvDJ6szQeXOAP5fygtZR6i2Ol5TOtqla3n9tpEGBSdUz8WTjVr/3A1TPkyLHRBcC1wxCKkWuuYDWQ==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-conversation": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-encryption": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-conversation": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-conversation/-/internal-plugin-conversation-2.60.0.tgz", + "integrity": "sha512-1VzUBMLcdw/dBC8BjARHsHr+guOuSgIRYksHVGa63nk0b3yQskP0jWTigYv0/G1TdBGzYB0UCrtpYgNYdd06ww==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/helper-html": "2.60.0", + "@webex/helper-image": "2.60.0", + "@webex/internal-plugin-encryption": "2.60.0", + "@webex/internal-plugin-user": "2.60.0", + "@webex/webex-core": "2.60.0", + "crypto-js": "^4.1.1", + "lodash": "^4.17.21", + "node-scr": "^0.3.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-device": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-device/-/internal-plugin-device-2.60.0.tgz", + "integrity": "sha512-FmrRARGLGvb276LQpTG5u8mKo8mGrrHG+UcXvzu2sU7+p/7Wgm+z/izshJJC55SFWF77gV8oR3sAcTYwZMnqKw==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/common-timers": "2.60.0", + "@webex/http-core": "2.60.0", + "@webex/internal-plugin-metrics": "2.60.0", + "@webex/webex-core": "2.60.0", + "ampersand-collection": "^2.0.2", + "ampersand-state": "^5.0.3", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-encryption": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-encryption/-/internal-plugin-encryption-2.60.0.tgz", + "integrity": "sha512-NvKJUvoRhV2b737nuYq/mWkvqD8ZOM3rCVqY+MhxXXqantHu3jqxfvZ86O3r++Mfyob201C8N0HtwzdupCM4yg==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/common-timers": "2.60.0", + "@webex/http-core": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/test-helper-file": "2.60.0", + "@webex/webex-core": "2.60.0", + "asn1js": "^2.0.26", + "debug": "^4.3.4", + "isomorphic-webcrypto": "^2.3.8", + "lodash": "^4.17.21", + "node-jose": "^2.2.0", + "node-kms": "^0.4.0", + "node-scr": "^0.3.0", + "pkijs": "^2.1.84", + "safe-buffer": "^5.2.0", + "uuid": "^3.3.2", + "valid-url": "^1.0.9" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-feature": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-feature/-/internal-plugin-feature-2.60.0.tgz", + "integrity": "sha512-ble2sAAveXbGdee1QboU3ZCoDT71iWwaGNld/5WSdEpsNKO9sV5WC5Neo3oq8SmKiYSdLoEEYFC5J+9B26Bkdg==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-locus": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-locus/-/internal-plugin-locus-2.60.0.tgz", + "integrity": "sha512-r0LSnwk+9dDMp/pGflx+c+gX1CPDo06j4dMhRbkLkJTqqhC+uAnvHREVIQuITViwY9cf+Izm9On3xh6SDqHglw==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-mock-webex": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-lyra": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-lyra/-/internal-plugin-lyra-2.60.0.tgz", + "integrity": "sha512-OSMl+sh2hvWMHw0kd+MdVeJa2coKCPlzk89+BLU51DYrgc+6DvBGOFegNNqRa+a1Z5iJtKB7Q5gI5Xq/baZmtg==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-conversation": "2.60.0", + "@webex/internal-plugin-encryption": "2.60.0", + "@webex/internal-plugin-feature": "2.60.0", + "@webex/internal-plugin-locus": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/webex-core": "2.60.0", + "bowser": "^2.11.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-mercury": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-mercury/-/internal-plugin-mercury-2.60.0.tgz", + "integrity": "sha512-TMKhtWsuC+glUDWEtiTRJTPF/1IS9MVV7zEAP1bqgVsdI9b6iV1k+p72il5Q2i+ynksdbuzg0Pd4cM28pO7hwA==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/common-timers": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-feature": "2.60.0", + "@webex/internal-plugin-metrics": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-mocha": "2.60.0", + "@webex/test-helper-mock-web-socket": "2.60.0", + "@webex/test-helper-mock-webex": "2.60.0", + "@webex/test-helper-refresh-callback": "2.60.0", + "@webex/test-helper-test-users": "2.60.0", + "@webex/webex-core": "2.60.0", + "backoff": "^2.5.0", + "lodash": "^4.17.21", + "uuid": "^3.3.2", + "ws": "^8.2.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-metrics": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-metrics/-/internal-plugin-metrics-2.60.0.tgz", + "integrity": "sha512-AKTUnVoGtP2ib3ui5cY00f61TVRtsNwfg2QXJ0uIRHU9w1FbC0rY4M3eJ+ssOJAGtrSa1InmDO5KFdmHuvHP8g==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/common-timers": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-mock-webex": "2.60.0", + "@webex/webex-core": "2.60.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-presence": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-presence/-/internal-plugin-presence-2.60.0.tgz", + "integrity": "sha512-3dd+JdGFvVUrPugDD2KhhhzjHGsg/lhXOsndPf7kZNPq9a1si0EX70R3ig4RyXostsmunRtNp9DaSlBKmg8J6g==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-mocha": "2.60.0", + "@webex/test-helper-mock-webex": "2.60.0", + "@webex/test-helper-test-users": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-search": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-search/-/internal-plugin-search-2.60.0.tgz", + "integrity": "sha512-e4lXYHPdl1Qa+lA5ojjhWZWT1avakjGUK42OU5j9kQfi1IQ/sbdpyAlISwjTvm0qJ2G8ImcQJUwddxaGv991nA==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-conversation": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-encryption": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-support": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-support/-/internal-plugin-support-2.60.0.tgz", + "integrity": "sha512-eiiH8Pr/HaCvhdQy66mmIqES8/096xyBYWCLvxleWJ32PfJ/TFZcDJbaC+odSKb3dCQyqBcx4QsNa1JFLYRW+w==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-search": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-file": "2.60.0", + "@webex/test-helper-mock-webex": "2.60.0", + "@webex/test-helper-test-users": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/internal-plugin-user": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/internal-plugin-user/-/internal-plugin-user-2.60.0.tgz", + "integrity": "sha512-kl6IP4NxQ3EJI8CCIF4lY5OJM6M+sTaUadFdvMlZqOaG1zNbXIH9BuClB3xXdJVlO9Cmkbew1iuRabASODFoKg==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-mock-webex": "2.60.0", + "@webex/test-helper-test-users": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-attachment-actions": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-attachment-actions/-/plugin-attachment-actions-2.60.0.tgz", + "integrity": "sha512-qeR+B/RwXpCIVB967NmSEKBzqhvB6jN8FyYI5MySNZ76KG/nsH9Ys9zsWi4I7ilj8AsRVuxc7+YwY/B1wMXHIA==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-conversation": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/plugin-messages": "2.60.0", + "@webex/plugin-people": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-test-users": "2.60.0", + "@webex/webex-core": "2.60.0", + "debug": "^4.3.4", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-authorization": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-authorization/-/plugin-authorization-2.60.0.tgz", + "integrity": "sha512-WqijIyG1Fy4LOOa31hcTtzzbK9xM2eFOG+2YBbPxPCsjJBGeS2PTyt/c3kvmaufTpFKbB8NGYF96PWL03NIgrQ==", + "license": "MIT", + "dependencies": { + "@webex/plugin-authorization-browser": "2.60.0", + "@webex/plugin-authorization-node": "2.60.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-authorization-browser": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-authorization-browser/-/plugin-authorization-browser-2.60.0.tgz", + "integrity": "sha512-OdG6o0w/kUiJPPGPZR0PYWmEAJxESN3YcgiLFCsT1/LU2iZjtwQ3Hk8SxtGw4ueG7zxlsIKI9uHYKLIDlflkAg==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/plugin-authorization-node": "2.60.0", + "@webex/storage-adapter-local-storage": "2.60.0", + "@webex/storage-adapter-spec": "2.60.0", + "@webex/webex-core": "2.60.0", + "jose": "^4.13.1", + "lodash": "^4.17.21", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-authorization-node": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-authorization-node/-/plugin-authorization-node-2.60.0.tgz", + "integrity": "sha512-Kd8EnG3eQ8fdogjr0S/wCGPsY8rY37nM2kFuPtzv6d8YjzUcNMaW/3yhLMr2BbOx3o9JKptQHUNx5q7dm1CnnA==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/webex-core": "2.60.0", + "jsonwebtoken": "^9.0.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-device-manager": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-device-manager/-/plugin-device-manager-2.60.0.tgz", + "integrity": "sha512-Q3GpsS9RLx5KUfU8I+9QXbD2OVY5aEdkXDRW80IYavFgm//vWynw5/yNtHF/Er1JyhHJY2jJepk2bsoMoyNoug==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-calendar": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-lyra": "2.60.0", + "@webex/internal-plugin-search": "2.60.0", + "@webex/plugin-authorization": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-logger": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-logger/-/plugin-logger-2.60.0.tgz", + "integrity": "sha512-0FtUyW3T53tO7DBkSRZpKfugR2nSE1nklg4p1JWZIGRASAjCCBmShE0J0eedTO9zhiWtNuABdRUph5HfxxM32A==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-mocha": "2.60.0", + "@webex/test-helper-mock-webex": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-meetings": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-meetings/-/plugin-meetings-2.60.0.tgz", + "integrity": "sha512-DjUNzL4wni1Q5UcyaO66gXOLnfF2e69zulwxGPAUuvfjUQ2kn08gWymKE0YNw0PwbvM5RjMF5matYQI7NvhlnA==", + "license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-media-core": "0.0.7-beta", + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-metrics": "2.60.0", + "@webex/internal-plugin-support": "2.60.0", + "@webex/internal-plugin-user": "2.60.0", + "@webex/plugin-people": "2.60.0", + "@webex/ts-sdp": "1.0.1", + "@webex/webex-core": "2.60.0", + "bowser": "^2.11.0", + "btoa": "^1.2.1", + "dotenv": "^4.0.0", + "global": "^4.4.0", + "ip-anonymize": "^0.1.0", + "javascript-state-machine": "^3.1.0", + "lodash": "^4.17.21", + "sdp-transform": "^2.12.0", + "uuid": "^3.3.2", + "webrtc-adapter": "^7.7.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-meetings/node_modules/dotenv": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz", + "integrity": "sha512-XcaMACOr3JMVcEv0Y/iUM2XaOsATRZ3U1In41/1jjK6vJZ2PZbQ1bzCG8uvaByfaBpl9gqc9QWJovpUGBXLLYQ==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.6.0" + } + }, + "node_modules/@webex/plugin-memberships": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-memberships/-/plugin-memberships-2.60.0.tgz", + "integrity": "sha512-b0Vmxtx++wkSjg/BpmUYGFcTqs+5ULxgG3YVHf6ttB0Fsr4U1AGHGwXoVNDIgxnpqP9S23lcDPgAYL47EKdsNA==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-conversation": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/plugin-messages": "2.60.0", + "@webex/plugin-people": "2.60.0", + "@webex/plugin-rooms": "2.60.0", + "@webex/webex-core": "2.60.0", + "debug": "^4.3.4", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-messages": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-messages/-/plugin-messages-2.60.0.tgz", + "integrity": "sha512-iZI5edGSUc7CAheMtkUCZHnqRs5oB3DKKznkcRfob3dY6uemop1wEv6PsWYdrHAu3Aage74cJ5p7XcAkHHxLsw==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-conversation": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/plugin-people": "2.60.0", + "@webex/plugin-rooms": "2.60.0", + "@webex/webex-core": "2.60.0", + "debug": "^4.3.4", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-people": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-people/-/plugin-people-2.60.0.tgz", + "integrity": "sha512-nr+FuF4mnV8vfAQeqzJguu5c7rHjEd0G86f9dyS0EHdZoHr41ggNK1QDcxuguZHSB5fdkn7tLqC5vpKdj8fmMA==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/webex-core": "2.60.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-rooms": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-rooms/-/plugin-rooms-2.60.0.tgz", + "integrity": "sha512-nv5UAomq1NWpO8beoLP6YOd5l5Tj7CO2ShJ/F0d7t6StOIUmoJZtEV8KGytaEwmxB2mI/ppXrU6Sb0SrNGoY/g==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/internal-plugin-conversation": "2.60.0", + "@webex/internal-plugin-mercury": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/plugin-memberships": "2.60.0", + "@webex/plugin-messages": "2.60.0", + "@webex/plugin-people": "2.60.0", + "@webex/webex-core": "2.60.0", + "debug": "^4.3.4", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-team-memberships": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-team-memberships/-/plugin-team-memberships-2.60.0.tgz", + "integrity": "sha512-XLfH7NZvuOOqsZ5ghNGAxoAlDaCRap1uOqCCpDhJkDdM57S9jAKmdYReXH6ucJun4KNdV05h0sDOM5NGvbxzqg==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-device": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/plugin-rooms": "2.60.0", + "@webex/plugin-teams": "2.60.0", + "@webex/webex-core": "2.60.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-teams": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-teams/-/plugin-teams-2.60.0.tgz", + "integrity": "sha512-tLQD56T393OROG2rLJAaaVZVmy0tZeMNJkJTQypwO3d8u/anMHeypgTqINrpD/B+QB7sO+F5IsP3HT+70MVbQg==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-device": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/plugin-memberships": "2.60.0", + "@webex/plugin-rooms": "2.60.0", + "@webex/test-helper-chai": "2.60.0", + "@webex/test-helper-test-users": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/plugin-webhooks": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/plugin-webhooks/-/plugin-webhooks-2.60.0.tgz", + "integrity": "sha512-NCiiXPudHh6X+MkGnRAumFgqadMGQ5t6k8h+DE1lGME3ujVp7dO0L+ujbiA8K3ylywk8f6AN0vRim3wvN4wPDQ==", + "license": "MIT", + "dependencies": { + "@webex/internal-plugin-device": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/plugin-rooms": "2.60.0", + "@webex/webex-core": "2.60.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/storage-adapter-local-storage": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/storage-adapter-local-storage/-/storage-adapter-local-storage-2.60.0.tgz", + "integrity": "sha512-1L48cIY0IyEzR2pqVhJAFwjBKP7ZiY/Dfs9xeFQ25l9d2Qa1n4uFBorA9v7JYSjpU61/APIIdUuciHfEWFvtOQ==", + "license": "MIT", + "dependencies": { + "@webex/storage-adapter-spec": "2.60.0", + "@webex/test-helper-mocha": "2.60.0", + "@webex/webex-core": "2.60.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/storage-adapter-spec": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/storage-adapter-spec/-/storage-adapter-spec-2.60.0.tgz", + "integrity": "sha512-ovd2YB85qEPnKWjoKj9OcZlefhdWBSlDCD6TSD31zM3kPJ8P85yIG8Cg9z7fSi5eB7zKHRIJii8Kh1M90Au72w==", + "license": "MIT", + "dependencies": { + "@webex/test-helper-chai": "2.60.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-chai": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-chai/-/test-helper-chai-2.60.0.tgz", + "integrity": "sha512-PM75a1rqP7O8IE/1IwosSL4UsND6bNClZzFNi8PGnW11BTCdzjlOz9zbUGiVtB5IO218CZ2KUAum6w2cWjHp0A==", + "license": "MIT", + "dependencies": { + "@webex/test-helper-file": "2.60.0", + "check-error": "^1.0.2", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-file": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-file/-/test-helper-file-2.60.0.tgz", + "integrity": "sha512-YVH+s3qqU0KWWDqu2kWsDbVX1cq11WB5j5H/x6+o8v19mbVO5ttqwiMaBEHBZ0t3xz0eo7EUfsL1QUlI/VcJJQ==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/test-helper-make-local-url": "2.60.0", + "es6-promise": "^4.2.8", + "file-type": "^16.0.1", + "xhr": "^2.5.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-make-local-url": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-make-local-url/-/test-helper-make-local-url-2.60.0.tgz", + "integrity": "sha512-uwk9tlrGaHqTi24F/Cpp4fUJKqAAH3+AiQ+onFbZ4+KbuRG7SamDrRdU0DK/3j7r80gLeuwqc1WKglmcZLfwnw==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-mocha": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-mocha/-/test-helper-mocha-2.60.0.tgz", + "integrity": "sha512-d8tq9LC9TRiY6I9+TAhSRUm5WMB+7rKqj2NYp80BGnUJ1IJUSji6r9ePUbhoLQsRtESFGc5Pkz0PmDQjMi5U5Q==", + "license": "MIT", + "dependencies": { + "bowser": "^2.11.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-mock-web-socket": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-mock-web-socket/-/test-helper-mock-web-socket-2.60.0.tgz", + "integrity": "sha512-J4MZmqq1ZMtb2Gb4nBMFrh+DmTXFVl8dsqUxiD2UqIxO1sfzNvhZK7EcWUsppsp/04k+wUmBQr0zaHWIAKvEQQ==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-mock-webex": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-mock-webex/-/test-helper-mock-webex-2.60.0.tgz", + "integrity": "sha512-syDORTuinBRPpiBIdl+fUuUWDqB1hdctRfoTX3T7hFSK+/LNPFKJSyjQ01D7jEdMPWoqELjkBPDyf9wVI03PbA==", + "license": "MIT", + "dependencies": { + "ampersand-state": "^5.0.3", + "es6-promise": "^4.2.8", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-refresh-callback": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-refresh-callback/-/test-helper-refresh-callback-2.60.0.tgz", + "integrity": "sha512-jNHdT2rME3/xFtgJwMux+W7HIo7GX8Q7W0O41Ua8tco0/hpSRkBL7jQ8EQxcj4E1UkQyn629LCqCpPO7RlqVXA==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-retry": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-retry/-/test-helper-retry-2.60.0.tgz", + "integrity": "sha512-e8+LJTuvEBkgXf3SxHPA1Tv+wD7StwGBX43BUdSwVjMOPEI7FLQ5d2uJZty/FqpYu7fcmv9iHSU2Tv0uFe0Jmw==", + "license": "MIT", + "dependencies": { + "es6-promise": "^4.2.8" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/test-helper-test-users": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-helper-test-users/-/test-helper-test-users-2.60.0.tgz", + "integrity": "sha512-Duv2AJz1Pi8PN/QCt7kALxLRV57uiKpPPJYtJklphdt/VSWbkRCuEWlu6bX4XAgVxQE46WTISJ1Zox303MyD+A==", + "license": "MIT", + "dependencies": { + "@webex/test-helper-retry": "2.60.0", + "@webex/test-users": "2.60.0", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + }, + "optionalDependencies": { + "@ciscospark/test-users-legacy": "^1.0.2" + } + }, + "node_modules/@webex/test-users": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/test-users/-/test-users-2.60.0.tgz", + "integrity": "sha512-8lE97PC0uePV/QQ8L2D2mr+kIcNLB8H9TWgMhPZlCYAk9DaAJNQcVMYLQLkjYoD/e7kPcPpmuHIID/3q2Xjedg==", + "license": "MIT", + "dependencies": { + "@webex/http-core": "2.60.0", + "@webex/test-helper-mocha": "2.60.0", + "btoa": "^1.2.1", + "lodash": "^4.17.21", + "node-random-name": "^1.0.1", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@webex/ts-sdp": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@webex/ts-sdp/-/ts-sdp-1.0.1.tgz", + "integrity": "sha512-dRbsF/MIS2bnnnbUMQL92SUZT3v9dhLJw2ItzGxqs9xaiVfEKVbjM020Hbd4ACQZ8dJ49CZ2tDd4Se9xUR3anQ==", + "license": "ISC" + }, + "node_modules/@webex/webex-core": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/@webex/webex-core/-/webex-core-2.60.0.tgz", + "integrity": "sha512-Tr18TdcsIsfD1TgJqF1O+BdshvNcDsFdNiHlCpVo5GhIrssOfxQr46sbLh0pCrGS9pDa4xx9YMgSEmqfFLY+6w==", + "license": "MIT", + "dependencies": { + "@webex/common": "2.60.0", + "@webex/common-timers": "2.60.0", + "@webex/http-core": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/storage-adapter-spec": "2.60.0", + "ampersand-collection": "^2.0.2", + "ampersand-events": "^2.0.2", + "ampersand-state": "^5.0.3", + "core-decorators": "^0.20.0", + "crypto-js": "^4.1.1", + "jsonwebtoken": "^9.0.0", + "lodash": "^4.17.21", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.11", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.11.tgz", + "integrity": "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "license": "ISC", + "optional": true + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agentkeepalive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz", + "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "license": "MIT", + "optional": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "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/alea": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/alea/-/alea-0.0.9.tgz", + "integrity": "sha512-7GrAOnIHGlKtOmZm09dHL+n5tXlao4uBGeXUPRX+I5PAyZqa95CaSFC9bXpkFJpT6j5N3+UKoxDfPmmwBedg7A==", + "license": "MIT" + }, + "node_modules/ampersand-class-extend": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ampersand-class-extend/-/ampersand-class-extend-2.0.0.tgz", + "integrity": "sha512-i8hQvA4vZz9UfQAi0A4oBASYOZzlYgjFVkw0K1xpeKNSvq+KYkFOqJKkNvHCbbuKUNJnFk3kECSKPDAJ6ocEOg==", + "license": "MIT", + "dependencies": { + "lodash": "^4.11.1" + } + }, + "node_modules/ampersand-collection": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ampersand-collection/-/ampersand-collection-2.0.2.tgz", + "integrity": "sha512-IjDa4HTL/tdQDDL0SGyWk4AHD02iNtUSLRWkAsJ2biPvapljW9HNgIEIdbPnnR+7Gb9BJkjesaLNjVZfAMzeuA==", + "license": "MIT", + "dependencies": { + "ampersand-class-extend": "^2.0.0", + "ampersand-events": "^2.0.1", + "ampersand-version": "^1.0.2", + "lodash": "^4.11.1" + } + }, + "node_modules/ampersand-events": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ampersand-events/-/ampersand-events-2.0.2.tgz", + "integrity": "sha512-pPnVEJviRxXi9YhZA9j3GwGGBTlDLi+YIoBvrpKXgce+CO1nMlZU2aOV8OJogNuR2YPbptAUHNz7SKX+MvLj8A==", + "license": "MIT", + "dependencies": { + "ampersand-version": "^1.0.2", + "lodash": "^4.6.1" + } + }, + "node_modules/ampersand-state": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/ampersand-state/-/ampersand-state-5.0.3.tgz", + "integrity": "sha512-sr904K5zvw6mkGjFHhTcfBIdpoJ6mn/HrFg7OleRmBpw3apLb3Z0gVrgRTb7kK1wOLI34vs4S+IXqNHUeqWCzw==", + "license": "MIT", + "dependencies": { + "ampersand-events": "^2.0.1", + "ampersand-version": "^1.0.0", + "array-next": "~0.0.1", + "key-tree-store": "^1.3.0", + "lodash": "^4.12.0" + } + }, + "node_modules/ampersand-version": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/ampersand-version/-/ampersand-version-1.0.2.tgz", + "integrity": "sha512-FVVLY7Pghtgc8pQl0rF3A3+OS/CZ+/ILLMIYIaO1cA9v5SRkainqUMfSot3fu32svuThIsYK3q9iCsH9W5+mWQ==", + "license": "MIT", + "dependencies": { + "find-root": "^0.1.1", + "through2": "^0.6.3" + } + }, + "node_modules/anser": { + "version": "1.4.10", + "resolved": "https://registry.npmjs.org/anser/-/anser-1.4.10.tgz", + "integrity": "sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "license": "(MIT OR CC0-1.0)", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "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==", + "license": "MIT", + "optional": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true + }, + "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==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/aproba": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.1.0.tgz", + "integrity": "sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew==", + "license": "ISC", + "optional": true + }, + "node_modules/are-we-there-yet": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", + "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "optional": true, + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true + }, + "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==", + "license": "Python-2.0", + "optional": true, + "peer": true + }, + "node_modules/array-next": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/array-next/-/array-next-0.0.1.tgz", + "integrity": "sha512-sBOC/Iaz2hCcYi2XlyRfyZCRUxamlE5NJXEFjE9BTx23HALnWAFsPjGtfrAclt9o3G/38Het2yyeyOd3CEY7lg==", + "license": "MIT" + }, + "node_modules/array-parallel": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/array-parallel/-/array-parallel-0.1.3.tgz", + "integrity": "sha512-TDPTwSWW5E4oiFiKmz6RGJ/a80Y91GuLgUYuLd49+XBS75tYo8PNgaT2K/OxuQYqkoI852MDGBorg9OcUSTQ8w==", + "license": "MIT" + }, + "node_modules/array-series": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/array-series/-/array-series-0.1.5.tgz", + "integrity": "sha512-L0XlBwfx9QetHOsbLDrE/vh2t018w9462HM3iaFfxRiK83aJjAt/Ja3NMkOW7FICwWTlQBa3ZbL5FKhuQWkDrg==", + "license": "MIT" + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/asmcrypto.js": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-0.22.0.tgz", + "integrity": "sha512-usgMoyXjMbx/ZPdzTSXExhMPur2FTdz/Vo5PVx2gIaBcdAAJNOFlsdgqveM8Cff7W0v+xrf9BwjOV26JSAF9qA==", + "license": "MIT" + }, + "node_modules/asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "license": "MIT", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/asn1js": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-2.4.0.tgz", + "integrity": "sha512-PvZC0FMyMut8aOnR2jAEGSkmRtHIUYPe9amUEnGjr9TdnUmsfoOkjrvUkOEU9mzpYBR1HyO9bF+8U1cLTMMHhQ==", + "license": "BSD-3-Clause", + "dependencies": { + "pvutils": "^1.1.3" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/async-limiter": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", + "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/async-mutex": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz", + "integrity": "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.4.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/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "license": "ISC", + "optional": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz", + "integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.4", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/b64-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/b64-lite/-/b64-lite-1.4.0.tgz", + "integrity": "sha512-aHe97M7DXt+dkpa8fHlCcm1CnskAHrJqEfMI0KN7dwqlzml/aUe1AGt6lk51HzrSfVD67xOso84sOpr+0wIe2w==", + "license": "MIT", + "dependencies": { + "base-64": "^0.1.0" + } + }, + "node_modules/b64u-lite": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/b64u-lite/-/b64u-lite-1.1.0.tgz", + "integrity": "sha512-929qWGDVCRph7gQVTC6koHqQIpF4vtVaSbwLltFQo44B1bYUquALswZdBKFfrJCPEnsCOvWkJsPdQYZ/Ukhw8A==", + "license": "MIT", + "dependencies": { + "b64-lite": "^1.4.0" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.15", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.15.tgz", + "integrity": "sha512-hR3GwrRwHUfYwGfrisXPIDP3JcYfBrW7wKE7+Au6wDYl7fm/ka1NEII6kORzxNU556JjfidZeBsO10kYvtV1aw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-define-polyfill-provider": "^0.6.6", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.13.0.tgz", + "integrity": "sha512-U+GNwMdSFgzVmfhNm8GJUX88AadB3uo9KpJqS3FaqNIPKgySuvMb+bHPsOmmuWyIcuqZj/pzt1RUIUZns4y2+A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.5", + "core-js-compat": "^3.43.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.6.tgz", + "integrity": "sha512-hYm+XLYRMvupxiQzrvXUj7YyvFFVfv5gI0R71AJzudg1g2AI2vyCPPIFEBjk162/wFzti3inBHo7isWFuEVS/A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.6" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-react-compiler": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-react-compiler/-/babel-plugin-react-compiler-1.0.0.tgz", + "integrity": "sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/types": "^7.26.0" + } + }, + "node_modules/babel-plugin-react-native-web": { + "version": "0.21.2", + "resolved": "https://registry.npmjs.org/babel-plugin-react-native-web/-/babel-plugin-react-native-web-0.21.2.tgz", + "integrity": "sha512-SPD0J6qjJn8231i0HZhlAGH6NORe+QvRSQM2mwQEzJ2Fb3E4ruWTiiicPlHjmeWShDXLcvoorOCXjeR7k/lyWA==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/babel-plugin-syntax-hermes-parser": { + "version": "0.29.1", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-hermes-parser/-/babel-plugin-syntax-hermes-parser-0.29.1.tgz", + "integrity": "sha512-2WFYnoWGdmih1I1J5eIqxATOeycOqRwYxAQBu3cUu/rhwInwHUg7k60AFNbuGjSDL8tje5GDrAnxzRLcu2pYcA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "hermes-parser": "0.29.1" + } + }, + "node_modules/babel-plugin-transform-flow-enums": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-flow-enums/-/babel-plugin-transform-flow-enums-0.0.2.tgz", + "integrity": "sha512-g4aaCrDDOsWjbm0PUUeVnkcVd6AKJsVc/MbnPhEotEpkeJQP6b8nzewohQi7+QS8UyPehOhGWn0nOwjvWpmMvQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/plugin-syntax-flow": "^7.12.1" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-expo": { + "version": "54.0.10", + "resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-54.0.10.tgz", + "integrity": "sha512-wTt7POavLFypLcPW/uC5v8y+mtQKDJiyGLzYCjqr9tx0Qc3vCXcDKk1iCFIj/++Iy5CWhhTflEa7VvVPNWeCfw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-module-imports": "^7.25.9", + "@babel/plugin-proposal-decorators": "^7.12.9", + "@babel/plugin-proposal-export-default-from": "^7.24.7", + "@babel/plugin-syntax-export-default-from": "^7.24.7", + "@babel/plugin-transform-class-static-block": "^7.27.1", + "@babel/plugin-transform-export-namespace-from": "^7.25.9", + "@babel/plugin-transform-flow-strip-types": "^7.25.2", + "@babel/plugin-transform-modules-commonjs": "^7.24.8", + "@babel/plugin-transform-object-rest-spread": "^7.24.7", + "@babel/plugin-transform-parameters": "^7.24.7", + "@babel/plugin-transform-private-methods": "^7.24.7", + "@babel/plugin-transform-private-property-in-object": "^7.24.7", + "@babel/plugin-transform-runtime": "^7.24.7", + "@babel/preset-react": "^7.22.15", + "@babel/preset-typescript": "^7.23.0", + "@react-native/babel-preset": "0.81.5", + "babel-plugin-react-compiler": "^1.0.0", + "babel-plugin-react-native-web": "~0.21.0", + "babel-plugin-syntax-hermes-parser": "^0.29.1", + "babel-plugin-transform-flow-enums": "^0.0.2", + "debug": "^4.3.4", + "resolve-from": "^5.0.0" + }, + "peerDependencies": { + "@babel/runtime": "^7.20.0", + "expo": "*", + "react-refresh": ">=0.14.0 <1.0.0" + }, + "peerDependenciesMeta": { + "@babel/runtime": { + "optional": true + }, + "expo": { + "optional": true + } + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/backoff": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/backoff/-/backoff-2.5.0.tgz", + "integrity": "sha512-wC5ihrnUXmR2douXmXLCe5O3zg3GKIyvRi/hi58a/XyRxVI+3/yM0PYueQOZXPXQ9pxBislYkw+sF9b7C/RuMA==", + "license": "MIT", + "dependencies": { + "precond": "0.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "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==", + "license": "MIT", + "optional": true + }, + "node_modules/base-64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", + "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "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/base64url": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/base64url/-/base64url-3.0.1.tgz", + "integrity": "sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", + "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "license": "BSD-3-Clause", + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/better-opn": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/better-opn/-/better-opn-3.0.2.tgz", + "integrity": "sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "open": "^8.0.4" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/better-opn/node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/big-integer": { + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", + "license": "Unlicense", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "license": "MIT", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/body-parser": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz", + "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^1.0.5", + "debug": "^4.4.3", + "http-errors": "^2.0.0", + "iconv-lite": "^0.7.0", + "on-finished": "^2.4.1", + "qs": "^6.14.1", + "raw-body": "^3.0.1", + "type-is": "^2.0.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/bowser": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.13.1.tgz", + "integrity": "sha512-OHawaAbjwx6rqICCKgSG0SAnT05bzd7ppyKLVUITZpANBaaMFBAsaNkto3LoQ31tyFP5kNujE8Cdx85G9VzOkw==", + "license": "MIT" + }, + "node_modules/bplist-creator": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.1.0.tgz", + "integrity": "sha512-sXaHZicyEEmY86WyueLTQesbeoH/mquvarJaQNbjuOQO+7gbFcDEWqKmcWA4cOTLzFlfgvkiVxolk1k5bBIpmg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "stream-buffers": "2.2.x" + } + }, + "node_modules/bplist-parser": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.2.tgz", + "integrity": "sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "big-integer": "1.6.x" + }, + "engines": { + "node": ">= 5.10.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "license": "MIT", + "optional": true, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "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", + "optional": true, + "peer": true, + "dependencies": { + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/bson": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz", + "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.6.19" + } + }, + "node_modules/btoa": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz", + "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==", + "license": "(MIT OR Apache-2.0)", + "bin": { + "btoa": "bin/btoa.js" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "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": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/bytestreamjs": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-1.1.3.tgz", + "integrity": "sha512-JDGoiJ+yt+4Ui1e/vMWx5TRvmnErBBbsOkprXgbe1fRp2XZzI8MoknoiR/ZVCya9aWJbOhrJ5Heon1wrAdftkg==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/cacache": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", + "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + }, + "engines": { + "node": ">= 10" + } + }, + "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/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001767", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001767.tgz", + "integrity": "sha512-34+zUAMhSH+r+9eKmYG+k2Rpt8XttfE4yXAjoZvkAPs15xcYQhyBYdalJ65BzivAvGRMViEjy6oKr/S91loekQ==", + "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", + "optional": true, + "peer": true + }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", + "license": "Apache-2.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==", + "license": "MIT", + "optional": true, + "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/check-error": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", + "license": "MIT", + "dependencies": { + "get-func-name": "^2.0.2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/chrome-launcher": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-0.15.2.tgz", + "integrity": "sha512-zdLEwNo3aUVzIhKhTtXfxhdvZhUghrnmkvcAq2NoDd+LeOHKf03H5jwZ8T/STsAlzyALkBVK552iaG1fGf1xVQ==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@types/node": "*", + "escape-string-regexp": "^4.0.0", + "is-wsl": "^2.2.0", + "lighthouse-logger": "^1.0.0" + }, + "bin": { + "print-chrome-path": "bin/print-chrome-path.js" + }, + "engines": { + "node": ">=12.13.0" + } + }, + "node_modules/chromium-edge-launcher": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/chromium-edge-launcher/-/chromium-edge-launcher-0.2.0.tgz", + "integrity": "sha512-JfJjUnq25y9yg4FABRRVPmBGWPZZi+AQXT4mxupb67766/0UlhG8PAZCz6xzEMXTbW3CsSoE8PcCWA49n35mKg==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@types/node": "*", + "escape-string-regexp": "^4.0.0", + "is-wsl": "^2.2.0", + "lighthouse-logger": "^1.0.0", + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "restore-cursor": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.8" + } + }, + "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==", + "license": "MIT", + "optional": true, + "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==", + "license": "MIT", + "optional": true + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "license": "ISC", + "optional": true, + "bin": { + "color-support": "bin.js" + } + }, + "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": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/compare-versions": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz", + "integrity": "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==", + "license": "MIT", + "optional": true + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.1.tgz", + "integrity": "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "bytes": "3.1.2", + "compressible": "~2.0.18", + "debug": "2.6.9", + "negotiator": "~0.6.4", + "on-headers": "~1.1.0", + "safe-buffer": "5.2.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/compression/node_modules/negotiator": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", + "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.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==", + "license": "MIT", + "optional": true + }, + "node_modules/connect": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", + "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "debug": "2.6.9", + "finalhandler": "1.1.2", + "parseurl": "~1.3.3", + "utils-merge": "1.0.1" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/connect/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/connect/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/connect/node_modules/finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/connect/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/connect/node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/connect/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", + "license": "ISC", + "optional": true + }, + "node_modules/content-disposition": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz", + "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/core-decorators": { + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/core-decorators/-/core-decorators-0.20.0.tgz", + "integrity": "sha512-7cp/Pz3AmQXjRwhAsFN+8ndRiBNyLxtZgC/fhKvrwQTf2ZlZma6LnimoJPrOqgxZ0tIeI9VvSs+QKe0OPJ0SuA==", + "license": "MIT" + }, + "node_modules/core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "hasInstallScript": true, + "license": "MIT" + }, + "node_modules/core-js-compat": { + "version": "3.48.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.48.0.tgz", + "integrity": "sha512-OM4cAF3D6VtH/WkLtWvyNC56EZVXsZdU3iqaMG2B4WvYrlqU831pc4UtG5yp0sE9z8Y02wVN7PjW5Zf9Gt0f1Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "browserslist": "^4.28.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "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==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", + "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==", + "deprecated": "This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.", + "license": "ISC" + }, + "node_modules/crypto-js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==", + "license": "MIT" + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/csv-parser": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/csv-parser/-/csv-parser-3.2.0.tgz", + "integrity": "sha512-fgKbp+AJbn1h2dcAHKIdKNSSjfp43BZZykXsCjzALjKy80VXQNHPFJ6T9Afwdzoj24aMkq8GwDS7KGcDPpejrA==", + "license": "MIT", + "bin": { + "csv-parser": "bin/csv-parser" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "license": "MIT", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "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/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", + "license": "MIT", + "optional": true + }, + "node_modules/denque": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz", + "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/detectrtc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/detectrtc/-/detectrtc-1.4.1.tgz", + "integrity": "sha512-lxvyNN6/dSnwoVj1VstVFHel7S0BTmkfv1+01IBEy42D20pue27eB/MfphUOQz78jJ7WcQJDo6ZybhgBlUDi0Q==", + "license": "MIT" + }, + "node_modules/dom-walk": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz", + "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" + }, + "node_modules/dotenv": { + "version": "17.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.3.1.tgz", + "integrity": "sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dotenv-expand": { + "version": "11.0.7", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz", + "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "dotenv": "^16.4.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dotenv-expand/node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "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/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", + "license": "MIT", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.283", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.283.tgz", + "integrity": "sha512-3vifjt1HgrGW/h76UEeny+adYApveS9dH2h3p57JYzBSXJIKUJAvtmIytDKjcSCt9xHfrNCFJ7gts6vkhuq++w==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT", + "optional": true + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/encoding": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/encoding/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/env-editor": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/env-editor/-/env-editor-0.4.2.tgz", + "integrity": "sha512-ObFo8v4rQJAE59M69QzwloxPZtd33TpYEIjtKD1rrFDcM1Gd7IkDxEBU+HriziN6HSHQnBJi8Dmy+JWkav5HKA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/err-code": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", + "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", + "license": "MIT", + "optional": true + }, + "node_modules/error-stack-parser": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", + "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "stackframe": "^1.3.4" + } + }, + "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/es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "license": "MIT" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/eventemitter2": { + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.9.tgz", + "integrity": "sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==", + "license": "MIT" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/exec-async": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/exec-async/-/exec-async-2.2.0.tgz", + "integrity": "sha512-87OpwcEiMia/DeiKFzaQNBNFeN3XkkpYIh9FyOqq5mS2oKv3CBE67PXoEKcr6nodWdXNogTiQ0jE2NGuoffXPw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/exifr": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/exifr/-/exifr-5.0.6.tgz", + "integrity": "sha512-iDB4IhKoKVF+uDDrHRlyNxWqGaTxYluVWqvBWVG54HkQZe8qkFYl9eQrjEP3d8Q4UMBZ9rWu3Pa+mfC+o4CZuw==", + "license": "MIT" + }, + "node_modules/expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", + "license": "(MIT OR WTFPL)", + "engines": { + "node": ">=6" + } + }, + "node_modules/expo": { + "version": "54.0.33", + "resolved": "https://registry.npmjs.org/expo/-/expo-54.0.33.tgz", + "integrity": "sha512-3yOEfAKqo+gqHcV8vKcnq0uA5zxlohnhA3fu4G43likN8ct5ZZ3LjAh9wDdKteEkoad3tFPvwxmXW711S5OHUw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/runtime": "^7.20.0", + "@expo/cli": "54.0.23", + "@expo/config": "~12.0.13", + "@expo/config-plugins": "~54.0.4", + "@expo/devtools": "0.1.8", + "@expo/fingerprint": "0.15.4", + "@expo/metro": "~54.2.0", + "@expo/metro-config": "54.0.14", + "@expo/vector-icons": "^15.0.3", + "@ungap/structured-clone": "^1.3.0", + "babel-preset-expo": "~54.0.10", + "expo-asset": "~12.0.12", + "expo-constants": "~18.0.13", + "expo-file-system": "~19.0.21", + "expo-font": "~14.0.11", + "expo-keep-awake": "~15.0.8", + "expo-modules-autolinking": "3.0.24", + "expo-modules-core": "3.0.29", + "pretty-format": "^29.7.0", + "react-refresh": "^0.14.2", + "whatwg-url-without-unicode": "8.0.0-3" + }, + "bin": { + "expo": "bin/cli", + "expo-modules-autolinking": "bin/autolinking", + "fingerprint": "bin/fingerprint" + }, + "peerDependencies": { + "@expo/dom-webview": "*", + "@expo/metro-runtime": "*", + "react": "*", + "react-native": "*", + "react-native-webview": "*" + }, + "peerDependenciesMeta": { + "@expo/dom-webview": { + "optional": true + }, + "@expo/metro-runtime": { + "optional": true + }, + "react-native-webview": { + "optional": true + } + } + }, + "node_modules/expo-asset": { + "version": "12.0.12", + "resolved": "https://registry.npmjs.org/expo-asset/-/expo-asset-12.0.12.tgz", + "integrity": "sha512-CsXFCQbx2fElSMn0lyTdRIyKlSXOal6ilLJd+yeZ6xaC7I9AICQgscY5nj0QcwgA+KYYCCEQEBndMsmj7drOWQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/image-utils": "^0.8.8", + "expo-constants": "~18.0.12" + }, + "peerDependencies": { + "expo": "*", + "react": "*", + "react-native": "*" + } + }, + "node_modules/expo-constants": { + "version": "18.0.13", + "resolved": "https://registry.npmjs.org/expo-constants/-/expo-constants-18.0.13.tgz", + "integrity": "sha512-FnZn12E1dRYKDHlAdIyNFhBurKTS3F9CrfrBDJI5m3D7U17KBHMQ6JEfYlSj7LG7t+Ulr+IKaj58L1k5gBwTcQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/config": "~12.0.13", + "@expo/env": "~2.0.8" + }, + "peerDependencies": { + "expo": "*", + "react-native": "*" + } + }, + "node_modules/expo-file-system": { + "version": "19.0.21", + "resolved": "https://registry.npmjs.org/expo-file-system/-/expo-file-system-19.0.21.tgz", + "integrity": "sha512-s3DlrDdiscBHtab/6W1osrjGL+C2bvoInPJD7sOwmxfJ5Woynv2oc+Fz1/xVXaE/V7HE/+xrHC/H45tu6lZzzg==", + "license": "MIT", + "optional": true, + "peer": true, + "peerDependencies": { + "expo": "*", + "react-native": "*" + } + }, + "node_modules/expo-font": { + "version": "14.0.11", + "resolved": "https://registry.npmjs.org/expo-font/-/expo-font-14.0.11.tgz", + "integrity": "sha512-ga0q61ny4s/kr4k8JX9hVH69exVSIfcIc19+qZ7gt71Mqtm7xy2c6kwsPTCyhBW2Ro5yXTT8EaZOpuRi35rHbg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "fontfaceobserver": "^2.1.0" + }, + "peerDependencies": { + "expo": "*", + "react": "*", + "react-native": "*" + } + }, + "node_modules/expo-keep-awake": { + "version": "15.0.8", + "resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-15.0.8.tgz", + "integrity": "sha512-YK9M1VrnoH1vLJiQzChZgzDvVimVoriibiDIFLbQMpjYBnvyfUeHJcin/Gx1a+XgupNXy92EQJLgI/9ZuXajYQ==", + "license": "MIT", + "optional": true, + "peer": true, + "peerDependencies": { + "expo": "*", + "react": "*" + } + }, + "node_modules/expo-modules-autolinking": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-0.3.4.tgz", + "integrity": "sha512-Mu3CIMqEAI8aNM18U/l+7CCi+afU8dERrKjDDEx/Hu7XX3v3FcnnP+NuWDLY/e9/ETzwTJaqoRoBuzhawsuLWw==", + "license": "MIT", + "optional": true, + "dependencies": { + "chalk": "^4.1.0", + "commander": "^7.2.0", + "fast-glob": "^3.2.5", + "find-up": "~5.0.0", + "fs-extra": "^9.1.0" + }, + "bin": { + "expo-modules-autolinking": "bin/expo-modules-autolinking.js" + } + }, + "node_modules/expo-modules-core": { + "version": "0.4.10", + "resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-0.4.10.tgz", + "integrity": "sha512-uCZA3QzF0syRaHwYY99iaNhnye4vSQGsJ/y6IAiesXdbeVahWibX4G1KoKNPUyNsKXIM4tqA+4yByUSvJe4AAw==", + "license": "MIT", + "optional": true, + "dependencies": { + "compare-versions": "^3.4.0", + "invariant": "^2.2.4" + } + }, + "node_modules/expo-random": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/expo-random/-/expo-random-14.0.1.tgz", + "integrity": "sha512-gX2mtR9o+WelX21YizXUCD/y+a4ZL+RDthDmFkHxaYbdzjSYTn8u/igoje/l3WEO+/RYspmqUFa8w/ckNbt6Vg==", + "deprecated": "This package is now deprecated in favor of expo-crypto, which provides the same functionality. To migrate, replace all imports from expo-random with imports from expo-crypto.", + "license": "MIT", + "optional": true, + "dependencies": { + "base64-js": "^1.3.0" + }, + "peerDependencies": { + "expo": "*" + } + }, + "node_modules/expo-server": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/expo-server/-/expo-server-1.0.5.tgz", + "integrity": "sha512-IGR++flYH70rhLyeXF0Phle56/k4cee87WeQ4mamS+MkVAVP+dDlOHf2nN06Z9Y2KhU0Gp1k+y61KkghF7HdhA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=20.16.0" + } + }, + "node_modules/expo/node_modules/expo-modules-autolinking": { + "version": "3.0.24", + "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-3.0.24.tgz", + "integrity": "sha512-TP+6HTwhL7orDvsz2VzauyQlXJcAWyU3ANsZ7JGL4DQu8XaZv/A41ZchbtAYLfozNA2Ya1Hzmhx65hXryBMjaQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@expo/spawn-async": "^1.7.2", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "require-from-string": "^2.0.2", + "resolve-from": "^5.0.0" + }, + "bin": { + "expo-modules-autolinking": "bin/expo-modules-autolinking.js" + } + }, + "node_modules/expo/node_modules/expo-modules-core": { + "version": "3.0.29", + "resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-3.0.29.tgz", + "integrity": "sha512-LzipcjGqk8gvkrOUf7O2mejNWugPkf3lmd9GkqL9WuNyeN2fRwU0Dn77e3ZUKI3k6sI+DNwjkq4Nu9fNN9WS7Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "invariant": "^2.2.4" + }, + "peerDependencies": { + "react": "*", + "react-native": "*" + } + }, + "node_modules/exponential-backoff": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz", + "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==", + "license": "Apache-2.0", + "optional": true, + "peer": true + }, + "node_modules/express": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.1", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", + "engines": [ + "node >=0.6.0" + ], + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "optional": true, + "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-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==", + "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==", + "license": "ISC", + "optional": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-dotslash": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/fb-dotslash/-/fb-dotslash-0.5.8.tgz", + "integrity": "sha512-XHYLKk9J4BupDxi9bSEhkfss0m+Vr9ChTrjhf9l2iw3jB5C7BnY4GVPoMcqbrTutsKJso6yj2nAB6BI/F2oZaA==", + "license": "(MIT OR Apache-2.0)", + "optional": true, + "peer": true, + "bin": { + "dotslash": "bin/dotslash" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-type": { + "version": "16.5.4", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.4.tgz", + "integrity": "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw==", + "license": "MIT", + "dependencies": { + "readable-web-to-node-stream": "^3.0.0", + "strtok3": "^6.2.4", + "token-types": "^4.1.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/find-root": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-0.1.2.tgz", + "integrity": "sha512-GyDxVgA61TZcrgDJPqOqGBpi80Uf2yIstubgizi7AjC9yPdRrqBR+Y0MvK4kXnYlaoz3d+SGxDHMYVkwI/yd2w==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flow-enums-runtime": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/flow-enums-runtime/-/flow-enums-runtime-0.0.6.tgz", + "integrity": "sha512-3PYnM29RFXwvAN6Pc/scUfkI7RwhQ/xqyLUyPNlXUp9S40zI8nup9tUSrTLSVnWGBN38FNiGWbwZOB6uR4OGdw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "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/fontfaceobserver": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/fontfaceobserver/-/fontfaceobserver-2.3.0.tgz", + "integrity": "sha512-6FPvD/IVyT4ZlNe7Wcn5Fb/4ChigpucKYSvD6a+0iMoLn2inpo711eyIcKjmDtE5XNcgAkSH9uN/nfAeZzHEfg==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "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/form-data/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/form-data/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/formdata-node": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-6.0.3.tgz", + "integrity": "sha512-8e1++BCiTzUno9v5IZ2J6bv4RU+3UKDmqWUQD0MIMVCd9AdhWkO1gw57oo1mNEX1dMq2EGI+FbWz4B92pscSQg==", + "license": "MIT", + "engines": { + "node": ">= 18" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/freeport-async": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/freeport-async/-/freeport-async-2.0.0.tgz", + "integrity": "sha512-K7od3Uw45AJg00XUmy15+Hae2hOcgKcmN3/EF6Y7i01O0gaqiRx8sUSpsb9+BRNL8RPBrhzPsVfy8q9ADlJuWQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "license": "MIT" + }, + "node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC", + "optional": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "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/gauge": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", + "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "optional": true, + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "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-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.0.0" + } + }, + "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/getenv": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/getenv/-/getenv-2.0.0.tgz", + "integrity": "sha512-VilgtJj/ALgGY77fiLam5iD336eSWi96Q15JSAG1zi8NRBysm3LXKdGnHb4m5cuyxvOLQQKWpBZAT6ni4FI2iQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", + "license": "MIT" + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "optional": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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==", + "license": "ISC", + "optional": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/global": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", + "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", + "license": "MIT", + "dependencies": { + "min-document": "^2.19.0", + "process": "^0.11.10" + } + }, + "node_modules/global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ini": "^1.3.4" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/gm": { + "version": "1.25.1", + "resolved": "https://registry.npmjs.org/gm/-/gm-1.25.1.tgz", + "integrity": "sha512-jgcs2vKir9hFogGhXIfs0ODhJTfIrbECCehg38tqFgHm8zqXx7kAJyCYAFK4jTjx71AxrkFtkJBawbAxYUPX9A==", + "deprecated": "The gm module has been sunset. Please migrate to an alternative. https://github.com/aheckmann/gm?tab=readme-ov-file#2025-02-24-this-project-is-not-maintained", + "license": "MIT", + "dependencies": { + "array-parallel": "~0.1.3", + "array-series": "~0.1.5", + "cross-spawn": "^7.0.5", + "debug": "^3.1.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/gm/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "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/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC", + "optional": true + }, + "node_modules/graphql": { + "version": "16.13.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.13.0.tgz", + "integrity": "sha512-uSisMYERbaB9bkA9M4/4dnqyktaEkf1kMHNKq/7DHyxVeWqHQ2mBmVqm5u6/FVHwF3iCNalKcg82Zfl+tffWoA==", + "license": "MIT", + "peer": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, + "node_modules/graphql-request": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-7.4.0.tgz", + "integrity": "sha512-xfr+zFb/QYbs4l4ty0dltqiXIp07U6sl+tOKAb0t50/EnQek6CVVBLjETXi+FghElytvgaAWtIOt3EV7zLzIAQ==", + "license": "MIT", + "dependencies": { + "@graphql-typed-document-node/core": "^3.2.0" + }, + "peerDependencies": { + "graphql": "14 - 16" + } + }, + "node_modules/har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", + "license": "ISC", + "engines": { + "node": ">=4" + } + }, + "node_modules/har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", + "license": "MIT", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "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==", + "license": "MIT", + "optional": true, + "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/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", + "license": "ISC", + "optional": true + }, + "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/heic-convert": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/heic-convert/-/heic-convert-2.1.0.tgz", + "integrity": "sha512-1qDuRvEHifTVAj3pFIgkqGgJIr0M3X7cxEPjEp0oG4mo8GFjq99DpCo8Eg3kg17Cy0MTjxpFdoBHOatj7ZVKtg==", + "license": "ISC", + "dependencies": { + "heic-decode": "^2.0.0", + "jpeg-js": "^0.4.4", + "pngjs": "^6.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/heic-convert/node_modules/pngjs": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", + "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", + "license": "MIT", + "engines": { + "node": ">=12.13.0" + } + }, + "node_modules/heic-decode": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/heic-decode/-/heic-decode-2.1.0.tgz", + "integrity": "sha512-0fB3O3WMk38+PScbHLVp66jcNhsZ/ErtQ6u2lMYu/YxXgbBtl+oKOhGQHa4RpvE68k8IzbWkABzHnyAIjR758A==", + "license": "ISC", + "dependencies": { + "libheif-js": "^1.19.8" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/hermes-compiler": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/hermes-compiler/-/hermes-compiler-0.14.0.tgz", + "integrity": "sha512-clxa193o+GYYwykWVFfpHduCATz8fR5jvU7ngXpfKHj+E9hr9vjLNtdLSEe8MUbObvVexV3wcyxQ00xTPIrB1Q==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/hermes-estree": { + "version": "0.29.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.29.1.tgz", + "integrity": "sha512-jl+x31n4/w+wEqm0I2r4CMimukLbLQEYpisys5oCre611CI5fc9TxhqkBBCJ1edDG4Kza0f7CgNz8xVMLZQOmQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/hermes-parser": { + "version": "0.29.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.29.1.tgz", + "integrity": "sha512-xBHWmUtRC5e/UL0tI7Ivt2riA/YBq9+SiYFU7C1oBa/j2jYGlIF9043oak1F47ihuDIxQ5nbsKueYJDRY02UgA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "hermes-estree": "0.29.1" + } + }, + "node_modules/hosted-git-info": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", + "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/hosted-git-info/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/http-cache-semantics": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", + "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "license": "BSD-2-Clause", + "optional": true + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "license": "MIT", + "optional": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", + "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "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": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/image-size": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.2.1.tgz", + "integrity": "sha512-rH+46sQJ2dlwfjfhCyNx5thzrv+dtmBIhPHk0zgRUukHzZ/kRueTJXoYYsclBaKcSMBWuGbOFXtioLpzTb5euw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "queue": "6.0.2" + }, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=16.x" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/infer-owner": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "license": "ISC", + "optional": true + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", + "optional": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "license": "ISC" + }, + "node_modules/invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "license": "MIT", + "optional": true, + "dependencies": { + "loose-envify": "^1.0.0" + } + }, + "node_modules/ip-address": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", + "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 12" + } + }, + "node_modules/ip-anonymize": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ip-anonymize/-/ip-anonymize-0.1.0.tgz", + "integrity": "sha512-cZJu+N5JKKFGMK0eEQWNaQMn2EhCysciVM6eotCJwfqotj16BTfVchKsJCH6mQAT9N0GC7oWRcsZ6Lb8dDiwTA==", + "license": "MIT" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-function": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz", + "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-lambda": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", + "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", + "license": "MIT", + "optional": true + }, + "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==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT" + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "license": "MIT" + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/isomorphic-webcrypto": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/isomorphic-webcrypto/-/isomorphic-webcrypto-2.3.8.tgz", + "integrity": "sha512-XddQSI0WYlSCjxtm1AI8kWQOulf7hAN3k3DclF1sxDJZqOe0pcsOt675zvWW91cZH9hYs3nlA3Ev8QK5i80SxQ==", + "license": "MIT", + "dependencies": { + "@peculiar/webcrypto": "^1.0.22", + "asmcrypto.js": "^0.22.0", + "b64-lite": "^1.3.1", + "b64u-lite": "^1.0.1", + "msrcrypto": "^1.5.6", + "str2buf": "^1.3.0", + "webcrypto-shim": "^0.1.4" + }, + "optionalDependencies": { + "@unimodules/core": "*", + "@unimodules/react-native-adapter": "*", + "expo-random": "*", + "react-native-securerandom": "^0.1.1" + } + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", + "license": "MIT" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/javascript-state-machine": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/javascript-state-machine/-/javascript-state-machine-3.1.0.tgz", + "integrity": "sha512-BwhYxQ1OPenBPXC735RgfB+ZUG8H3kjsx8hrYTgWnoy6TPipEy4fiicyhT2lxRKAXq9pG7CfFT8a2HLr6Hmwxg==", + "license": "MIT" + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jimp-compact": { + "version": "0.16.1", + "resolved": "https://registry.npmjs.org/jimp-compact/-/jimp-compact-0.16.1.tgz", + "integrity": "sha512-dZ6Ra7u1G8c4Letq/B5EzAxj4tLFHL+cGtdpR+PVm4yzPDj+lCk+AbivWt1eOM+ikzkowtyV7qSqX6qr3t71Ww==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/jose": { + "version": "4.15.9", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.9.tgz", + "integrity": "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/jpeg-js": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", + "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==", + "license": "BSD-3-Clause" + }, + "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", + "optional": true + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "license": "MIT" + }, + "node_modules/jsc-safe-url": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/jsc-safe-url/-/jsc-safe-url-0.2.4.tgz", + "integrity": "sha512-0wM3YBWtYePOjfyXQH5MWQ8H7sdk5EXSwZvmSLKk2RboVQ2Bu239jycHDz5J/8Blf3K0Qnoy2b6xD+z10MFB+Q==", + "license": "0BSD", + "optional": true, + "peer": true + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "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==", + "license": "MIT" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "license": "ISC" + }, + "node_modules/json2csv": { + "version": "6.0.0-alpha.2", + "resolved": "https://registry.npmjs.org/json2csv/-/json2csv-6.0.0-alpha.2.tgz", + "integrity": "sha512-nJ3oP6QxN8z69IT1HmrJdfVxhU1kLTBVgMfRnNZc37YEY+jZ4nU27rBGxT4vaqM/KUCavLRhntmTuBFqZLBUcA==", + "license": "MIT", + "dependencies": { + "@streamparser/json": "^0.0.6", + "commander": "^6.2.0", + "lodash.get": "^4.4.2" + }, + "bin": { + "json2csv": "bin/json2csv.js" + }, + "engines": { + "node": ">= 12", + "npm": ">= 6.13.0" + } + }, + "node_modules/json2csv/node_modules/commander": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "license": "MIT", + "optional": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", + "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", + "license": "MIT", + "dependencies": { + "jws": "^4.0.1", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsprim": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", + "license": "MIT", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/key-tree-store": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/key-tree-store/-/key-tree-store-1.3.0.tgz", + "integrity": "sha512-qXk+lR+LXvGos3wqMxIMWweKDgCx8ZKWM6BEPm7iZkOKug5ggi66vUt+3vbtKJLBrAyOxQ4S8JRwK++Q4XZRmw==", + "license": "MIT" + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lan-network": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/lan-network/-/lan-network-0.1.7.tgz", + "integrity": "sha512-mnIlAEMu4OyEvUNdzco9xpuB9YVcPkQec+QsgycBCtPZvEqWPCDPfbAE4OJMdBBWpZWtpCn1xw9jJYlwjWI5zQ==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "lan-network": "dist/lan-network-cli.js" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/libheif-js": { + "version": "1.19.8", + "resolved": "https://registry.npmjs.org/libheif-js/-/libheif-js-1.19.8.tgz", + "integrity": "sha512-vQJWusIxO7wavpON1dusciL8Go9jsIQ+EUrckauFYAiSTjcmLAsuJh3SszLpvkwPci3JcL41ek2n+LUZGFpPIQ==", + "license": "LGPL-3.0", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/lighthouse-logger": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.4.2.tgz", + "integrity": "sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "debug": "^2.6.9", + "marky": "^1.2.2" + } + }, + "node_modules/lighthouse-logger/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/lighthouse-logger/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/lightningcss": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.31.1.tgz", + "integrity": "sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==", + "license": "MPL-2.0", + "optional": true, + "peer": true, + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.31.1", + "lightningcss-darwin-arm64": "1.31.1", + "lightningcss-darwin-x64": "1.31.1", + "lightningcss-freebsd-x64": "1.31.1", + "lightningcss-linux-arm-gnueabihf": "1.31.1", + "lightningcss-linux-arm64-gnu": "1.31.1", + "lightningcss-linux-arm64-musl": "1.31.1", + "lightningcss-linux-x64-gnu": "1.31.1", + "lightningcss-linux-x64-musl": "1.31.1", + "lightningcss-win32-arm64-msvc": "1.31.1", + "lightningcss-win32-x64-msvc": "1.31.1" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.31.1.tgz", + "integrity": "sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.31.1.tgz", + "integrity": "sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.31.1.tgz", + "integrity": "sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.31.1.tgz", + "integrity": "sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.31.1.tgz", + "integrity": "sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.31.1.tgz", + "integrity": "sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.31.1.tgz", + "integrity": "sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.31.1.tgz", + "integrity": "sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.31.1.tgz", + "integrity": "sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.31.1.tgz", + "integrity": "sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.31.1.tgz", + "integrity": "sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true + }, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, + "node_modules/lodash._arraycopy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz", + "integrity": "sha512-RHShTDnPKP7aWxlvXKiDT6IX2jCs6YZLCtNhOru/OX2Q/tzX295vVBK5oX1ECtN+2r86S0Ogy8ykP1sgCZAN0A==", + "license": "MIT" + }, + "node_modules/lodash._arrayeach": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz", + "integrity": "sha512-Mn7HidOVcl3mkQtbPsuKR0Fj0N6Q6DQB77CtYncZcJc0bx5qv2q4Gl6a0LC1AN+GSxpnBDNnK3CKEm9XNA4zqQ==", + "license": "MIT" + }, + "node_modules/lodash._baseassign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", + "integrity": "sha512-t3N26QR2IdSN+gqSy9Ds9pBu/J1EAFEshKlUHpJG3rvyJOYgcELIxcIeKKfZk7sjOz11cFfzJRsyFry/JyabJQ==", + "license": "MIT", + "dependencies": { + "lodash._basecopy": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "node_modules/lodash._baseclone": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lodash._baseclone/-/lodash._baseclone-3.3.0.tgz", + "integrity": "sha512-1K0dntf2dFQ5my0WoGKkduewR6+pTNaqX03kvs45y7G5bzl4B3kTR4hDfJIc2aCQDeLyQHhS280tc814m1QC1Q==", + "license": "MIT", + "dependencies": { + "lodash._arraycopy": "^3.0.0", + "lodash._arrayeach": "^3.0.0", + "lodash._baseassign": "^3.0.0", + "lodash._basefor": "^3.0.0", + "lodash.isarray": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "node_modules/lodash._basecopy": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", + "integrity": "sha512-rFR6Vpm4HeCK1WPGvjZSJ+7yik8d8PVUdCJx5rT2pogG4Ve/2ZS7kfmO5l5T2o5V2mqlNIfSF5MZlr1+xOoYQQ==", + "license": "MIT" + }, + "node_modules/lodash._basefor": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash._basefor/-/lodash._basefor-3.0.3.tgz", + "integrity": "sha512-6bc3b8grkpMgDcVJv9JYZAk/mHgcqMljzm7OsbmcE2FGUMmmLQTPHlh/dFqR8LA0GQ7z4K67JSotVKu5058v1A==", + "license": "MIT" + }, + "node_modules/lodash._bindcallback": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz", + "integrity": "sha512-2wlI0JRAGX8WEf4Gm1p/mv/SZ+jLijpj0jyaE/AXeuQphzCgD8ZQW4oSpoN8JAopujOFGU3KMuq7qfHBWlGpjQ==", + "license": "MIT" + }, + "node_modules/lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha512-RrL9VxMEPyDMHOd9uFbvMe8X55X16/cGM5IgOKgRElQZutpX89iS6vwl64duTV1/16w5JY7tuFNXqoekmh1EmA==", + "license": "MIT" + }, + "node_modules/lodash._isiterateecall": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", + "integrity": "sha512-De+ZbrMu6eThFti/CSzhRvTKMgQToLxbij58LMfM8JnYDNSOjkjTCIaa8ixglOeGh2nyPlakbt5bJWJ7gvpYlQ==", + "license": "MIT" + }, + "node_modules/lodash.clone": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-3.0.3.tgz", + "integrity": "sha512-yVYPpFTdZDCLG2p07gVRTvcwN5X04oj2hu4gG6r0fer58JA08wAVxXzWM+CmmxO2bzOH8u8BkZTZqgX6juVF7A==", + "deprecated": "This package is deprecated. Use structuredClone instead.", + "license": "MIT", + "dependencies": { + "lodash._baseclone": "^3.0.0", + "lodash._bindcallback": "^3.0.0", + "lodash._isiterateecall": "^3.0.0" + } + }, + "node_modules/lodash.clonedeep": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz", + "integrity": "sha512-I8MpGh5z+6OixDAAb21teLSZDmqVPjlq02Q7ZFrbn2xnQHYYuJf6on/94SWpF/p0s3p/cEv/53ro4AhDOfCR0g==", + "license": "MIT", + "dependencies": { + "lodash._baseclone": "^3.0.0", + "lodash._bindcallback": "^3.0.0" + } + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "deprecated": "This package is deprecated. Use the optional chaining (?.) operator instead.", + "license": "MIT" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==", + "license": "MIT" + }, + "node_modules/lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha512-JwObCrNJuT0Nnbuecmqr5DgtuBppuCvGD9lxjFpAzwnVtdGoDQ1zig+5W8k5/6Gcn0gZ3936HDAlGd28i7sOGQ==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha512-CuBsapFjcubOGMn3VD+24HOAPxM79tH+V6ivJL3CHYjtrawauDJHUk//Yew9Hvc6e9rbCrURGk8z6PC+8WJBfQ==", + "license": "MIT", + "dependencies": { + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" + } + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, + "node_modules/lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "chalk": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-symbols/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/log-symbols/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-symbols/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, + "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", + "optional": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-fetch-happen": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz", + "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==", + "license": "ISC", + "optional": true, + "dependencies": { + "agentkeepalive": "^4.1.3", + "cacache": "^15.2.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^6.0.0", + "minipass": "^3.1.3", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^1.3.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.2", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^6.0.0", + "ssri": "^8.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/make-fetch-happen/node_modules/negotiator": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", + "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/marky": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/marky/-/marky-1.3.0.tgz", + "integrity": "sha512-ocnPZQLNpvbedwTy9kNrQEsknEfgvcLMvOtz3sFeWApDq1MXH1TqkCIx58xlpESsfwQOnuBO9beyQuNGzVvuhQ==", + "license": "Apache-2.0", + "optional": true, + "peer": true + }, + "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/media-typer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", + "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/memory-pager": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", + "license": "MIT", + "optional": true + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/metro": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro/-/metro-0.83.3.tgz", + "integrity": "sha512-+rP+/GieOzkt97hSJ0MrPOuAH/jpaS21ZDvL9DJ35QYRDlQcwzcvUlGUf79AnQxq/2NPiS/AULhhM4TKutIt8Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/core": "^7.25.2", + "@babel/generator": "^7.25.0", + "@babel/parser": "^7.25.3", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.3", + "@babel/types": "^7.25.2", + "accepts": "^1.3.7", + "chalk": "^4.0.0", + "ci-info": "^2.0.0", + "connect": "^3.6.5", + "debug": "^4.4.0", + "error-stack-parser": "^2.0.6", + "flow-enums-runtime": "^0.0.6", + "graceful-fs": "^4.2.4", + "hermes-parser": "0.32.0", + "image-size": "^1.0.2", + "invariant": "^2.2.4", + "jest-worker": "^29.7.0", + "jsc-safe-url": "^0.2.2", + "lodash.throttle": "^4.1.1", + "metro-babel-transformer": "0.83.3", + "metro-cache": "0.83.3", + "metro-cache-key": "0.83.3", + "metro-config": "0.83.3", + "metro-core": "0.83.3", + "metro-file-map": "0.83.3", + "metro-resolver": "0.83.3", + "metro-runtime": "0.83.3", + "metro-source-map": "0.83.3", + "metro-symbolicate": "0.83.3", + "metro-transform-plugins": "0.83.3", + "metro-transform-worker": "0.83.3", + "mime-types": "^2.1.27", + "nullthrows": "^1.1.1", + "serialize-error": "^2.1.0", + "source-map": "^0.5.6", + "throat": "^5.0.0", + "ws": "^7.5.10", + "yargs": "^17.6.2" + }, + "bin": { + "metro": "src/cli.js" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-babel-transformer": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.83.3.tgz", + "integrity": "sha512-1vxlvj2yY24ES1O5RsSIvg4a4WeL7PFXgKOHvXTXiW0deLvQr28ExXj6LjwCCDZ4YZLhq6HddLpZnX4dEdSq5g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "flow-enums-runtime": "^0.0.6", + "hermes-parser": "0.32.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-babel-transformer/node_modules/hermes-estree": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.32.0.tgz", + "integrity": "sha512-KWn3BqnlDOl97Xe1Yviur6NbgIZ+IP+UVSpshlZWkq+EtoHg6/cwiDj/osP9PCEgFE15KBm1O55JRwbMEm5ejQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/metro-babel-transformer/node_modules/hermes-parser": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.32.0.tgz", + "integrity": "sha512-g4nBOWFpuiTqjR3LZdRxKUkij9iyveWeuks7INEsMX741f3r9xxrOe8TeQfUxtda0eXmiIFiMQzoeSQEno33Hw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "hermes-estree": "0.32.0" + } + }, + "node_modules/metro-cache": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-cache/-/metro-cache-0.83.3.tgz", + "integrity": "sha512-3jo65X515mQJvKqK3vWRblxDEcgY55Sk3w4xa6LlfEXgQ9g1WgMh9m4qVZVwgcHoLy0a2HENTPCCX4Pk6s8c8Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "exponential-backoff": "^3.1.1", + "flow-enums-runtime": "^0.0.6", + "https-proxy-agent": "^7.0.5", + "metro-core": "0.83.3" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-cache-key": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-cache-key/-/metro-cache-key-0.83.3.tgz", + "integrity": "sha512-59ZO049jKzSmvBmG/B5bZ6/dztP0ilp0o988nc6dpaDsU05Cl1c/lRf+yx8m9WW/JVgbmfO5MziBU559XjI5Zw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-cache/node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/metro-cache/node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/metro-config": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-config/-/metro-config-0.83.3.tgz", + "integrity": "sha512-mTel7ipT0yNjKILIan04bkJkuCzUUkm2SeEaTads8VfEecCh+ltXchdq6DovXJqzQAXuR2P9cxZB47Lg4klriA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "connect": "^3.6.5", + "flow-enums-runtime": "^0.0.6", + "jest-validate": "^29.7.0", + "metro": "0.83.3", + "metro-cache": "0.83.3", + "metro-core": "0.83.3", + "metro-runtime": "0.83.3", + "yaml": "^2.6.1" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-core": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-core/-/metro-core-0.83.3.tgz", + "integrity": "sha512-M+X59lm7oBmJZamc96usuF1kusd5YimqG/q97g4Ac7slnJ3YiGglW5CsOlicTR5EWf8MQFxxjDoB6ytTqRe8Hw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "lodash.throttle": "^4.1.1", + "metro-resolver": "0.83.3" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-file-map": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-file-map/-/metro-file-map-0.83.3.tgz", + "integrity": "sha512-jg5AcyE0Q9Xbbu/4NAwwZkmQn7doJCKGW0SLeSJmzNB9Z24jBe0AL2PHNMy4eu0JiKtNWHz9IiONGZWq7hjVTA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "debug": "^4.4.0", + "fb-watchman": "^2.0.0", + "flow-enums-runtime": "^0.0.6", + "graceful-fs": "^4.2.4", + "invariant": "^2.2.4", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "nullthrows": "^1.1.1", + "walker": "^1.0.7" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-minify-terser": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-minify-terser/-/metro-minify-terser-0.83.3.tgz", + "integrity": "sha512-O2BmfWj6FSfzBLrNCXt/rr2VYZdX5i6444QJU0fFoc7Ljg+Q+iqebwE3K0eTvkI6TRjELsXk1cjU+fXwAR4OjQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "terser": "^5.15.0" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-resolver": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.83.3.tgz", + "integrity": "sha512-0js+zwI5flFxb1ktmR///bxHYg7OLpRpWZlBBruYG8OKYxeMP7SV0xQ/o/hUelrEMdK4LJzqVtHAhBm25LVfAQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-runtime": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-runtime/-/metro-runtime-0.83.3.tgz", + "integrity": "sha512-JHCJb9ebr9rfJ+LcssFYA2x1qPYuSD/bbePupIGhpMrsla7RCwC/VL3yJ9cSU+nUhU4c9Ixxy8tBta+JbDeZWw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/runtime": "^7.25.0", + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-source-map": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-source-map/-/metro-source-map-0.83.3.tgz", + "integrity": "sha512-xkC3qwUBh2psVZgVavo8+r2C9Igkk3DibiOXSAht1aYRRcztEZNFtAMtfSB7sdO2iFMx2Mlyu++cBxz/fhdzQg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/traverse": "^7.25.3", + "@babel/traverse--for-generate-function-map": "npm:@babel/traverse@^7.25.3", + "@babel/types": "^7.25.2", + "flow-enums-runtime": "^0.0.6", + "invariant": "^2.2.4", + "metro-symbolicate": "0.83.3", + "nullthrows": "^1.1.1", + "ob1": "0.83.3", + "source-map": "^0.5.6", + "vlq": "^1.0.0" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-symbolicate": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-symbolicate/-/metro-symbolicate-0.83.3.tgz", + "integrity": "sha512-F/YChgKd6KbFK3eUR5HdUsfBqVsanf5lNTwFd4Ca7uuxnHgBC3kR/Hba/RGkenR3pZaGNp5Bu9ZqqP52Wyhomw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "invariant": "^2.2.4", + "metro-source-map": "0.83.3", + "nullthrows": "^1.1.1", + "source-map": "^0.5.6", + "vlq": "^1.0.0" + }, + "bin": { + "metro-symbolicate": "src/index.js" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-transform-plugins": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-transform-plugins/-/metro-transform-plugins-0.83.3.tgz", + "integrity": "sha512-eRGoKJU6jmqOakBMH5kUB7VitEWiNrDzBHpYbkBXW7C5fUGeOd2CyqrosEzbMK5VMiZYyOcNFEphvxk3OXey2A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "@babel/generator": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.3", + "flow-enums-runtime": "^0.0.6", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro-transform-worker": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/metro-transform-worker/-/metro-transform-worker-0.83.3.tgz", + "integrity": "sha512-Ztekew9t/gOIMZX1tvJOgX7KlSLL5kWykl0Iwu2cL2vKMKVALRl1hysyhUw0vjpAvLFx+Kfq9VLjnHIkW32fPA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "@babel/generator": "^7.25.0", + "@babel/parser": "^7.25.3", + "@babel/types": "^7.25.2", + "flow-enums-runtime": "^0.0.6", + "metro": "0.83.3", + "metro-babel-transformer": "0.83.3", + "metro-cache": "0.83.3", + "metro-cache-key": "0.83.3", + "metro-minify-terser": "0.83.3", + "metro-source-map": "0.83.3", + "metro-transform-plugins": "0.83.3", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "node_modules/metro/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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/metro/node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/metro/node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/metro/node_modules/hermes-estree": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.32.0.tgz", + "integrity": "sha512-KWn3BqnlDOl97Xe1Yviur6NbgIZ+IP+UVSpshlZWkq+EtoHg6/cwiDj/osP9PCEgFE15KBm1O55JRwbMEm5ejQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/metro/node_modules/hermes-parser": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.32.0.tgz", + "integrity": "sha512-g4nBOWFpuiTqjR3LZdRxKUkij9iyveWeuks7INEsMX741f3r9xxrOe8TeQfUxtda0eXmiIFiMQzoeSQEno33Hw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "hermes-estree": "0.32.0" + } + }, + "node_modules/metro/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", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/metro/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", + "optional": true, + "peer": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/metro/node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/metro/node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", + "optional": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/min-document": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.2.tgz", + "integrity": "sha512-8S5I8db/uZN8r9HSLFVWPdJCvYOejMcEC82VIzNUc6Zkklf/d1gg2psfE79/vyhWOj4+J8MtwmoOz3TmvaGu5A==", + "license": "MIT", + "dependencies": { + "dom-walk": "^0.1.0" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", + "optional": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-collect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-fetch": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", + "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", + "license": "MIT", + "optional": true, + "dependencies": { + "minipass": "^3.1.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "optionalDependencies": { + "encoding": "^0.1.12" + } + }, + "node_modules/minipass-flush": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-pipeline": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-sized": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", + "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "license": "MIT" + }, + "node_modules/moment": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/mongodb": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.7.4.tgz", + "integrity": "sha512-K5q8aBqEXMwWdVNh94UQTwZ6BejVbFhh1uB6c5FKtPE9eUMZPUO3sRZdgIEcHSrAWmxzpG/FeODDKL388sqRmw==", + "license": "Apache-2.0", + "dependencies": { + "bl": "^2.2.1", + "bson": "^1.1.4", + "denque": "^1.4.1", + "optional-require": "^1.1.8", + "safe-buffer": "^5.1.2" + }, + "engines": { + "node": ">=4" + }, + "optionalDependencies": { + "saslprep": "^1.0.0" + }, + "peerDependenciesMeta": { + "aws4": { + "optional": true + }, + "bson-ext": { + "optional": true + }, + "kerberos": { + "optional": true + }, + "mongodb-client-encryption": { + "optional": true + }, + "mongodb-extjson": { + "optional": true + }, + "snappy": { + "optional": true + } + } + }, + "node_modules/mongodb/node_modules/bl": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz", + "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==", + "license": "MIT", + "dependencies": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/mongodb/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/mongodb/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/mongodb/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "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==", + "license": "MIT" + }, + "node_modules/msrcrypto": { + "version": "1.5.8", + "resolved": "https://registry.npmjs.org/msrcrypto/-/msrcrypto-1.5.8.tgz", + "integrity": "sha512-ujZ0TRuozHKKm6eGbKHfXef7f+esIhEckmThVnz7RNyiOJd7a6MXj2JGBoL9cnPDW+JMG16MoTUh5X+XXjI66Q==", + "license": "Apache-2.0" + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/napi-build-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz", + "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", + "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/nested-error-stacks": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/nested-error-stacks/-/nested-error-stacks-2.0.1.tgz", + "integrity": "sha512-SrQrok4CATudVzBS7coSz26QRSmlK9TzzoFbeKfcPBUFPjcQM9Rqvr/DlJkOrwI/0KcgvMub1n1g5Jt9EgRn4A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/node-abi": { + "version": "3.87.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.87.0.tgz", + "integrity": "sha512-+CGM1L1CgmtheLcBuleyYOn7NWPVu0s0EJH2C4puxgEZb9h8QpR9G2dBfZJOAUhi7VQxuBPMd0hiISWcTyiYyQ==", + "license": "MIT", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "license": "MIT" + }, + "node_modules/node-cron": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/node-cron/-/node-cron-4.2.1.tgz", + "integrity": "sha512-lgimEHPE/QDgFlywTd8yTR61ptugX3Qer29efeyWw2rv259HtGBNn1vZVmp8lB9uo9wC0t/AT4iGqXxia+CJFg==", + "license": "ISC", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/node-forge": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.3.tgz", + "integrity": "sha512-rLvcdSyRCyouf6jcOIPe/BgwG/d7hKjzMKOas33/pHEr6gbq18IK9zV7DiPvzsz0oBJPme6qr6H6kGZuI9/DZg==", + "license": "(BSD-3-Clause OR GPL-2.0)", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-gyp": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", + "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", + "license": "MIT", + "optional": true, + "dependencies": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^9.1.0", + "nopt": "^5.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": ">= 10.12.0" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/node-jose": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/node-jose/-/node-jose-2.2.0.tgz", + "integrity": "sha512-XPCvJRr94SjLrSIm4pbYHKLEaOsDvJCpyFw/6V/KK/IXmyZ6SFBzAUDO9HQf4DB/nTEFcRGH87mNciOP23kFjw==", + "license": "Apache-2.0", + "dependencies": { + "base64url": "^3.0.1", + "buffer": "^6.0.3", + "es6-promise": "^4.2.8", + "lodash": "^4.17.21", + "long": "^5.2.0", + "node-forge": "^1.2.1", + "pako": "^2.0.4", + "process": "^0.11.10", + "uuid": "^9.0.0" + } + }, + "node_modules/node-jose/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "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": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/node-jose/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/node-kms": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/node-kms/-/node-kms-0.4.1.tgz", + "integrity": "sha512-qhrfrsEPooJCTDPc8yPaLIu8rHGKrSngK/X9eZziM0RUnMY3PtKU8PHmG5JokeNw7wokW8/dKtwEH5I24oW5ew==", + "license": "Apache-2.0", + "dependencies": { + "es6-promise": "^2.0.1", + "lodash.clone": "^3.0.2", + "lodash.clonedeep": "^3.0.1", + "node-jose": "^2.2.0", + "uuid": "^2.0.1" + } + }, + "node_modules/node-kms/node_modules/es6-promise": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-2.3.0.tgz", + "integrity": "sha512-oyOjMhyKMLEjOOtvkwg0G4pAzLQ9WdbbeX7WdqKzvYXu+UFgD0Zo/Brq5Q49zNmnGPPzV5rmYvrr0jz1zWx8Iw==", + "license": "MIT" + }, + "node_modules/node-kms/node_modules/uuid": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz", + "integrity": "sha512-FULf7fayPdpASncVy4DLh3xydlXEJJpvIELjYjNeQWYUZ9pclcpvCZSr2gkmN2FrrGcI7G/cJsIEwk5/8vfXpg==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "license": "MIT" + }, + "node_modules/node-random-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/node-random-name/-/node-random-name-1.0.1.tgz", + "integrity": "sha512-7+IpyBRtbHvTWXjdZxjxyaafdggIvA3IpNf2W3ZRe+ok3UyE32Qb8PCb4fKKPdZCCjoAk358yQZWywAimw8KCw==", + "license": "MIT", + "dependencies": { + "alea": "0.0.9" + } + }, + "node_modules/node-releases": { + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/node-scr": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/node-scr/-/node-scr-0.3.0.tgz", + "integrity": "sha512-Hb0ykojynSbt7ra6eml6NX39WAumFfU3G81XvLpp2H7y8KjQc29oEIf2TlgZQCfA+pyxbY5t4a1xBqPpyrbpvw==", + "license": "Apache-2.0", + "dependencies": { + "es6-promise": "^2.0.1", + "lodash.clone": "^3.0.2", + "node-jose": "^2.0.0" + } + }, + "node_modules/node-scr/node_modules/es6-promise": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-2.3.0.tgz", + "integrity": "sha512-oyOjMhyKMLEjOOtvkwg0G4pAzLQ9WdbbeX7WdqKzvYXu+UFgD0Zo/Brq5Q49zNmnGPPzV5rmYvrr0jz1zWx8Iw==", + "license": "MIT" + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-package-arg": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-11.0.3.tgz", + "integrity": "sha512-sHGJy8sOC1YraBywpzQlIKBE4pBbGbiF95U6Auspzyem956E0+FtDtsx1ZxlOJkQCZ1AFXAY/yuvtFYrOxF+Bw==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "hosted-git-info": "^7.0.0", + "proc-log": "^4.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npmlog": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", + "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "optional": true, + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/nullthrows": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", + "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/ob1": { + "version": "0.83.3", + "resolved": "https://registry.npmjs.org/ob1/-/ob1-0.83.3.tgz", + "integrity": "sha512-egUxXCDwoWG06NGCS5s5AdcpnumHKJlfd3HH06P3m9TEMwwScfcY35wpQxbm9oHof+dM/lVH9Rfyu1elTVelSA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": ">=20.19.4" + } + }, + "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", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz", + "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "mimic-fn": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/open": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optional-require": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.1.10.tgz", + "integrity": "sha512-0r3OB9EIQsP+a5HVATHq2ExIy2q/Vaffoo4IAikW1spCYswhLxqWQS0i3GwS3AdY/OIP4SWZHLGz8CMU558PGw==", + "license": "Apache-2.0", + "dependencies": { + "require-at": "^1.0.6" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ora": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/ora/-/ora-3.4.0.tgz", + "integrity": "sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-spinners": "^2.0.0", + "log-symbols": "^2.2.0", + "strip-ansi": "^5.2.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/ora/node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/ora/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ora/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ora/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/ora/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/ora/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/ora/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ora/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/ora/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-7.3.0.tgz", + "integrity": "sha512-7cIXg/Z0M5WZRblrsOla88S4wAK+zOQQWeBYfV3qJuJXMr+LnbYjaadrFaS0JILfEDPVqHyKnZ1Z/1d6J9VVUw==", + "license": "MIT", + "dependencies": { + "yocto-queue": "^1.2.1" + }, + "engines": { + "node": ">=20" + }, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate/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==", + "license": "MIT", + "optional": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate/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==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pako": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz", + "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==", + "license": "(MIT AND Zlib)" + }, + "node_modules/parse-headers": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.6.tgz", + "integrity": "sha512-Tz11t3uKztEW5FEVZnj1ox8GKblWn+PvHY9TmJV5Mll2uHEwRdR/5Li1OlXoECjLYkApdhWy44ocONwXLiKO5A==", + "license": "MIT" + }, + "node_modules/parse-png": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/parse-png/-/parse-png-2.1.0.tgz", + "integrity": "sha512-Nt/a5SfCLiTnQAjx3fHlqp8hRgTL3z7kTQZzvIMS9uCAepnCyjpdEc6M/sz69WqMBdaDBw9sF1F1UaHROYzGkQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "pngjs": "^3.3.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "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==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "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==", + "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==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/path-scurry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz", + "integrity": "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.2.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.5.tgz", + "integrity": "sha512-vFrFJkWtJvJnD5hg+hJvVE8Lh/TcMzKnTgCWmtBipwI5yLX/iX+5UB2tfuyODF5E7k9xEzMdYgGqaSb1c0c5Yw==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/path-to-regexp": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz", + "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/peek-readable": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-4.1.0.tgz", + "integrity": "sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg==", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "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==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/picomatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.1.tgz", + "integrity": "sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkijs": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-2.4.0.tgz", + "integrity": "sha512-cjJP/mYuGyMrjJ49jI04khId5Oufd3nFTUYBzQTIIVNI7/oAWdwXEfpwTF8HELFV/gz+WGYUBHCe3KHWD8rYvg==", + "license": "BSD-3-Clause", + "dependencies": { + "asn1js": "^3.0.3", + "bytestreamjs": "^1.0.29", + "pvutils": "^1.1.3" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/pkijs/node_modules/asn1js": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.7.tgz", + "integrity": "sha512-uLvq6KJu04qoQM6gvBfKFjlh6Gl0vOKQuR5cJMDHQkmwfMOQeN3F3SHCv9SNYSL+CRoHvOGFfllDlVz03GQjvQ==", + "license": "BSD-3-Clause", + "dependencies": { + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + }, + "engines": { + "node": ">=10.4.0" + } + }, + "node_modules/pngjs": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-3.4.0.tgz", + "integrity": "sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/postcss": { + "version": "8.4.49", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", + "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", + "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", + "optional": true, + "peer": true, + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prebuild-install": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", + "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==", + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.0", + "expand-template": "^2.0.3", + "github-from-package": "0.0.0", + "minimist": "^1.2.3", + "mkdirp-classic": "^0.5.3", + "napi-build-utils": "^2.0.0", + "node-abi": "^3.3.0", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^4.0.0", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + }, + "bin": { + "prebuild-install": "bin.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/precond": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/precond/-/precond-0.2.3.tgz", + "integrity": "sha512-QCYG84SgGyGzqJ/vlMsxeXd/pgL/I94ixdNFyh1PusWmTCyVfPJjZ1K1jvHtsbfnXQs2TSkEP2fR7QiMZAnKFQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/proc-log": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.2.0.tgz", + "integrity": "sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/promise": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", + "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "asap": "~2.0.6" + } + }, + "node_modules/promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", + "license": "ISC", + "optional": true + }, + "node_modules/promise-retry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", + "license": "MIT", + "optional": true, + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/psl": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", + "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/lupomontero" + } + }, + "node_modules/pump": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pvtsutils": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz", + "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/pvutils": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.1.5.tgz", + "integrity": "sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA==", + "license": "MIT", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/qrcode-terminal": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.11.0.tgz", + "integrity": "sha512-Uu7ii+FQy4Qf82G4xu7ShHhjhGahEpCWc3x8UavY3CTcWV+ufmmCtwkr7ZKsX42jdL0kr1B5FKUeqJvAn51jzQ==", + "optional": true, + "peer": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/qs": { + "version": "6.14.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz", + "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", + "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "inherits": "~2.0.3" + } + }, + "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==", + "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", + "optional": true + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/react": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", + "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-devtools-core": { + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-6.1.5.tgz", + "integrity": "sha512-ePrwPfxAnB+7hgnEr8vpKxL9cmnp7F322t8oqcPshbIQQhDKgFDW4tjhF2wjVbdXF9O/nyuy3sQWd9JGpiLPvA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "shell-quote": "^1.6.1", + "ws": "^7" + } + }, + "node_modules/react-devtools-core/node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/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", + "optional": true, + "peer": true + }, + "node_modules/react-native": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/react-native/-/react-native-0.83.1.tgz", + "integrity": "sha512-mL1q5HPq5cWseVhWRLl+Fwvi5z1UO+3vGOpjr+sHFwcUletPRZ5Kv+d0tUfqHmvi73/53NjlQqX1Pyn4GguUfA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@jest/create-cache-key-function": "^29.7.0", + "@react-native/assets-registry": "0.83.1", + "@react-native/codegen": "0.83.1", + "@react-native/community-cli-plugin": "0.83.1", + "@react-native/gradle-plugin": "0.83.1", + "@react-native/js-polyfills": "0.83.1", + "@react-native/normalize-colors": "0.83.1", + "@react-native/virtualized-lists": "0.83.1", + "abort-controller": "^3.0.0", + "anser": "^1.4.9", + "ansi-regex": "^5.0.0", + "babel-jest": "^29.7.0", + "babel-plugin-syntax-hermes-parser": "0.32.0", + "base64-js": "^1.5.1", + "commander": "^12.0.0", + "flow-enums-runtime": "^0.0.6", + "glob": "^7.1.1", + "hermes-compiler": "0.14.0", + "invariant": "^2.2.4", + "jest-environment-node": "^29.7.0", + "memoize-one": "^5.0.0", + "metro-runtime": "^0.83.3", + "metro-source-map": "^0.83.3", + "nullthrows": "^1.1.1", + "pretty-format": "^29.7.0", + "promise": "^8.3.0", + "react-devtools-core": "^6.1.5", + "react-refresh": "^0.14.0", + "regenerator-runtime": "^0.13.2", + "scheduler": "0.27.0", + "semver": "^7.1.3", + "stacktrace-parser": "^0.1.10", + "whatwg-fetch": "^3.0.0", + "ws": "^7.5.10", + "yargs": "^17.6.2" + }, + "bin": { + "react-native": "cli.js" + }, + "engines": { + "node": ">= 20.19.4" + }, + "peerDependencies": { + "@types/react": "^19.1.1", + "react": "^19.2.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/react-native-securerandom": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/react-native-securerandom/-/react-native-securerandom-0.1.1.tgz", + "integrity": "sha512-CozcCx0lpBLevxiXEb86kwLRalBCHNjiGPlw3P7Fi27U6ZLdfjOCNRHD1LtBKcvPvI3TvkBXB3GOtLvqaYJLGw==", + "license": "MIT", + "optional": true, + "dependencies": { + "base64-js": "*" + }, + "peerDependencies": { + "react-native": "*" + } + }, + "node_modules/react-native/node_modules/@react-native/codegen": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/codegen/-/codegen-0.83.1.tgz", + "integrity": "sha512-FpRxenonwH+c2a5X5DZMKUD7sCudHxB3eSQPgV9R+uxd28QWslyAWrpnJM/Az96AEksHnymDzEmzq2HLX5nb+g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/core": "^7.25.2", + "@babel/parser": "^7.25.3", + "glob": "^7.1.1", + "hermes-parser": "0.32.0", + "invariant": "^2.2.4", + "nullthrows": "^1.1.1", + "yargs": "^17.6.2" + }, + "engines": { + "node": ">= 20.19.4" + }, + "peerDependencies": { + "@babel/core": "*" + } + }, + "node_modules/react-native/node_modules/@react-native/normalize-colors": { + "version": "0.83.1", + "resolved": "https://registry.npmjs.org/@react-native/normalize-colors/-/normalize-colors-0.83.1.tgz", + "integrity": "sha512-84feABbmeWo1kg81726UOlMKAhcQyFXYz2SjRKYkS78QmfhVDhJ2o/ps1VjhFfBz0i/scDwT1XNv9GwmRIghkg==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/react-native/node_modules/babel-plugin-syntax-hermes-parser": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-hermes-parser/-/babel-plugin-syntax-hermes-parser-0.32.0.tgz", + "integrity": "sha512-m5HthL++AbyeEA2FcdwOLfVFvWYECOBObLHNqdR8ceY4TsEdn4LdX2oTvbB2QJSSElE2AWA/b2MXZ/PF/CqLZg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "hermes-parser": "0.32.0" + } + }, + "node_modules/react-native/node_modules/commander": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", + "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/react-native/node_modules/hermes-estree": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.32.0.tgz", + "integrity": "sha512-KWn3BqnlDOl97Xe1Yviur6NbgIZ+IP+UVSpshlZWkq+EtoHg6/cwiDj/osP9PCEgFE15KBm1O55JRwbMEm5ejQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/react-native/node_modules/hermes-parser": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.32.0.tgz", + "integrity": "sha512-g4nBOWFpuiTqjR3LZdRxKUkij9iyveWeuks7INEsMX741f3r9xxrOe8TeQfUxtda0eXmiIFiMQzoeSQEno33Hw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "hermes-estree": "0.32.0" + } + }, + "node_modules/react-native/node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/react-refresh": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz", + "integrity": "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readable-web-to-node-stream": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.4.tgz", + "integrity": "sha512-9nX56alTf5bwXQ3ZDipHJhusu9NTQJ/CVPtb/XHAJCXihZeitfJvIRS4GqQ/mfIoOE3IelHMrpayVrosdHBuLw==", + "license": "MIT", + "dependencies": { + "readable-stream": "^4.7.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/readable-web-to-node-stream/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "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": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/readable-web-to-node-stream/node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", + "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "license": "MIT" + }, + "node_modules/regexpu-core": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", + "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.2.2", + "regjsgen": "^0.8.0", + "regjsparser": "^0.13.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.2.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/regjsparser": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz", + "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "jsesc": "~3.1.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "license": "Apache-2.0", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/request/node_modules/form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/request/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/request/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/request/node_modules/qs": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/require-at": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/require-at/-/require-at-1.0.6.tgz", + "integrity": "sha512-7i1auJbMUrXEAZCOQ0VNJgmcT2VOKPRl2YGJwgpHpC9CE91Mv4/4UYIUm4chGJaI381ZDq1JUicFii64Hapd8g==", + "license": "Apache-2.0", + "engines": { + "node": ">=4" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requireg": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/requireg/-/requireg-0.2.2.tgz", + "integrity": "sha512-nYzyjnFcPNGR3lx9lwPPPnuQxv6JWEZd2Ci0u9opN7N5zUEPIhY/GbL3vMGOr2UXwEg9WwSyV9X9Y/kLFgPsOg==", + "optional": true, + "peer": true, + "dependencies": { + "nested-error-stacks": "~2.0.1", + "rc": "~1.2.7", + "resolve": "~1.7.1" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/requireg/node_modules/resolve": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", + "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "path-parse": "^1.0.5" + } + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "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": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-global": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-global/-/resolve-global-1.0.0.tgz", + "integrity": "sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "global-dirs": "^0.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-workspace-root": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/resolve-workspace-root/-/resolve-workspace-root-2.0.1.tgz", + "integrity": "sha512-nR23LHAvaI6aHtMg6RWoaHpdR4D881Nydkzi2CixINyg9T00KgaJdJI6Vwty+Ps8WLxZHuxsS0BseWjxSA4C+w==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "license": "MIT", + "optional": true, + "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==", + "license": "MIT", + "optional": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "license": "ISC", + "optional": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/rtcpeerconnection-shim": { + "version": "1.2.15", + "resolved": "https://registry.npmjs.org/rtcpeerconnection-shim/-/rtcpeerconnection-shim-1.2.15.tgz", + "integrity": "sha512-C6DxhXt7bssQ1nHb154lqeL0SXz5Dx4RczXZu2Aa/L1NJFnEVDxFwCBo3fqtuljhHIGceg5JKBV4XJ0gW5JKyw==", + "license": "BSD-3-Clause", + "dependencies": { + "sdp": "^2.6.0" + }, + "engines": { + "node": ">=6.0.0", + "npm": ">=3.10.0" + } + }, + "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==", + "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", + "optional": true, + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "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/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/saslprep": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", + "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", + "license": "MIT", + "optional": true, + "dependencies": { + "sparse-bitfield": "^3.0.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sax": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.4.tgz", + "integrity": "sha512-1n3r/tGXO6b6VXMdFT54SHzT9ytu9yr7TaELowdYpMqY/Ao7EnlQGmAQ1+RatX7Tkkdm6hONI2owqNx2aZj5Sw==", + "license": "BlueOak-1.0.0", + "optional": true, + "peer": true, + "engines": { + "node": ">=11.0.0" + } + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/sdp": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/sdp/-/sdp-2.12.0.tgz", + "integrity": "sha512-jhXqQAQVM+8Xj5EjJGVweuEzgtGWb3tmEEpl3CLP3cStInSbVHSg0QWOGQzNq8pSID4JkpeV2mPqlMDLrm0/Vw==", + "license": "MIT" + }, + "node_modules/sdp-transform": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/sdp-transform/-/sdp-transform-2.15.0.tgz", + "integrity": "sha512-KrOH82c/W+GYQ0LHqtr3caRpM3ITglq3ljGUIb8LTki7ByacJZ9z+piSGiwZDsRyhQbYBOBJgr2k6X4BZXi3Kw==", + "license": "MIT", + "bin": { + "sdp-verify": "checker.js" + } + }, + "node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/serialize-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", + "integrity": "sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC", + "optional": true + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "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==", + "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==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", + "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC", + "optional": true + }, + "node_modules/simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "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/simple-get": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", + "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": { + "decompress-response": "^6.0.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "node_modules/simple-plist": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/simple-plist/-/simple-plist-1.3.1.tgz", + "integrity": "sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "bplist-creator": "0.1.0", + "bplist-parser": "0.3.1", + "plist": "^3.0.5" + } + }, + "node_modules/simple-plist/node_modules/bplist-parser": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.1.tgz", + "integrity": "sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "big-integer": "1.6.x" + }, + "engines": { + "node": ">= 5.10.0" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/slugify": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz", + "integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.8.7", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz", + "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==", + "license": "MIT", + "optional": true, + "dependencies": { + "ip-address": "^10.0.1", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", + "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "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==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "memory-pager": "^1.0.2" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true + }, + "node_modules/sqlite3": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.7.tgz", + "integrity": "sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "bindings": "^1.5.0", + "node-addon-api": "^7.0.0", + "prebuild-install": "^7.1.1", + "tar": "^6.1.11" + }, + "optionalDependencies": { + "node-gyp": "8.x" + }, + "peerDependencies": { + "node-gyp": "8.x" + }, + "peerDependenciesMeta": { + "node-gyp": { + "optional": true + } + } + }, + "node_modules/sshpk": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", + "license": "MIT", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/stackframe": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", + "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/stacktrace-parser": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.11.tgz", + "integrity": "sha512-WjlahMgHmCJpqzU8bIBy4qtsZdU9lRlcZE3Lvyej6t4tuOuv1vk57OW3MBrj6hXBFx/nNoC9MPMTcr5YA7NQbg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "type-fest": "^0.7.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/str2buf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/str2buf/-/str2buf-1.3.0.tgz", + "integrity": "sha512-xIBmHIUHYZDP4HyoXGHYNVmxlXLXDrtFHYT0eV6IOdEj3VO9ccaF1Ejl9Oq8iFjITllpT8FhaXb4KsNmw+3EuA==", + "license": "MIT" + }, + "node_modules/stream-buffers": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-2.2.0.tgz", + "integrity": "sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==", + "license": "Unlicense", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "optional": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "optional": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strtok3": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-6.3.0.tgz", + "integrity": "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw==", + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^4.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/structured-headers": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/structured-headers/-/structured-headers-0.4.1.tgz", + "integrity": "sha512-0MP/Cxx5SzeeZ10p/bZI0S6MpgD+yxAhi1BOQ34jgnMXsCq3j1t6tQnZu+KdlL7dvJTLT3g9xN8tl10TqgFMcg==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "license": "MIT", + "optional": true, + "peer": true, + "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/sucrase/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 6" + } + }, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tar": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "deprecated": "Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exhorbitant rates) by contacting i@izs.me", + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tar-fs": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz", + "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==", + "license": "MIT", + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/tar-fs/node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "license": "ISC" + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "license": "MIT", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terser": { + "version": "5.46.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.46.0.tgz", + "integrity": "sha512-jTwoImyr/QbOWFFso3YoU3ik0jBBDJ6JTOQiy/J2YxVJdZCc+5u7skhNwiOR3FQIygFqVUPHl7qbbxtjW2K3Qg==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.15.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "license": "MIT", + "optional": true, + "peer": true, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha512-RkK/CCESdTKQZHdmKICijdKKsCRVHs5KsLZ6pACAmF/1GPUQhonHSXWNERctxEp7RmvjdNbZTL5z9V7nSCXKcg==", + "license": "MIT", + "dependencies": { + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" + } + }, + "node_modules/through2/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "license": "MIT" + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true + }, + "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==", + "license": "MIT", + "optional": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/token-types": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-4.2.1.tgz", + "integrity": "sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ==", + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "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==", + "license": "Apache-2.0", + "optional": true, + "peer": true + }, + "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/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", + "license": "Unlicense" + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", + "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==", + "license": "(MIT OR CC0-1.0)", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/type-is": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", + "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", + "license": "MIT", + "dependencies": { + "content-type": "^1.0.5", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-emitter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/typed-emitter/-/typed-emitter-2.1.0.tgz", + "integrity": "sha512-g/KzbYKbH5C2vPkaXGu8DJlHrGKHLsM25Zg9WuC9pMGfuvT+X25tZQWo5fK1BjBm8+UrVE9LDCvaY0CQk+fXDA==", + "license": "MIT", + "optionalDependencies": { + "rxjs": "*" + } + }, + "node_modules/undici": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.23.0.tgz", + "integrity": "sha512-VfQPToRA5FZs/qJxLIinmU59u0r7LXqoJkCzinq3ckNJp3vKEh7jTWN589YQ5+aoAC/TGRLyJLCPKcLQbM8r9g==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=18.17" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz", + "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz", + "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "unique-slug": "^2.0.0" + } + }, + "node_modules/unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "license": "ISC", + "optional": true, + "dependencies": { + "imurmurhash": "^0.1.4" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "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==", + "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", + "optional": true, + "peer": true, + "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==", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urlsafe-base64": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/urlsafe-base64/-/urlsafe-base64-1.0.0.tgz", + "integrity": "sha512-RtuPeMy7c1UrHwproMZN9gN6kiZ0SvJwRaEzwZY0j9MypEkFqyBaKv176jvlPtg58Zh36bOkS0NFABXMHvvGCA==" + }, + "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==", + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "license": "MIT", + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/valid-url": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/valid-url/-/valid-url-1.0.9.tgz", + "integrity": "sha512-QQDsV8OnSf5Uc30CKSwG9lnhMPe6exHtTXLRYX8uMwKENy640pU+2BgBL0LRbDh/eYRahNCS7aewCx0wf3NYVA==" + }, + "node_modules/validate-npm-package-name": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.1.tgz", + "integrity": "sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/validator": { + "version": "13.15.26", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.26.tgz", + "integrity": "sha512-spH26xU080ydGggxRyR1Yhcbgx+j3y5jbNXk/8L+iRvdIEQ4uTRH2Sgf2dokud6Q4oAtsbNvJ1Ft+9xmm6IZcA==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/vlq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz", + "integrity": "sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webcrypto-core": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.8.1.tgz", + "integrity": "sha512-P+x1MvlNCXlKbLSOY4cYrdreqPG5hbzkmawbcXLKN/mf6DZW0SdNNkZ+sjwsqVkI4A4Ko2sPZmkZtCKY58w83A==", + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.3.13", + "@peculiar/json-schema": "^1.1.12", + "asn1js": "^3.0.5", + "pvtsutils": "^1.3.5", + "tslib": "^2.7.0" + } + }, + "node_modules/webcrypto-core/node_modules/asn1js": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.7.tgz", + "integrity": "sha512-uLvq6KJu04qoQM6gvBfKFjlh6Gl0vOKQuR5cJMDHQkmwfMOQeN3F3SHCv9SNYSL+CRoHvOGFfllDlVz03GQjvQ==", + "license": "BSD-3-Clause", + "dependencies": { + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/webcrypto-shim": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/webcrypto-shim/-/webcrypto-shim-0.1.7.tgz", + "integrity": "sha512-JAvAQR5mRNRxZW2jKigWMjCMkjSdmP5cColRP1U/pTg69VgHXEi1orv5vVpJ55Zc5MIaPc1aaurzd9pjv2bveg==", + "license": "MIT" + }, + "node_modules/webex": { + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/webex/-/webex-2.60.0.tgz", + "integrity": "sha512-lE/OTtxS9YG1jOVQFdFf8mcCRupyFfCHaLDMeJa32KdIi5oZAY5viYxiRnqpoQSpy3s66VbL8v1Dcv1TCiaDzg==", + "license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)", + "dependencies": { + "@babel/polyfill": "^7.12.1", + "@babel/runtime-corejs2": "^7.14.8", + "@webex/common": "2.60.0", + "@webex/internal-plugin-calendar": "2.60.0", + "@webex/internal-plugin-device": "2.60.0", + "@webex/internal-plugin-presence": "2.60.0", + "@webex/internal-plugin-support": "2.60.0", + "@webex/plugin-attachment-actions": "2.60.0", + "@webex/plugin-authorization": "2.60.0", + "@webex/plugin-device-manager": "2.60.0", + "@webex/plugin-logger": "2.60.0", + "@webex/plugin-meetings": "2.60.0", + "@webex/plugin-memberships": "2.60.0", + "@webex/plugin-messages": "2.60.0", + "@webex/plugin-people": "2.60.0", + "@webex/plugin-rooms": "2.60.0", + "@webex/plugin-team-memberships": "2.60.0", + "@webex/plugin-teams": "2.60.0", + "@webex/plugin-webhooks": "2.60.0", + "@webex/storage-adapter-local-storage": "2.60.0", + "@webex/webex-core": "2.60.0", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/webex-node-bot-framework": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/webex-node-bot-framework/-/webex-node-bot-framework-2.5.1.tgz", + "integrity": "sha512-aJ2KZMRsm+HpQ6oGZSJee678KY/p8VpRh+rsy+RFMj9xPdL1I4OOZ/xWjGOcXgwIqyiXg6tUn0nYrUf83T4JoQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.3.4", + "eventemitter2": "^6.4.9", + "https-proxy-agent": "^5.0.1", + "lodash": "4.17.21", + "moment": "^2.29.4", + "mongodb": "^3.5.7", + "validator": "^13.7.0", + "webex": "2.60.0", + "when": "^3.7.8" + }, + "engines": { + "npm": ">=8.3.0" + } + }, + "node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/webrtc-adapter": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-7.7.1.tgz", + "integrity": "sha512-TbrbBmiQBL9n0/5bvDdORc6ZfRY/Z7JnEj+EYOD1ghseZdpJ+nF2yx14k3LgQKc7JZnG7HAcL+zHnY25So9d7A==", + "license": "BSD-3-Clause", + "dependencies": { + "rtcpeerconnection-shim": "^1.2.15", + "sdp": "^2.12.0" + }, + "engines": { + "node": ">=6.0.0", + "npm": ">=3.10.0" + } + }, + "node_modules/whatwg-fetch": { + "version": "3.6.20", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", + "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/whatwg-url-without-unicode": { + "version": "8.0.0-3", + "resolved": "https://registry.npmjs.org/whatwg-url-without-unicode/-/whatwg-url-without-unicode-8.0.0-3.tgz", + "integrity": "sha512-HoKuzZrUlgpz35YO27XgD28uh/WJH4B0+3ttFqRo//lmq+9T/mIOJ6kqmINI9HpUpz1imRC/nR/lxKpJiv0uig==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "buffer": "^5.4.3", + "punycode": "^2.1.1", + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/when": { + "version": "3.7.8", + "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", + "integrity": "sha512-5cZ7mecD3eYcMiCH4wtRPA5iFJZ50BJYDfckI5RRpQiktMiYTcn0ccLTZOvcbBume+1304fQztxeNzNS9Gvrnw==", + "license": "MIT" + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "license": "ISC", + "optional": true, + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wonka": { + "version": "6.3.5", + "resolved": "https://registry.npmjs.org/wonka/-/wonka-6.3.5.tgz", + "integrity": "sha512-SSil+ecw6B4/Dm7Pf2sAshKQ5hWFvfyGlfPbEd6A14dOH6VDjrmbY86u6nZvy9omGwwIPFR8V41+of1EezgoUw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/ws": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.19.0.tgz", + "integrity": "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==", + "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/xcode": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/xcode/-/xcode-3.0.1.tgz", + "integrity": "sha512-kCz5k7J7XbJtjABOvkc5lJmkiDh8VhjVCGNiqdKCscmVpdVUpEAyXv1xmCLkQJ5dsHqx3IPO4XW+NTDhU/fatA==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "simple-plist": "^1.1.0", + "uuid": "^7.0.3" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/xcode/node_modules/uuid": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz", + "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/xhr": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/xhr/-/xhr-2.6.0.tgz", + "integrity": "sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==", + "license": "MIT", + "dependencies": { + "global": "~4.4.0", + "is-function": "^1.0.1", + "parse-headers": "^2.0.0", + "xtend": "^4.0.0" + } + }, + "node_modules/xml2js": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.0.tgz", + "integrity": "sha512-eLTh0kA8uHceqesPqSE+VvO1CDDJWMwlQfB6LuN6T8w6MaDJ8Txm8P7s5cHD0miF0V+GGTZrDQfxPZQVsur33w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xml2js/node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/xstate": { + "version": "4.38.3", + "resolved": "https://registry.npmjs.org/xstate/-/xstate-4.38.3.tgz", + "integrity": "sha512-SH7nAaaPQx57dx6qvfcIgqKRXIh4L0A1iYEqim4s1u7c9VoCgzZc+63FY90AKU4ZzOC2cfJzTnpO4zK7fCUzzw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/xstate" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/yaml": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "optional": true, + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz", + "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==", + "license": "MIT", + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..488659d --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "servchan", + "version": "1.0.0", + "description": "Service Channel + Webex Bot", + "type": "module", + "main": "index.js", + "scripts": { + "dev": "node --watch index.js", + "start": "node index.js", + "lint": "echo \"No linter configured\"", + "test": "echo \"No tests configured\"", + "test:collab": "node scripts/smoke-collab-support.js" + }, + "dependencies": { + "async-mutex": "^0.5.0", + "axios": "^1.13.2", + "body-parser": "^2.2.2", + "crypto": "^1.0.1", + "csv-parser": "^3.2.0", + "dotenv": "^17.3.1", + "express": "^5.2.1", + "formdata-node": "^6.0.3", + "graphql-request": "^7.4.0", + "heic-convert": "^2.1.0", + "json2csv": "^6.0.0-alpha.2", + "node-cron": "^4.2.1", + "p-limit": "^7.3.0", + "sqlite3": "^5.1.7", + "webex-node-bot-framework": "^2.5.1" + } +} diff --git a/scripts/smoke-collab-support.js b/scripts/smoke-collab-support.js new file mode 100644 index 0000000..fde440a --- /dev/null +++ b/scripts/smoke-collab-support.js @@ -0,0 +1,153 @@ +#!/usr/bin/env node +/** + * Smoke-test CollabSupport HTTP endpoints used by ServChan. + * + * Usage: + * CS_API_BASE=https://bot.joesjavajoint.com/CollabSupport \ + * SMOKE_WO_ID=356369551 SMOKE_STORE_NUM=2254 \ + * node scripts/smoke-collab-support.js + */ + +import 'dotenv/config'; + +const base = (process.env.CS_API_BASE_INTERNAL || process.env.CS_API_BASE || '').replace(/\/+$/, ''); +const woId = process.env.SMOKE_WO_ID || '356369551'; +const storeNum = process.env.SMOKE_STORE_NUM || '2254'; +const timeoutMs = Number(process.env.SMOKE_TIMEOUT_MS) || 30_000; + +const USAGE_MARKERS = [ + '**Work Order Summary Usage:**', + '**Work Order History Usage:**', + 'Please provide a 2–4 digit store number.', +]; + +function looksLikeUsage(text) { + return USAGE_MARKERS.some((m) => text.includes(m)); +} + +async function fetchCheck(label, url, { expectJson = false, validate, expectStatus } = {}) { + const started = Date.now(); + const controller = new AbortController(); + const timer = setTimeout(() => controller.abort(), timeoutMs); + try { + const res = await fetch(url, { + signal: controller.signal, + headers: expectJson ? { Accept: 'application/json' } : undefined, + }); + const elapsed = Date.now() - started; + const body = expectJson ? await res.json() : await res.text(); + + const issues = []; + if (expectStatus !== undefined) { + if (res.status !== expectStatus) issues.push(`expected HTTP ${expectStatus}, got ${res.status}`); + } else if (!res.ok) { + issues.push(`HTTP ${res.status}`); + } + if (expectStatus === undefined && !expectJson && typeof body === 'string' && body.trim().length === 0) { + issues.push('empty markdown body'); + } + if (expectStatus === undefined && !expectJson && typeof body === 'string' && looksLikeUsage(body)) { + issues.push('looks like usage/help text, not data'); + } + if (validate) { + const v = validate(body, res); + if (v) issues.push(v); + } + + const pass = issues.length === 0; + console.log(`${pass ? 'PASS' : 'FAIL'} ${label}`); + console.log(` ${url}`); + console.log(` → ${res.status} (${elapsed}ms)${issues.length ? ` — ${issues.join('; ')}` : ''}`); + return pass; + } catch (err) { + const elapsed = Date.now() - started; + const msg = err.name === 'AbortError' ? 'timeout' : err.message; + console.log(`FAIL ${label}`); + console.log(` ${url}`); + console.log(` → error (${elapsed}ms): ${msg}`); + return false; + } finally { + clearTimeout(timer); + } +} + +async function main() { + if (!base) { + console.error('CS_API_BASE is required (e.g. https://bot.joesjavajoint.com/CollabSupport)'); + process.exit(1); + } + + console.log(`CollabSupport smoke test → ${base}`); + console.log(`WO=${woId} store=${storeNum}\n`); + + const results = []; + + results.push(await fetchCheck( + 'wosummary', + `${base}/wosummary?woId=${encodeURIComponent(woId)}`, + { + validate: (body) => body.includes('Work Order Summary') ? null : 'missing summary header', + } + )); + + results.push(await fetchCheck( + 'wohistory (summary)', + `${base}/wohistory?storeNum=${encodeURIComponent(storeNum)}`, + { + validate: (body) => body.includes('Work Order History') ? null : 'missing history header', + } + )); + + results.push(await fetchCheck( + 'wohistory (detailed)', + `${base}/wohistory?storeNum=${encodeURIComponent(storeNum)}&mode=detailed`, + { + validate: (body) => body.includes('Work Order History') ? null : 'missing history header', + } + )); + + results.push(await fetchCheck( + 'avStatus (summary)', + `${base}/avStatus?storeNum=${encodeURIComponent(storeNum)}`, + { + validate: (body) => (body.length > 50 ? null : 'response too short'), + } + )); + + results.push(await fetchCheck( + 'avStatus (detailed)', + `${base}/avStatus?storeNum=${encodeURIComponent(storeNum)}&mode=detailed`, + { + validate: (body) => (body.length > 50 ? null : 'response too short'), + } + )); + + results.push(await fetchCheck( + 'woAttachments (JSON)', + `${base}/woAttachments?woId=${encodeURIComponent(woId)}`, + { + expectJson: true, + validate: (data) => { + if (typeof data.success !== 'boolean') return 'missing success field'; + if (typeof data.count !== 'number') return 'missing count field'; + if (!Array.isArray(data.attachments)) return 'missing attachments array'; + return null; + }, + } + )); + + // Validation endpoint — should 400 + results.push(await fetchCheck( + 'wosummary invalid (expect 400)', + `${base}/wosummary?woId=abc`, + { expectStatus: 400 } + )); + + const passed = results.filter(Boolean).length; + const total = results.length; + console.log(`\n${passed}/${total} checks passed`); + + process.exit(passed === total ? 0 : 1); +} + +main(); diff --git a/src/bot/index.js b/src/bot/index.js new file mode 100644 index 0000000..d6052eb --- /dev/null +++ b/src/bot/index.js @@ -0,0 +1,155 @@ +/** + * src/bot/index.js + * + * Webex bot initialization and command registration. + * + * Extracted during the 2026-05-28 refactor to make index.js a thin bootstrap. + */ + +import framework from 'webex-node-bot-framework'; +import { logger } from '../utils/logger.js'; + +import { handleHelp } from '../commands/help.js'; +import { handleUnknown } from '../commands/unknownCommand.js'; +import { handleWoSummary } from '../commands/woSummary.js'; +import { handleWoAttachments } from '../commands/woAttachments.js'; +import { handleWoHistory } from '../commands/woHistory.js'; +import { handleAvStatus } from '../commands/avStatus.js'; +import { handleWoApprove } from '../commands/woApprove.js'; +import approvalService from '../services/approvalService.js'; +import { installMercuryGuard } from './mercuryGuard.js'; +import db from '../db/mappings.js'; + +/** + * Initialize and start the Webex bot framework. + * @param {object} options + * @param {object} options.webexConfig - The webex auth section from config + * @returns {object} The Framework instance + */ +export function initializeBot({ webexConfig }) { + if (!webexConfig?.token) { + throw new Error('webexConfig.token is required to initialize the bot'); + } + + const Framework = new framework({ + ...webexConfig, + spawn: false, + mentionOnly: true, + removeME: false, + suppressDirectSpaceSpawnFailures: true + }); + + Framework.start(); + + // Prevent Mercury websocket INVALID_STATE_ERROR from crashing Node (see + // src/bot/mercuryGuard.js for details). Must be installed before events flow. + installMercuryGuard(Framework); + + Framework.on("initialized", () => { + logger('bot', "Webex Framework is all fired up! [Press CTRL-C to quit]"); + }); + + Framework.on('spawn', (bot, id) => { + // Optional detailed logging + // logger('bot', `Bot spawned in room: ${bot.room?.title || id}`); + }); + + Framework.on('error', (err) => { + if (err.message && !err.message.includes('Could not find a room')) { + logger('bot:error', err.message, 'error'); + } + }); + + // NEW: Handle Adaptive Card submissions (e.g. proposal approvals) + Framework.on('attachmentAction', async (bot, trigger) => { + try { + await approvalService.handleApprovalSubmit(bot, trigger, { db }); + } catch (e) { + logger('bot:approvalAction', `Handler error: ${e.message}`, 'error'); + try { + await bot.say(`⚠️ Approval action failed: ${e.message}. Please try again or approve in ServiceChannel.`); + } catch (sayErr) { + logger('bot:approvalAction', `Could not reply in room (Mercury may be disconnected): ${sayErr.message}`, 'warn'); + } + } + }); + + // Command registration - single .hears handler + Framework.hears(/.*/, async (bot, trigger) => { + try { + let rawText = trigger.text?.trim() || ''; + + // Strip common bot mention patterns + const botMentionPatterns = [ + /^ServiceChannel\s+/i, + /^@ServiceChannel\s+/i, + /^ServiceChannel@webex\.bot\s+/i, + ]; + + for (const pattern of botMentionPatterns) { + rawText = rawText.replace(pattern, '').trim(); + } + + const parts = rawText.split(/\s+/); + const command = parts[0]?.toLowerCase().replace(/^\//, '') || ''; + const args = parts.slice(1); + + // Attach args for command handlers that expect them + trigger.args = args; + + switch (command) { + case 'test': + await bot.say(`[TEST] Echo: "${rawText}"`); + break; + case 'help': + await handleHelp(bot, trigger); + break; + case 'avstatus': + await handleAvStatus(bot, trigger); + break; + case 'wosummary': + await handleWoSummary(bot, trigger); + break; + case 'woattachments': + await handleWoAttachments(bot, trigger); + break; + case 'wohistory': + await handleWoHistory(bot, trigger); + break; + case 'woapprove': + case 'approve': + case 'requestapproval': + await handleWoApprove(bot, trigger); + break; + default: + await handleUnknown(bot, trigger); + break; + } + } catch (e) { + logger('bot:command', `Command handler error: ${e.message}`, 'error'); + try { + await bot.say(`⚠️ Command failed: ${e.message}`); + } catch (_) { + logger('bot:command', 'Could not send error reply (Mercury may be disconnected)', 'warn'); + } + } + }, null, 1); + + return Framework; +} + +/** + * Graceful shutdown helper for the bot framework. + */ +export async function stopBot(Framework) { + if (Framework && typeof Framework.stop === 'function') { + try { + await Framework.stop(); + logger('bot', 'Framework stopped cleanly'); + } catch (err) { + logger('bot:error', `Error stopping Framework: ${err.message}`, 'error'); + } + } +} + +export default { initializeBot, stopBot }; \ No newline at end of file diff --git a/src/bot/mercuryGuard.js b/src/bot/mercuryGuard.js new file mode 100644 index 0000000..1c78c0f --- /dev/null +++ b/src/bot/mercuryGuard.js @@ -0,0 +1,170 @@ +/** + * src/bot/mercuryGuard.js + * + * Prevents the Webex Mercury WebSocket plugin from crashing the Node process. + * + * Root cause (confirmed from production stack trace 2026-08-04): + * @webex/internal-plugin-mercury socket-base.js onmessage → _acknowledge → send() + * rejects with Error('INVALID_STATE_ERROR') when readyState !== OPEN (1). + * That promise is never caught inside the plugin, so it becomes an + * unhandledRejection / uncaughtException and terminates Node. + * + * This module: + * 1. Catches Mercury INVALID_STATE_ERROR at the process level (no crash). + * 2. Debounces a Framework.restart() to rebuild the websocket listeners. + * 3. Hooks mercury offline/online events for proactive recovery. + * 4. Periodically logs connection health. + */ + +import { logger } from '../utils/logger.js'; + +let guardInstalled = false; +let restartInFlight = false; +let restartTimer = null; + +/** True when err is the Mercury socket ack-on-closed-socket failure. */ +export function isMercuryInvalidStateError(err) { + if (!err) return false; + const msg = String(err.message || err); + if (msg !== 'INVALID_STATE_ERROR') return false; + const stack = String(err.stack || ''); + return ( + stack.includes('mercury') || + stack.includes('socket-base') || + stack.includes('internal-plugin-mercury') || + stack.includes('plugin-mercury') + ); +} + +/** Read mercury connection snapshot without throwing. */ +export function getMercuryState(Framework) { + try { + const mercury = Framework?.webex?.internal?.mercury; + const socket = mercury?.socket; + return { + connected: Boolean(mercury?.connected), + connecting: Boolean(mercury?.connecting), + readyState: socket?.readyState ?? null, + }; + } catch { + return null; + } +} + +function scheduleFrameworkRestart(Framework, reason) { + if (restartTimer) clearTimeout(restartTimer); + restartTimer = setTimeout(async () => { + if (restartInFlight) return; + restartInFlight = true; + try { + logger('mercuryGuard', `Restarting Webex Framework (${reason})`, 'warn'); + if (Framework && typeof Framework.restart === 'function') { + await Framework.restart(); + logger('mercuryGuard', 'Framework restart completed'); + } else { + logger('mercuryGuard', 'Framework.restart() unavailable — skipping', 'warn'); + } + } catch (err) { + logger('mercuryGuard', `Framework restart failed: ${err.message}`, 'error'); + } finally { + restartInFlight = false; + } + }, 2000); +} + +function attachMercuryListeners(Framework) { + try { + const mercury = Framework?.webex?.internal?.mercury; + if (!mercury?.on) { + logger('mercuryGuard', 'Mercury plugin not available for event hooks', 'warn'); + return; + } + + mercury.on('offline', (event) => { + logger('mercuryGuard', `Mercury offline (${event?.type || 'unknown'})`, 'warn'); + scheduleFrameworkRestart(Framework, `mercury offline (${event?.type || 'unknown'})`); + }); + + mercury.on('online', () => { + logger('mercuryGuard', 'Mercury online'); + }); + } catch (err) { + logger('mercuryGuard', `Could not attach mercury listeners: ${err.message}`, 'warn'); + } +} + +function startHealthPoll(Framework) { + const intervalMs = Number(process.env.MERCURY_HEALTH_POLL_MS) || 5 * 60 * 1000; + setInterval(() => { + const state = getMercuryState(Framework); + if (!state) return; + // readyState: 0=CONNECTING, 1=OPEN, 2=CLOSING, 3=CLOSED + if (!state.connected && !state.connecting && state.readyState !== 1 && state.readyState !== 0) { + logger( + 'mercuryGuard', + `Mercury appears disconnected (connected=${state.connected}, readyState=${state.readyState})`, + 'warn' + ); + scheduleFrameworkRestart(Framework, `health poll (readyState=${state.readyState})`); + } + }, intervalMs).unref?.(); +} + +/** + * Install process-level guards and mercury lifecycle hooks. + * Safe to call once at boot; subsequent calls are ignored. + * + * @param {object} Framework - webex-node-bot-framework instance + */ +export function installMercuryGuard(Framework) { + if (guardInstalled) return; + guardInstalled = true; + + process.on('unhandledRejection', (reason) => { + if (!isMercuryInvalidStateError(reason)) return; + const state = getMercuryState(Framework); + logger( + 'mercuryGuard', + `Intercepted unhandled Mercury INVALID_STATE_ERROR (readyState=${state?.readyState ?? '?'}) — process kept alive`, + 'warn' + ); + scheduleFrameworkRestart(Framework, 'INVALID_STATE_ERROR (unhandledRejection)'); + }); + + process.on('uncaughtException', (err) => { + if (isMercuryInvalidStateError(err)) { + const state = getMercuryState(Framework); + logger( + 'mercuryGuard', + `Intercepted uncaught Mercury INVALID_STATE_ERROR (readyState=${state?.readyState ?? '?'}) — process kept alive`, + 'warn' + ); + scheduleFrameworkRestart(Framework, 'INVALID_STATE_ERROR (uncaughtException)'); + return; + } + logger('process', `Fatal uncaught exception: ${err.message}`, 'error'); + process.exit(1); + }); + + Framework.on('initialized', () => { + attachMercuryListeners(Framework); + startHealthPoll(Framework); + logger('mercuryGuard', 'Mercury crash guard installed'); + }); + + // Optional dev/test hook: set SIMULATE_MERCURY_CRASH=1 to verify the guard + // without waiting for a real websocket blip. + if (process.env.SIMULATE_MERCURY_CRASH === '1') { + setTimeout(() => { + const fakeErr = new Error('INVALID_STATE_ERROR'); + fakeErr.stack = + 'Error: INVALID_STATE_ERROR\n' + + ' at /app/node_modules/@webex/internal-plugin-mercury/dist/socket/socket-base.js:321:25\n' + + ' at Socket.send (/app/node_modules/@webex/internal-plugin-mercury/dist/socket/socket-base.js:319:14)\n' + + ' at Socket._acknowledge (/app/node_modules/@webex/internal-plugin-mercury/dist/socket/socket-base.js:346:19)'; + Promise.reject(fakeErr); + }, 5000).unref?.(); + } +} + +export default { installMercuryGuard, isMercuryInvalidStateError, getMercuryState }; diff --git a/src/commands/avStatus.js b/src/commands/avStatus.js new file mode 100644 index 0000000..b6000d0 --- /dev/null +++ b/src/commands/avStatus.js @@ -0,0 +1,52 @@ +// src/commands/avStatus.js +import botClient from '../integrations/webex/botClient.js'; +import { logger } from '../utils/logger.js'; +import { + assertCollabSupportConfigured, + fetchCollabMarkdown, +} from '../integrations/collabSupport/client.js'; + +export async function handleAvStatus(bot, trigger) { + logger('av:status', 'HANDLER ENTERED'); + + const args = trigger.args || []; + const mode = args[1]?.toLowerCase() === 'detailed' ? 'detailed' : 'summary'; + + let storeNum = (args[0] || '').trim(); + if (!storeNum && trigger.message?.roomType === 'group') { + storeNum = await botClient.getStoreByRoom(trigger.message.roomId); + } + + if (!storeNum || !/^\d{2,4}$/.test(storeNum)) { + await bot.say('Please provide a 2–4 digit store number after `/avStatus`\n(e.g. `/avStatus 2477 [detailed]`).'); + return; + } + + try { + assertCollabSupportConfigured(); + } catch { + logger('av:status', 'CS_API_BASE not configured', 'warn'); + await bot.say('The AV status service is not configured on this bot (missing `CS_API_BASE`).'); + return; + } + + const params = { storeNum }; + if (mode === 'detailed') params.mode = 'detailed'; + + try { + const result = await fetchCollabMarkdown('/avStatus', params, { logTag: 'av:status' }); + + if (result.status === 400 || result.isUsageResponse) { + await bot.say('Invalid store number format. Please use 2-4 digits.'); + return; + } + if (!result.ok) { + throw new Error(`HTTP ${result.status}`); + } + + await bot.say({ markdown: result.markdown }); + } catch (err) { + logger('av:status', `Failed for ${storeNum}: ${err.message}`, 'error'); + await bot.say(`Sorry, I couldn't fetch device status for store **${storeNum}** right now. (${err.message})`); + } +} diff --git a/src/commands/help.js b/src/commands/help.js new file mode 100644 index 0000000..ba52fee --- /dev/null +++ b/src/commands/help.js @@ -0,0 +1,24 @@ +// src/commands/help.js +export async function handleHelp(bot, trigger) { + const isGroup = trigger.message.roomType === 'group'; + + let text = `### ServiceChannel Bot Help\n\n`; + + if (isGroup) { + text += `- **/woSummary** — status of the workorder linked to this space\n`; + text += `- **/woHistory** - History of AV issues.\n`; + text += `- **/woAttachments** — download attachments for the workorder in this space\n`; + text += `- **/avStatus** — AV device status for the store linked to this space\n`; + text += `- **/woApprove** — (re)post proposal approval card for current WO (when WAITING FOR APPROVAL)\n`; + } else { + text += `- **/woSummary ** — status of any work order\n`; + text += `- **/woHistory ** — History of AV issues.\n`; + text += `- **/woAttachments ** — download attachments for any work order\n`; + text += `- **/avStatus ** — AV device status for any store\n`; + text += `- **/woApprove ** — post proposal approval card (manual)\n`; + } + + text += `\nType **/help** again in a 1:1 or group space for context-specific commands.`; + + await bot.say('markdown', text); +} \ No newline at end of file diff --git a/src/commands/index.js b/src/commands/index.js new file mode 100644 index 0000000..518cfcb --- /dev/null +++ b/src/commands/index.js @@ -0,0 +1,31 @@ +// src/commands/index.js – FIXED: no hard-coded Framework + +import { handleAvStatus } from './avStatus.js'; +import { handleWoStatus } from './woStatus.js'; +import { handleAttachments } from './attachments.js'; +import { handleHelp } from './help.js'; +import { handleUnknown } from './unknownCommand.js'; + +const PRIORITY = { + DEVICE_STATUS: 3, + WO_STATUS: 2, + ATTACHMENTS: 3, + HELP: 4, + UNKNOWN: 99999, +}; + +export function registerAllCommands(framework) { + // Less strict start anchor + allow optional space after command + framework.hears(/woStatus/i, handleWoStatus, "**/woStatus** [WO#] - Work order status", 2); + + //framework.hears(/^\s*\/attachments\b/i, handleAttachments, "**/attachments** [WO#] - Attachments", 3); + + //framework.hears(/^\s*\/help\b/i, handleHelp, "**/help** - Show commands", 4); + + // Temporarily disable deviceStatus until we confirm others work + //framework.hears(/^\s*\/deviceStatus\b/i, handleDeviceStatus, "**/deviceStatus** - Device status", 3); + + framework.hears(/.*/gim, handleUnknown, null, 99999); + + console.log("Commands registered with relaxed start regex."); +} \ No newline at end of file diff --git a/src/commands/unknownCommand.js b/src/commands/unknownCommand.js new file mode 100644 index 0000000..8bd1127 --- /dev/null +++ b/src/commands/unknownCommand.js @@ -0,0 +1,8 @@ +// In src/commands/unknownCommand.js +import { handleHelp } from "./help.js"; +export async function handleUnknown(bot, trigger) { + console.log('[COMMAND] handleUnknown triggered for text:', trigger.message.text); + await bot.say({ markdown: `Sorry, I don't understand **${trigger.message.text}**.`}); + handleHelp(bot, trigger) + +} \ No newline at end of file diff --git a/src/commands/woApprove.js b/src/commands/woApprove.js new file mode 100644 index 0000000..c2b1c79 --- /dev/null +++ b/src/commands/woApprove.js @@ -0,0 +1,50 @@ +// src/commands/woApprove.js +// Manual trigger for posting the proposal approval package (markdown + card) in the current WO room. +// Useful for testing, re-sending, or if webhook was missed. + +import botClient from '../integrations/webex/botClient.js'; +import approvalService from '../services/approvalService.js'; +import db from '../db/mappings.js'; +import { getWorkOrderForNte } from '../integrations/serviceChannel/client.js'; + +export async function handleWoApprove(bot, trigger) { + console.log('[WO-APPROVE] HANDLER ENTERED'); + + let woId = null; + + if (trigger.message && trigger.message.roomType === 'group') { + woId = await botClient.getWOByRoom(trigger.message.roomId); + } + + if (!woId && trigger.args && trigger.args[0]) { + woId = String(trigger.args[0]).replace(/\D/g, ''); + } + + if (!woId) { + await bot.say('Could not determine Work Order from this space. Use `/woApprove 123456` or ensure you are in a ServChan WO room.'); + return; + } + + const roomId = trigger.message ? trigger.message.roomId : null; + if (!roomId) { + await bot.say('No room context for card post.'); + return; + } + + try { + await bot.say(`Fetching proposals and building approval package for WO-${woId}...`); + + const woDetails = await getWorkOrderForNte(woId); + if (!woDetails) { + await bot.say(`Could not load WO-${woId} from ServiceChannel.`); + return; + } + + await approvalService.postApprovalPackage(botClient, roomId, woDetails, null, { skipDedup: true, db }); + + await bot.say('Approval package posted (itemized summary + card). Use the card to approve.'); + } catch (err) { + console.error('[WO-APPROVE] Error:', err); + await bot.say(`Error preparing approval package for WO-${woId}: ${err.message}`); + } +} diff --git a/src/commands/woAttachments.js b/src/commands/woAttachments.js new file mode 100644 index 0000000..0ba14d4 --- /dev/null +++ b/src/commands/woAttachments.js @@ -0,0 +1,76 @@ +// src/commands/woAttachments.js +import botClient from '../integrations/webex/botClient.js'; +import webexService from '../services/webexService.js'; +import db from '../db/mappings.js'; +import { logger } from '../utils/logger.js'; +import { postWorkOrderAttachments } from '../services/attachmentService.js'; + +function lookupWorkOrderIdByRoom(roomId) { + return new Promise((resolve, reject) => { + db.get( + 'SELECT workOrderId FROM mappings WHERE roomId = ?', + [roomId], + (err, row) => (err ? reject(err) : resolve(row?.workOrderId ?? null)) + ); + }); +} + +export async function handleWoAttachments(bot, trigger) { + logger('wo:attachments', 'HANDLER ENTERED'); + + const args = trigger.args || []; + const roomId = trigger.message?.roomId; + + let woNumber = (args[0] || '').trim(); + if (!woNumber && trigger.message?.roomType === 'group') { + woNumber = await botClient.getWOByRoom(roomId); + } + + if (!woNumber) { + await bot.say('Please provide a valid work order number (e.g. `/woAttachments 356369551`).'); + return; + } + + if (!roomId) { + await bot.say('Could not determine the current Webex room.'); + return; + } + + let workOrderId = woNumber; + try { + const mappedId = await lookupWorkOrderIdByRoom(roomId); + if (mappedId) workOrderId = mappedId; + } catch (err) { + logger('wo:attachments', `Room mapping lookup failed: ${err.message}`, 'warn'); + } + + try { + await bot.say({ markdown: `🔍 Looking up attachments for work order **${woNumber}**...` }); + + const { posted, skipped, links = 0 } = await postWorkOrderAttachments({ + db, + webex: webexService, + roomId, + workOrderId, + woNumber, + skipDedup: true, + }); + + if (posted === 0 && skipped === 0) { + await bot.say({ markdown: `No attachments found for WO **${woNumber}**.` }); + return; + } + + const fileCount = posted - links; + let summary = `✅ Finished for WO **${woNumber}**: **${fileCount}** file(s) uploaded`; + if (links > 0) { + summary += `, **${links}** link-only (HEIC conversion unavailable — rebuild container with \`docker compose down -v && docker compose up --build\`)`; + } + if (skipped > 0) summary += `, **${skipped}** skipped`; + summary += '.'; + await bot.say({ markdown: summary }); + } catch (err) { + logger('wo:attachments', `Error for WO ${woNumber}: ${err.message}`, 'error'); + await bot.say(`❌ Error fetching attachments for WO **${woNumber}**: ${err.message}`); + } +} diff --git a/src/commands/woHistory.js b/src/commands/woHistory.js new file mode 100644 index 0000000..58bd657 --- /dev/null +++ b/src/commands/woHistory.js @@ -0,0 +1,52 @@ +// src/commands/woHistory.js +import botClient from '../integrations/webex/botClient.js'; +import { logger } from '../utils/logger.js'; +import { + assertCollabSupportConfigured, + fetchCollabMarkdown, +} from '../integrations/collabSupport/client.js'; + +export async function handleWoHistory(bot, trigger) { + logger('wo:history', 'HANDLER ENTERED'); + + const args = trigger.args || []; + const mode = args[1]?.toLowerCase() === 'detailed' ? 'detailed' : 'summary'; + + let storeNum = (args[0] || '').trim(); + if (!storeNum && trigger.message?.roomType === 'group') { + storeNum = await botClient.getStoreByRoom(trigger.message.roomId); + } + + if (!storeNum || !/^\d{2,4}$/.test(storeNum)) { + await bot.say('Please provide a 2–4 digit store number after `/woHistory`\n(e.g. `/woHistory 2477 [detailed]`).'); + return; + } + + try { + assertCollabSupportConfigured(); + } catch { + logger('wo:history', 'CS_API_BASE not configured', 'warn'); + await bot.say('The work-order history service is not configured on this bot (missing `CS_API_BASE`).'); + return; + } + + const params = { storeNum }; + if (mode === 'detailed') params.mode = 'detailed'; + + try { + const result = await fetchCollabMarkdown('/wohistory', params, { logTag: 'wo:history' }); + + if (result.status === 400 || result.isUsageResponse) { + await bot.say('Invalid store number format. Please use 2-4 digits.'); + return; + } + if (!result.ok) { + throw new Error(`HTTP ${result.status}`); + } + + await bot.say({ markdown: result.markdown }); + } catch (err) { + logger('wo:history', `Failed for ${storeNum}: ${err.message}`, 'error'); + await bot.say(`Sorry, I couldn't fetch WO history for store **${storeNum}** right now. (${err.message})`); + } +} diff --git a/src/commands/woSummary.js b/src/commands/woSummary.js new file mode 100644 index 0000000..36a19d1 --- /dev/null +++ b/src/commands/woSummary.js @@ -0,0 +1,48 @@ +// src/commands/woSummary.js +import botClient from '../integrations/webex/botClient.js'; +import { logger } from '../utils/logger.js'; +import { + assertCollabSupportConfigured, + fetchCollabMarkdown, +} from '../integrations/collabSupport/client.js'; + +export async function handleWoSummary(bot, trigger) { + logger('wo:summary', 'HANDLER ENTERED'); + + const args = trigger.args || []; + + let woId = (args[0] || '').trim(); + if (!woId && trigger.message?.roomType === 'group') { + woId = await botClient.getWOByRoom(trigger.message.roomId); + } + + if (!woId) { + await bot.say('Please provide a valid work order number (e.g. `/woSummary 356369551`).'); + return; + } + + try { + assertCollabSupportConfigured(); + } catch { + logger('wo:summary', 'CS_API_BASE not configured', 'warn'); + await bot.say('The work-order summary service is not configured on this bot (missing `CS_API_BASE`).'); + return; + } + + try { + const result = await fetchCollabMarkdown('/wosummary', { woId }, { logTag: 'wo:summary' }); + + if (result.status === 400 || result.isUsageResponse) { + await bot.say(`Invalid Work Order ID: **${woId}**.`); + return; + } + if (!result.ok) { + throw new Error(`HTTP ${result.status}`); + } + + await bot.say({ markdown: result.markdown }); + } catch (err) { + logger('wo:summary', `Failed for ${woId}: ${err.message}`, 'error'); + await bot.say(`Sorry, I couldn't fetch the summary for WO **${woId}** right now. (${err.message})`); + } +} diff --git a/src/config/index.js b/src/config/index.js new file mode 100644 index 0000000..1698b25 --- /dev/null +++ b/src/config/index.js @@ -0,0 +1,28 @@ +// src/config/index.js +// +// This module should ONLY load NON-SENSITIVE configuration. +// All secrets must come from environment variables (see src/config/secrets.js). +// +// Do NOT put real credentials in any file under /config. + +import fs from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +// This file should contain only non-secret settings (server name, default port, etc.) +const configPath = path.join(__dirname, '../../config/config.json'); + +let configData; +try { + const raw = fs.readFileSync(configPath, 'utf8'); + configData = JSON.parse(raw); +} catch (err) { + console.error(`Failed to load config from ${configPath}:`, err.message); + // Non-secret config is optional — continue with empty object + configData = {}; +} + +export default configData; \ No newline at end of file diff --git a/src/config/secrets.js b/src/config/secrets.js new file mode 100644 index 0000000..3a120a7 --- /dev/null +++ b/src/config/secrets.js @@ -0,0 +1,72 @@ +/** + * src/config/secrets.js + * + * Centralized loader for all sensitive credentials. + * + * Philosophy: + * - All secrets come from environment variables only. + * - config.json must never contain real secrets. + * - Only WEBEX_BOT_TOKEN is strictly required at startup (core bot functionality). + * - Other services (ServiceChannel, xAI, etc.) are optional. Features that need + * them will fail with a clear error when actually used. + */ + +function requireEnv(name) { + const value = process.env[name]; + if (!value) { + throw new Error(`Missing required environment variable: ${name}`); + } + return value; +} + +function optionalEnv(name) { + return process.env[name] || null; +} + +export function loadSecrets() { + return { + // Core requirement — the bot cannot function without this + webex: { + token: requireEnv('WEBEX_BOT_TOKEN'), + baseUrl: optionalEnv('WEBEX_BASE_URL') || 'https://webexapis.com/v1', + }, + + // ServiceChannel credentials — required only when ServiceChannel features are used + serviceChannel: { + clientId: optionalEnv('SC_CLIENT_ID'), + clientSecret: optionalEnv('SC_CLIENT_SECRET'), + username: optionalEnv('SC_USERNAME'), + password: optionalEnv('SC_PASSWORD'), + baseUrl: optionalEnv('SC_BASE_URL') || 'https://api.servicechannel.com/v3', + oauthUrl: optionalEnv('SC_OAUTH_URL') || 'https://login.servicechannel.com/oauth/token', + }, + + // xAI — required only when summarization features are used + xai: { + token: optionalEnv('XAI_TOKEN'), + model: optionalEnv('XAI_MODEL') || 'grok-4-1-fast-reasoning', + }, + + // Secondary integrations — all optional + red: { + clientId: optionalEnv('RED_CLIENT_ID'), + apiKey: optionalEnv('RED_API_KEY'), + companyIDs: optionalEnv('RED_COMPANY_IDS') ? optionalEnv('RED_COMPANY_IDS').split(',') : [], + }, + + meraki: { + apiKey: optionalEnv('MERAKI_API_KEY'), + orgId: optionalEnv('MERAKI_ORG_ID'), + }, + + atlas: { + authKey: optionalEnv('ATLAS_AUTH_KEY'), + }, + + optisign: { + apiKey: optionalEnv('OPTISIGN_API_KEY'), + }, + }; +} + +export default loadSecrets; \ No newline at end of file diff --git a/src/db/mappings.js b/src/db/mappings.js new file mode 100644 index 0000000..532e086 --- /dev/null +++ b/src/db/mappings.js @@ -0,0 +1,34 @@ +// src/db/mappings.js +// +// Fallback SQLite handle used when a caller doesn't inject its own connection. +// +// SAFETY NOTE (Production Constraint - 2026-05-28): +// The live production database file must never be moved or renamed. The +// canonical path is resolved by `getDbPath()` in ./path.js; both this module +// and the main entrypoint call that helper so they always agree. +// +// The primary bot process (index.js) opens the DB once and injects it into +// every service that needs it. This module exists so utilities that can be +// invoked outside the main process (or in isolation, e.g. via a script) still +// have a working handle. +// +// The mappings table itself is created by the main entrypoint at startup — +// we intentionally do NOT run CREATE TABLE here anymore, to avoid schema +// drift (an earlier version of this file declared a `storeNumber` column that +// the production DB never had, which caused inserts to fail silently). + +import sqlite3 from 'sqlite3'; +import { logger } from '../utils/logger.js'; +import { getDbPath } from './path.js'; + +const resolvedDbPath = getDbPath(); + +const db = new sqlite3.Database(resolvedDbPath, (err) => { + if (err) { + logger('db:mappings', `Failed to open SQLite DB at ${resolvedDbPath}: ${err.message}`, 'error'); + } else { + logger('db:mappings', `SQLite DB connected/opened at ${resolvedDbPath}`); + } +}); + +export default db; diff --git a/src/db/path.js b/src/db/path.js new file mode 100644 index 0000000..8723bbf --- /dev/null +++ b/src/db/path.js @@ -0,0 +1,47 @@ +/** + * src/db/path.js + * + * Centralized, safe resolution of the SQLite database file path. + * + * CRITICAL PRODUCTION CONSTRAINT (as of 2026-05-28 refactor): + * The database file used by the live production ServChan bot must never be + * moved, renamed, or have a new file created in a different location. + * + * This module exists to make every part of the codebase use the exact same + * logic when resolving the DB path: + * 1. Respect process.env.DB_PATH if set (this is how production configures it) + * 2. Fall back to the same default the original production index.js used + * + * DO NOT change the fallback path in this file without very careful coordination. + */ + +import path from 'path'; + +// SINGLE SOURCE OF TRUTH for the DB fallback path. Do not change without +// migrating any environment that relies on the fallback. Every module that +// resolves a DB path should call getDbPath() rather than hard-coding this. +export const DEFAULT_DB_PATH = './data/webex_sc_mappings.db'; + +/** + * Returns the SQLite database file path that should be used. + * + * Order of precedence: + * 1. process.env.DB_PATH (how production configures it) + * 2. DEFAULT_DB_PATH (matches what .env.example documents) + */ +export function getDbPath() { + if (process.env.DB_PATH) return process.env.DB_PATH; + return DEFAULT_DB_PATH; +} + +/** + * Returns the directory that should contain the database file. + */ +export function getDbDirectory() { + return path.dirname(getDbPath()); +} + +export default { + getDbPath, + getDbDirectory, +}; \ No newline at end of file diff --git a/src/integrations/collabSupport/client.js b/src/integrations/collabSupport/client.js new file mode 100644 index 0000000..a13ea29 --- /dev/null +++ b/src/integrations/collabSupport/client.js @@ -0,0 +1,146 @@ +/** + * src/integrations/collabSupport/client.js + * + * Shared HTTP client for CollabSupport (collabFinder) read endpoints. + * Used by /woSummary, /woHistory, /avStatus, and /woAttachments. + */ + +import { logger } from '../../utils/logger.js'; + +const DEFAULT_TIMEOUT_MS = 60_000; + +/** Usage-markdown prefixes returned by collabFinder before HTTP 400 alignment. */ +const USAGE_MARKERS = [ + '**Work Order Summary Usage:**', + '**Work Order History Usage:**', + 'Please provide a 2–4 digit store number.', +]; + +export function getCollabSupportBase() { + // CS_API_BASE_INTERNAL is for Docker: reach collabFinder on the compose + // network (http://collabfinder:1800) instead of the public URL, which often + // fails from inside a container (hairpin NAT / DNS to the host's public IP). + const raw = process.env.CS_API_BASE_INTERNAL || process.env.CS_API_BASE; + if (!raw) return null; + return raw.replace(/\/+$/, ''); +} + +function buildUrl(path, params = {}) { + const base = getCollabSupportBase(); + if (!base) { + throw new Error('CS_API_BASE is not configured'); + } + const normalizedPath = path.startsWith('/') ? path : `/${path}`; + const url = new URL(`${base}${normalizedPath}`); + for (const [key, value] of Object.entries(params)) { + if (value !== undefined && value !== null && value !== '') { + url.searchParams.set(key, String(value)); + } + } + return url; +} + +function formatFetchError(err) { + if (err.name === 'AbortError') return 'Request timed out'; + const cause = err.cause; + const causeMsg = cause && (cause.message || cause.code); + if (causeMsg && causeMsg !== err.message) { + return `${err.message} (${causeMsg})`; + } + return err.message || String(err); +} + +async function fetchWithTimeout(url, options = {}, timeoutMs = DEFAULT_TIMEOUT_MS) { + const controller = new AbortController(); + const timer = setTimeout(() => controller.abort(), timeoutMs); + try { + return await fetch(url, { ...options, signal: controller.signal }); + } finally { + clearTimeout(timer); + } +} + +function looksLikeUsageMarkdown(text) { + if (!text || typeof text !== 'string') return false; + return USAGE_MARKERS.some((marker) => text.includes(marker)); +} + +/** + * GET a markdown endpoint from CollabSupport. + * @returns {{ ok: boolean, status: number, markdown: string, elapsedMs: number, isUsageResponse?: boolean }} + */ +export async function fetchCollabMarkdown(path, params = {}, { logTag = 'collabSupport', timeoutMs } = {}) { + const url = buildUrl(path, params); + const started = Date.now(); + logger(logTag, `GET ${url}`); + + let response; + try { + response = await fetchWithTimeout(url, {}, timeoutMs ?? DEFAULT_TIMEOUT_MS); + } catch (err) { + const elapsedMs = Date.now() - started; + const msg = formatFetchError(err); + logger(logTag, `GET ${url} → error (${elapsedMs}ms): ${msg}`, 'error'); + throw new Error(msg); + } + + const elapsedMs = Date.now() - started; + const markdown = await response.text(); + logger(logTag, `GET ${url} → ${response.status} (${elapsedMs}ms)`); + + const isUsageResponse = response.ok && looksLikeUsageMarkdown(markdown); + + return { + ok: response.ok, + status: response.status, + markdown, + elapsedMs, + isUsageResponse, + }; +} + +/** + * GET a JSON endpoint from CollabSupport. + * @returns {{ ok: boolean, status: number, data: object, elapsedMs: number }} + */ +export async function fetchCollabJson(path, params = {}, { logTag = 'collabSupport', timeoutMs } = {}) { + const url = buildUrl(path, params); + const started = Date.now(); + logger(logTag, `GET ${url}`); + + let response; + try { + response = await fetchWithTimeout(url, { + headers: { Accept: 'application/json' }, + }, timeoutMs ?? DEFAULT_TIMEOUT_MS); + } catch (err) { + const elapsedMs = Date.now() - started; + const msg = formatFetchError(err); + logger(logTag, `GET ${url} → error (${elapsedMs}ms): ${msg}`, 'error'); + throw new Error(msg); + } + + const elapsedMs = Date.now() - started; + let data; + try { + data = await response.json(); + } catch { + data = {}; + } + logger(logTag, `GET ${url} → ${response.status} (${elapsedMs}ms)`); + + return { ok: response.ok, status: response.status, data, elapsedMs }; +} + +export function assertCollabSupportConfigured() { + if (!getCollabSupportBase()) { + throw new Error('CS_API_BASE is not configured'); + } +} + +export default { + getCollabSupportBase, + fetchCollabMarkdown, + fetchCollabJson, + assertCollabSupportConfigured, +}; diff --git a/src/integrations/serviceChannel/attachments.js b/src/integrations/serviceChannel/attachments.js new file mode 100644 index 0000000..ea8e9f9 --- /dev/null +++ b/src/integrations/serviceChannel/attachments.js @@ -0,0 +1,132 @@ +/** + * ServiceChannel work order attachment helpers (OData). + */ + +import { fetchWithRetry } from './client.js'; +import { logger } from '../../utils/logger.js'; + +const ATTACHMENT_SELECT = + 'Id,Name,Uri,Description,TimeStamp,IsInvoiceDigitalCopy,NoteId'; + +export function getContentTypeFromFilename(filename) { + if (!filename) return 'application/octet-stream'; + const lower = filename.toLowerCase(); + if (lower.endsWith('.jpg') || lower.endsWith('.jpeg')) return 'image/jpeg'; + if (lower.endsWith('.png')) return 'image/png'; + if (lower.endsWith('.gif')) return 'image/gif'; + if (lower.endsWith('.bmp')) return 'image/bmp'; + if (lower.endsWith('.webp')) return 'image/webp'; + if (lower.endsWith('.heic')) return 'image/heic'; + if (lower.endsWith('.heif')) return 'image/heif'; + if (lower.endsWith('.pdf')) return 'application/pdf'; + if (lower.endsWith('.txt')) return 'text/plain'; + if (lower.endsWith('.doc')) return 'application/msword'; + if (lower.endsWith('.docx')) { + return 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; + } + if (lower.endsWith('.xls')) return 'application/vnd.ms-excel'; + if (lower.endsWith('.xlsx')) { + return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; + } + if (lower.endsWith('.ppt')) return 'application/vnd.ms-powerpoint'; + if (lower.endsWith('.pptx')) { + return 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; + } + return 'application/octet-stream'; +} + +/** + * List attachments for a work order. + * @returns {Promise>} + */ +export async function listWorkOrderAttachments(workOrderId) { + if (!workOrderId) return []; + + const start = Date.now(); + try { + const res = await fetchWithRetry( + `/odata/workorders(${workOrderId})/attachments`, + { + params: { + $select: ATTACHMENT_SELECT, + $orderby: 'TimeStamp desc', + }, + timeout: 30000, + } + ); + + const attachments = res.data?.value || []; + logger( + 'sc:listAttachments', + `Found ${attachments.length} for WO ${workOrderId} (${Date.now() - start}ms)` + ); + return attachments; + } catch (err) { + logger('sc:listAttachments', `Failed for WO ${workOrderId}: ${err.message}`, 'warn'); + return []; + } +} + +/** + * Fetch a single attachment by id. + * @returns {Promise} + */ +export async function getWorkOrderAttachment(workOrderId, attachmentId) { + if (!workOrderId || attachmentId == null) return null; + + const start = Date.now(); + try { + const res = await fetchWithRetry( + `/odata/workorders(${workOrderId})/attachments`, + { + params: { $filter: `Id eq ${attachmentId}` }, + timeout: 30000, + } + ); + + const att = res.data?.value?.[0] || null; + if (att) { + logger( + 'sc:getAttachment', + `Fetched attachment ${attachmentId} for WO ${workOrderId} (${Date.now() - start}ms)` + ); + } + return att; + } catch (err) { + logger( + 'sc:getAttachment', + `Failed ${attachmentId} for WO ${workOrderId}: ${err.message}`, + 'warn' + ); + return null; + } +} + +/** + * Download attachment bytes from a storage URI. + * @returns {Promise<{ buffer: Buffer, contentType: string, fileName: string }>} + */ +export async function downloadAttachment(uri, fileName = 'attachment') { + if (!uri) throw new Error('Missing attachment URI'); + + const start = Date.now(); + const safeName = fileName || 'attachment'; + + const fileRes = await fetch(uri); + if (!fileRes.ok) { + throw new Error(`Download failed: HTTP ${fileRes.status}`); + } + + const headerType = fileRes.headers.get('content-type')?.split(';')[0]?.trim(); + const contentType = (headerType && headerType !== 'application/octet-stream') + ? headerType + : getContentTypeFromFilename(safeName); + + const buffer = Buffer.from(await fileRes.arrayBuffer()); + logger( + 'sc:downloadAttachment', + `Downloaded ${safeName} (${buffer.length} bytes, ${Date.now() - start}ms)` + ); + + return { buffer, contentType, fileName: safeName }; +} diff --git a/src/integrations/serviceChannel/client.js b/src/integrations/serviceChannel/client.js new file mode 100644 index 0000000..3cec836 --- /dev/null +++ b/src/integrations/serviceChannel/client.js @@ -0,0 +1,686 @@ +// src/integrations/serviceChannel/client.js + +import axios from 'axios'; +import { Mutex } from 'async-mutex'; +import qs from 'querystring'; +import { loadSecrets } from '../../config/secrets.js'; +import { logger } from '../../utils/logger.js'; + +const secrets = loadSecrets(); + +const mutex = new Mutex(); + +let cachedToken = null; +let tokenExpiresAt = 0; + +// Short-lived cache of the LAST token fetch failure. When SC credentials are +// invalid/expired, a single approval webhook can otherwise trigger 6+ token +// fetches (one per SC call in the flow), each hitting the OAuth endpoint and +// spamming the log. Cache the failure for a short window and fast-fail without +// hitting SC again. +let lastTokenError = null; +let lastTokenErrorAt = 0; +const TOKEN_FAIL_CACHE_MS = 30 * 1000; // 30 s + +// ────────────────────────────────────────────── +// Dedicated axios instance for ServiceChannel +// ────────────────────────────────────────────── +export const scAxios = axios.create({ + baseURL: secrets.serviceChannel.baseUrl, + timeout: 60000, + headers: { + 'Accept': 'application/json', + 'Content-Type': 'application/json', + }, +}); + +// Automatic token injection + refresh on 401 +scAxios.interceptors.request.use(async (cfg) => { + if (!cfg.headers.Authorization) { + const token = await getServiceChannelToken(); + cfg.headers.Authorization = `Bearer ${token}`; + } + return cfg; +}); + +/** + * Best-effort short summary of an axios error's response body for log lines. + * SC 4xx bodies are usually JSON like { "Message": "...", "ModelState": {...} } + * or plain text. We cap the length so a stack trace doesn't blow up the log. + */ +function summarizeAxiosErrorBody(error) { + const data = error?.response?.data; + if (data == null) return null; + let s; + if (typeof data === 'string') { + s = data; + } else if (Buffer.isBuffer(data)) { + s = data.toString('utf8'); + } else { + try { s = JSON.stringify(data); } catch { s = String(data); } + } + s = s.replace(/\s+/g, ' ').trim(); + return s.length > 500 ? s.substring(0, 500) + `…(${s.length} chars)` : s; +} + +scAxios.interceptors.response.use( + response => response, + async error => { + if (error.response?.status === 401) { + logger('scAxios', '401 detected → forcing token refresh'); + await getServiceChannelToken(true); // force refresh + // Retry once with new token + const originalRequest = error.config; + if (!originalRequest._retry) { + originalRequest._retry = true; + originalRequest.headers.Authorization = `Bearer ${cachedToken}`; + return scAxios(originalRequest); + } + } + + // For every non-401 4xx/5xx, enrich the error message with SC's response + // body preview + the HTTP method+path so downstream loggers get the *why* + // (SC returns detailed ModelState / Message JSON on 400s) instead of the + // generic axios "Request failed with status code 400". + const status = error?.response?.status; + if (status && status !== 401) { + const method = String(error?.config?.method || '').toUpperCase(); + const url = error?.config?.url || ''; + const body = summarizeAxiosErrorBody(error); + const suffix = ` [${method} ${url} → ${status}${body ? ` body=${body}` : ''}]`; + // Keep the original axios message but append ours so nothing breaks + // that greps for the classic "Request failed with status code XXX". + if (typeof error.message === 'string' && !error.message.includes(suffix)) { + error.message = error.message + suffix; + } + } + return Promise.reject(error); + } +); + +// ────────────────────────────────────────────── +// Token management – cached + mutex-protected +// ────────────────────────────────────────────── +export async function getServiceChannelToken(forceRefresh = false) { + if (!secrets.serviceChannel.clientId || !secrets.serviceChannel.clientSecret) { + throw new Error( + 'ServiceChannel credentials are not configured. ' + + 'Set SC_CLIENT_ID, SC_CLIENT_SECRET, SC_USERNAME, and SC_PASSWORD environment variables.' + ); + } + + const release = await mutex.acquire(); + + // Fast-fail if the last fetch just failed. Prevents a cascade of retries + // (and OAuth calls) when credentials are broken. Handled OUTSIDE the + // try/catch so we don't double-log or double-wrap the error message. + { + const now = Date.now(); + if (!forceRefresh && lastTokenError && (now - lastTokenErrorAt) < TOKEN_FAIL_CACHE_MS) { + release(); + throw new Error(lastTokenError); + } + } + + try { + const now = Date.now(); + + if (!forceRefresh && cachedToken && now < tokenExpiresAt) { + return cachedToken; + } + + logger('getServiceChannelToken', 'Fetching new token'); + + const basicAuth = Buffer.from( + `${secrets.serviceChannel.clientId}:${secrets.serviceChannel.clientSecret}` + ).toString('base64'); + + const response = await axios.post( + secrets.serviceChannel.oauthUrl, + qs.stringify({ + grant_type: 'password', + username: secrets.serviceChannel.username, + password: secrets.serviceChannel.password, + }), + { + headers: { + 'Authorization': `Basic ${basicAuth}`, + 'Content-Type': 'application/x-www-form-urlencoded', + }, + timeout: 10000, + } + ); + + const { access_token, expires_in } = response.data; + + cachedToken = access_token; + tokenExpiresAt = now + (expires_in * 1000) - 300_000; // refresh 5 min early + lastTokenError = null; + lastTokenErrorAt = 0; + + logger('getServiceChannelToken', `New token acquired (expires in ~${expires_in / 60} min)`); + return access_token; + } catch (err) { + const msg = err.response + ? `${err.response.status} – ${JSON.stringify(err.response.data)}` + : err.message; + + // Cache the failure so subsequent calls in the burst fail fast (no more + // OAuth hits) instead of each retrying and spamming the log. + const wrapped = `ServiceChannel token fetch failed: ${msg}`; + lastTokenError = wrapped; + lastTokenErrorAt = Date.now(); + + logger('getServiceChannelToken', `Failed: ${msg}`); + + // ServiceChannel returns HTTP 400 with the literal string + // "Object reference not set to an instance of an object." when its OAuth + // endpoint receives credentials that don't map to a user (rotated password, + // disabled client, etc.). Surface a clear hint the first time this happens + // so it's obvious in the log what needs fixing (rotate SC_PASSWORD / + // SC_CLIENT_SECRET in .env). + if ( + err.response?.status === 400 && + typeof err.response.data === 'string' && + err.response.data.toLowerCase().includes('object reference not set') + ) { + logger( + 'getServiceChannelToken', + 'HINT: 400 "Object reference not set..." from SC OAuth almost always ' + + 'means SC_CLIENT_ID/SC_CLIENT_SECRET/SC_USERNAME/SC_PASSWORD are stale. ' + + 'Rotate credentials in ServiceChannel and update .env, then restart.', + 'warn' + ); + } + + throw new Error(wrapped); + } finally { + release(); + } +} + +// ────────────────────────────────────────────── +// Simple health-check / token validation +// ────────────────────────────────────────────── +export async function validateToken() { + try { + await scAxios.get('/workorders?$top=1'); + return true; + } catch (err) { + logger('validateToken', `Token validation failed: ${err.message}`); + return false; + } +} + +// src/integrations/serviceChannel/client.js +// ... your existing code ... + +/** + * Get AV tickets that have been in "COMPLETED" + "CONFIRMED" status for at least X days + * Used for automatic Webex space cleanup + */ +export async function getTicketsReadyForSpaceCleanup(daysAfterCompletion = 7) { + console.log(`[SC-CLIENT] Checking for tickets ready for cleanup (${daysAfterCompletion} days after completion)`); + + try { + const cutoffDate = new Date(); + cutoffDate.setDate(cutoffDate.getDate() - daysAfterCompletion); + const cutoffStr = cutoffDate.toISOString().split('T')[0]; // YYYY-MM-DD + + const response = await scAxios.get('/workorders', { + params: { + 'trade': 'Audio', // Change to 'Audio & Video' if needed + 'status': 'Completed' // Primary status + } + }); + + const tickets = response.data?.value || response.data || []; + console.log(`Completed WorkOrders: ${tickets.length}`) + // Strict filter: only Completed + Confirmed (or Completed + Completed) + const readyTickets = tickets.filter(ticket => { + const primary = ticket.Status?.Primary?.toUpperCase(); + const extended = ticket.Status?.Extended?.toUpperCase(); + return primary === 'COMPLETED' && + (extended === 'CONFIRMED' || extended === 'COMPLETED'); + }); + + console.log(`[SC-CLIENT] Found ${readyTickets.length} tickets ready for space cleanup`); + + return readyTickets.map(ticket => ({ + workOrderId: ticket.Id, + woNumber: ticket.WorkorderNumber || ticket.Id, + primaryStatus: ticket.Status?.Primary, + extendedStatus: ticket.Status?.Extended, + updatedDate: ticket.UpdatedDate, + description: ticket.Description?.substring(0, 100) || '' + })); + } catch (err) { + console.error('[SC-CLIENT] Error fetching tickets for cleanup:', err.message); + if (err.response) { + console.log('[SC-CLIENT] Response status:', err.response.status); + console.log('[SC-CLIENT] Response body:', JSON.stringify(err.response.data, null, 2)); + } + return []; + } +} + +/** + * Get current status of a specific work order + */ +export async function getWorkOrderStatus(woId) { + try { + const response = await scAxios.get(`/workorders/${woId}`, { + params: { $select: 'Id,WorkorderNumber,Status,UpdatedDate,Description' } + }); + + const ticket = response.data; + + return { + workOrderId: ticket.Id, + woNumber: ticket.WorkorderNumber || ticket.Id, + primaryStatus: ticket.Status?.Primary, + extendedStatus: ticket.Status?.Extended, + updatedDate: ticket.UpdatedDate, + description: ticket.Description?.substring(0, 100) || '' + }; + } catch (err) { + console.error(`[SC-CLIENT] Error getting status for WO ${woId}:`, err.message); + return null; + } +} +export default scAxios; + +// ────────────────────────────────────────────── +// Resilient fetch helper (for bulk operations) +// ────────────────────────────────────────────── + +const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); + +/** + * GET with retry for rate limits (429) and transient server errors (5xx). + * + * - Uses the shared scAxios instance (automatic token + 401 refresh). + * - Respects `Retry-After` header when the server provides one. + * - Exponential backoff + jitter to avoid thundering herd. + * - Safe default: 5 retries, starting ~750ms base delay. + * + * Use this (instead of raw scAxios.get) for any high-volume or bulk calls. + */ +export async function fetchWithRetry( + url, + config = {}, + { maxRetries = 5, baseDelayMs = 750 } = {} +) { + let attempt = 0; + + while (true) { + try { + return await scAxios.get(url, config); + } catch (err) { + const status = err.response?.status; + const isRetryable = status === 429 || (status >= 500 && status < 600); + + if (isRetryable && attempt < maxRetries) { + const retryAfterHeader = err.response?.headers?.['retry-after']; + let delayMs = baseDelayMs * Math.pow(2, attempt); + + if (retryAfterHeader) { + const parsed = parseInt(retryAfterHeader, 10); + if (!Number.isNaN(parsed) && parsed > 0) { + delayMs = parsed * 1000; + } + } + + // Jitter: 75%–125% of calculated delay (prevents synchronized retries) + delayMs *= 0.75 + Math.random() * 0.5; + delayMs = Math.min(Math.max(300, Math.round(delayMs)), 30000); + + logger( + 'sc:fetchRetry', + `${status} on ${url} (attempt ${attempt + 1}/${maxRetries}) → retry in ${delayMs}ms` + ); + + await sleep(delayMs); + attempt++; + continue; + } + + // Non-retryable or exhausted retries — let caller handle + throw err; + } + } +} + +export { sleep }; + +// ────────────────────────────────────────────── +// New: Proposal & NTE approval support (for WAITING FOR APPROVAL webhooks + Adaptive Card flow) +// ────────────────────────────────────────────── + +/** + * Fetch proposals associated with a work order. + * Now uses the proper/recommended endpoint: + * GET /proposals/GetProposalsAssociatedWithWorkOrderAsync?trackingNumber={woId} + * (The old /workorders/{id}/proposals had reliability issues.) + */ +export async function getWorkOrderProposals(woId) { + return getProposalsAssociatedWithWorkOrder(woId); +} + +/** + * Lightweight fetch for NTE + basic status (no full notes). + */ +export async function getWorkOrderForNte(woId) { + if (!woId) return null; + try { + const res = await fetchWithRetry(`/workorders/${woId}`, { + params: { $select: 'Id,WorkorderNumber,Nte,Status,LocationName,LocationStoreId' }, + timeout: 30000, + }); + return res.data; + } catch (err) { + logger('sc:getForNte', `Failed for WO ${woId}: ${err.message}`, 'warn'); + return null; + } +} + +/** + * Update the Nte (Not-To-Exceed) value on a work order. + * Uses PATCH on the root workorder resource. + */ +export async function updateWorkOrderNte(woId, nteValue) { + const nte = Number(nteValue); + if (!woId || !Number.isFinite(nte)) { + throw new Error('woId and numeric nteValue are required'); + } + await scAxios.patch(`/workorders/${woId}`, { Nte: nte }); + logger('sc:updateNte', `WO ${woId} Nte set to ${nte}`); +} + +/** + * DEPRECATED. ServiceChannel v3 has no public POST /workorders/{id}/notes + * endpoint, so this call always returns 400. Notes must be attached to a + * status/approve action (via the `Note` / `Comments` / `ReasonString` fields + * on those requests). Left here only to preserve the export shape; will be + * removed once no external code references it. + * + * @deprecated pass audit text via `Comments`/`ReasonString` on approveProposal. + */ +export async function addApprovalNote(woId, text) { + logger( + 'sc:addNote', + `addApprovalNote() is deprecated and does nothing (SC has no POST /workorders/${woId}/notes). ` + + `Attach note text via /approve or /status. Discarded text: "${String(text).substring(0, 80)}"`, + 'warn' + ); +} + +/** + * Fetch a specific proposal by its ID/Number (parsed from work order notes like "Proposal #94434 has been created"). + * Tries common SC v3 endpoints. Returns the proposal object which should include charges, Total/Amount, + * and itemized list (Items / LineItems / ProposalItems) with parts + labor breakout. + */ +export async function getProposal(proposalId) { + if (!proposalId) return null; + const pid = String(proposalId).trim(); + + // Common patterns for ServiceChannel proposal lookup + const urlAttempts = [ + `/proposals/${pid}`, + `/proposals?proposalNumber=${pid}`, + `/proposals?Number=${pid}`, + `/proposals?Id=${pid}`, + // Fallback: search within workorders if we had woId, but here we use direct + ]; + + for (const url of urlAttempts) { + try { + const res = await fetchWithRetry(url, { timeout: 30000 }); + let data = res.data; + if (data?.value && Array.isArray(data.value)) { + data = data.value[0] || null; + } + if (data && (data.Id || data.Number || data.ProposalNumber)) { + logger('sc:getProposal', `Successfully fetched proposal ${pid} via ${url}`); + return data; + } + } catch (err) { + // If the token itself is broken, all remaining URL attempts will fail + // the same way — abort the loop immediately instead of hammering. + if (err.message && err.message.startsWith('ServiceChannel token fetch failed')) { + logger('sc:getProposal', `Aborting proposal lookup for ${pid}: ${err.message}`, 'warn'); + return null; + } + // try next + if (err.response && err.response.status !== 404) { + logger('sc:getProposal', `Attempt ${url} failed for ${pid}: ${err.message}`, 'warn'); + } + } + } + + logger('sc:getProposal', `Could not locate proposal ${pid} after multiple attempts`, 'warn'); + return null; +} + +/** + * Proper way to find proposals associated with a work order (per ServiceChannel API). + * Uses GET /proposals/GetProposalsAssociatedWithWorkOrderAsync?trackingNumber={woId} + * Returns array of lightweight proposal refs { ID, ProposalNumber, Status, ... } + */ +export async function getProposalsAssociatedWithWorkOrder(woId) { + if (!woId) return []; + try { + const res = await fetchWithRetry( + `/proposals/GetProposalsAssociatedWithWorkOrderAsync?trackingNumber=${woId}`, + { timeout: 30000 } + ); + return res.data || []; + } catch (err) { + logger('sc:getAssociatedProposals', `Failed for WO ${woId}: ${err.message}`, 'warn'); + return []; + } +} + +/** + * Fetch full proposal details using the OData endpoint. + * GET /odata/proposals?$filter=Id eq {proposalId} + * This returns the rich object with AmountCategories (Materials, Installation Labor, etc.), + * Amount (total), Description, Status, Recommendation, etc. + */ +export async function getProposalByIdOdata(proposalId) { + if (!proposalId) return null; + try { + const res = await fetchWithRetry( + `/odata/proposals?$filter=Id eq ${proposalId}`, + { timeout: 30000 } + ); + const data = res.data; + if (data?.value && Array.isArray(data.value) && data.value.length > 0) { + logger('sc:getProposalOdata', `Fetched OData details for proposal ${proposalId}`); + return data.value[0]; + } + return null; + } catch (err) { + logger('sc:getProposalOdata', `Failed for ${proposalId}: ${err.message}`, 'warn'); + return null; + } +} + +/** + * Approve a specific proposal using the official endpoint. + * PUT /proposals/{proposalId}/approve + * This properly approves the proposal (instead of just updating WO Nte + note). + * Body fields as per ServiceChannel API (Comments, ReasonString, AttachmentsToWO, etc.). + */ +export async function approveProposal(proposalId, body) { + if (!proposalId) { + throw new Error('proposalId is required to approve'); + } + await scAxios.put(`/proposals/${proposalId}/approve`, body); + logger('sc:approveProposal', `Successfully approved proposal ${proposalId}`); +} + +/** + * Fetch proposals that must be rejected before approving a revised proposal. + * GET /proposals/GetProposalsToReject?trackingNumber={woId} + */ +export async function getProposalsToReject(woId) { + if (!woId) return []; + try { + const res = await fetchWithRetry( + `/proposals/GetProposalsToReject?trackingNumber=${woId}`, + { timeout: 30000 } + ); + const data = res.data; + if (Array.isArray(data)) return data; + if (data?.value && Array.isArray(data.value)) return data.value; + return []; + } catch (err) { + // 502 "Proposals to Reject not found" is normal when no superseded proposals exist + if (err.response?.status === 400 || err.response?.status === 502) { + logger('sc:getProposalsToReject', `No proposals to reject for WO ${woId}`, 'info'); + return []; + } + logger('sc:getProposalsToReject', `Failed for WO ${woId}: ${err.message}`, 'warn'); + return []; + } +} + +let _rejectionReasonsCache = null; +let _rejectionReasonsCachedAt = 0; +const REJECTION_REASONS_TTL_MS = 60 * 60 * 1000; // 1 hour + +/** SC returns RejectionReasons as { "1": "desc", "2": "..." } — not an array. */ +function _parseRejectionReasonsResponse(data) { + if (Array.isArray(data)) return data; + if (data?.value && Array.isArray(data.value)) return data.value; + if (data && typeof data === 'object') { + return Object.entries(data).map(([id, desc]) => ({ + Id: Number(id), + Description: typeof desc === 'string' ? desc : String(desc ?? ''), + })).filter((r) => Number.isFinite(r.Id) && r.Id > 0); + } + return []; +} + +/** + * Fetch valid proposal rejection reason codes. + * GET /proposals/RejectionReasons + */ +export async function getProposalRejectionReasons() { + const now = Date.now(); + if (_rejectionReasonsCache && (now - _rejectionReasonsCachedAt) < REJECTION_REASONS_TTL_MS) { + return _rejectionReasonsCache; + } + try { + const res = await fetchWithRetry('/proposals/RejectionReasons', { timeout: 30000 }); + const reasons = _parseRejectionReasonsResponse(res.data); + _rejectionReasonsCache = reasons; + _rejectionReasonsCachedAt = now; + return reasons; + } catch (err) { + logger('sc:getRejectionReasons', `Failed: ${err.message}`, 'warn'); + return _rejectionReasonsCache || []; + } +} + +const REJECT_REASON_KEYWORDS = ['revised', 'superseded', 'replacement', 'replaced', 'updated', 'scope']; + +/** Default when env/keyword lookup fails — "Change in scope of work" on most tenants. */ +const DEFAULT_REJECT_REASON_ID = 2; + +/** + * Resolve RejectReasonCodeId: env override, keyword match on SC reasons, or sensible default. + */ +export async function resolveRejectReasonCodeId() { + const envId = process.env.SC_PROPOSAL_REJECT_REASON_ID; + if (envId != null && envId !== '') { + const n = Number(envId); + if (Number.isFinite(n) && n > 0) return n; + } + + const reasons = await getProposalRejectionReasons(); + if (!reasons.length) { + return DEFAULT_REJECT_REASON_ID; + } + + for (const kw of REJECT_REASON_KEYWORDS) { + const match = reasons.find((r) => { + const text = `${r.Description || ''} ${r.Name || ''} ${r.Reason || ''}`.toLowerCase(); + return text.includes(kw); + }); + if (match) { + const id = match.Id ?? match.RejectReasonCodeId ?? match.ReasonCodeId; + if (id != null) { + return Number(id); + } + } + } + + const first = reasons[0]; + const resolved = Number(first?.Id ?? first?.RejectReasonCodeId ?? first?.ReasonCodeId ?? DEFAULT_REJECT_REASON_ID); + return resolved; +} + +/** + * Reject a specific proposal. + * PUT /proposals/{proposalId}/reject + */ +export async function rejectProposal(proposalId, body) { + if (!proposalId) { + throw new Error('proposalId is required to reject'); + } + await scAxios.put(`/proposals/${proposalId}/reject`, body); + logger('sc:rejectProposal', `Successfully rejected proposal ${proposalId}`); +} + +/** + * Fetch proposal details by display number via OData. + * Used when associated-proposals list is empty but the webhook note parsed a proposal #. + */ +export async function getProposalByNumberOdata(proposalNumber) { + if (proposalNumber == null || proposalNumber === '') return null; + const num = String(proposalNumber).trim(); + const filters = [`Number eq ${num}`, `Number eq '${num}'`]; + + for (const filter of filters) { + try { + const res = await fetchWithRetry( + `/odata/proposals?$filter=${encodeURIComponent(filter)}`, + { timeout: 30000 } + ); + const row = res.data?.value?.[0]; + if (row) { + logger('sc:getProposalOdata', `Fetched OData details for proposal #${num}`); + return row; + } + } catch (err) { + logger('sc:getProposalOdata', `Number filter "${filter}" failed for #${num}: ${err.message}`, 'warn'); + } + } + + return null; +} + +/** + * OData fetch with optional $expand=AmountCategories (may surface nested detail on some tenants). + * Note: $expand=AmountCategories fails on many SC tenants — prefer getProposalByIdOdata. + */ +export async function getProposalByIdOdataExpanded(proposalId) { + if (!proposalId) return null; + try { + const res = await fetchWithRetry( + `/odata/proposals?$filter=Id eq ${proposalId}&$expand=AmountCategories`, + { timeout: 30000 } + ); + const data = res.data; + if (data?.value?.length > 0) { + logger('sc:getProposalOdata', `Fetched expanded OData for proposal ${proposalId}`); + return data.value[0]; + } + return null; + } catch (err) { + logger('sc:getProposalOdata', `Expanded fetch failed for ${proposalId}: ${err.message}`, 'warn'); + return null; + } +} diff --git a/src/integrations/serviceChannel/index.js b/src/integrations/serviceChannel/index.js new file mode 100644 index 0000000..9f8c3fd --- /dev/null +++ b/src/integrations/serviceChannel/index.js @@ -0,0 +1,5 @@ +// src/integrations/serviceChannel/index.js +// Clean re-exports for ServiceChannel integration. + +export * from './client.js'; +export * from './attachments.js'; \ No newline at end of file diff --git a/src/integrations/serviceChannel/types.js b/src/integrations/serviceChannel/types.js new file mode 100644 index 0000000..e69de29 diff --git a/src/integrations/webex/adminClient.js b/src/integrations/webex/adminClient.js new file mode 100644 index 0000000..5c97285 --- /dev/null +++ b/src/integrations/webex/adminClient.js @@ -0,0 +1,74 @@ +/** + * adminClient.js + * Webex client for privileged / admin / telephony operations. + * + * This is intentionally separate from botClient.js. + * + * Required for: + * - DECT network/handset/base station lookups + * - Device inventory for people (phones assigned to store users) + * - Any other Webex API calls that require broader admin or telephony scopes + * + * These operations typically need a different token (not the ServChan bot token) + * with the appropriate Webex admin/telephony permissions. + * + * During the 2026-05-28 cleanup, the old duplicated code from + * src/integrations/webex/client.js (previously contained DECT/telephony code) + * should be migrated here when the privileged token is available via env/config. + * + * For now this is a skeleton so the architecture is clear. + */ + +import axios from 'axios'; +import { logger } from '../../utils/logger.js'; + +export class WebexAdminClient { + constructor(token, baseURL = 'https://webexapis.com/v1') { + if (!token) { + logger('webex:adminClient', 'No token provided — privileged operations will fail', 'warn'); + } + + this.axios = axios.create({ + baseURL, + timeout: 15000, + headers: { + Authorization: `Bearer ${token}`, + 'Content-Type': 'application/json', + }, + }); + } + + // TODO: Move the DECT / telephony functions here from the old client.js + // Examples that belong in this client: + // - getPersonIdByEmail + // - getDevicesForPerson + // - getDectNetworkId + // - getDectHandsets / getDectBasestations + // - getWebexPhonesForStore + // - etc. + + async getPersonIdByEmail(email) { + // Placeholder — implement using this.axios + logger('webex:adminClient', 'getPersonIdByEmail not yet implemented in new adminClient'); + throw new Error('Not implemented — migrate from legacy webex/client.js'); + } + + // Add other admin-only methods as they are migrated... +} + +let cachedAdminClient = null; + +export function getAdminClient() { + if (!cachedAdminClient) { + // Expect a separate privileged token (never the bot token) + const token = process.env.WEBEX_ADMIN_TOKEN || process.env.WEBEX_TELEPHONY_TOKEN; + if (!token) { + logger('webex:adminClient', 'WEBEX_ADMIN_TOKEN (or WEBEX_TELEPHONY_TOKEN) not set', 'error'); + throw new Error('Missing privileged Webex token for admin operations'); + } + cachedAdminClient = new WebexAdminClient(token); + } + return cachedAdminClient; +} + +export default getAdminClient; \ No newline at end of file diff --git a/src/integrations/webex/botClient.js b/src/integrations/webex/botClient.js new file mode 100644 index 0000000..0708161 --- /dev/null +++ b/src/integrations/webex/botClient.js @@ -0,0 +1,231 @@ +/** + * botClient.js + * Consolidated Webex client for standard bot operations. + * + * This is the primary client for normal ServChan bot activities: + * - Creating rooms + * - Posting messages + * - Adding members + * - Basic room helpers (getWOByRoom, getStoreByRoom) + * + * For privileged operations (DECT, telephony, etc.), use adminClient.js instead. + */ + +import axios from 'axios'; +import { logger } from '../../utils/logger.js'; +import FormData from 'form-data'; + +class ServChanBotClient { + static #instance = null; + + constructor() { + if (ServChanBotClient.#instance) { + return ServChanBotClient.#instance; + } + + const token = process.env.WEBEX_BOT_TOKEN; + const baseURL = process.env.WEBEX_BASE_URL || 'https://webexapis.com/v1'; + + if (!token) { + logger('webex:botClient', 'WEBEX_BOT_TOKEN missing – bot will not work', 'error'); + throw new Error('Missing WEBEX_BOT_TOKEN'); + } + + this.axios = axios.create({ + baseURL, + timeout: 15000, + headers: { + Authorization: `Bearer ${token}`, + 'Content-Type': 'application/json', + }, + }); + + this.axios.interceptors.response.use( + (res) => res, + (err) => { + const msg = err.response + ? `${err.response.status} - ${JSON.stringify(err.response.data)}` + : err.message; + logger('webex:botClient', `API error: ${msg}`, 'error'); + return Promise.reject(err); + } + ); + + ServChanBotClient.#instance = this; + logger('webex:botClient', 'Initialized (bot token)'); + } + + // ────────────────────────────────────────────── + // Core messaging & room operations + // ────────────────────────────────────────────── + + async createRoom(title, teamId = null) { + const payload = { title, type: 'group' }; + if (teamId) payload.teamId = teamId; + + const res = await this.axios.post('/rooms', payload); + logger('webex:bot:createRoom', `Created ${res.data.id}`); + return res.data; + } + + async addMember(roomId, personEmail) { + const res = await this.axios.post('/memberships', { roomId, personEmail }); + logger('webex:bot:addMember', `Added ${personEmail}`); + return res.data; + } + + async sendMarkdown(roomId, markdown, textFallback = null) { + if (!roomId || !markdown) { + logger('webex:bot:sendMarkdown', 'Missing roomId or markdown', 'warn'); + return null; + } + + const payload = { roomId, markdown }; + if (textFallback) payload.text = textFallback; + + const res = await this.axios.post('/messages', payload); + return res.data; + } + + async sendWithAttachment(roomId, buffer, fileName, contentType = 'application/octet-stream', text = 'Attached file', fileUrl = null) { + if (!roomId || !fileName) { + logger('webex:bot:attachment', 'Missing required params', 'warn'); + return null; + } + + if (fileUrl) { + const payload = { roomId, markdown: text, files: [fileUrl] }; + const res = await this.axios.post('/messages', payload); + return res.data; + } + + if (buffer) { + const form = new FormData(); + form.append('roomId', roomId); + form.append('markdown', text); + form.append('files', buffer, { filename: fileName, contentType }); + + const res = await this.axios.post('/messages', form, { + headers: form.getHeaders(), + }); + return res.data; + } + + throw new Error('Either buffer or fileUrl must be provided'); + } + + async deleteRoom(roomId) { + if (!roomId) throw new Error('roomId is required'); + await this.axios.delete(`/rooms/${roomId}`); + logger('webex:bot:deleteRoom', `Deleted ${roomId}`); + } + + // ────────────────────────────────────────────── + // Helpers used by commands + // ────────────────────────────────────────────── + + async getRoom(roomId) { + const res = await this.axios.get(`/rooms/${roomId}`); + return res.data; + } + + async getWOByRoom(roomId) { + try { + const room = await this.getRoom(roomId); + return this.#extractWoNumber(room?.title); + } catch (err) { + logger('webex:bot:getWOByRoom', `Failed for ${roomId}: ${err.message}`, 'warn'); + return null; + } + } + + async getStoreByRoom(roomId) { + try { + const room = await this.getRoom(roomId); + return this.#extractStoreNumber(room?.title); + } catch (err) { + logger('webex:bot:getStoreByRoom', `Failed for ${roomId}: ${err.message}`, 'warn'); + return null; + } + } + + #extractWoNumber(str) { + if (!str) return null; + const m = str.match(/WO[-–—]?\s*(\d+)/i); + return m ? m[1] : null; + } + + #extractStoreNumber(str) { + if (!str || typeof str !== 'string') return null; + + const storeRegex = /Store\s*[#:=-]?\s*(\d{3,5})/i; + let m = str.match(storeRegex); + if (m) return m[1]; + + const fallback = /WO[-–—]?\s*\d+\s*[\|]\s*(\d{3,5})/i; + m = str.match(fallback); + if (m) return m[1]; + + const numbers = [...str.matchAll(/\b(\d{4,5})\b/g)].map(x => x[1]); + for (const n of numbers) { + if (n.length >= 6) continue; + return n; + } + return null; + } + + // ────────────────────────────────────────────── + // Adaptive Card + person helpers (for approval flow) + // ────────────────────────────────────────────── + + /** + * Send an Adaptive Card (v1.3) message. + * card = plain JS object matching Adaptive Card schema. + * The Webex /messages endpoint accepts attachments with contentType for cards. + */ + async sendAdaptiveCard(roomId, card, fallbackText = "This message contains an interactive card. Please view in a supported Webex client.") { + if (!roomId || !card) { + logger("webex:bot:sendAdaptiveCard", "Missing roomId or card", "warn"); + return null; + } + const payload = { + roomId, + text: fallbackText, + attachments: [ + { + contentType: "application/vnd.microsoft.card.adaptive", + content: card, + }, + ], + }; + const res = await this.axios.post("/messages", payload); + return res.data; + } + + /** Delete a message posted by this bot (e.g. remove an approval card after submit). */ + async deleteMessage(messageId) { + if (!messageId) { + logger('webex:bot:deleteMessage', 'Missing messageId', 'warn'); + return null; + } + await this.axios.delete(`/messages/${encodeURIComponent(messageId)}`); + logger('webex:bot:deleteMessage', `Deleted message ${messageId}`); + return true; + } + + /** + * Fetch person details (for approver attribution from attachmentAction.personId). + */ + async getPersonDetails(personId) { + if (!personId) return { displayName: "Unknown User", emails: [] }; + try { + const res = await this.axios.get("/people/" + encodeURIComponent(personId)); + return res.data; + } catch (err) { + logger("webex:bot:getPersonDetails", "Failed for " + personId + ": " + err.message, "warn"); + return { displayName: personId, emails: [] }; + } + } +} + +export default new ServChanBotClient(); diff --git a/src/integrations/webex/index.js b/src/integrations/webex/index.js new file mode 100644 index 0000000..aaf6588 --- /dev/null +++ b/src/integrations/webex/index.js @@ -0,0 +1,7 @@ +// src/integrations/webex/index.js +// Clean public API for the Webex integration layer. + +export { default as botClient } from './botClient.js'; +export { WebexAdminClient, getAdminClient } from './adminClient.js'; + +// No other legacy Webex clients remain in this folder. diff --git a/src/integrations/xai/client.js b/src/integrations/xai/client.js new file mode 100644 index 0000000..3815231 --- /dev/null +++ b/src/integrations/xai/client.js @@ -0,0 +1,150 @@ +import axios from 'axios'; +import { loadSecrets } from '../../config/secrets.js'; + +const secrets = loadSecrets(); +import { logger } from '../../utils/logger.js'; + + +/** + * Summarizes the initial ticket description when a WorkOrderCreated webhook arrives. + * This produces a short, clean, professional summary suitable for posting as the + * first message in a new ServChan Webex space. + */ +export async function summarizeTicketDescription( + rawDescription, + xaiApiKey, + options = {} +) { + const startTime = Date.now(); + const { + model = secrets.xai.model, + maxTokens = 300, + includeOriginal = false, + } = options; + + if (!rawDescription?.trim()) { + return { summary: 'No description provided.' }; + } + + const token = xaiApiKey || secrets.xai.token; + if (!token) { + return { + summary: `(xAI not configured) Original: ${rawDescription.substring(0, 400)}${rawDescription.length > 400 ? '...' : ''}`, + }; + } + + const systemPrompt = ` +You are an expert at turning messy, form-generated ticket descriptions into clear, concise, professional summaries +that someone can read in 10–15 seconds and immediately understand the issue. + +Rules: +- Focus on: WHO is affected, WHAT is broken, WHERE it happens, WHEN it started / how often, IMPACT / severity +- Remove repetition, form boilerplate, labels like "Field1:", "Please select:", etc. +- Use natural, professional language — no emojis unless very clearly needed +- Keep technical terms if they are meaningful +- Aim for 2–6 sentences max +- If the text is already short & clear, just lightly clean it up + `.trim(); + + const userPrompt = ` +Summarize the following ticket description: + +""" +${rawDescription.trim()} +""" + +Provide only the clean summary — no extra commentary, no "Here's a summary:", just the readable text. + `.trim(); + + try { + const response = await axios.post( + 'https://api.x.ai/v1/chat/completions', + { + model, + messages: [ + { role: 'system', content: systemPrompt }, + { role: 'user', content: userPrompt }, + ], + temperature: 0.3, + max_tokens: maxTokens, + top_p: 0.95, + }, + { + headers: { + 'Content-Type': 'application/json', + Authorization: `Bearer ${token}`, + }, + timeout: 15000, + } + ); + + const summary = response.data.choices?.[0]?.message?.content?.trim() || ''; + + logger('xai:summarizeTicketDescription', `Finished in ${Date.now() - startTime}ms`); + + if (includeOriginal) { + return { summary, original: rawDescription.trim() }; + } + return { summary }; + } catch (err) { + logger('xai:summarizeTicketDescription', `Error: ${err.message}`, 'error'); + return { + summary: `(Summary unavailable) Original: ${rawDescription.substring(0, 400)}${rawDescription.length > 400 ? '...' : ''}`, + }; + } +} + + +export async function summarizeTicketWithGrokFromContext(context, ticketId) { + if (!secrets.xai.token) { + return `(xAI not configured) Raw ticket info: ${context.substring(0, 200)}...`; + } + + const systemPrompt = ` +You are an expert HVAC/facilities technician and ServiceChannel ticket analyst. + +Summarize this ticket clearly and concisely. +Use the **ticket description** as the primary source for the **main problem / reason for the ticket**. +Use the notes to provide timeline, actions, status updates, and pending items. + +Structure your summary with these sections: +- **Main Problem** (from description) +- **Key Events & Timeline** (chronological bullets from notes, most recent last) +- **Actions Taken** +- **Current Status / Blockers** +- **Pending / Next Steps** + +Keep it professional, neutral, factual, under 250 words. +Use bullet points where helpful. +If notes are repetitive, deduplicate them. +If no notes, omit "Key Events & Timeline" or say "No notes recorded." +`; + + const userPrompt = `Summarize this ServiceChannel ticket:\n${context}`; + + try { + const response = await axios.post( + 'https://api.x.ai/v1/chat/completions', + { + model: secrets.xai.model, + messages: [ + { role: 'system', content: systemPrompt }, + { role: 'user', content: userPrompt } + ], + temperature: 0.3, + max_tokens: 500 + }, + { + headers: { + Authorization: `Bearer ${secrets.xai.token}`, + 'Content-Type': 'application/json' + } + } + ); + + return response.data.choices[0].message.content.trim(); + } catch (err) { + console.error('[GROK] Error:', err.response?.data || err.message); + return `(Summary failed) Raw ticket info: ${context.substring(0, 200)}...`; + } +} \ No newline at end of file diff --git a/src/server/adminAuth.js b/src/server/adminAuth.js new file mode 100644 index 0000000..46590c1 --- /dev/null +++ b/src/server/adminAuth.js @@ -0,0 +1,70 @@ +/** + * src/server/adminAuth.js + * + * Small, dependency-free HTTP auth middleware for admin/report endpoints + * (/cleanup-test, /stale-workorders, etc.). + * + * Accepts either: + * 1. `Authorization: Bearer ` header, or + * 2. `?token=` query param (so it's usable from a browser bookmark) + * + * Configuration: + * ADMIN_TOKEN Required. If unset, every admin request is refused. + * + * Intentionally NOT full IAM — this is a stop-gap for internal endpoints that + * shouldn't be world-readable and shouldn't be one query flag away from doing + * destructive work. + */ + +import crypto from 'node:crypto'; +import { logger } from '../utils/logger.js'; + +function timingSafeEq(a, b) { + if (typeof a !== 'string' || typeof b !== 'string') return false; + const ab = Buffer.from(a); + const bb = Buffer.from(b); + if (ab.length !== bb.length) return false; + return crypto.timingSafeEqual(ab, bb); +} + +/** + * @param {object} [options] + * @param {boolean} [options.allowInDev=true] If true and NODE_ENV !== 'production', + * requests are allowed through even without a token (dev convenience). Set to + * false to enforce auth in every environment. + */ +export function requireAdmin(options = {}) { + const { allowInDev = true } = options; + + return function adminAuthMiddleware(req, res, next) { + const expected = process.env.ADMIN_TOKEN; + + if (!expected) { + if (allowInDev && process.env.NODE_ENV !== 'production') { + // Dev-mode escape hatch. Log every time so it doesn't stay silent. + logger('adminAuth', `ADMIN_TOKEN unset — allowing ${req.method} ${req.originalUrl} (NODE_ENV=${process.env.NODE_ENV || 'undefined'})`, 'warn'); + return next(); + } + logger('adminAuth', `ADMIN_TOKEN not configured — denying ${req.method} ${req.originalUrl}`, 'error'); + return res.status(503).send('Admin auth not configured (set ADMIN_TOKEN).'); + } + + let provided = null; + const authHeader = req.headers.authorization; + if (typeof authHeader === 'string' && authHeader.toLowerCase().startsWith('bearer ')) { + provided = authHeader.slice(7).trim(); + } + if (!provided && typeof req.query.token === 'string') { + provided = req.query.token; + } + + if (!provided || !timingSafeEq(provided, expected)) { + logger('adminAuth', `Denied ${req.method} ${req.originalUrl} from ${req.ip}`, 'warn'); + return res.status(401).send('Unauthorized. Provide ADMIN_TOKEN via `Authorization: Bearer …` or `?token=…`.'); + } + + return next(); + }; +} + +export default requireAdmin; diff --git a/src/server/app.js b/src/server/app.js new file mode 100644 index 0000000..e6d8829 --- /dev/null +++ b/src/server/app.js @@ -0,0 +1,427 @@ +/** + * src/server/app.js + * + * Express app factory. + * Extracted during thinning pass (2026-05-28) to make index.js a thin bootstrap. + * + * Dependencies are injected so the server module has no hidden coupling to the monolith. + */ + +import express from 'express'; +import bodyParser from 'body-parser'; +import fs from 'node:fs'; +import fsp from 'node:fs/promises'; +import path from 'node:path'; +import cron from 'node-cron'; + +import { logger, ensureLogDir, getLogDir } from '../utils/logger.js'; +import { verifyWebhook } from './webhookAuth.js'; +import { requireAdmin } from './adminAuth.js'; + +// ──────────────────────────────────────────────────────────────────────────── +// HTML escaping — used everywhere we interpolate SC-sourced data into HTML +// (technicians type note content and it lands here; without escaping this is +// a reflected XSS vector). +// ──────────────────────────────────────────────────────────────────────────── +function esc(v) { + if (v === null || v === undefined) return ''; + return String(v) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); +} + +export function createApp({ + db, + DB_PATH, + webhookProcessor, + runSpaceCleanup, + Framework, + getStaleWorkOrdersReport, +}) { + // Note: `db` here should be the single database connection created by the main + // application using the production DB_PATH. This ensures we never accidentally + // talk to a different database file. + const app = express(); + + app.use(bodyParser.json({ + // Capture raw body so webhook signature verification can HMAC it. + verify: (req, res, buf) => { req.rawBody = buf; } + })); + + // Enhanced Health Check with Docker/Container awareness + app.get('/health', async (req, res) => { + const startTime = Date.now(); + + const health = { + status: 'healthy', + service: 'servchan-bot', + version: process.env.npm_package_version || '1.0.0', + uptime: Math.round(process.uptime()), + uptime_human: `${Math.floor(process.uptime() / 3600)}h ${Math.floor((process.uptime() % 3600) / 60)}m`, + timestamp: new Date().toISOString(), + environment: process.env.NODE_ENV || 'development', + + container: { + node_version: process.version, + pid: process.pid, + platform: process.platform, + arch: process.arch, + memory: { + rss: `${(process.memoryUsage().rss / 1024 / 1024).toFixed(2)} MB`, + heapTotal: `${(process.memoryUsage().heapTotal / 1024 / 1024).toFixed(2)} MB`, + heapUsed: `${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB`, + external: `${(process.memoryUsage().external / 1024 / 1024).toFixed(2)} MB` + } + }, + + database: { + status: 'unknown', + path: DB_PATH + }, + + webex: { + framework: Framework ? 'initialized' : 'not_ready', + spawn_mode: 'disabled' + }, + + response_time_ms: 0 + }; + + try { + await new Promise((resolve, reject) => { + db.get('SELECT 1 as ok', (err, row) => { + if (err) reject(err); + else resolve(row); + }); + }); + health.database.status = 'connected'; + } catch (err) { + health.database.status = 'error'; + health.database.error = err.message; + health.status = 'degraded'; + } + + health.response_time_ms = Date.now() - startTime; + + const httpStatus = health.status === 'healthy' ? 200 : 503; + res.status(httpStatus).json(health); + }); + + // Lightweight liveness probe (used by Docker healthcheck) + app.get('/healthz', (req, res) => { + res.status(200).send('ok'); + }); + + // ──────────────────────────────────────────────────────────────────────── + // Webhook route + // + // Auth is scaffolded via verifyWebhook middleware. Default mode is "off" + // (backward compatible). Once ServiceChannel is configured to sign / send a + // shared token, flip SC_WEBHOOK_AUTH_MODE=log to observe successes/failures + // in the log, then SC_WEBHOOK_AUTH_MODE=enforce to reject unauthenticated + // requests. See src/server/webhookAuth.js. + // ──────────────────────────────────────────────────────────────────────── + app.post('/webhook', verifyWebhook, (req, res) => { + logWebhookPayload(req.body); + + // Basic shape check before we ack. If we can't even see an Object.Id, + // return 400 so the sender can log the malformed payload upstream. + if (!req.body || typeof req.body !== 'object' || !req.body.Object?.Id) { + logger('webhook:route', `Rejected malformed payload from ${req.ip}`, 'warn'); + return res.status(400).json({ error: 'malformed webhook payload' }); + } + + // Ack immediately and dispatch. If the processor throws synchronously + // (bad wiring) we log it but the response is already sent. + res.status(200).json({ ok: true }); + + Promise.resolve() + .then(() => webhookProcessor.processWebhook(req.body)) + .catch(err => { + logger('webhook:route', `Unhandled error in processor for WO ${req.body?.Object?.Id}: ${err.message}`, 'error'); + }); + }); + + // ──────────────────────────────────────────────────────────────────────── + // /cleanup-test — protected admin endpoint + // + // Dry-run by default. To actually delete/prune, you now need BOTH + // ?dryRun=false AND ?live=true. The old "one flag flips destructive mode" + // behavior was a foot-gun. + // ──────────────────────────────────────────────────────────────────────── + app.get('/cleanup-test', requireAdmin(), async (req, res) => { + const requestedLive = req.query.dryRun === 'false' && req.query.live === 'true'; + const dryRun = !requestedLive; + + logger('cleanup-test', `Called dryRun=${dryRun} live=${requestedLive} by ${req.ip}`); + + // Pass the real db instance when available so we use the production database + const result = await runSpaceCleanup(dryRun, { db }); + + if (result.error) { + return res.status(500).send(`

Error

${esc(result.error)}
`); + } + + const { summary, results, mode } = result; + + let html = ` + + + + Space Cleanup - ${esc(mode)} + + + +

Space Cleanup Report - ${esc(mode)}

+ +

Summary

+
${esc(JSON.stringify(summary, null, 2))}
+ +

Full Results (${results.length} mappings)

+ + + + + + + + + + + + + `; + + results.forEach(r => { + const rowClass = r.action.includes('archive') ? 'archive' : + r.action.includes('delete') ? 'delete' : 'skipped'; + html += ` + + + + + + + + `; + }); + + html += ` + +
Work Order IDRoom IDActionDays OldStatusReason
${esc(r.woId)}${esc(r.roomId)}${esc(r.action)}${r.days !== null && r.days !== undefined ? esc(r.days) : '-'}${esc(r.status)}${esc(r.reason || '')}
+ + `; + + res.send(html); + }); + + // Stale Work Order Report (Phase 0) — protected admin endpoint + if (getStaleWorkOrdersReport) { + app.get('/stale-workorders', requireAdmin(), async (req, res) => { + try { + const report = await getStaleWorkOrdersReport(db); + + if (report.error) { + return res.status(503).send(` +

Stale Work Orders Report

+

${esc(report.message)}

+

Please set the required ServiceChannel environment variables and restart the application.

+ `); + } + + const { summary, items } = report; + + let html = ` + + + + Stale Work Orders Report + + + +

Stale Work Orders Report

+
+ Generated: ${esc(new Date(summary.generatedAt).toLocaleString())}
+ Total monitored: ${esc(summary.totalMonitored)}
+ Stale (≥2 days no update): ${esc(summary.staleCount)} +
+ +

Stale Work Orders (${items.length})

+ `; + + if (items.length === 0) { + html += `

No stale work orders found. Great job!

`; + } else { + html += ` + + + + + + + + + + + + + + `; + + items.forEach(item => { + const rowClass = item.daysSinceActivity >= 7 ? 'very-stale' : 'stale'; + + let lastNoteHtml = 'No notes'; + if (item.lastNote) { + const author = esc(item.lastNote.CreatedBy || 'Unknown'); + const noteBody = item.lastNote.NoteData || ''; + const truncated = noteBody.length > 300 ? noteBody.substring(0, 300) + '…' : noteBody; + lastNoteHtml = `
${author}
${esc(truncated)}
`; + } + + const scLink = `https://www.servicechannel.com/sc/wo/Workorders/index?id=${encodeURIComponent(item.workOrderId)}`; + const store = item.workOrder?.Location?.StoreId + ? `Store ${esc(item.workOrder.Location.StoreId)}` + : ''; + const locName = esc(item.workOrder?.LocationName || ''); + + html += ` + + + + + + + + + + `; + }); + + html += ` + +
WO #StoreStatusDays Since ActivityReasonLast NoteLinks
${esc(item.workOrder?.WorkorderNumber || item.workOrderId)}${store} ${locName}${esc(item.workOrder?.Status?.Primary || '-')}
${esc(item.workOrder?.Status?.Extended || '')}
${esc(item.daysSinceActivity)} days${esc(item.reason || '-')}${lastNoteHtml} + View in ServiceChannel + ${item.roomId ? `
Open Webex Space` : ''} +
+ `; + } + + html += ` +

+ Report generated on demand. Data sourced from local mappings + live ServiceChannel. +

+ + + `; + + res.send(html); + } catch (err) { + logger('stale-workorders', `Error: ${err.message}`, 'error'); + res.status(500).send(`

Error

${esc(err.message)}
`); + } + }); + } + + return app; +} + +// ──────────────────────────────────────────────────────────────────────────── +// Webhook payload sink + log rotation. +// +// Both write to the same directory the structured logger uses +// (src/utils/logPath.js → LOG_DIR env, default ./logs) so every log file lives +// in one place regardless of which module produced it. +// ──────────────────────────────────────────────────────────────────────────── + +function logWebhookPayload(payload) { + try { + const dir = ensureLogDir(); + const now = new Date(); + const yyyymmdd = now.toISOString().slice(0, 10).replace(/-/g, ''); + const filePath = path.join(dir, `${yyyymmdd}.webhook.log`); + const line = `${now.toISOString()} ${JSON.stringify(payload)}\n`; + fs.appendFileSync(filePath, line); + } catch (err) { + logger('webhook:archive', `Failed to persist raw payload: ${err.message}`, 'warn'); + } +} + +/** + * Delete `*.log` files older than N days in the shared log directory. + * - Only touches files ending in `.log` (avoids nuking non-log files). + * - Uses async fs and awaits everything so it doesn't race with writers. + */ +async function cleanupOldLogs({ maxAgeDays = 7 } = {}) { + const dir = getLogDir(); + try { + ensureLogDir(); + const now = Date.now(); + const cutoff = maxAgeDays * 24 * 60 * 60 * 1000; + + const entries = await fsp.readdir(dir, { withFileTypes: true }); + for (const entry of entries) { + if (!entry.isFile()) continue; + if (!entry.name.endsWith('.log')) continue; + + const filePath = path.join(dir, entry.name); + try { + const stats = await fsp.stat(filePath); + if ((now - stats.mtimeMs) > cutoff) { + await fsp.unlink(filePath); + logger('cleanupOldLogs', `Deleted ${entry.name}`); + } + } catch (err) { + logger('cleanupOldLogs', `Failed to inspect/delete ${entry.name}: ${err.message}`, 'warn'); + } + } + } catch (err) { + logger('cleanupOldLogs', `Failed for ${dir}: ${err.message}`, 'error'); + } +} + +/** + * Convenience helper to set up the daily log cleanup cron. + * Can be called from the thin bootstrap. + */ +export function setupCron() { + cron.schedule('0 15 0,8,16 * * *', () => { + cleanupOldLogs().catch(err => { + logger('cron:cleanupOldLogs', `Unhandled: ${err.message}`, 'error'); + }); + }); + logger('cron', 'Log cleanup scheduled (0 15 0,8,16 * * *)'); +} + +export { cleanupOldLogs }; +export default createApp; diff --git a/src/server/webhookAuth.js b/src/server/webhookAuth.js new file mode 100644 index 0000000..7d3a448 --- /dev/null +++ b/src/server/webhookAuth.js @@ -0,0 +1,306 @@ +/** + * src/server/webhookAuth.js + * + * Webhook authentication middleware for ServiceChannel (and generic HMAC + * webhooks). + * + * Per ServiceChannel's docs + * https://developer.servicechannel.com/guides/wh/receive-events-and-respond/ + * each webhook request includes: + * Sign-Type: HMACSHA256 + * Sign-Data: + * + * The Signing Key is fetched from + * GET /v3/NotificationSubscriptions/SigningKey + * (or copied out of the SC UI). Paste it into SC_WEBHOOK_SIGNING_SECRET and + * the defaults below match SC's format — you shouldn't need to override any + * other variable. + * + * Modes (via SC_WEBHOOK_AUTH_MODE): + * "off" — do nothing. Every request is accepted. (default) + * "log" — validate if credentials are set; log successes/failures with + * full diagnostics but still accept every request. Use this to + * confirm signatures line up before flipping to enforce. + * "enforce" — reject requests that fail validation with 401. + * + * Discovery aids (log mode only): + * - Auto-probes several known signature header names (SC's `sign-data` + * first) so a misconfigured header name doesn't silently fail. + * - Tries both base64 and hex encodings so you can't get bitten by that. + * - Reads the `Sign-Type` header when present to auto-pick the algorithm. + * - When nothing matches, logs the incoming x- and sign- headers + * (truncated) so you can see what SC actually sent. + * + * Configuration (all optional): + * SC_WEBHOOK_AUTH_MODE off | log | enforce (default: off) + * SC_WEBHOOK_SIGNING_SECRET Signing Key from ServiceChannel + * SC_WEBHOOK_SIGNATURE_HEADER HTTP header name (default: sign-data) + * SC_WEBHOOK_SIGNATURE_PREFIX e.g. "sha256=" if platform prefixes digest + * SC_WEBHOOK_SIGNATURE_ENCODING base64 | hex | auto (default: auto) + * SC_WEBHOOK_SIGNATURE_ALGO sha256 | sha1 | sha512 (default: sha256; + * overridden by + * Sign-Type header + * when present) + * SC_WEBHOOK_TOKEN Static shared secret (alternative to HMAC) + * SC_WEBHOOK_TOKEN_HEADER HTTP header name (default: x-webhook-token) + * + * IMPORTANT: for signature verification to work, the Express body parser MUST + * capture the raw body. In app.js we already use + * bodyParser.json({ verify: (req, res, buf) => { req.rawBody = buf; } }) + * so `req.rawBody` is a Buffer of the raw JSON. If that ever changes, HMAC + * checks will silently start failing — the middleware logs a WARN in that case. + */ + +import crypto from 'node:crypto'; +import { logger } from '../utils/logger.js'; + +// SC's own header comes first; the rest are common alternates so log-mode +// discovery still catches things even if the platform tweaks its scheme. +const KNOWN_SIG_HEADER_CANDIDATES = [ + 'sign-data', + 'x-sc-signature', + 'x-servicechannel-signature', + 'x-webhook-signature', + 'x-hub-signature-256', + 'x-hub-signature', + 'x-signature', + 'signature', +]; + +/** + * Map ServiceChannel's `Sign-Type: HMACSHA256` (and similar) to the algorithm + * name Node's crypto module wants. + */ +function algoFromSignType(signType) { + if (typeof signType !== 'string') return null; + const s = signType.trim().toUpperCase().replace(/[^A-Z0-9]/g, ''); + if (s === 'HMACSHA256' || s === 'SHA256') return 'sha256'; + if (s === 'HMACSHA1' || s === 'SHA1') return 'sha1'; + if (s === 'HMACSHA512' || s === 'SHA512') return 'sha512'; + return null; +} + +function getMode() { + const raw = (process.env.SC_WEBHOOK_AUTH_MODE || 'off').toLowerCase().trim(); + if (raw === 'log' || raw === 'enforce' || raw === 'off') return raw; + return 'off'; +} + +function timingSafeEqStr(a, b) { + if (typeof a !== 'string' || typeof b !== 'string') return false; + const ab = Buffer.from(a); + const bb = Buffer.from(b); + if (ab.length !== bb.length) return false; + return crypto.timingSafeEqual(ab, bb); +} + +function stripPrefix(sig, prefix) { + if (!prefix) return sig; + return sig.startsWith(prefix) ? sig.slice(prefix.length) : sig; +} + +/** + * Compute HMAC digests for the raw body under the configured algorithm. + * Returns { hex, base64 } so we can compare against either encoding. + */ +function computeDigests(secret, rawBody, algo) { + const hex = crypto.createHmac(algo, secret).update(rawBody).digest('hex'); + const base64 = crypto.createHmac(algo, secret).update(rawBody).digest('base64'); + return { hex, base64 }; +} + +function checkSignature(req) { + const secret = process.env.SC_WEBHOOK_SIGNING_SECRET; + if (!secret) return { attempted: false }; + + if (!req.rawBody || !Buffer.isBuffer(req.rawBody)) { + return { attempted: true, ok: false, reason: 'rawBody not captured (bodyParser misconfigured)' }; + } + + // If the sender advertises Sign-Type (SC does: "HMACSHA256"), let that pick + // the algorithm — it's more authoritative than any env var we set. Fall + // back to SC_WEBHOOK_SIGNATURE_ALGO or sha256. + const declaredAlgo = algoFromSignType(req.headers['sign-type']); + const algo = declaredAlgo || (process.env.SC_WEBHOOK_SIGNATURE_ALGO || 'sha256').toLowerCase(); + + const prefix = process.env.SC_WEBHOOK_SIGNATURE_PREFIX || ''; + const encPref = (process.env.SC_WEBHOOK_SIGNATURE_ENCODING || 'auto').toLowerCase(); + const configuredHeader = (process.env.SC_WEBHOOK_SIGNATURE_HEADER || 'sign-data').toLowerCase(); + + // 1. Try the configured header first. + let providedHeaderName = configuredHeader; + let provided = req.headers[configuredHeader]; + + // 2. If the configured header is absent, opportunistically probe the well- + // known candidate list (this makes log-mode discovery easier — we can + // tell the user which header actually carries the signature). + if (typeof provided !== 'string') { + for (const cand of KNOWN_SIG_HEADER_CANDIDATES) { + if (cand === configuredHeader) continue; + const v = req.headers[cand]; + if (typeof v === 'string' && v.length > 0) { + provided = v; + providedHeaderName = cand; + break; + } + } + } + + if (typeof provided !== 'string') { + return { + attempted: true, + ok: false, + reason: `no signature header found (looked for: ${configuredHeader}, ${KNOWN_SIG_HEADER_CANDIDATES.filter(h => h !== configuredHeader).join(', ')})`, + headerName: null, + }; + } + + const stripped = stripPrefix(provided.trim(), prefix); + + let digests; + try { + digests = computeDigests(secret, req.rawBody, algo); + } catch (err) { + return { attempted: true, ok: false, reason: `hmac compute failed (${algo}): ${err.message}`, headerName: providedHeaderName }; + } + + // Try both encodings unless the caller pinned one. + const tryHex = encPref === 'auto' || encPref === 'hex'; + const tryBase64 = encPref === 'auto' || encPref === 'base64'; + + let matchedEncoding = null; + if (tryHex && timingSafeEqStr(stripped, digests.hex)) matchedEncoding = 'hex'; + if (!matchedEncoding && tryBase64 && timingSafeEqStr(stripped, digests.base64)) matchedEncoding = 'base64'; + + return { + attempted: true, + ok: !!matchedEncoding, + reason: matchedEncoding ? null : 'hmac mismatch', + headerName: providedHeaderName, + headerNameMatchesConfig: providedHeaderName === configuredHeader, + encoding: matchedEncoding, + algo, + // Only expose the leading chars in logs — never dump full signatures. + providedPreview: provided.substring(0, 16) + (provided.length > 16 ? '…' : ''), + expectedHexPreview: digests.hex.substring(0, 16) + '…', + expectedBase64Preview: digests.base64.substring(0, 16) + '…', + }; +} + +function checkStaticToken(req) { + const token = process.env.SC_WEBHOOK_TOKEN; + if (!token) return { attempted: false }; + + const headerName = (process.env.SC_WEBHOOK_TOKEN_HEADER || 'x-webhook-token').toLowerCase(); + const provided = req.headers[headerName]; + if (!provided || typeof provided !== 'string') { + return { attempted: true, ok: false, reason: `missing header ${headerName}` }; + } + return { + attempted: true, + ok: timingSafeEqStr(provided, token), + reason: 'token mismatch', + }; +} + +function summarizeIncomingHeaders(req) { + // Only show headers that could plausibly carry auth info, and cap values + // so we don't spill full signatures / tokens into the log every request. + const interesting = {}; + for (const [name, value] of Object.entries(req.headers)) { + const lc = name.toLowerCase(); + const isInteresting = + /^x-/.test(lc) || + lc === 'authorization' || + lc === 'signature' || + lc.startsWith('sign-'); // catches SC's Sign-Data / Sign-Type + if (!isInteresting) continue; + const v = Array.isArray(value) ? value.join(',') : String(value); + interesting[name] = v.length > 24 ? v.substring(0, 24) + `…(${v.length} chars)` : v; + } + return interesting; +} + +/** + * Express middleware. Adds: + * req.webhookAuth = { mode, valid, checks: [...] } + * so downstream handlers can log/observe. Only rejects requests when mode === 'enforce'. + */ +export function verifyWebhook(req, res, next) { + const mode = getMode(); + + const sig = checkSignature(req); + const tok = checkStaticToken(req); + + // Nothing configured to check — bail early. + if (!sig.attempted && !tok.attempted) { + req.webhookAuth = { mode, valid: null, checks: [] }; + if (mode === 'enforce') { + logger('webhookAuth', 'enforce mode with no SC_WEBHOOK_SIGNING_SECRET or SC_WEBHOOK_TOKEN set — refusing request', 'error'); + return res.status(500).json({ error: 'webhook auth misconfigured' }); + } + return next(); + } + + const anyOk = (sig.attempted && sig.ok) || (tok.attempted && tok.ok); + + req.webhookAuth = { + mode, + valid: anyOk, + checks: [ + sig.attempted ? { name: 'signature', ok: !!sig.ok, reason: sig.ok ? null : sig.reason, meta: { + headerName: sig.headerName, + headerNameMatchesConfig: sig.headerNameMatchesConfig, + encoding: sig.encoding, + algo: sig.algo, + }} : null, + tok.attempted ? { name: 'token', ok: !!tok.ok, reason: tok.ok ? null : tok.reason } : null, + ].filter(Boolean), + }; + + if (anyOk) { + if (mode !== 'off') { + const details = []; + if (sig.attempted && sig.ok) { + details.push(`sig[header=${sig.headerName}${sig.headerNameMatchesConfig ? '' : '/UNCONFIGURED'} algo=${sig.algo} enc=${sig.encoding}]`); + } + if (tok.attempted && tok.ok) details.push('token'); + logger('webhookAuth', `OK ${details.join(' ')} mode=${mode}`); + + // If the signature came in on a header we weren't configured for, nudge + // the operator to pin it explicitly so we stop probing every request. + if (sig.attempted && sig.ok && !sig.headerNameMatchesConfig) { + logger('webhookAuth', + `Detected signature on header "${sig.headerName}" but SC_WEBHOOK_SIGNATURE_HEADER is set to "${(process.env.SC_WEBHOOK_SIGNATURE_HEADER || 'sign-data').toLowerCase()}". Update .env to pin it.`, + 'warn' + ); + } + } + return next(); + } + + // Something failed — write a detailed diagnostic in log mode. + const failedReasons = []; + if (sig.attempted && !sig.ok) failedReasons.push(`sig:${sig.reason}`); + if (tok.attempted && !tok.ok) failedReasons.push(`tok:${tok.reason}`); + + if (mode === 'log') { + logger('webhookAuth', `WOULD-REJECT (log-only): ${failedReasons.join('; ')}`, 'warn'); + if (sig.attempted && !sig.ok) { + logger('webhookAuth', + ` provided[${sig.headerName || '?'}]=${sig.providedPreview || '(none)'} ` + + `expected.hex=${sig.expectedHexPreview || 'n/a'} ` + + `expected.b64=${sig.expectedBase64Preview || 'n/a'}`, + 'warn' + ); + const headers = summarizeIncomingHeaders(req); + logger('webhookAuth', ` incoming x-headers: ${JSON.stringify(headers)}`, 'warn'); + } + } else if (mode === 'enforce') { + logger('webhookAuth', `REJECT: ${failedReasons.join('; ')}`, 'warn'); + return res.status(401).json({ error: 'unauthorized webhook' }); + } + return next(); +} + +export default verifyWebhook; diff --git a/src/services/approvalService.js b/src/services/approvalService.js new file mode 100644 index 0000000..4c9fb65 --- /dev/null +++ b/src/services/approvalService.js @@ -0,0 +1,939 @@ +/** + * src/services/approvalService.js + * + * Handles the "WAITING FOR APPROVAL" detection + Adaptive Card (v1.3) UX. + * - Fetches proposals + current NTE from ServiceChannel. + * - Posts markdown itemization summary + approval card. + * - Processes card submits: reject superseded proposals, approve, optional NTE override. + */ + +import { logger } from '../utils/logger.js'; +import { + getWorkOrderForNte, + updateWorkOrderNte, + getProposalsAssociatedWithWorkOrder, + getProposalByIdOdata, + getProposalByNumberOdata, + getProposalsToReject, + resolveRejectReasonCodeId, + rejectProposal, + approveProposal, +} from '../integrations/serviceChannel/client.js'; +import webexService from './webexService.js'; + +const CARD_DEDUP_TTL_MS = 5 * 60 * 1000; +const _recentApprovalCards = new Map(); + +function _pruneDedupCache(now = Date.now()) { + for (const [k, ts] of _recentApprovalCards.entries()) { + if (now - ts > CARD_DEDUP_TTL_MS) _recentApprovalCards.delete(k); + } +} + +function _extractProposalNumber(noteData) { + if (!noteData) return null; + const m = String(noteData).match(/Proposal\s*#?(\d+)/i); + return m ? m[1] : null; +} + +function _dedupKeys(woId, noteData) { + const keys = [`wo:${woId}:pending`]; + const p = _extractProposalNumber(noteData); + if (p) keys.push(`wo:${woId}:p:${p}`); + return keys; +} + +function _proposalStatusPrimary(p) { + if (!p) return ''; + if (typeof p.Status === 'string') return p.Status; + return p.Status?.Primary || ''; +} + +function _isApproved(p) { + return _proposalStatusPrimary(p).toLowerCase() === 'approved'; +} + +function _proposalRefNumber(p) { + return String(p?.Number ?? p?.ProposalNumber ?? p?.ID ?? p?.Id ?? ''); +} + +function _proposalRefId(p) { + return p?.Id ?? p?.ID ?? null; +} + +function _proposalDisplayNumber(p) { + return p?.Number ?? p?.ProposalNumber ?? _proposalRefId(p) ?? '?'; +} + +function _proposalDetailsUrl(proposal) { + const id = _proposalRefId(proposal); + if (!id) return null; + return `https://www.servicechannel.com/proposal/details/${id}`; +} + +function _formatMoney(n) { + const v = Number(n); + return Number.isFinite(v) ? `$${v.toFixed(2)}` : '$0.00'; +} + +function _filterCategories(categories = []) { + return categories.filter((cat) => { + const cost = cat.TotalCost; + if (cost == null) return false; + const name = (cat.Name || '').toLowerCase(); + if (name.includes('costs incurred to date')) return false; + return true; + }); +} + +/** + * Extract line-item arrays from a proposal object (best-effort). + */ +export function extractLineItems(proposal) { + if (!proposal) return []; + const candidates = [ + proposal.Items, + proposal.LineItems, + proposal.ProposalItems, + proposal.items, + proposal.Charges, + proposal.Materials, + ]; + for (const arr of candidates) { + if (Array.isArray(arr) && arr.length > 0) return arr; + } + return []; +} + +function _lineItemPart(it) { + return it.PartNum || it.PartNumber || it.SKU || it.Code || it.Name || it.Description || '—'; +} + +function _lineItemQty(it) { + const q = it.Quantity ?? it.Qty ?? it.NumOfTech; + return q != null ? String(q) : '—'; +} + +function _lineItemUnitPrice(it) { + const p = it.UnitPrice ?? it.HourlyRate ?? it.Rate; + return p != null ? _formatMoney(p) : '—'; +} + +function _lineItemTotal(it) { + const t = it.Amount ?? it.Cost ?? it.Total ?? it.Value; + return t != null ? _formatMoney(t) : '—'; +} + +/** + * SC-invoice-style markdown summary for a proposal. + */ +export function formatProposalMarkdown(wo, proposal, context = {}) { + if (!proposal) { + return `**Proposal Approval Required** — WO-${wo?.Number || wo?.Id || '???'}\n\nNo proposal details available.`; + } + + const woNum = wo?.Number || wo?.Id || '???'; + const woLink = `https://www.servicechannel.com/sc/wo/Workorders/index?id=${wo?.Id || woNum}`; + const store = wo?.LocationStoreId != null && wo?.LocationStoreId !== '' + ? `Store ${wo.LocationStoreId}` + : (wo?.LocationName || ''); + const provider = wo?.ProviderName || context.providerName || ''; + const pNum = _proposalDisplayNumber(proposal); + const proposalDetailsUrl = _proposalDetailsUrl(proposal); + const pStatus = typeof proposal.Status === 'object' + ? `${proposal.Status.Primary || ''}${proposal.Status.Extended ? ` | ${proposal.Status.Extended}` : ''}` + : (proposal.Status || 'Open'); + const created = proposal.CreatedDate + ? new Date(proposal.CreatedDate).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }) + : ''; + const desc = (proposal.Description || proposal.Description2 || proposal.Comments || '').toString().trim(); + const total = Number(proposal.Amount ?? proposal.Total ?? proposal.TotalAmount ?? 0); + + let md = `## Proposal #${pNum}\n\n`; + if (proposalDetailsUrl) { + md += `[View full proposal details in ServiceChannel](${proposalDetailsUrl})\n\n`; + } + md += `[WO-${woNum}](${woLink})`; + if (store) md += ` | ${store}`; + if (provider) md += ` | ${provider}`; + md += '\n\n'; + if (created) md += `**Created:** ${created} \n`; + md += `**Status:** ${pStatus} \n`; + if (desc) md += `**Description:** ${desc}\n`; + md += '\n'; + + const lineItems = extractLineItems(proposal); + if (lineItems.length > 0) { + md += '### Materials / Line Items\n\n'; + md += '| Part | Qty | Unit Price | Total |\n'; + md += '| --- | ---: | ---: | ---: |\n'; + for (const it of lineItems) { + md += `| ${_lineItemPart(it)} | ${_lineItemQty(it)} | ${_lineItemUnitPrice(it)} | ${_lineItemTotal(it)} |\n`; + } + md += '\n'; + } + + const categories = _filterCategories(proposal.AmountCategories || []); + if (categories.length > 0 || total > 0) { + md += '### Summary\n\n'; + md += '| Category | Amount |\n'; + md += '| --- | ---: |\n'; + for (const cat of categories) { + md += `| ${cat.Name || 'Category'} | ${_formatMoney(cat.TotalCost)} |\n`; + } + if (total > 0) { + md += `| **Total** | **${_formatMoney(total)}** |\n`; + } + md += '\n'; + } + + const toReject = context.proposalsToReject || []; + if (toReject.length > 0) { + const list = toReject.map((p) => `#${p.number || p.id} (${_formatMoney(p.amount)})`).join(', '); + md += `> **Note:** Approving this proposal will reject prior proposal(s): ${list}\n`; + } + + return md.trim(); +} + +function _buildCategoryColumnSet(categories, total) { + const rows = []; + const header = { + type: 'ColumnSet', + columns: [ + { type: 'Column', width: 'stretch', items: [{ type: 'TextBlock', text: 'Category', weight: 'bolder', size: 'small' }] }, + { type: 'Column', width: 'auto', items: [{ type: 'TextBlock', text: 'Amount', weight: 'bolder', size: 'small', horizontalAlignment: 'right' }] }, + ], + }; + rows.push(header); + + for (const cat of categories) { + rows.push({ + type: 'ColumnSet', + spacing: 'none', + columns: [ + { type: 'Column', width: 'stretch', items: [{ type: 'TextBlock', text: cat.Name || 'Category', size: 'small', wrap: true }] }, + { type: 'Column', width: 'auto', items: [{ type: 'TextBlock', text: _formatMoney(cat.TotalCost), size: 'small', horizontalAlignment: 'right' }] }, + ], + }); + } + + if (total > 0) { + rows.push({ + type: 'ColumnSet', + separator: true, + spacing: 'small', + columns: [ + { type: 'Column', width: 'stretch', items: [{ type: 'TextBlock', text: 'Total', weight: 'bolder', size: 'small' }] }, + { type: 'Column', width: 'auto', items: [{ type: 'TextBlock', text: _formatMoney(total), weight: 'bolder', size: 'small', horizontalAlignment: 'right' }] }, + ], + }); + } + + return rows; +} + +function _normalizeProposalsToReject(raw = []) { + return raw.map((p) => ({ + id: _proposalRefId(p), + number: p.Number || p.ProposalNumber || p.ID || p.Id, + amount: Number(p.Amount ?? p.Total ?? p.TotalAmount ?? 0), + })).filter((p) => p.id); +} + +/** + * Pick the pending proposal from associated list. + * Prefers note-parsed proposal #, else newest non-approved by CreatedDate. + */ +export function selectPendingProposal(associated = [], parsedProposalNumber = null) { + if (!associated.length) return null; + + if (parsedProposalNumber) { + const match = associated.find((p) => _proposalRefNumber(p) === String(parsedProposalNumber)); + if (match) return match; + } + + const pending = associated.filter((p) => !_isApproved(p)); + const pool = pending.length > 0 ? pending : associated; + + const sorted = [...pool].sort((a, b) => { + const da = new Date(a.CreatedDate || a.CreatedDate_dto || 0).getTime(); + const db = new Date(b.CreatedDate || b.CreatedDate_dto || 0).getTime(); + return db - da; + }); + + return sorted[0] || null; +} + +/** + * Build a v1.3 Adaptive Card for proposal approval. + */ +export function buildApprovalAdaptiveCard(wo, proposals = [], currentNte = 0, options = {}) { + const { proposalsToReject = [] } = options; + const woNum = wo?.Number || wo?.Id || '???'; + const woLink = `https://www.servicechannel.com/sc/wo/Workorders/index?id=${wo?.Id || woNum}`; + const store = wo?.LocationStoreId ? `Store ${wo.LocationStoreId}` : (wo?.LocationName || ''); + const status = `${wo?.Status?.Primary || 'IN PROGRESS'} | ${wo?.Status?.Extended || 'WAITING FOR APPROVAL'}`; + + const proposal = proposals?.length > 0 ? proposals[0] : null; + + let proposalAmount = 0; + if (proposal) { + proposalAmount = Number( + proposal.Amount ?? proposal.Total ?? proposal.TotalAmount ?? proposal.Cost ?? proposal.Value ?? proposal.Nte ?? 0 + ); + } + + const items = extractLineItems(proposal); + if (!proposalAmount && items.length > 0) { + proposalAmount = items.reduce((sum, it) => sum + Number(it.Amount || it.Cost || it.Total || it.Value || 0), 0); + } + + const suggestedNte = (Number(currentNte) || 0) + proposalAmount; + + const body = [ + { + type: 'TextBlock', + text: 'Proposal Approval Required', + size: 'medium', + weight: 'bolder', + }, + { + type: 'TextBlock', + text: `[WO-${woNum}](${woLink}) • ${store}`, + isSubtle: true, + wrap: true, + }, + { + type: 'FactSet', + facts: [ + { title: 'Current Status', value: status }, + { title: 'Current NTE', value: currentNte ? _formatMoney(currentNte) : 'N/A' }, + ], + }, + ]; + + if (proposalsToReject.length > 0) { + const list = proposalsToReject.map((p) => `#${p.number || p.id} (${_formatMoney(p.amount)})`).join(', '); + body.push({ + type: 'TextBlock', + text: `Approving will reject prior proposal(s): ${list}`, + color: 'warning', + weight: 'bolder', + wrap: true, + spacing: 'medium', + }); + } + + if (proposal) { + const pNum = _proposalDisplayNumber(proposal); + const proposalDetailsUrl = _proposalDetailsUrl(proposal); + body.push({ + type: 'TextBlock', + text: `Proposal #${pNum}`, + weight: 'bolder', + spacing: 'medium', + }); + + if (proposalDetailsUrl) { + body.push({ + type: 'TextBlock', + text: `[View full proposal details in ServiceChannel](${proposalDetailsUrl})`, + size: 'small', + wrap: true, + spacing: 'small', + }); + } + + if (proposalAmount > 0) { + body.push({ + type: 'TextBlock', + text: `Amount to add to NTE: **${_formatMoney(proposalAmount)}**`, + weight: 'bolder', + color: 'attention', + }); + } + + const pDesc = (proposal.Description || proposal.Description2 || proposal.Comments || '').toString().substring(0, 200); + if (pDesc) { + body.push({ + type: 'TextBlock', + text: pDesc + (pDesc.length >= 200 ? '…' : ''), + size: 'small', + wrap: true, + isSubtle: true, + }); + } + + const categories = _filterCategories(proposal.AmountCategories || []); + if (categories.length > 0) { + body.push({ + type: 'TextBlock', + text: 'Proposal Charges', + weight: 'bolder', + spacing: 'medium', + }); + body.push(..._buildCategoryColumnSet(categories, proposalAmount)); + } else if (proposalAmount > 0) { + body.push({ + type: 'TextBlock', + text: `Total Proposal Amount: ${_formatMoney(proposalAmount)} (detailed categories not available)`, + size: 'small', + isSubtle: true, + wrap: true, + }); + } + } else { + body.push({ + type: 'TextBlock', + text: 'No specific proposal details found. You can still adjust the NTE manually below.', + wrap: true, + isSubtle: true, + }); + } + + body.push( + { + type: 'TextBlock', + text: 'New NTE Amount (current NTE + proposal amount + any additional work)', + weight: 'bolder', + spacing: 'medium', + }, + { + type: 'Input.Number', + id: 'newNte', + value: suggestedNte || currentNte || 0, + placeholder: 'Enter final approved NTE', + min: 0, + }, + { + type: 'TextBlock', + text: 'Optional comment / additional instructions (will be recorded with the approval)', + spacing: 'small', + }, + { + type: 'Input.Text', + id: 'comment', + placeholder: 'e.g. Approved as quoted + $75 for expedited parts', + isMultiline: true, + } + ); + + return { + $schema: 'http://adaptivecards.io/schemas/adaptive-card.json', + type: 'AdaptiveCard', + version: '1.3', + body, + actions: [ + { + type: 'Action.Submit', + title: 'Approve Proposal', + data: { + action: 'approveNte', + workOrderId: wo?.Id || woNum, + proposalId: proposal?.Id || proposal?.ID || null, + proposalNumber: proposal?.Number || proposal?.ProposalNumber || null, + suggestedNte, + currentNte: Number(currentNte) || 0, + proposalAmount, + proposalsToRejectJson: JSON.stringify(proposalsToReject), + }, + }, + { + type: 'Action.Submit', + title: 'Cancel', + associatedInputs: 'none', + data: { + action: 'dismissApprovalCard', + workOrderId: wo?.Id || woNum, + proposalId: proposal?.Id || proposal?.ID || null, + }, + }, + ], + }; +} + +/** + * Shared flow: fetch proposal data, post markdown summary + approval card. + */ +export async function postApprovalPackage(webexClient, roomId, woObj, noteData = null, { skipDedup = false, db = null } = {}) { + if (!roomId || !woObj) return; + + const woId = woObj.Id; + const now = Date.now(); + + if (!skipDedup) { + _pruneDedupCache(now); + const dedupKeys = _dedupKeys(woId, noteData); + for (const k of dedupKeys) { + const lastPostedAt = _recentApprovalCards.get(k); + if (lastPostedAt && (now - lastPostedAt) < CARD_DEDUP_TTL_MS) { + logger('approval', `Skipping duplicate approval card for WO ${woId} (posted ${Math.round((now - lastPostedAt) / 1000)}s ago, key=${k})`); + return; + } + } + for (const k of dedupKeys) _recentApprovalCards.set(k, now); + } + + const dedupKeys = _dedupKeys(woId, noteData); + + try { + const parsedProposalNumber = _extractProposalNumber(noteData); + + const [associated, proposalsToRejectRaw, woDetails] = await Promise.all([ + getProposalsAssociatedWithWorkOrder(woId), + getProposalsToReject(woId), + getWorkOrderForNte(woId), + ]); + + logger('approval', `Found ${associated.length} associated proposals for WO ${woId}; ${proposalsToRejectRaw.length} to reject`); + + let selectedProposal = null; + let proposalIdForLog = null; + + if (associated.length > 0) { + const target = selectPendingProposal(associated, parsedProposalNumber); + const pid = target ? (target.ID || target.Id) : null; + if (pid) { + selectedProposal = await getProposalByIdOdata(pid); + proposalIdForLog = pid; + } + } else if (parsedProposalNumber) { + logger('approval', `No associated proposals for WO ${woId}; trying OData by proposal #${parsedProposalNumber}`); + selectedProposal = await getProposalByNumberOdata(parsedProposalNumber); + if (selectedProposal) { + proposalIdForLog = selectedProposal.Id || selectedProposal.ID || parsedProposalNumber; + } + } + + const proposalsToReject = _normalizeProposalsToReject(proposalsToRejectRaw) + .filter((p) => !proposalIdForLog || String(p.id) !== String(proposalIdForLog)); + const currentNte = woDetails?.Nte ?? woObj?.Nte ?? 0; + const woForDisplay = { ...woObj, ...woDetails }; + + const sender = webexClient && typeof webexClient.sendAdaptiveCard === 'function' + ? webexClient + : webexService; + + const markdown = formatProposalMarkdown(woForDisplay, selectedProposal, { proposalsToReject }); + await sender.sendMarkdown(roomId, markdown); + + const card = buildApprovalAdaptiveCard( + woForDisplay, + selectedProposal ? [selectedProposal] : [], + currentNte, + { proposalsToReject } + ); + + const proposalAmountForFallback = selectedProposal + ? Number(selectedProposal.Amount || selectedProposal.Total || selectedProposal.TotalAmount || 0) + : 0; + + const fallback = `Approval card for WO-${woObj.Number || woId}. Proposal amount: ${_formatMoney(proposalAmountForFallback)}. Suggested NTE: ${_formatMoney((Number(currentNte) || 0) + proposalAmountForFallback)}.`; + + if (db) { + const existing = await getPendingApprovalCard(db, woId); + if (existing?.messageId) { + await deleteApprovalCardMessage(existing.messageId); + } + } + + const cardMsg = await sender.sendAdaptiveCard(roomId, card, fallback); + if (db && cardMsg?.id) { + await savePendingApprovalCard(db, { + workOrderId: woId, + roomId, + messageId: cardMsg.id, + proposalId: proposalIdForLog, + }); + } + logger('approval', `Posted approval package for WO-${woObj.Number || woId} in room ${roomId} (proposalId=${proposalIdForLog || 'n/a'}, reject=${proposalsToReject.length}, messageId=${cardMsg?.id || 'n/a'})`); + } catch (err) { + if (!skipDedup) { + for (const k of dedupKeys) _recentApprovalCards.delete(k); + } + logger('approval', `Failed to post approval package for WO ${woId}: ${err.message}`, 'error'); + try { + const md = `**Action Required: Proposal Approval for WO-${woObj?.Number || woId}**\n\nStatus: ${woObj?.Status?.Primary} | ${woObj?.Status?.Extended}\n\nPlease review proposals in ServiceChannel and update NTE manually.`; + const sender = webexClient?.sendMarkdown ? webexClient : webexService; + await sender.sendMarkdown(roomId, md); + } catch (_) {} + throw err; + } +} + +export async function fetchAndPostApprovalCardIfNeeded(webexClient, roomId, woObj, noteData = null, { db = null } = {}) { + return postApprovalPackage(webexClient, roomId, woObj, noteData, { db }); +} + +function _parseProposalsToRejectFromSubmit(inputs) { + if (inputs.proposalsToRejectJson) { + try { + const parsed = JSON.parse(inputs.proposalsToRejectJson); + if (Array.isArray(parsed)) return parsed; + } catch (_) {} + } + return []; +} + +function _isAlreadyRejectedError(msg) { + const m = String(msg).toLowerCase(); + return m.includes('already rejected') || m.includes('was already rejected'); +} + +function _isProposalResolved(noteData, woObj) { + const note = String(noteData || ''); + const ext = (woObj?.Status?.Extended || '').toUpperCase(); + if (/Proposal\s*#?\s*(\d+)\s+has been approved/i.test(note)) return true; + if (/Proposal\(s\)\s*#\s*(\d+)\s+has been rejected/i.test(note)) return true; + if (ext.includes('PROPOSAL APPROVED')) return true; + return false; +} + +function getPendingApprovalCard(db, workOrderId) { + return new Promise((resolve, reject) => { + db.get( + 'SELECT workOrderId, roomId, messageId, proposalId, postedAt FROM pending_approval_cards WHERE workOrderId = ?', + [workOrderId], + (err, row) => (err ? reject(err) : resolve(row || null)) + ); + }); +} + +function savePendingApprovalCard(db, { workOrderId, roomId, messageId, proposalId }) { + return new Promise((resolve, reject) => { + db.run( + `INSERT OR REPLACE INTO pending_approval_cards (workOrderId, roomId, messageId, proposalId, postedAt) + VALUES (?, ?, ?, ?, ?)`, + [workOrderId, roomId, messageId, proposalId ?? null, new Date().toISOString()], + (err) => (err ? reject(err) : resolve()) + ); + }); +} + +function clearPendingApprovalCard(db, workOrderId) { + return new Promise((resolve, reject) => { + db.run( + 'DELETE FROM pending_approval_cards WHERE workOrderId = ?', + [workOrderId], + (err) => (err ? reject(err) : resolve()) + ); + }); +} + +async function deleteApprovalCardMessage(messageId) { + if (!messageId) return; + try { + const botClientMod = await import('../integrations/webex/botClient.js'); + await botClientMod.default.deleteMessage(messageId); + logger('approval', `Deleted approval card message ${messageId}`); + } catch (err) { + logger('approval', `Could not delete approval card ${messageId}: ${err.message}`, 'warn'); + } +} + +/** Remove the adaptive card message after a successful approval or dismiss. */ +async function _removeApprovalCard(bot, action) { + const messageId = action?.messageId; + if (!messageId) return; + + if (typeof bot?.censor === 'function') { + try { + await bot.censor(messageId); + logger('approval:submit', `Removed approval card message ${messageId}`); + return; + } catch (err) { + logger('approval:submit', `bot.censor failed for ${messageId}: ${err.message}`, 'warn'); + } + } + + try { + const botClientMod = await import('../integrations/webex/botClient.js'); + await botClientMod.default.deleteMessage(messageId); + logger('approval:submit', `Removed approval card message ${messageId} via API`); + } catch (err) { + logger('approval:submit', `Could not remove approval card ${messageId}: ${err.message}`, 'warn'); + } +} + +/** + * Remove stored approval card when proposal was approved/rejected in ServiceChannel. + */ +export async function removeApprovalCardIfResolved({ db, workOrderId, woObj, noteData }) { + if (!db || !workOrderId) return; + if (!_isProposalResolved(noteData, woObj)) return; + + try { + const row = await getPendingApprovalCard(db, workOrderId); + if (!row?.messageId) return; + + await deleteApprovalCardMessage(row.messageId); + await clearPendingApprovalCard(db, workOrderId); + logger('approval', `Removed stale approval card for WO ${workOrderId} (resolved in ServiceChannel)`); + } catch (err) { + logger('approval', `Failed to remove resolved approval card for WO ${workOrderId}: ${err.message}`, 'warn'); + } +} + +async function _rejectSupersededProposals(woId, proposalsToReject, approver, approverEmail, newProposalNumber) { + if (!proposalsToReject.length) return { rejected: [], failed: [] }; + + const reasonCodeId = await resolveRejectReasonCodeId(); + const rejected = []; + const failed = []; + + for (const p of proposalsToReject) { + const pid = p.id; + if (!pid) continue; + + const rejectBody = { + Comments: `Superseded by proposal #${newProposalNumber || 'new'} — rejected via ServChan by ${approver}`, + ProviderEmail: '', + UserEmail: '', + RejectReasonCodeId: reasonCodeId, + ActionSource: 'Standard', + ReasonString: `Superseded by revised proposal — rejected via ServChan by ${approver}`, + PinNote: false, + }; + + try { + await rejectProposal(pid, rejectBody); + rejected.push(p); + logger('approval:submit', `Rejected superseded proposal ${pid} (#${p.number}) for WO ${woId}`); + } catch (err) { + const msg = err.message || err.toString(); + const scCode = err.response?.data?.ErrorCode; + if (_isAlreadyRejectedError(msg)) { + logger('approval:submit', `Proposal ${pid} already rejected — skipping`, 'warn'); + rejected.push(p); + } else { + failed.push({ ...p, error: msg, scCode }); + logger('approval:submit', `Failed to reject proposal ${pid}: ${msg}`, 'warn'); + } + } + } + + return { rejected, failed }; +} + +export async function handleApprovalSubmit(bot, trigger, { db = null } = {}) { + const action = trigger?.attachmentAction; + if (!action || !action.inputs) return; + + const inputs = action.inputs; + + if (inputs.action === 'dismissApprovalCard') { + const woId = inputs.workOrderId; + await _removeApprovalCard(bot, action); + if (db && woId) { + try { + await clearPendingApprovalCard(db, woId); + } catch (err) { + logger('approval:submit', `Could not clear pending card row for WO ${woId}: ${err.message}`, 'warn'); + } + } + try { + await bot.say('Approval card dismissed. Approve in ServiceChannel when ready.'); + } catch (_) {} + logger('approval:submit', `Dismissed approval card for WO ${woId || 'unknown'}`); + return; + } + + if (inputs.action !== 'approveNte') return; + + const woId = inputs.workOrderId; + const proposalId = inputs.proposalId; + const newProposalNumber = inputs.proposalNumber || proposalId; + const newNte = inputs.newNte; + const comment = inputs.comment || ''; + + if (!woId || newNte === undefined) { + try { await bot.say('Missing work order or NTE amount in approval submission.'); } catch (_) {} + return; + } + + const numericNte = Number(newNte); + if (!Number.isFinite(numericNte) || numericNte < 0) { + try { await bot.say('Please enter a valid non-negative NTE amount.'); } catch (_) {} + return; + } + + const suggestedNte = Number(inputs.suggestedNte); + const nteWasOverridden = Number.isFinite(suggestedNte) && Math.abs(numericNte - suggestedNte) > 0.005; + + let approver = 'Webex user'; + let approverEmail = ''; + try { + const botClientMod = await import('../integrations/webex/botClient.js'); + const details = await botClientMod.default.getPersonDetails(action.personId); + approverEmail = details?.emails?.[0] || ''; + approver = details?.displayName || approverEmail || action.personId || 'Webex user'; + } catch (e) { + logger('approval:submit', `Could not resolve person ${action.personId}: ${e.message}`, 'warn'); + } + + let proposalsToReject = _parseProposalsToRejectFromSubmit(inputs); + let approveSucceeded = false; + let nteSucceeded = false; + const errorMessages = []; + let rejectedList = []; + + // Step 0 — Reject superseded proposals (never reject the proposal we are about to approve) + if (proposalsToReject.length === 0) { + const fresh = await getProposalsToReject(woId); + proposalsToReject = _normalizeProposalsToReject(fresh); + } + if (proposalId) { + proposalsToReject = proposalsToReject.filter((p) => String(p.id) !== String(proposalId)); + } + + let rejectFailures = []; + if (proposalsToReject.length > 0) { + const { rejected, failed } = await _rejectSupersededProposals( + woId, proposalsToReject, approver, approverEmail, newProposalNumber + ); + rejectedList = rejected; + rejectFailures = failed; + if (failed.length > 0) { + const failMsg = failed.map((f) => `#${f.number || f.id}: ${f.error}`).join('; '); + logger('approval:submit', `Pre-approve reject failed for WO ${woId} (will still attempt approve): ${failMsg}`, 'warn'); + } + } + + // Step 1 — Approve the proposal + try { + if (proposalId) { + const approveBody = { + Comments: `Approved by ${approver} via ServChan card${comment ? `: ${comment}` : ''}`, + ProviderEmail: '', + UserEmail: approverEmail, + RejectReasonCodeId: 0, + ActionSource: 'Standard', + ReasonString: `Approved by ${approver} via ServChan${comment ? `: ${comment}` : ''}`, + }; + await approveProposal(proposalId, approveBody); + approveSucceeded = true; + logger('approval:submit', `Successfully approved proposal ${proposalId} for WO ${woId} by ${approver}`); + } else { + errorMessages.push('Missing proposalId — cannot approve via SC API'); + logger('approval:submit', `Cannot approve WO ${woId}: no proposalId in submit payload`, 'error'); + } + } catch (err) { + let msg = err.message || err.toString(); + + // Defensive retry: fetch fresh reject list and try once more + if (msg.toLowerCase().includes('reject') && proposalsToReject.length === 0) { + const fresh = _normalizeProposalsToReject(await getProposalsToReject(woId)); + if (fresh.length > 0) { + const { rejected, failed } = await _rejectSupersededProposals( + woId, fresh, approver, approverEmail, newProposalNumber + ); + rejectedList = rejected; + rejectFailures = failed; + try { + await approveProposal(proposalId, { + Comments: `Approved by ${approver} via ServChan card${comment ? `: ${comment}` : ''}`, + ProviderEmail: '', + UserEmail: approverEmail, + RejectReasonCodeId: 0, + ActionSource: 'Standard', + ReasonString: `Approved by ${approver} via ServChan${comment ? `: ${comment}` : ''}`, + }); + approveSucceeded = true; + logger('approval:submit', `Approved proposal ${proposalId} after defensive reject retry for WO ${woId}`); + } catch (retryErr) { + msg = retryErr.message || retryErr.toString(); + } + } + } + + if (!approveSucceeded) { + errorMessages.push(`Proposal approval: ${msg}`); + logger('approval:submit', `Proposal approve failed for ${proposalId}: ${msg}`, 'error'); + if (msg.includes('804') || msg.includes('no permissions')) { + try { + const latest = await getProposalByIdOdata(proposalId); + const st = latest?.Status?.Primary || latest?.Status; + if (st && String(st).toLowerCase() === 'rejected') { + errorMessages.push( + 'The target proposal is already Rejected in ServiceChannel — it may have been rejected in the pre-approve step. Check SC for the correct pending proposal.' + ); + } + } catch (_) {} + } + } + } + + // Step 2 — Optional NTE override + if (approveSucceeded && nteWasOverridden) { + try { + await updateWorkOrderNte(woId, numericNte); + nteSucceeded = true; + logger('approval:submit', `NTE overridden to $${numericNte.toFixed(2)} for WO ${woId}`); + } catch (err) { + const msg = err.message || err.toString(); + logger('approval:submit', `Direct NTE override rejected by SC for WO ${woId}: ${msg}`, 'warn'); + errorMessages.push(`Could not force NTE to $${numericNte.toFixed(2)} — SC applied proposal amount automatically.`); + } + } + + // Step 3 — Confirmation + if (approveSucceeded) { + const nteLine = nteWasOverridden + ? (nteSucceeded + ? `NTE overridden to **${_formatMoney(numericNte)}**.` + : `NTE stays at SC's auto value (${_formatMoney(suggestedNte)}) — direct override was rejected. Adjust manually in SC if needed.`) + : `NTE will be raised to **${_formatMoney(suggestedNte)}** by ServiceChannel automatically.`; + + let rejectLine = ''; + if (rejectedList.length > 0) { + const list = rejectedList.map((p) => `#${p.number || p.id}`).join(', '); + rejectLine = `Prior proposal(s) rejected: **${list}**.\n\n`; + } else if (rejectFailures.length > 0) { + const list = rejectFailures.map((p) => `#${p.number || p.id}`).join(', '); + rejectLine = `Note: Could not auto-reject prior proposal(s) ${list} — verify status in ServiceChannel.\n\n`; + } + + const confirm = + `✅ **Proposal approved** by **${approver}** for WO **${woId}**.\n\n` + + rejectLine + + `${nteLine}` + + (comment ? `\n\nComment: ${comment}` : '') + + `\n\nAn audit note has been recorded on the work order in ServiceChannel.`; + + await _removeApprovalCard(bot, action); + if (db && woId) { + try { + await clearPendingApprovalCard(db, woId); + } catch (err) { + logger('approval:submit', `Could not clear pending card row for WO ${woId}: ${err.message}`, 'warn'); + } + } + await bot.say({ markdown: confirm }); + logger('approval:submit', + `Success for WO ${woId} / proposal ${proposalId || 'n/a'}: rejected=${rejectedList.length}, ` + + `nteOverride=${nteWasOverridden ? (nteSucceeded ? 'applied' : 'rejected') : 'not-requested'} by ${approver}` + ); + } else { + const isTokenError = errorMessages.some((m) => m.includes('token fetch failed')); + const confirm = isTokenError + ? `❌ **ServiceChannel login failed** — ServChan could not authenticate to the SC API.\n\n` + + `This usually means \`SC_USERNAME\` / \`SC_PASSWORD\` in \`.env\` do not match the SC user, or the bot was not restarted after updating credentials.\n\n` + + `Details: ${errorMessages.join('; ')}\n\n` + + `Fix credentials and restart ServChan, then retry approval in ServiceChannel or re-post the card.` + : `❌ Failed to approve proposal for WO ${woId}: ${errorMessages.join('; ')}. Please approve manually in ServiceChannel.`; + await bot.say({ markdown: confirm }); + logger('approval:submit', `Complete failure for WO ${woId} / proposal ${proposalId || 'n/a'}: ${errorMessages.join('; ')}`, 'error'); + } +} + +export default { + buildApprovalAdaptiveCard, + formatProposalMarkdown, + extractLineItems, + selectPendingProposal, + postApprovalPackage, + fetchAndPostApprovalCardIfNeeded, + removeApprovalCardIfResolved, + handleApprovalSubmit, +}; diff --git a/src/services/attachmentService.js b/src/services/attachmentService.js new file mode 100644 index 0000000..66b3ad4 --- /dev/null +++ b/src/services/attachmentService.js @@ -0,0 +1,247 @@ +/** + * src/services/attachmentService.js + * + * Auto-post ServiceChannel work order attachments to Webex spaces. + */ + +import { logger } from '../utils/logger.js'; +import { + listWorkOrderAttachments, + downloadAttachment, + getContentTypeFromFilename, +} from '../integrations/serviceChannel/attachments.js'; +import { + assertCollabSupportConfigured, + fetchCollabJson, +} from '../integrations/collabSupport/client.js'; +import { + isWebexNativeUpload, + prepareWebexUpload, +} from '../utils/prepareWebexAttachment.js'; + +function isAutoPostEnabled() { + const raw = process.env.AUTO_POST_ATTACHMENTS; + if (raw == null || raw === '') return true; + return !/^(0|false|no|off)$/i.test(String(raw).trim()); +} + +function isInvoiceAttachment(att) { + if (!att) return false; + if (att.IsInvoiceDigitalCopy === true) return true; + const name = String(att.Name || att.fileName || '').toUpperCase(); + return /INVOICE_/i.test(name) || name.endsWith('.PDF') && name.includes('INVOICE'); +} + +function normalizeAttachment(att) { + return { + id: att.Id ?? att.id ?? att.attachmentId ?? null, + name: att.Name || att.fileName || `attachment_${att.Id ?? att.id ?? 'unknown'}`, + uri: att.Uri || att.downloadUri || null, + isInvoice: isInvoiceAttachment(att), + }; +} + +function hasNumericId(id) { + return id != null && /^\d+$/.test(String(id)); +} + +function buildCaption(att, woNumber) { + const prefix = att.isInvoice ? 'Invoice' : 'Attachment'; + const woLabel = woNumber ? `WO **${woNumber}**` : 'work order'; + return `📎 ${prefix} from ${woLabel}: **${att.name}**`; +} + +function buildLinkMarkdown(att, woNumber) { + const prefix = att.isInvoice ? 'Invoice' : 'Attachment'; + const woLabel = woNumber ? `WO **${woNumber}**` : 'work order'; + return `📎 ${prefix} from ${woLabel}: [${att.name}](${att.uri})`; +} + +function dbGetPosted(db, workOrderId, attachmentId) { + return new Promise((resolve, reject) => { + db.get( + 'SELECT 1 FROM posted_attachments WHERE workOrderId = ? AND attachmentId = ?', + [workOrderId, attachmentId], + (err, row) => (err ? reject(err) : resolve(!!row)) + ); + }); +} + +function dbMarkPosted(db, workOrderId, attachmentId) { + return new Promise((resolve, reject) => { + db.run( + 'INSERT OR IGNORE INTO posted_attachments (workOrderId, attachmentId, postedAt) VALUES (?, ?, ?)', + [workOrderId, attachmentId, new Date().toISOString()], + (err) => (err ? reject(err) : resolve()) + ); + }); +} + +async function postSingleAttachment(webex, roomId, att, woNumber) { + const fileName = att.name; + const contentType = getContentTypeFromFilename(fileName); + const caption = buildCaption(att, woNumber); + + // Webex cannot ingest HEIC URLs; skip straight to download + convert. + if (att.uri && isWebexNativeUpload(fileName)) { + try { + await webex.sendWithAttachment(roomId, null, fileName, contentType, caption, att.uri); + logger('attachments', `Posted ${fileName} via URL for room ${roomId}`); + return { ok: true, linkOnly: false }; + } catch (urlErr) { + logger('attachments', `URL post failed for ${fileName}: ${urlErr.message}`, 'warn'); + } + } + + if (att.uri) { + try { + const { buffer, contentType: dlType } = await downloadAttachment(att.uri, fileName); + const prepared = await prepareWebexUpload(buffer, fileName, dlType || contentType); + await webex.sendWithAttachment( + roomId, + prepared.buffer, + prepared.fileName, + prepared.contentType, + caption + ); + logger('attachments', `Posted ${prepared.fileName} via buffer for room ${roomId}`); + return { ok: true, linkOnly: false }; + } catch (dlErr) { + logger('attachments', `Buffer post failed for ${fileName}: ${dlErr.message}`, 'warn'); + if (/heic-convert|Cannot find package/i.test(dlErr.message)) { + logger( + 'attachments', + 'HEIC conversion requires heic-convert in node_modules — rebuild the container: docker compose down -v && docker compose up --build', + 'error' + ); + } + } + } + + if (att.uri) { + await webex.sendMarkdown(roomId, buildLinkMarkdown(att, woNumber)); + logger('attachments', `Posted link fallback for ${fileName} in room ${roomId}`); + return { ok: true, linkOnly: true }; + } + + logger('attachments', `No URI for attachment ${att.id} (${fileName})`, 'warn'); + return { ok: false, linkOnly: false }; +} + +async function fetchCollabAttachments(woNumber) { + try { + assertCollabSupportConfigured(); + } catch { + return []; + } + + try { + const result = await fetchCollabJson( + '/woAttachments', + { woId: woNumber }, + { logTag: 'attachments:collab', timeoutMs: 20_000 } + ); + if (!result.ok || !result.data?.success) return []; + return (result.data.attachments || []).map((a) => normalizeAttachment({ + id: a.attachmentId || a.id, + Name: a.fileName, + Uri: a.downloadUri, + fileName: a.fileName, + downloadUri: a.downloadUri, + })); + } catch (err) { + logger('attachments:collab', `CollabSupport fallback failed: ${err.message}`, 'warn'); + return []; + } +} + +/** + * Post work order attachments to a Webex room. + * + * @param {object} options + * @param {object} options.db - sqlite3 db instance + * @param {object} options.webex - client with sendWithAttachment + sendMarkdown + * @param {string} options.roomId + * @param {number|string} options.workOrderId - SC internal WO id + * @param {number[]|string[]|null} [options.attachmentIds] - if set, only post these ids + * @param {string|number} [options.woNumber] - display WO number for captions + * @param {boolean} [options.skipDedup=false] - for manual /woAttachments resync + */ +export async function postWorkOrderAttachments({ + db, + webex, + roomId, + workOrderId, + attachmentIds = null, + woNumber = null, + skipDedup = false, +}) { + if (!isAutoPostEnabled() && !skipDedup) { + logger('attachments', 'AUTO_POST_ATTACHMENTS is disabled — skipping'); + return { posted: 0, skipped: 0, links: 0 }; + } + if (!db || !webex || !roomId || !workOrderId) { + logger('attachments', 'Missing required params for postWorkOrderAttachments', 'warn'); + return { posted: 0, skipped: 0, links: 0 }; + } + + let raw = await listWorkOrderAttachments(workOrderId); + if (!raw.length && woNumber) { + raw = await fetchCollabAttachments(woNumber); + } + + const normalized = raw.map(normalizeAttachment).filter((a) => a.uri); + + const idFilter = attachmentIds?.length + ? new Set(attachmentIds.map((id) => String(id))) + : null; + + let posted = 0; + let skipped = 0; + let links = 0; + + for (const att of normalized) { + if (idFilter && att.id != null && !idFilter.has(String(att.id))) continue; + if (idFilter && att.id == null) continue; + + if (!skipDedup && hasNumericId(att.id)) { + try { + const already = await dbGetPosted(db, workOrderId, att.id); + if (already) { + skipped++; + continue; + } + } catch (err) { + logger('attachments', `Dedup check failed for ${att.id}: ${err.message}`, 'warn'); + } + } + + try { + const result = await postSingleAttachment(webex, roomId, att, woNumber || workOrderId); + if (result.ok) { + if (result.linkOnly) links++; + if (!skipDedup && hasNumericId(att.id)) { + await dbMarkPosted(db, workOrderId, att.id); + } + posted++; + } + } catch (err) { + logger('attachments', `Failed to post ${att.name} (${att.id}): ${err.message}`, 'warn'); + } + } + + if (posted > 0 || skipped > 0 || links > 0) { + logger( + 'attachments', + `WO ${workOrderId}: posted=${posted}, links=${links}, skipped=${skipped}` + + (idFilter ? ` (filter=${[...idFilter].join(',')})` : ' (all)') + ); + } + + return { posted, skipped, links }; +} + +export default { + postWorkOrderAttachments, + isAutoPostEnabled, +}; diff --git a/src/services/spaceCleanupService.js b/src/services/spaceCleanupService.js new file mode 100644 index 0000000..b9bed72 --- /dev/null +++ b/src/services/spaceCleanupService.js @@ -0,0 +1,179 @@ +// src/services/spaceCleanupService.js +import { getWorkOrderStatus } from '../integrations/serviceChannel/client.js'; +import botClient from '../integrations/webex/botClient.js'; +import { logger } from '../utils/logger.js'; +import defaultDb from '../db/mappings.js'; + +/** + * Runs the space cleanup job. + * + * @param {boolean} dryRun + * @param {object} [options] + * @param {object} [options.db] - Optional sqlite3 database instance. + * When provided, this allows the caller (e.g. the main app) to ensure we are + * always using the exact same database connection that the production bot is using. + */ +export async function runSpaceCleanup(dryRun = true, options = {}) { + const { db = defaultDb } = options; + + const mode = dryRun ? '[DRY-RUN]' : '[LIVE]'; + + const REMOVE_OTHERS_AFTER_DAYS = 14; // "archive-like" step + const DELETE_AFTER_DAYS = 60; + + console.log(`[SPACE-CLEANUP] ${mode} Starting job (Remove others ≥${REMOVE_OTHERS_AFTER_DAYS}d | Delete ≥${DELETE_AFTER_DAYS}d)...`); + + const results = []; + let qualifying = 0, removedOthers = 0, deleted = 0, skipped = 0, failed = 0; + + try { + const mappings = await new Promise((resolve, reject) => { + db.all('SELECT workOrderId, roomId FROM mappings', [], (err, rows) => { + if (err) reject(err); + else resolve(rows || []); + }); + }); + + for (const mapping of mappings) { + try { + const statusInfo = await getWorkOrderStatus(mapping.workOrderId); + if (!statusInfo) { + results.push({ woId: mapping.workOrderId, roomId: mapping.roomId, action: 'skipped', status: 'UNKNOWN', reason: 'status fetch failed' }); + failed++; + continue; + } + + const primary = statusInfo.primaryStatus?.toUpperCase() || 'UNKNOWN'; + const extended = statusInfo.extendedStatus?.toUpperCase() || ''; + const statusDisplay = extended ? `${primary} (${extended})` : primary; + + if (primary !== 'INVOICED' && primary !== 'COMPLETED') { + results.push({ woId: mapping.workOrderId, roomId: mapping.roomId, action: 'skipped', status: statusDisplay, reason: 'not qualifying' }); + skipped++; + continue; + } + + qualifying++; + + const daysSinceUpdate = Math.floor((Date.now() - new Date(statusInfo.updatedDate)) / (1000 * 3600 * 24)); + + let action = 'skipped'; + let reason = ''; + + if (daysSinceUpdate >= DELETE_AFTER_DAYS) { + action = 'delete'; + reason = `${daysSinceUpdate} days → delete room`; + } else if (daysSinceUpdate >= REMOVE_OTHERS_AFTER_DAYS) { + action = 'remove_others'; + reason = `${daysSinceUpdate} days → remove other members`; + } else { + reason = `only ${daysSinceUpdate} days old`; + } + + if (action === 'skipped') { + skipped++; + results.push({ woId: mapping.workOrderId, roomId: mapping.roomId, action: 'skipped', days: daysSinceUpdate, status: statusDisplay, reason }); + continue; + } + + if (dryRun) { + results.push({ woId: mapping.workOrderId, roomId: mapping.roomId, action: `would_${action}`, days: daysSinceUpdate, status: statusDisplay, reason }); + } else { + if (action === 'remove_others') { + await removeAllOtherMembers(mapping.roomId); + logger('SPACE-CLEANUP', `Removed all other members from room ${mapping.roomId} for WO ${mapping.workOrderId} [${statusDisplay}]`); + removedOthers++; + } else if (action === 'delete') { + await botClient.deleteRoom(mapping.roomId); + deleted++; + } + + // Clean up mapping + await new Promise((resolve, reject) => { + db.run('DELETE FROM mappings WHERE workOrderId = ?', [mapping.workOrderId], (err) => { + err ? reject(err) : resolve(); + }); + }); + + results.push({ woId: mapping.workOrderId, roomId: mapping.roomId, action, days: daysSinceUpdate, status: statusDisplay, reason }); + } + } catch (err) { + results.push({ woId: mapping.workOrderId, roomId: mapping.roomId, action: 'failed', status: 'ERROR', reason: err.message }); + failed++; + logger('SPACE-CLEANUP', `Failed for WO ${mapping.workOrderId}: ${err.message}`); + } + } + + const summary = { totalChecked: mappings.length, qualifying, removedOthers, deleted, skipped, failed, dryRun }; + console.log(`[SPACE-CLEANUP] ${mode} Job completed:`, summary); + logger('SPACE-CLEANUP', `${mode} Job completed: ${JSON.stringify(summary)}`); + + return { summary, results, mode }; + + } catch (err) { + console.error(`[SPACE-CLEANUP] Critical error:`, err.message); + return { error: err.message }; + } +} + +// Cache the bot's own identity so we never accidentally kick ourselves out of +// a room during "remove other members". We resolve it once from the Webex API, +// which is authoritative regardless of what env vars are set. +let _cachedBotPerson = null; +async function getBotIdentity(axiosInstance) { + if (_cachedBotPerson) return _cachedBotPerson; + + // Prefer env-provided ID if set; still fetch email so the email-based skip + // works too even when the person ID is stale. + const envPersonId = process.env.WEBEX_BOT_PERSON_ID || null; + + try { + const { data } = await axiosInstance.get('/people/me'); + _cachedBotPerson = { + id: data?.id || envPersonId, + emails: (data?.emails || []).map(e => e.toLowerCase()), + }; + } catch (err) { + logger('SPACE-CLEANUP', `Failed to resolve bot identity via /people/me: ${err.message}`, 'warn'); + // Fall back to env-only. Emails list stays empty — the caller will still + // skip anything matching the well-known bot email suffix below. + _cachedBotPerson = { id: envPersonId, emails: [] }; + } + return _cachedBotPerson; +} + +// Helper: Remove everyone except the bot itself (best-effort) +async function removeAllOtherMembers(roomId) { + try { + const axiosInstance = botClient.axios; + const bot = await getBotIdentity(axiosInstance); + + if (!bot.id && bot.emails.length === 0) { + // We couldn't figure out who "we" are. Removing everyone in this state + // would evict the bot from its own room, orphaning it. Refuse. + logger('SPACE-CLEANUP', `Refusing to remove members from ${roomId}: bot identity unresolved (set WEBEX_BOT_PERSON_ID or verify /people/me works)`, 'error'); + return; + } + + const { data } = await axiosInstance.get('/memberships', { params: { roomId, max: 200 } }); + const memberships = data.items || []; + + for (const m of memberships) { + const emailLc = (m.personEmail || '').toLowerCase(); + + // Skip the bot's own membership by any signal we can get. + if (bot.id && m.personId === bot.id) continue; + if (emailLc && bot.emails.includes(emailLc)) continue; + if (emailLc.endsWith('@webex.bot')) continue; // catches bot mail regardless of local part + + try { + await axiosInstance.delete(`/memberships/${m.id}`); + logger('SPACE-CLEANUP', `Removed ${m.personEmail || m.personId} from ${roomId}`); + } catch (e) { + logger('SPACE-CLEANUP', `Failed to remove member ${m.id}: ${e.message}`, 'warn'); + } + } + } catch (err) { + logger('SPACE-CLEANUP', `removeAllOtherMembers failed for ${roomId}: ${err.message}`, 'error'); + } +} \ No newline at end of file diff --git a/src/services/staleWorkOrderReportService.js b/src/services/staleWorkOrderReportService.js new file mode 100644 index 0000000..b1d67e1 --- /dev/null +++ b/src/services/staleWorkOrderReportService.js @@ -0,0 +1,221 @@ +/** + * src/services/staleWorkOrderReportService.js + * + * Generates the stale work order report for the /stale-workorders endpoint. + * + * Phase 0 logic: + * - Uses only work orders present in our local mappings table. + * - Determines staleness using: + * - Work order UpdatedDate + * - Most recent note's DateCreated + * - ScheduledDate (with special rules) + * - Flags work orders with no meaningful update in the last 2 days + * (or 7 days if they have a future scheduled date). + */ + +import pLimit from 'p-limit'; +import { fetchWithRetry, sleep } from '../integrations/serviceChannel/client.js'; +import { loadSecrets } from '../config/secrets.js'; +import { logger } from '../utils/logger.js'; + +const secrets = loadSecrets(); + +// Very conservative concurrency + spacing for ServiceChannel bulk scans. +// Even 2 in parallel can trigger 429s without delays + retries. +const limit = pLimit(2); + +/** + * Fetch full details + notes for a single work order. + * Uses fetchWithRetry (handles 429/5xx with backoff + Retry-After). + * Calls are sequential (not parallel) to keep instantaneous load low. + */ +async function fetchWorkOrderDetails(workOrderId) { + // Work order with the fields we need for staleness + display + const woRes = await fetchWithRetry( + `/workorders/${workOrderId}`, + { + params: { + $select: 'Id,WorkorderNumber,Status,UpdatedDate,Description,Trade,ProviderName,LocationName,LocationStoreId,ScheduledDate' + }, + timeout: 30000, + } + ); + + // Notes (most recent by DateCreated is used for last activity) + const notesRes = await fetchWithRetry( + `/workorders/${workOrderId}/notes`, + { timeout: 30000 } + ); + + const workOrder = woRes.data; + const notes = notesRes.data?.Notes || []; + + // Find most recent note by DateCreated + let lastNote = null; + if (notes.length > 0) { + lastNote = notes.reduce((latest, note) => { + const noteDate = new Date(note.DateCreated); + return !latest || noteDate > new Date(latest.DateCreated) ? note : latest; + }); + } + + return { + workOrder, + notes, + lastNote, + }; +} + +/** + * Determine if a work order is stale and why. + */ +function evaluateStaleness(workOrder, lastNote) { + const now = new Date(); + + const updatedDate = workOrder.UpdatedDate ? new Date(workOrder.UpdatedDate) : null; + const scheduledDate = workOrder.ScheduledDate ? new Date(workOrder.ScheduledDate) : null; + const lastNoteDate = lastNote?.DateCreated ? new Date(lastNote.DateCreated) : null; + + // Last meaningful activity = most recent of UpdatedDate and last note + const activityDates = [updatedDate, lastNoteDate].filter(Boolean); + const lastActivity = activityDates.length > 0 + ? new Date(Math.max(...activityDates.map(d => d.getTime()))) + : null; + + if (!lastActivity) { + // No activity data at all — treat as very stale + return { + isStale: true, + daysSinceActivity: 999, + reason: 'No activity data available', + category: 'no-data', + }; + } + + const daysSinceActivity = Math.floor((now - lastActivity) / (1000 * 60 * 60 * 24)); + + // Rule per user requirements: + // - If has ScheduledDate: + // - Flag if ScheduledDate is in the past, OR + // - Flag if no update in the last 7 days (even with future schedule) + // - Otherwise: + // - Flag if no update in last 2 days + + if (scheduledDate) { + const scheduledInPast = scheduledDate <= now; + + if (scheduledInPast) { + return { + isStale: true, + daysSinceActivity, + reason: `Scheduled for ${scheduledDate.toISOString().split('T')[0]} (date has passed)`, + category: 'scheduled-past', + }; + } + + if (daysSinceActivity >= 7) { + return { + isStale: true, + daysSinceActivity, + reason: `No update in ${daysSinceActivity} days (scheduled for future: ${scheduledDate.toISOString().split('T')[0]})`, + category: 'long-inactive-with-schedule', + }; + } + + return { isStale: false, daysSinceActivity, reason: null, category: null }; + } + + // No scheduled date + if (daysSinceActivity >= 2) { + return { + isStale: true, + daysSinceActivity, + reason: `No update in ${daysSinceActivity} days`, + category: 'inactive', + }; + } + + return { isStale: false, daysSinceActivity, reason: null, category: null }; +} + +/** + * Main function to generate the stale work orders report. + */ +export async function getStaleWorkOrdersReport(db) { + if (!secrets.serviceChannel.clientId) { + return { + error: true, + message: 'ServiceChannel credentials are not configured in the environment (SC_CLIENT_ID, SC_CLIENT_SECRET, SC_USERNAME, SC_PASSWORD).', + summary: { totalMonitored: 0, staleCount: 0, generatedAt: new Date().toISOString() }, + items: [], + }; + } + + // 1. Get all work orders we care about from our local DB + // Note: We only select columns that are guaranteed to exist in the production schema. + // storeNumber was added later and may not exist in the live production database. + const mappings = await new Promise((resolve, reject) => { + db.all('SELECT workOrderId, roomId FROM mappings', [], (err, rows) => { + if (err) reject(err); + else resolve(rows || []); + }); + }); + + if (mappings.length === 0) { + return { + generatedAt: new Date().toISOString(), + totalMonitored: 0, + staleCount: 0, + items: [], + }; + } + + // 2. Fetch details for all work orders (very low concurrency + spacing + retries) + const fetchPromises = mappings.map((mapping, index) => + limit(async () => { + try { + // Spread start times even under the limiter to avoid thundering herd + if (index > 0) { + await sleep(320 + Math.random() * 220); // ~320-540ms stagger + } + + const details = await fetchWorkOrderDetails(mapping.workOrderId); + const evaluation = evaluateStaleness(details.workOrder, details.lastNote); + + return { + ...mapping, + ...details, + ...evaluation, + }; + } catch (err) { + // After all retries inside fetchWithRetry, this is a hard failure + logger('staleWorkOrderReport', `Failed to fetch WO ${mapping.workOrderId}: ${err.message}`, 'warn'); + return { + ...mapping, + error: err.message, + isStale: false, + }; + } + }) + ); + + const results = await Promise.all(fetchPromises); + + // 3. Filter to stale + actionable items and sort by days since activity (desc) + // - Exclude Completed items (Primary status === 'COMPLETED') + // - Errors here are items that failed even after retries + backoff + const staleItems = results + .filter(r => r.isStale && !r.error && (r.workOrder?.Status?.Primary?.toUpperCase() !== 'COMPLETED')) + .sort((a, b) => b.daysSinceActivity - a.daysSinceActivity); + + const summary = { + totalMonitored: mappings.length, + staleCount: staleItems.length, + generatedAt: new Date().toISOString(), + }; + + return { + summary, + items: staleItems, + }; +} \ No newline at end of file diff --git a/src/services/ticketService.js b/src/services/ticketService.js new file mode 100644 index 0000000..df3c3f3 --- /dev/null +++ b/src/services/ticketService.js @@ -0,0 +1,39 @@ +// src/services/ticketService.js +import { getServiceChannelToken } from '../integrations/serviceChannel/client.js'; +import axios from 'axios'; +import { loadSecrets } from '../config/secrets.js'; +import { summarizeTicketWithGrokFromContext } from '../integrations/xai/client.js'; + +const secrets = loadSecrets(); + +export async function getTicketSummary(woNumber) { + if (!secrets.serviceChannel.clientId) { + throw new Error('ServiceChannel credentials are not configured (SC_CLIENT_ID etc.).'); + } + + try { + const token = await getServiceChannelToken(); + const ticketRes = await axios.get( + `${secrets.serviceChannel.baseUrl}/workorders/${woNumber}`, + { headers: { Authorization: `Bearer ${token}` } } + ); + const ticket = ticketRes.data; + + const notesRes = await axios.get( + `${secrets.serviceChannel.baseUrl}/workorders/${woNumber}/notes`, + { headers: { Authorization: `Bearer ${token}` } } + ); + const notes = notesRes.data?.Notes || []; + + let context = `Ticket ID: ${woNumber}\n`; + context += `Description: ${ticket.Description || 'N/A'}\n`; + context += `Trade: ${ticket.Trade || 'N/A'} | Status: ${ticket.Status?.Primary || 'N/A'}\n`; + context += `Notes:\n${notes.map(n => `${n.CreatedBy}: ${n.NoteData || ''}`).join('\n')}`; + + const summary = await summarizeTicketWithGrokFromContext(context, woNumber); + + return `**WO-${woNumber} Summary**\n\n${summary}`; + } catch (err) { + throw new Error(`Failed to fetch WO-${woNumber}: ${err.message}`); + } +} \ No newline at end of file diff --git a/src/services/webexService.js b/src/services/webexService.js new file mode 100644 index 0000000..3049be9 --- /dev/null +++ b/src/services/webexService.js @@ -0,0 +1,101 @@ +/** + * src/services/webexService.js + * + * Thin service layer over the Webex bot client. + * + * Purpose: + * - Provides a clean, ServChan-specific interface for Webex operations + * - Improves testability (easy to mock the entire service) + * - Central place for any future Webex business logic related to work orders + * - Better isolation between webhookProcessor and raw botClient calls + * + * Created as part of the 2026-05-28 refactoring (step 4). + */ + +import botClient from '../integrations/webex/botClient.js'; // default singleton for convenience +import { logger } from '../utils/logger.js'; + +export class WebexService { + /** + * @param {object} [client] - Optional bot client instance. + * Defaults to the shared botClient singleton. + */ + constructor(client = botClient) { + this.client = client; + } + + // ──────────────────────────────────────────────────────────────────────────── + // Low-level passthroughs (kept for compatibility with current processor) + // ──────────────────────────────────────────────────────────────────────────── + + async createRoom(title, teamId = null) { + return this.client.createRoom(title, teamId); + } + + async addMember(roomId, personEmail) { + return this.client.addMember(roomId, personEmail); + } + + async sendMarkdown(roomId, markdown, textFallback = null) { + return this.client.sendMarkdown(roomId, markdown, textFallback); + } + + async sendWithAttachment(roomId, buffer, fileName, contentType, text, fileUrl = null) { + return this.client.sendWithAttachment(roomId, buffer, fileName, contentType, text, fileUrl); + } + + // ──────────────────────────────────────────────────────────────────────────── + // Higher-level ServChan-specific helpers (recommended for new code) + // ──────────────────────────────────────────────────────────────────────────── + + /** + * Creates a work order room with the standard ServChan title format. + */ + async createWorkOrderRoom(workOrder, teamId) { + const title = `ServChan WO-${workOrder.Number} | Store ${workOrder.LocationStoreId} | ${workOrder.LocationName}`; + const room = await this.createRoom(title, teamId); + logger('webexService', `Created room for WO-${workOrder.Number}: ${room.id}`); + return room; + } + + /** + * Adds the standard default members to a work order room. + */ + async addDefaultMembers(roomId, members = []) { + if (!members.length) return; + + const results = await Promise.allSettled( + members.map(email => this.addMember(roomId, email)) + ); + + results.forEach((result, i) => { + if (result.status === 'rejected') { + logger('webexService:addDefaultMembers', `Failed to add ${members[i]}: ${result.reason?.message || result.reason}`, 'warn'); + } + }); + } + + /** + * Posts a message to a work order room. + */ + async postWorkOrderMessage(roomId, markdown) { + return this.sendMarkdown(roomId, markdown); + } + + // ──────────────────────────────────────────────────────────────────────────── + // Adaptive Card support (for proposal approval cards) + // ──────────────────────────────────────────────────────────────────────────── + + async sendAdaptiveCard(roomId, card, fallbackText) { + return this.client.sendAdaptiveCard(roomId, card, fallbackText); + } + + async deleteMessage(messageId) { + return this.client.deleteMessage(messageId); + } +} + +// Convenience singleton (matches the pattern used elsewhere) +export const webexService = new WebexService(); + +export default webexService; \ No newline at end of file diff --git a/src/services/webhookProcessor.js b/src/services/webhookProcessor.js new file mode 100644 index 0000000..ef178dc --- /dev/null +++ b/src/services/webhookProcessor.js @@ -0,0 +1,276 @@ +/** + * webhookProcessor.js + * + * Core ServiceChannel → Webex webhook handling logic. + * + * Extracted during the 2026-05-28 cleanup refactor from the original monolith in index.js. + * + * This module owns: + * - Per-workOrderId mutex + queue to safely handle bursty ServiceChannel events + * - Room creation / lookup via mappings DB + * - Member seeding (first time only) + * - Message formatting per EventType (including xAI summarization for new WOs) + * - Posting to the correct Webex space + * + * IMPORTANT DB NOTE (production constraint): + * This processor does NOT create its own database connection. + * The caller must pass in the active sqlite3 `db` instance. + * The physical DB file used by production must never be moved or renamed. + * + * Usage (during transition): + * import { createWebhookProcessor } from './webhookProcessor.js'; + * const processor = createWebhookProcessor({ + * db, + * webex: botClient, + * summarizeDescription: mySummarizer, + * teamId: process.env.WEBEX_TEAM_ID, + * defaultMembers: [...], + * }); + * + * // Then in the webhook route: + * await processor.processWebhook(payload); + */ + +import { Mutex } from 'async-mutex'; +import { logger } from '../utils/logger.js'; +import approvalService from './approvalService.js'; +import attachmentService from './attachmentService.js'; + +export function createWebhookProcessor(options = {}) { + const { + db, + webex, // expected to have: createRoom, addMember, sendMarkdown, getRoom? + summarizeDescription, // async (rawDescription, xaiToken, opts?) => { summary } + teamId, + defaultMembers = [], + xaiToken, // for the simple initial-description summarizer + // secrets are now loaded directly inside the modules that need them + } = options; + + if (!db) { + throw new Error('webhookProcessor requires a sqlite3 db instance'); + } + if (!webex) { + throw new Error('webhookProcessor requires a webex client (botClient)'); + } + + // Per-workOrderId concurrency control (private to this processor instance) + const mutexes = new Map(); // workOrderId → Mutex + const pendingQueues = new Map(); // workOrderId → Array<{payload, startTime}> + + function scheduleAttachmentPost({ roomId, workOrderId, woNumber, attachmentIds = null }) { + attachmentService.postWorkOrderAttachments({ + db, + webex, + roomId, + workOrderId, + woNumber, + attachmentIds, + }).catch((err) => { + logger('webhookProcessor:attachments', `Post error for WO ${workOrderId}: ${err.message}`, 'warn'); + }); + } + + /** + * Main entry point — call this for every incoming ServiceChannel webhook payload. + * Safe to call concurrently; internal mutex + queue handles ordering per WO. + */ + async function processWebhook(payload) { + const startTime = Date.now(); + + const { Object: obj } = payload || {}; + if (!obj || !obj.Id) { + logger('webhookProcessor', 'Invalid payload — missing Object.Id'); + return; + } + + const workOrderId = obj.Id; + + // Ensure we have a mutex and queue for this work order + if (!mutexes.has(workOrderId)) { + mutexes.set(workOrderId, new Mutex()); + } + const mutex = mutexes.get(workOrderId); + + if (!pendingQueues.has(workOrderId)) { + pendingQueues.set(workOrderId, []); + } + const queue = pendingQueues.get(workOrderId); + + queue.push({ payload, startTime }); + + let release; + try { + release = await mutex.acquire(); + + // 1. Find or create the Webex room for this work order + const row = await new Promise((resolve, reject) => { + db.get('SELECT roomId FROM mappings WHERE workOrderId = ?', [workOrderId], (err, r) => { + err ? reject(err) : resolve(r); + }); + }); + + let roomId = row?.roomId; + let roomJustCreated = false; + + if (!roomId) { + logger('webhookProcessor', `Creating new room for WO-${workOrderId}`); + + const storeLabel = obj.LocationStoreId != null && obj.LocationStoreId !== '' + ? String(obj.LocationStoreId) + : '?'; + const title = `ServChan WO-${obj.Number} | Store ${storeLabel} | ${obj.LocationName || ''}`; + + const created = await webex.createRoom(title, teamId); + roomId = created.id; + + await new Promise((resolve, reject) => { + db.run( + 'INSERT OR REPLACE INTO mappings (workOrderId, roomId) VALUES (?, ?)', + [workOrderId, roomId], + (err) => (err ? reject(err) : resolve()) + ); + }); + + logger('webhookProcessor', `Created space ${roomId} for WO-${obj.Number}`); + roomJustCreated = true; + + // Seed default members (best effort) + if (defaultMembers.length > 0) { + await Promise.allSettled( + defaultMembers.map(email => webex.addMember(roomId, email)) + ).then(results => { + results.forEach((r, i) => { + if (r.status === 'rejected') { + logger('webhookProcessor:addMember', `${defaultMembers[i]} failed: ${r.reason?.message || r.reason}`); + } + }); + }); + } + } + + // 2. Drain the queue and post messages for this work order + while (queue.length > 0) { + const { payload: p, startTime: itemStart } = queue.shift(); + + let text = ''; + + if (p.EventType === 'WorkOrderCreated') { + let summaryResult; + try { + summaryResult = summarizeDescription + ? await summarizeDescription(p.Object.Description, xaiToken, { maxTokens: 300 }) + : { summary: p.Object.Description?.substring(0, 300) || '' }; + } catch (sumErr) { + logger('webhookProcessor', `Summarization failed for new WO ${p.Object.Id}: ${sumErr.message}`, 'warn'); + summaryResult = { summary: p.Object.Description?.substring(0, 400) || 'No description' }; + } + + // LocationStoreId can arrive as a numeric string, a number, or be + // missing. Old code did `LocationStoreId * 1` which produced NaN + // when the field was absent and dropped leading zeros for strings. + const storeLabel = p.Object.LocationStoreId != null && p.Object.LocationStoreId !== '' + ? String(p.Object.LocationStoreId) + : '?'; + + text = + `## [New Work Order Created](https://www.servicechannel.com/sc/wo/Workorders/index?id=${p.Object.Id})\n\n` + + `### ServChan WO-${p.Object.Number} | Store ${storeLabel} | ${p.Object.LocationName || ''}\n` + + `**Trade:** ${p.Object.Trade || 'N/A'} | ${p.Object.ProviderName || 'N/A'}\n` + + `**Priority:** ${p.Object.Priority || 'N/A'} | ${p.Object.Category || 'N/A'} | ${p.Object.ProblemCode || 'N/A'}\n` + + `**Status:** ${p.Object.Status?.Primary || 'N/A'} | ${p.Object.Status?.Extended || 'N/A'}\n` + + `**Description:** ${summaryResult?.summary || p.Object.Description?.substring(0, 300) || 'No description'}\n\n`; + } else if (p.EventType === 'WorkOrderNoteAdded') { + const note = p.Object.Notes?.[0] || {}; + text = + `### [Note Added](https://www.servicechannel.com/sc/wo/Workorders/index?id=${p.Object.Id})\n\n` + + `${note.NoteData || 'No note content'} — ${note.CreatedBy || 'Unknown'}\n\n` + + `**Status:** ${p.Object.Status?.Primary || 'N/A'} | ${p.Object.Status?.Extended || 'N/A'}`; + } else { + // Generic fallback for other events + text = + `**Work Order Update**\n\n` + + `**WO Number:** ${p.Object.Number || 'Unknown'}\n` + + `**Event:** ${p.EventType || 'Unknown'}\n` + + `**Current Status:** ${p.Object.Status?.Primary || 'N/A'}\n` + + `**Updated:** ${new Date().toISOString()}`; + } + + if (!text.trim()) { + text = `Webhook received for Work Order ${workOrderId} (${p.EventType || 'unknown event'}).`; + } + + try { + await webex.sendMarkdown(roomId, text); + logger('webhookProcessor', `Posted for ${workOrderId} (${Date.now() - itemStart}ms)`); + } catch (postErr) { + const details = postErr.response?.data ? JSON.stringify(postErr.response.data) : postErr.message; + logger('webhookProcessor', `Post failed for ${workOrderId}: ${details}`, 'error'); + } + + // Auto-post attachments referenced in this note + if (p.EventType === 'WorkOrderNoteAdded') { + const note = p.Object.Notes?.[0] || {}; + if (note.AttachmentIds?.length) { + scheduleAttachmentPost({ + roomId, + workOrderId, + woNumber: p.Object.Number, + attachmentIds: note.AttachmentIds, + }); + } + } + + // Auto-remove stale approval cards when resolved in ServiceChannel + const noteDataForApproval = (p.EventType === 'WorkOrderNoteAdded' && p.Object.Notes?.[0]?.NoteData) || null; + approvalService.removeApprovalCardIfResolved({ + db, + workOrderId, + woObj: p.Object, + noteData: noteDataForApproval, + }).catch((e) => { + logger('webhookProcessor:approval', `Card remove error for ${workOrderId}: ${e.message}`, 'warn'); + }); + + // NEW: Proposal approval card for WAITING FOR APPROVAL status (additive to text note) + const ext = (p.Object?.Status?.Extended || '').toUpperCase(); + if (ext.includes('WAITING FOR APPROVAL')) { + // Capture the note that usually contains "Proposal #12345 has been created" + // so we can look up the specific proposal and its itemized parts + labor. + const noteData = noteDataForApproval; + + // fire-and-forget; uses the injected webex (WebexService) or falls back internally + approvalService.fetchAndPostApprovalCardIfNeeded(webex, roomId, p.Object, noteData, { db }).catch(e => { + logger('webhookProcessor:approval', `Card post error for ${workOrderId}: ${e.message}`, 'warn'); + }); + } + } + + if (roomJustCreated) { + scheduleAttachmentPost({ + roomId, + workOrderId, + woNumber: obj.Number, + }); + } + } catch (err) { + logger('webhookProcessor', `Critical error for ${workOrderId}: ${err.message}\n${err.stack}`, 'error'); + } finally { + if (release) release(); + + // Clean up empty queues/mutexes + if (queue.length === 0) { + pendingQueues.delete(workOrderId); + mutexes.delete(workOrderId); + } + } + } + + return { + processWebhook, + // Expose internal state for debugging / the /cleanup-test style endpoints if needed later + _getInternalState: () => ({ mutexes, pendingQueues }), + }; +} + +export default createWebhookProcessor; \ No newline at end of file diff --git a/src/utils/logPath.js b/src/utils/logPath.js new file mode 100644 index 0000000..217a9bb --- /dev/null +++ b/src/utils/logPath.js @@ -0,0 +1,36 @@ +// src/utils/logPath.js +// +// Single source of truth for where log files are written. +// +// All log-writing code (structured logger, webhook payload archive, log- +// cleanup cron) should resolve their target directory via getLogDir(). This +// way you can: +// - keep the default of ./logs (matches Docker/prod bind mounts) OR +// - override with LOG_DIR (e.g. /var/log/servchan) in any environment +// and everything stays consistent. +// +// The directory is resolved relative to process.cwd() when the env var is +// unset — that's what `./logs` means to Node when Dockerfile's WORKDIR /app +// is in effect, or when you `npm start` from the repo root locally. + +import path from 'node:path'; +import fs from 'node:fs'; + +export const DEFAULT_LOG_DIR = './logs'; + +export function getLogDir() { + const raw = process.env.LOG_DIR || DEFAULT_LOG_DIR; + return path.resolve(raw); +} + +/** + * Make sure the log directory exists. Safe to call every write. + * (`recursive: true` makes mkdirSync a no-op when the dir already exists.) + */ +export function ensureLogDir() { + const dir = getLogDir(); + fs.mkdirSync(dir, { recursive: true }); + return dir; +} + +export default getLogDir; diff --git a/src/utils/logger.js b/src/utils/logger.js new file mode 100644 index 0000000..763cafa --- /dev/null +++ b/src/utils/logger.js @@ -0,0 +1,59 @@ +// src/utils/logger.js +// +// Structured logger: console + daily rotating file. +// Resolves the target directory via src/utils/logPath.js so every part of the +// codebase writes to the same place (configurable via LOG_DIR env var, default +// ./logs). See logPath.js for the reasoning. + +import fs from 'node:fs'; +import path from 'node:path'; +import { getLogDir, ensureLogDir } from './logPath.js'; + +/** + * Enhanced logger: console + daily file + * @param {string} context - usually function name or component (e.g. 'webhook', 'cron', 'deviceStatus') + * @param {string} message - the log content + * @param {string} [level='info'] - info, warn, error (for color/future filtering) + */ +export function logger(context, message, level = 'info') { + const now = new Date(); + const dateStr = now.toLocaleString('en-US', { + year: 'numeric', + month: '2-digit', + day: '2-digit', + hour: '2-digit', + minute: '2-digit', + second: '2-digit', + hour12: false, + }); + + const yearMonthDay = now.toISOString().slice(0, 10).replace(/-/g, ''); // YYYYMMDD + const logDir = ensureLogDir(); + const logFile = path.join(logDir, `${yearMonthDay}.log`); + + const prefixes = { + info: '[INFO]', + warn: '[WARN]', + error: '[ERROR]', + }; + const prefix = prefixes[level] || '[INFO]'; + console.log(`${dateStr} ${prefix} ${context.padEnd(15)} | ${message}`); + + const fileLine = `${dateStr} ${prefix} ${context.padEnd(15)} | ${message}\n`; + try { + fs.appendFileSync(logFile, fileLine); + } catch (err) { + console.error(`Logger failed to write to ${logFile}: ${err.message}`); + } +} + +// Convenience shortcuts +export const info = (context, msg) => logger(context, msg, 'info'); +export const warn = (context, msg) => logger(context, msg, 'warn'); +export const error = (context, msg) => logger(context, msg, 'error'); + +// Re-export so callers that need the directory (webhook archiver, log cleaner) +// don't have to import logPath separately. +export { getLogDir, ensureLogDir }; + +export default logger; diff --git a/src/utils/normalize.js b/src/utils/normalize.js new file mode 100644 index 0000000..a1d5809 --- /dev/null +++ b/src/utils/normalize.js @@ -0,0 +1,23 @@ +// src/utils/normalize.js +export function normalizePlayerName(name) { + if (typeof name !== 'string' || !name.trim()) return ''; + const upper = name.trim().toUpperCase(); + + // Your original logic (country.store.suffix patterns) + const match = upper.match(/^([A-Z]{2})\.?(?:(\d{1,6})\.?)?(?:OFFLINE|AE|AERIE)?\.?(\d{1,6})?\.?(OFFLINE|AE|AERIE)?$/i); + if (match) { + const country = match[1]; + let store = match[2] || match[3] || ''; + const suffixRaw = match[4] || ''; + if (!store) return name.trim(); + + const paddedStore = store.padStart(6, '0'); + let suffix = ''; + if (suffixRaw === 'OFFLINE') suffix = 'MSCOFF'; + else if (suffixRaw === 'AE' || suffixRaw === 'AERIE') suffix = `MSC${suffixRaw}`; + + return `${country}${paddedStore}${suffix}`; + } + + return name.trim(); +} \ No newline at end of file diff --git a/src/utils/prepareWebexAttachment.js b/src/utils/prepareWebexAttachment.js new file mode 100644 index 0000000..c11b88b --- /dev/null +++ b/src/utils/prepareWebexAttachment.js @@ -0,0 +1,55 @@ +/** + * Normalize attachment bytes/filenames for Webex Messages API uploads. + * + * Webex supports jpeg/png/gif/bmp and common office/pdf types — not HEIC/HEIF. + * @see https://developer.webex.com/docs/basics#message-attachments + */ + +import { logger } from './logger.js'; +import { getContentTypeFromFilename } from '../integrations/serviceChannel/attachments.js'; +import convert from 'heic-convert'; + +const WEBEX_NATIVE_EXT = /\.(jpe?g|png|gif|bmp|pdf|docx?|xls|pptx?)$/i; +const CONVERT_TO_JPEG_EXT = /\.(heic|heif)$/i; + +export function isWebexNativeUpload(fileName) { + return WEBEX_NATIVE_EXT.test(String(fileName || '')); +} + +export function needsJpegConversion(fileName, contentType = '') { + const name = String(fileName || ''); + if (CONVERT_TO_JPEG_EXT.test(name)) return true; + const ct = String(contentType || '').toLowerCase(); + return ct === 'image/heic' || ct === 'image/heif' || ct === 'image/heif-sequence'; +} + +export function jpegFileName(originalName) { + const base = String(originalName || 'attachment').replace(/\.(heic|heif)$/i, ''); + return `${base}.jpg`; +} + +/** + * Prepare a downloaded attachment for Webex upload. + * Converts HEIC/HEIF to JPEG when needed. + */ +export async function prepareWebexUpload(buffer, fileName, contentType) { + const resolvedType = contentType || getContentTypeFromFilename(fileName); + + if (needsJpegConversion(fileName, resolvedType)) { + const jpegBuffer = Buffer.from(await convert({ + buffer, + format: 'JPEG', + quality: 0.92, + })); + + const outName = jpegFileName(fileName); + logger('attachments:convert', `Converted ${fileName} → ${outName} (${jpegBuffer.length} bytes)`); + return { buffer: jpegBuffer, fileName: outName, contentType: 'image/jpeg' }; + } + + if (resolvedType === 'application/octet-stream') { + throw new Error(`Unsupported or unknown MIME type for Webex: ${fileName}`); + } + + return { buffer, fileName, contentType: resolvedType }; +} diff --git a/src/utils/time.js b/src/utils/time.js new file mode 100644 index 0000000..204a2a3 --- /dev/null +++ b/src/utils/time.js @@ -0,0 +1,68 @@ +// utils/time.js + +/** + * Human-readable "X time ago" from ISO string + * @param {string} isoString - e.g. "2025-03-10T14:30:00Z" + * @returns {string} e.g. "2 hours ago" + */ +export function simpleTimeAgo(input) { + if (!input) return 'never'; + + let date; + if (input instanceof Date) { + date = input; + } else if (typeof input === 'number') { + date = new Date(input); + } else if (typeof input === 'string') { + let cleaned = input.trim(); + // If no timezone (no Z or offset), assume UTC and append Z + if (!cleaned.endsWith('Z') && !cleaned.match(/[+-]\d{2}:\d{2}$/)) { + cleaned += 'Z'; + console.log('[TIME] Appended Z to timestamp (assumed UTC):', cleaned); + } + date = new Date(cleaned); + } else { + console.log('[TIME] Invalid input type to simpleTimeAgo:', typeof input, input); + return 'invalid'; + } + + if (isNaN(date.getTime())) { + console.log('[TIME] Invalid date parsed from:', input); + return 'invalid'; + } + + const now = Date.now(); + const diffMs = now - date.getTime(); + + // Small clock skew tolerance (< 5 minutes future → treat as "just now") + if (diffMs < 0 && diffMs > -300000) { + return 'just now'; + } + + // Future (real future) + if (diffMs < 0) { + const futureMs = -diffMs; + const futureSeconds = Math.floor(futureMs / 1000); + const futureMinutes = Math.floor(futureSeconds / 60); + const futureHours = Math.floor(futureMinutes / 60); + const futureDays = Math.floor(futureHours / 24); + + if (futureSeconds < 60) return `in ${futureSeconds} seconds`; + if (futureMinutes < 60) return `in ${futureMinutes} minutes`; + if (futureHours < 24) return `in ${futureHours} hours`; + return `in ${futureDays} days`; + } + + // Past + const seconds = Math.floor(diffMs / 1000); + const minutes = Math.floor(seconds / 60); + const hours = Math.floor(minutes / 60); + const days = Math.floor(hours / 24); + + if (seconds < 60) return `${seconds} seconds ago`; + if (minutes < 60) return `${minutes} minutes ago`; + if (hours < 24) return `${hours} hours ago`; + if (days < 30) return `${days} days ago`; + + return date.toLocaleDateString(); // fallback +} \ No newline at end of file diff --git a/tools/README.md b/tools/README.md new file mode 100644 index 0000000..62ad1f9 --- /dev/null +++ b/tools/README.md @@ -0,0 +1,37 @@ +# ServChan Tools + +This directory contains standalone operational and data utility scripts used alongside (or historically with) the main ServChan Webex bot. + +These scripts are **not** part of the runtime bot. They are one-off or scheduled tools for device management, data enrichment, and troubleshooting in the retail environment. + +## Directory Layout + +- **appleTV/** — Apple TV / AirPlay device discovery and Meraki enrichment scripts + sample data. +- **optisign/** — Optisign digital signage device status queries (GraphQL). +- **fixWiredTV/** — One-time remediation scripts for wired Apple TV / display issues (Meraki port flapping + MDM commands). +- **meraki/** — (Reserved) Meraki-specific enrichment or client data tools. +- `convert.js` — General data conversion helper. + +## Important Notes + +- Most of these scripts read from `../config/config.json` (the same file used by the bot). +- Many were written iteratively and may have hardcoded values or be in varying states of maintenance. +- Several functions that these scripts previously performed locally (especially AV/device status for stores) have moved to the remote CollabSupport service that the main bot now calls for `/avStatus` and similar commands. +- Large CSV/JSON outputs are often generated here and may be gitignored or cleaned periodically. + +## Running + +```bash +cd tools/appleTV +node appleTV.js # or appleTV-enhanced.js +``` + +Same pattern for the others. They are plain Node.js scripts (ESM or CJS — check the shebang/import style of each file). + +## Future + +As the main ServChan bot and its supporting remote services mature, some of these tools may be retired or folded into scheduled jobs / the remote CollabSupport API. + +--- + +**Last organized**: 2026-05-28 during ServChan base cleanup refactor. \ No newline at end of file diff --git a/tools/appleTV/appleTV-enhanced.js b/tools/appleTV/appleTV-enhanced.js new file mode 100644 index 0000000..86201fa --- /dev/null +++ b/tools/appleTV/appleTV-enhanced.js @@ -0,0 +1,708 @@ +import fs from 'fs'; +import csv from 'csv-parser'; +import path from 'path'; +import axios from 'axios'; +import pLimit from 'p-limit'; +import { Parser } from 'json2csv'; + +var merakiNetworks = []; + + +var config = JSON.parse(fs.readFileSync('./config/config.json')); + +let lastPortFetchTime = 0; +const MIN_DELAY_MS = 150; // ~6–7 calls/sec — safe under Meraki's 10/sec steady limit +const MAX_RETRIES = 5; +const BASE_BACKOFF_MS = 1000; // 1s, 2s, 4s, 8s, 16s... + +// Global cache for device info (serial → {model, name, type, ...}) +const deviceInfoCache = new Map(); + + +// Assume you have these functions from your previous code +// e.g., findMerakiNetworkId(storeNum) → returns network ID +// getMerakiClients(networkId) → returns array of clients with description, vlan, switchport, status, etc. + +async function getMerakiDeviceInfo(serial) { + if (!serial || serial === 'N/A') return null; + + if (deviceInfoCache.has(serial)) { + return deviceInfoCache.get(serial); + } + + const url = `https://api.meraki.com/api/v1/devices/${serial}`; + + for (let attempt = 1; attempt <= 3; attempt++) { + try { + const response = await fetch(url, { + method: 'GET', + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + if (response.status === 429) { + let retryAfterSec = 2; + const retryAfter = response.headers.get('retry-after'); + if (retryAfter) retryAfterSec = parseInt(retryAfter, 10) || 2; + console.warn(`429 on device info for ${serial} - wait ${retryAfterSec}s`); + await new Promise(r => setTimeout(r, retryAfterSec * 1000 + 300)); + continue; + } + + if (!response.ok) { + console.warn(`Device info fetch failed for ${serial}: HTTP ${response.status}`); + return null; + } + + const info = await response.json(); + deviceInfoCache.set(serial, info); + return info; + } catch (err) { + console.warn(`Device info attempt ${attempt} error for ${serial}: ${err.message}`); + if (attempt === 3) return null; + await new Promise(r => setTimeout(r, 1000 * attempt)); + } + } + + return null; +} + +async function throttledGetMerakiSwitchPortConfig(serial, portId) { + if (!serial || !portId) { + throw new Error('Missing serial or portId for port config fetch'); + } + + const url = `https://api.meraki.com/api/v1/devices/${serial}/switch/ports/${portId}`; + + // Step 1: Enforce minimum delay between calls + const now = Date.now(); + const timeSinceLast = now - lastPortFetchTime; + if (timeSinceLast < MIN_DELAY_MS) { + const waitMs = MIN_DELAY_MS - timeSinceLast; + console.log(`Throttling port fetch for ${serial}/${portId} — waiting ${waitMs}ms`); + await new Promise(resolve => setTimeout(resolve, waitMs)); + } + + // Update timestamp right before the request (more accurate for burst control) + lastPortFetchTime = Date.now(); + + // Step 2: Attempt the request with retries on 429 and transient errors + for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) { + try { + const response = await fetch(url, { + method: 'GET', + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + // Handle 429 specifically + if (response.status === 429) { + let retryAfterSec = 2; // default fallback + + // Respect Retry-After header if present + const retryAfterHeader = response.headers.get('retry-after'); + if (retryAfterHeader) { + const parsed = parseInt(retryAfterHeader, 10); + if (!isNaN(parsed) && parsed > 0) { + retryAfterSec = parsed; + } + } + + console.warn( + `429 Too Many Requests on ${serial}/${portId} ` + + `(attempt ${attempt}/${MAX_RETRIES}) — waiting ${retryAfterSec}s` + ); + + await new Promise(resolve => setTimeout(resolve, retryAfterSec * 1000 + 200)); // +200ms jitter + continue; // retry + } + + if (!response.ok) { + const errorText = await response.text().catch(() => 'Unknown error'); + throw new Error(`Meraki API failed (${response.status}): ${errorText}`); + } + + const data = await response.json(); + console.log(`Successfully fetched port config for ${serial}/${portId}`); + return data; + + } catch (err) { + console.error( + `Port fetch error for ${serial}/${portId} (attempt ${attempt}/${MAX_RETRIES}): ${err.message}` + ); + + if (attempt === MAX_RETRIES) { + throw new Error( + `Failed to fetch port ${portId} on switch ${serial} after ${MAX_RETRIES} attempts: ${err.message}` + ); + } + + // Exponential backoff for non-429 errors too (e.g., 500s, network blips) + const backoffMs = BASE_BACKOFF_MS * Math.pow(2, attempt - 1) + Math.random() * 200; // jitter + console.log(`Backing off for ${Math.round(backoffMs)}ms before retry ${attempt + 1}`); + await new Promise(resolve => setTimeout(resolve, backoffMs)); + } + } + + // Should never reach here due to throw on last attempt + throw new Error('Unexpected exit from retry loop'); +} +// Helper: Fetch a single switch port configuration from Meraki API +async function getMerakiSwitchPortConfig(serial, portId) { + if (!serial || !portId) { + throw new Error('Missing serial or portId for port config fetch'); + } + + const url = `https://api.meraki.com/api/v1/devices/${serial}/switch/ports/${portId}`; + + try { + const response = await fetch(url, { + method: 'GET', + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + if (!response.ok) { + const errorText = await response.text().catch(() => 'Unknown error'); + throw new Error(`Meraki API failed (${response.status}): ${errorText}`); + } + + return await response.json(); + } catch (err) { + throw new Error(`Failed to fetch port ${portId} on switch ${serial}: ${err.message}`); + } +} + +// Helper: Fetch all clients for a network (with basic pagination support) +async function getMerakiClients(networkId) { + let allClients = []; + let startingAfter = null; + const perPage = 1000; + + do { + let url = `https://api.meraki.com/api/v1/networks/${networkId}/clients?perPage=${perPage}`; + if (startingAfter) { + url += `&startingAfter=${encodeURIComponent(startingAfter)}`; + } + + for (let attempt = 1; attempt <= 5; attempt++) { + try { + const response = await fetch(url, { + method: 'GET', + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + if (response.status === 429) { + let retryAfterSec = 2; + const retryAfterHeader = response.headers.get('retry-after'); + if (retryAfterHeader) { + const parsed = parseInt(retryAfterHeader, 10); + if (!isNaN(parsed) && parsed > 0) retryAfterSec = parsed; + } + console.warn(`429 on clients page for ${networkId} (attempt ${attempt}) - waiting ${retryAfterSec}s`); + await new Promise(r => setTimeout(r, retryAfterSec * 1000 + 300)); // jitter + continue; + } + + if (!response.ok) { + throw new Error(`Clients fetch failed: ${response.status}`); + } + + const clients = await response.json(); + allClients = allClients.concat(clients); + startingAfter = clients.length === perPage ? clients[clients.length - 1].id : null; + break; // success → next page + + } catch (err) { + if (attempt === 5) throw err; + const backoff = 1000 * Math.pow(2, attempt - 1) + Math.random() * 500; + console.log(`Retry backoff ${Math.round(backoff)}ms for ${networkId}`); + await new Promise(r => setTimeout(r, backoff)); + } + } + } while (startingAfter); + + return allClients; +} + +async function getAllMerakiSwitchPorts(serial) { + if (!serial || serial === 'N/A') return []; + + // Check if it's actually a switch + const device = await getMerakiDeviceInfo(serial); + if (!device || !device.model?.startsWith('MS')) { + const model = device?.model || 'unknown'; + console.log(`Skipping ports fetch for non-switch device ${serial} (model: ${model})`); + return []; + } + + console.log(`Fetching ports for confirmed switch ${serial} (model: ${device.model})`); + + const url = `https://api.meraki.com/api/v1/devices/${serial}/switch/ports`; + + for (let attempt = 1; attempt <= 3; attempt++) { + try { + const response = await fetch(url, { + method: 'GET', + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + if (response.status === 429) { + let retryAfterSec = 2; + const retryAfter = response.headers.get('retry-after'); + if (retryAfter) retryAfterSec = parseInt(retryAfter, 10) || 2; + console.warn(`429 on ports fetch for ${serial} - wait ${retryAfterSec}s`); + await new Promise(r => setTimeout(r, retryAfterSec * 1000 + 300)); + continue; + } + + if (!response.ok) { + const errText = await response.text().catch(() => 'Unknown'); + throw new Error(`HTTP ${response.status}: ${errText}`); + } + + const ports = await response.json(); + console.log(`Fetched ${ports.length} ports for switch ${serial}`); + return ports; + } catch (err) { + console.warn(`Ports fetch attempt ${attempt} failed for ${serial}: ${err.message}`); + if (attempt === 3) return []; + await new Promise(r => setTimeout(r, 1000 * attempt)); + } + } + + return []; +} + +// Main function – now outputs CSV directly +async function processCSVAndEnrichMeraki(csvFilePath, outputCsvPath = 'enriched-meraki-output.csv') { + const results = []; + + // 1. Parse input CSV + await new Promise((resolve, reject) => { + fs.createReadStream(csvFilePath) + .pipe(csv()) + .on('data', row => results.push(row)) + .on('end', () => { + console.log(`Input CSV parsed - ${results.length} rows`); + resolve(); + }) + .on('error', err => reject(err)); + }); + + // 2. Cache networks if not already done + if (merakiNetworks.length === 0) { + await cacheMerakiNetworks(); + } + + // 3. Build unique store → network map + const storeToNetwork = new Map(); + const limit = pLimit(4); + + const networkPromises = results.map(row => { + const friendlyName = row.device_friendly_name?.trim() || ''; + if (!friendlyName) return Promise.resolve(); + const storeNum = friendlyName.match(/(\d{6})/)?.[0]; + if (!storeNum || storeToNetwork.has(storeNum)) return Promise.resolve(); + + return limit(() => + findMerakiNetworkId(storeNum) + .then(netId => { if (netId) storeToNetwork.set(storeNum, netId); }) + .catch(() => { }) + ); + }); + + await Promise.all(networkPromises); + console.log(`Found ${storeToNetwork.size} unique networks`); + + // 4. Pre-fetch clients per network + const networkClientCache = new Map(); + const clientPromises = [...storeToNetwork.entries()].map(([storeNum, netId]) => + limit(async () => { + try { + const clients = await getMerakiClients(netId); + networkClientCache.set(netId, clients); + console.log(`Clients fetched: ${clients.length} for store ${storeNum}`); + } catch (err) { + console.error(`Clients fetch failed for store ${storeNum}: ${err.message}`); + networkClientCache.set(netId, []); + } + }) + ); + + await Promise.all(clientPromises); + + // 5. Enrich rows – collect unique serials first + const enrichedRows = results.map(row => ({ ...row, meraki: null, error: null })); + const serialToPorts = new Map(); + const uniqueSerials = new Set(); + + // Phase A: Match clients & collect serials + for (let i = 0; i < results.length; i++) { + const row = results[i]; + const friendlyName = row.device_friendly_name?.trim() || ''; + if (!friendlyName) { + enrichedRows[i].error = 'Missing friendly name'; + continue; + } + + if (match.recentDeviceConnection !== 'Wired' || !match.switchport) { + enrichedRows[i].error = 'Wireless or non-switch connected client'; + continue; + } + + const storeNum = friendlyName.match(/(\d{6})/)?.[0]; + if (!storeNum) continue; + + const netId = storeToNetwork.get(storeNum); + if (!netId) continue; + + const clients = networkClientCache.get(netId) || []; + const match = clients.find(c => + c.description?.toUpperCase().trim() === friendlyName.toUpperCase().trim() + ); + + if (!match) { + enrichedRows[i].error = 'No matching Meraki client'; + continue; + } + + const merakiInfo = { + deviceName: match.recentDeviceName || 'N/A', + deviceSerial: match.recentDeviceSerial || 'N/A', + switchport: match.switchport || 'N/A', + vlan: match.vlan || 'N/A', + status: match.status || 'Unknown', + connection: match.recentDeviceConnection || 'N/A', + lastSeen: match.lastSeen || 'N/A', + ip: match.ip || 'N/A', + mac: match.mac || 'N/A' + }; + + enrichedRows[i].meraki = merakiInfo; + + if (merakiInfo.deviceSerial !== 'N/A') { + uniqueSerials.add(merakiInfo.deviceSerial); + } + } + + // Phase B: Pre-fetch all ports for unique switches + if (uniqueSerials.size > 0) { + console.log(`Fetching ports for ${uniqueSerials.size} unique switches...`); + const portPromises = [...uniqueSerials].map(serial => + limit(async () => { + const ports = await getAllMerakiSwitchPorts(serial); + serialToPorts.set(serial, ports); + }) + ); + await Promise.all(portPromises); + } + + // Phase C: Final enrichment from cache + for (const row of enrichedRows) { + const meraki = row.meraki; + if (!meraki || meraki.deviceSerial === 'N/A' || meraki.switchport === 'N/A') { + if (meraki) { + Object.assign(meraki, { + portType: 'N/A', + accessPolicyType: 'N/A', + stickyMacEnabled: false, + stickyMacList: [], + stickyMacAllowListLimit: 0, + stickyMacCount: 0, + portEnabled: 'N/A' + }); + } + continue; + } + + const ports = serialToPorts.get(meraki.deviceSerial) || []; + const portConfig = ports.find(p => + String(p.port || p.portId || p.number) === String(meraki.switchport) + ); + + if (portConfig) { + meraki.portType = portConfig.type || 'N/A'; + meraki.accessPolicyType = portConfig.accessPolicyType || 'N/A'; + meraki.stickyMacEnabled = portConfig.accessPolicyType === 'Sticky MAC allow list'; + meraki.stickyMacList = portConfig.stickyMacAllowList || []; + meraki.stickyMacAllowListLimit = portConfig.stickyMacAllowListLimit || 0; + meraki.stickyMacCount = meraki.stickyMacList.length; + meraki.portEnabled = portConfig.enabled ? 'Enabled' : 'Disabled'; + } else { + meraki.portType = 'Not Found'; + meraki.portEnabled = 'Not Found'; + } + } + + // 6. Convert enriched data → CSV + const flattened = enrichedRows.map(item => { + const m = item.meraki || {}; + const stickyList = Array.isArray(m.stickyMacList) ? m.stickyMacList.join(', ') : ''; + + return { + device_id: item.device_id || '', + device_friendly_name: item.device_friendly_name || '', + device_enrollment_user_name: item.device_enrollment_user_name || '', + _device_platform: item._device_platform || '', + device_os_version: item.device_os_version || '', + device_last_seen_utc: item.device_last_seen_utc || '', + device_enrollment_status: item.device_enrollment_status || '', + device_model_name: item.device_model_name || '', + _device_mac_address: item._device_mac_address || '', + device_mac_address: item.device_mac_address || '', + + meraki_deviceName: m.deviceName || '', + meraki_deviceSerial: m.deviceSerial || '', + meraki_switchport: m.switchport || '', + meraki_vlan: m.vlan || '', + meraki_status: m.status || '', + meraki_connection: m.connection || '', + meraki_lastSeen: m.lastSeen || '', + meraki_ip: m.ip || '', + meraki_mac: m.mac || '', + + meraki_portType: m.portType || 'N/A', + meraki_accessPolicyType: m.accessPolicyType || 'N/A', + meraki_portEnabled: m.portEnabled || 'N/A', + meraki_stickyMacEnabled: m.stickyMacEnabled === true ? 'true' : 'false', + meraki_stickyMacList: stickyList, + meraki_stickyMacAllowListLimit: m.stickyMacAllowListLimit ?? '', + meraki_stickyMacCount: m.stickyMacCount ?? '', + error: item.error || '' + }; + }); + + const fields = [ + 'device_id', 'device_friendly_name', 'device_enrollment_user_name', '_device_platform', + 'device_os_version', 'device_last_seen_utc', 'device_enrollment_status', 'device_model_name', + '_device_mac_address', 'device_mac_address', + 'meraki_deviceName', 'meraki_deviceSerial', 'meraki_switchport', 'meraki_vlan', + 'meraki_status', 'meraki_connection', 'meraki_lastSeen', 'meraki_ip', 'meraki_mac', + 'meraki_portType', 'meraki_accessPolicyType', 'meraki_portEnabled', + 'meraki_stickyMacEnabled', 'meraki_stickyMacList', 'meraki_stickyMacAllowListLimit', + 'meraki_stickyMacCount', 'error' + ]; + + const parser = new Parser({ fields }); + const csvContent = parser.parse(flattened); + fs.writeFileSync('enriched-meraki-intermediate.json', JSON.stringify(enrichedRows, null, 2)); + fs.writeFileSync(outputCsvPath, csvContent); + console.log(`Enrichment complete. Output CSV saved to: ${outputCsvPath}`); + console.log(`Processed ${enrichedRows.length} rows`); + + return enrichedRows; // optional – for further chaining if needed +} + +async function findMerakiNetworkId(storeNum) { + var startTime = new Date().getTime(); + var networkSearchTerm = Number(storeNum).toString().padStart(5, "0"); + try { + // Filter networks by partial name match (case-insensitive) + const matchingNetworks = merakiNetworks.filter(net => + (net.name || '').toLowerCase().includes(networkSearchTerm.toLowerCase()) + ); + + if (matchingNetworks.length === 0) { + return null; + } + + if (matchingNetworks.length > 1) { + console.log(`Multiple networks match '${networkSearchTerm}':`); + matchingNetworks.forEach(net => console.log(`- ${net.name} (ID: ${net.id})`)); + console.log('Using the first match...'); + } + + + return matchingNetworks[0].id; + } catch (error) { + console.error(`Error finding Meraki Network: ${error}`); + return null; + } +} + +async function cacheMerakiNetworks() { + + try { + let allNetworks = []; + let nextUrl = `https://api.meraki.com/api/v1/organizations/${config.auth.meraki.orgId}/networks?perPage=1000`; + + while (nextUrl) { + const response = await axios.get(nextUrl, { + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + const pageNetworks = response.data; + allNetworks = allNetworks.concat(pageNetworks); + + //logger(`cacheMerakiNetworks()`, `Fetched ${pageNetworks.length} networks (total so far: ${allNetworks.length})`); + + // Log raw header + //logger(`cacheMerakiNetworks()`, `Link header raw: ${response.headers.link || '(none)'}`); + + // Robust next URL extraction + const linkHeader = response.headers.link; + let foundNext = null; + + if (linkHeader) { + //logger(`cacheMerakiNetworks()`, `Full Link header (raw): ${linkHeader}`); + + const parts = linkHeader.split(','); + //logger(`cacheMerakiNetworks()`, `Split into ${parts.length} parts`); + + for (const part of parts) { + const trimmed = part.trim(); + //logger(`cacheMerakiNetworks()`, `Examining part: "${trimmed}"`); + + // Forgiving checks: lower case, no quotes required, partial match + const lowerTrimmed = trimmed.toLowerCase(); + if (lowerTrimmed.includes('rel=next') || lowerTrimmed.includes('rel="next"') || lowerTrimmed.includes("rel='next'")) { + //logger(`cacheMerakiNetworks()`, `→ Detected rel=next in: "${trimmed}"`); + + const urlMatch = trimmed.match(/<([^>]+)>/); + if (urlMatch && urlMatch[1]) { + foundNext = urlMatch[1].trim(); // extra trim just in case + //logger(`cacheMerakiNetworks()`, `→ Extracted next URL: ${foundNext}`); + break; + } else { + //logger(`cacheMerakiNetworks()`, `→ URL match failed on that part`); + } + } + } + } + + nextUrl = foundNext; + + if (!nextUrl) { + //logger(`cacheMerakiNetworks()`, `No next page detected – ending loop`); + } else { + //logger(`cacheMerakiNetworks()`, `Advancing to next URL: ${nextUrl}`); + } + } + + merakiNetworks = allNetworks; + logger(`cacheMerakiNetworks()`, `Cached ${merakiNetworks.length} networks. (${new Date().getTime() - startTime}ms)`); + + } catch (error) { + console.error('Meraki Networks API error:', error.message); + if (error.response) { + console.error('Status:', error.response.status); + console.error('Data:', error.response.data); + } + } +} + +async function rebootWorkspaceOneDevice(deviceId) { + const baseUrl = `https://${awHost}/api`; // e.g., as123.awmdm.com + const headers = { + 'Authorization': `Basic ${Buffer.from('your_username:your_password').toString('base64')}`, // or use API key method + 'aw-tenant-code': tenantCode, + 'Accept': 'application/json', + 'Content-Type': 'application/json' + }; + + try { + const response = await axios.post( + `${baseUrl}/mdm/devices/${deviceId}/commands`, + { Command: 'RebootDevice' }, // or 'RestartDevice' for iOS/tvOS + { headers } + ); + + console.log('Reboot command sent successfully:', response.data); + return response.data; + } catch (error) { + console.error('Error sending reboot:'); + console.error(error.response?.data || error.message); + throw error; + } +} +/* +async function updateSwitchPort(networkId, serial, portId, settings) { + const apiKey = 'YOUR_MERAKI_API_KEY_HERE'; + const baseUrl = 'https://api.meraki.com/api/v1'; + + try { + const response = await axios.put( + `${baseUrl}/networks/${networkId}/devices/${serial}/switch/ports/${portId}`, + settings, + { + headers: { + 'X-Cisco-Meraki-API-Key': apiKey, + 'Content-Type': 'application/json' + } + } + ); + + console.log('Success:', response.data); + return response.data; + } catch (error) { + console.error('Error updating port:'); + console.error(error.response?.data || error.message); + throw error; + } +} + +// Usage examples +updateSwitchPort('L_123456789012345678', 'Q3LU-ABCDE-12345', '8', false); // Disable port 8 +// updateSwitchPort('L_123456789012345678', 'Q3LU-ABCDE-12345', '8', true); // Enable port 8*/ +function logger(functionName, message) { + var d = new Date(); + var year = d.getFullYear(); + var month = (d.getMonth() + 1).toString().padStart(2, "0"); + var day = d.getDate().toString().padStart(2, "0"); + let logFile = path.join(`./logs/${year}${month}${day}.log`); + console.log(d.toLocaleString() + " " + functionName + ": " + message); + fs.appendFileSync(logFile, d.toLocaleString() + " " + functionName + ": " + message + "\n"); +} + +async function sendMdmQuery(deviceId, apiKey, tenantCode, awHost) { + const baseUrl = `https://${awHost}/api`; // e.g., as1991.awmdm.com + + const headers = { + 'Authorization': `Basic ${Buffer.from('your_username:your_password').toString('base64')}`, // or API key method + 'aw-tenant-code': tenantCode, + 'Accept': 'application/json', + 'Content-Type': 'application/json' + }; + + try { + const response = await axios.post( + `${baseUrl}/mdm/devices/${deviceId}/commands`, + { Command: 'QueryDevice' }, + { headers } + ); + + console.log('Query command sent successfully:', response.data); + return response.data; + } catch (error) { + console.error('Error sending MDM Query:'); + if (error.response) { + console.error('Status:', error.response.status); + console.error('Response:', error.response.data); + } else { + console.error(error.message); + } + throw error; + } +} + +// Usage example +const csvFile = 'appleTV.csv'; +const inputCsv = 'appleTV.csv'; +await processCSVAndEnrichMeraki(inputCsv, 'enriched-meraki-output.csv') + .catch(err => console.error('Fatal error:', err)); \ No newline at end of file diff --git a/tools/appleTV/appleTV.js b/tools/appleTV/appleTV.js new file mode 100644 index 0000000..df99ef0 --- /dev/null +++ b/tools/appleTV/appleTV.js @@ -0,0 +1,345 @@ +import fs from 'fs'; +import csv from 'csv-parser'; +import path from 'path'; +import axios from 'axios'; +import { match } from 'assert'; + +var merakiNetworks = []; + + +var config = JSON.parse(fs.readFileSync('./config/config.json')); + + + +// Assume you have these functions from your previous code +// e.g., findMerakiNetworkId(storeNum) → returns network ID +// getMerakiClients(networkId) → returns array of clients with description, vlan, switchport, status, etc. + +async function processCSVAndEnrichMeraki(csvFilePath) { + const results = []; + + // Step 1: Parse the CSV + await new Promise((resolve, reject) => { + fs.createReadStream(csvFilePath) + .pipe(csv()) + .on('data', (row) => results.push(row)) + .on('end', resolve) + .on('error', reject); + }); + + // Step 2: Process each row + const enrichedData = []; + for (const row of results) { + const friendlyName = row.device_friendly_name?.trim() || ''; // Column 2 + + if (!friendlyName) continue; + + // Extract store number: e.g., "US003897MSCAERIE" → "003897" + const storeMatch = friendlyName.match(/(\d{6})/); // Pull 6 digits + const storeNum = storeMatch ? storeMatch[0] : null; + + if (!storeNum) { + console.log(`Skipping row with invalid friendlyName: ${friendlyName}`); + continue; + } + + try { + // Step 3: Find Meraki Network ID + const networkId = await findMerakiNetworkId(storeNum); + + if (!networkId) { + console.log(`No Meraki network found for store: ${storeNum}`); + enrichedData.push({ ...row, meraki: null }); + continue; + } + + // Step 4: Get Meraki clients for the network + const clients = await getMerakiClients(networkId); + + // Step 5: Find matching client by description === friendlyName (case-insensitive) + const matchingClient = clients.find(client => + client.description?.toUpperCase().trim() === friendlyName.toUpperCase() + ); + + if (!matchingClient) { + console.log(`No matching Meraki client for device: ${friendlyName} in store ${storeNum}`); + enrichedData.push({ ...row, meraki: null }); + continue; + } else { + console.log(matchingClient) + } + + // Step 6: Extract relevant Meraki info (device, port, vlan, port status) + const merakiInfo = { + deviceName: matchingClient.recentDeviceName || 'N/A', + deviceSerial: matchingClient.recentDeviceSerial || 'N/A', + switchport: matchingClient.switchport || 'N/A', + vlan: matchingClient.vlan || 'N/A', + status: matchingClient.status || 'Unknown', + connection: matchingClient.recentDeviceConnection || 'N/A', + lastSeen: matchingClient.lastSeen || 'N/A', + ip: matchingClient.ip || 'N/A', + mac: matchingClient.mac || 'N/A' + // Add more fields as needed, e.g., portStatus if available from another API + }; + + // Note: If "port status" requires another Meraki call (e.g., get switch ports), add it here: + // const ports = await getMerakiSwitchPorts(matchingClient.recentDeviceSerial); + // Then find the port matching switchport and get its status (enabled, link, etc.) + + enrichedData.push({ ...row, meraki: merakiInfo }); + } catch (error) { + console.error(`Error processing store ${storeNum}, device ${friendlyName}:`, error.message); + enrichedData.push({ ...row, meraki: null, error: error.message }); + } + } + + // Step 7: Return or save the enriched data (e.g., as JSON) + return enrichedData; +} + +async function getMerakiClients(merakiNetwork) { + if (merakiNetwork) { + try { + let allClients = []; + let nextUrl = `https://api.meraki.com/api/v1/networks/${merakiNetwork}/clients?perPage=5000×pan=2592000`; // Start with high perPage + 24h window + + while (nextUrl) { + const response = await axios.get(nextUrl, { + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + const pageClients = await response.data; + allClients = allClients.concat(pageClients); + + //console.log(`Fetched ${pageClients.length} clients from this page (total so far: ${allClients.length})`); + + // Check Link header for next page + const linkHeader = await response.headers.link; + if (!linkHeader) { + nextUrl = null; + break; + } + + // Parse the 'next' link from Link header (format: ; rel="next", ...) + const nextMatch = await linkHeader.match(/<([^>]+)>;\s*rel="next"/); + nextUrl = nextMatch ? nextMatch[1] : null; + } + return allClients; + } catch (error) { + logger(`getMerakiClients(${merakiNetwork})`, `Error: ${error}`) + return null; + } + } else { + return []; + } +} + +async function findMerakiNetworkId(storeNum) { + var startTime = new Date().getTime(); + var networkSearchTerm = Number(storeNum).toString().padStart(5, "0"); + try { + // Filter networks by partial name match (case-insensitive) + const matchingNetworks = merakiNetworks.filter(net => + (net.name || '').toLowerCase().includes(networkSearchTerm.toLowerCase()) + ); + + if (matchingNetworks.length === 0) { + return null; + } + + if (matchingNetworks.length > 1) { + console.log(`Multiple networks match '${networkSearchTerm}':`); + matchingNetworks.forEach(net => console.log(`- ${net.name} (ID: ${net.id})`)); + console.log('Using the first match...'); + } + + + return matchingNetworks[0].id; + } catch (error) { + console.error(`Error finding Meraki Network: ${error}`); + return null; + } +} + +async function cacheMerakiNetworks() { + + try { + let allNetworks = []; + let nextUrl = `https://api.meraki.com/api/v1/organizations/${config.auth.meraki.orgId}/networks?perPage=1000`; + + while (nextUrl) { + const response = await axios.get(nextUrl, { + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + const pageNetworks = response.data; + allNetworks = allNetworks.concat(pageNetworks); + + //logger(`cacheMerakiNetworks()`, `Fetched ${pageNetworks.length} networks (total so far: ${allNetworks.length})`); + + // Log raw header + //logger(`cacheMerakiNetworks()`, `Link header raw: ${response.headers.link || '(none)'}`); + + // Robust next URL extraction + const linkHeader = response.headers.link; + let foundNext = null; + + if (linkHeader) { + //logger(`cacheMerakiNetworks()`, `Full Link header (raw): ${linkHeader}`); + + const parts = linkHeader.split(','); + //logger(`cacheMerakiNetworks()`, `Split into ${parts.length} parts`); + + for (const part of parts) { + const trimmed = part.trim(); + //logger(`cacheMerakiNetworks()`, `Examining part: "${trimmed}"`); + + // Forgiving checks: lower case, no quotes required, partial match + const lowerTrimmed = trimmed.toLowerCase(); + if (lowerTrimmed.includes('rel=next') || lowerTrimmed.includes('rel="next"') || lowerTrimmed.includes("rel='next'")) { + //logger(`cacheMerakiNetworks()`, `→ Detected rel=next in: "${trimmed}"`); + + const urlMatch = trimmed.match(/<([^>]+)>/); + if (urlMatch && urlMatch[1]) { + foundNext = urlMatch[1].trim(); // extra trim just in case + //logger(`cacheMerakiNetworks()`, `→ Extracted next URL: ${foundNext}`); + break; + } else { + //logger(`cacheMerakiNetworks()`, `→ URL match failed on that part`); + } + } + } + } + + nextUrl = foundNext; + + if (!nextUrl) { + //logger(`cacheMerakiNetworks()`, `No next page detected – ending loop`); + } else { + //logger(`cacheMerakiNetworks()`, `Advancing to next URL: ${nextUrl}`); + } + } + + merakiNetworks = allNetworks; + logger(`cacheMerakiNetworks()`, `Cached ${merakiNetworks.length} networks. (${new Date().getTime() - startTime}ms)`); + + } catch (error) { + console.error('Meraki Networks API error:', error.message); + if (error.response) { + console.error('Status:', error.response.status); + console.error('Data:', error.response.data); + } + } +} + +async function rebootWorkspaceOneDevice(deviceId) { + const baseUrl = `https://${awHost}/api`; // e.g., as123.awmdm.com + const headers = { + 'Authorization': `Basic ${Buffer.from('your_username:your_password').toString('base64')}`, // or use API key method + 'aw-tenant-code': tenantCode, + 'Accept': 'application/json', + 'Content-Type': 'application/json' + }; + + try { + const response = await axios.post( + `${baseUrl}/mdm/devices/${deviceId}/commands`, + { Command: 'RebootDevice' }, // or 'RestartDevice' for iOS/tvOS + { headers } + ); + + console.log('Reboot command sent successfully:', response.data); + return response.data; + } catch (error) { + console.error('Error sending reboot:'); + console.error(error.response?.data || error.message); + throw error; + } +} +/* +async function updateSwitchPort(networkId, serial, portId, settings) { + const apiKey = 'YOUR_MERAKI_API_KEY_HERE'; + const baseUrl = 'https://api.meraki.com/api/v1'; + + try { + const response = await axios.put( + `${baseUrl}/networks/${networkId}/devices/${serial}/switch/ports/${portId}`, + settings, + { + headers: { + 'X-Cisco-Meraki-API-Key': apiKey, + 'Content-Type': 'application/json' + } + } + ); + + console.log('Success:', response.data); + return response.data; + } catch (error) { + console.error('Error updating port:'); + console.error(error.response?.data || error.message); + throw error; + } +} + +// Usage examples +updateSwitchPort('L_123456789012345678', 'Q3LU-ABCDE-12345', '8', false); // Disable port 8 +// updateSwitchPort('L_123456789012345678', 'Q3LU-ABCDE-12345', '8', true); // Enable port 8*/ +function logger(functionName, message) { + var d = new Date(); + var year = d.getFullYear(); + var month = (d.getMonth() + 1).toString().padStart(2, "0"); + var day = d.getDate().toString().padStart(2, "0"); + let logFile = path.join(`./logs/${year}${month}${day}.log`); + console.log(d.toLocaleString() + " " + functionName + ": " + message); + fs.appendFileSync(logFile, d.toLocaleString() + " " + functionName + ": " + message + "\n"); +} + +async function sendMdmQuery(deviceId, apiKey, tenantCode, awHost) { + const baseUrl = `https://${awHost}/api`; // e.g., as1991.awmdm.com + + const headers = { + 'Authorization': `Basic ${Buffer.from('your_username:your_password').toString('base64')}`, // or API key method + 'aw-tenant-code': tenantCode, + 'Accept': 'application/json', + 'Content-Type': 'application/json' + }; + + try { + const response = await axios.post( + `${baseUrl}/mdm/devices/${deviceId}/commands`, + { Command: 'QueryDevice' }, + { headers } + ); + + console.log('Query command sent successfully:', response.data); + return response.data; + } catch (error) { + console.error('Error sending MDM Query:'); + if (error.response) { + console.error('Status:', error.response.status); + console.error('Response:', error.response.data); + } else { + console.error(error.message); + } + throw error; + } +} + +// Usage example +const csvFile = 'appleTV.csv'; +await cacheMerakiNetworks(); +processCSVAndEnrichMeraki(csvFile) + .then(enriched => { + //console.log('Enriched Data:', JSON.stringify(enriched, null, 2)); + // Optional: save to file + fs.writeFileSync('enriched-meraki.csv.json', JSON.stringify(enriched, null, 2)); + }) + .catch(err => console.error('Fatal error:', err)); \ No newline at end of file diff --git a/tools/convert.js b/tools/convert.js new file mode 100644 index 0000000..ded14dd --- /dev/null +++ b/tools/convert.js @@ -0,0 +1,97 @@ +import fs from 'fs'; +import { Parser } from 'json2csv'; + +// Load the enriched JSON file +const jsonFile = 'enriched-meraki.csv.json'; // Your input JSON path +const data = JSON.parse(fs.readFileSync(jsonFile, 'utf8')); + +// Flatten the nested objects for CSV-friendly structure +const flattenedData = data.map(item => { + const meraki = item.meraki || {}; // safe access + + // Handle stickyMacList as comma-separated string (or empty string) + const stickyMacListStr = Array.isArray(meraki.stickyMacList) && meraki.stickyMacList.length > 0 + ? meraki.stickyMacList.join(', ') + : ''; + + return { + device_id: item.device_id || '', + device_friendly_name: item.device_friendly_name || '', + device_enrollment_user_name: item.device_enrollment_user_name || '', + _device_platform: item._device_platform || '', + device_os_version: item.device_os_version || '', + device_last_seen_utc: item.device_last_seen_utc || '', + device_enrollment_status: item.device_enrollment_status || '', + device_model_name: item.device_model_name || '', + _device_mac_address: item._device_mac_address || '', + device_mac_address: item.device_mac_address || '', + + // Existing Meraki fields + meraki_deviceName: meraki.deviceName || '', + meraki_switchport: meraki.switchport || '', + meraki_vlan: meraki.vlan || '', + meraki_status: meraki.status || '', + meraki_connection: meraki.connection || '', + meraki_lastSeen: meraki.lastSeen || '', + meraki_ip: meraki.ip || '', + meraki_mac: meraki.mac || '', + + // New Meraki port / Sticky MAC fields + meraki_portType: meraki.portType || 'N/A', + meraki_portEnabled: meraki.portEnabled != null + ? (typeof meraki.portEnabled === 'boolean' + ? (meraki.portEnabled ? 'Enabled' : 'Disabled') + : meraki.portEnabled) // handles 'Error' / 'N/A' + : 'N/A', + meraki_accessPolicyType: meraki.accessPolicyType || 'N/A', + meraki_stickyMacEnabled: meraki.stickyMacEnabled === true ? 'true' : 'false', // explicit string for CSV clarity + meraki_stickyMacList: stickyMacListStr, + meraki_stickyMacAllowListLimit: meraki.stickyMacAllowListLimit != null ? meraki.stickyMacAllowListLimit : '', + meraki_stickyMacCount: meraki.stickyMacCount != null ? meraki.stickyMacCount : '', + meraki_portError: meraki.portError || '' // only present if fetch failed + }; +}); + +// Define all CSV column headers (order matters for output) +const fields = [ + 'device_id', + 'device_friendly_name', + 'device_enrollment_user_name', + '_device_platform', + 'device_os_version', + 'device_last_seen_utc', + 'device_enrollment_status', + 'device_model_name', + '_device_mac_address', + 'device_mac_address', + + 'meraki_deviceName', + 'meraki_switchport', + 'meraki_vlan', + 'meraki_status', + 'meraki_connection', + 'meraki_lastSeen', + 'meraki_ip', + 'meraki_mac', + + // New fields + 'meraki_portType', + 'meraki_accessPolicyType', + 'meraki_portEnabled', // ← NEW + 'meraki_stickyMacEnabled', + 'meraki_stickyMacList', + 'meraki_stickyMacAllowListLimit', + 'meraki_stickyMacCount', + 'meraki_portError' +]; + +const opts = { fields }; +const parser = new Parser(opts); +const csv = parser.parse(flattenedData); + +// Save to output CSV +const csvFile = 'enriched-meraki-output.csv'; +fs.writeFileSync(csvFile, csv); + +console.log(`CSV file created: ${csvFile}`); +console.log(`Total rows processed: ${flattenedData.length}`); \ No newline at end of file diff --git a/tools/fixWiredTV/fixWiredTV.js b/tools/fixWiredTV/fixWiredTV.js new file mode 100644 index 0000000..bd35210 --- /dev/null +++ b/tools/fixWiredTV/fixWiredTV.js @@ -0,0 +1,223 @@ +import fs from 'fs'; +import path from 'path'; +import axios from 'axios'; + +var merakiNetworks = []; + +var config = JSON.parse(fs.readFileSync('./config/config.json')); +var devices = JSON.parse(fs.readFileSync('./enriched-meraki.csv.json')); + +async function showTime() { + for (var device of devices) { + if (device.meraki && device.meraki.connection == "Wired" && (device.meraki.vlan == "103" || device.meraki.vlan == "143" || device.meraki.vlan == "145" || device.meraki.vlan == "310" || device.meraki.vlan == "360")) { + console.log(`Working on ${device.device_friendly_name}.`) + await updateSwitchPort(device.meraki.deviceSerial, device.meraki.switchport, { + enabled: false, vlan: 340, accessPolicyType: "Sticky MAC allow list", + stickyMacAllowList: [], + stickyMacAllowListLimit: 1 + }) + await wait(10) + await updateSwitchPort(device.meraki.deviceSerial, device.meraki.switchport, { enabled: true }) + //await sendMDMCommand(device.device_id, { + // "CommandXml": "RequestTypeRestartDevice" + //}) + //await wait(30) + //await updateSwitchPort(device.meraki.deviceSerial, device.meraki.switchport, { enabled: true, vlan: 340 }) + //await wait(30) + //await sendMDMCommand(device.device_id, { + // "CommandXml": "RequestTypeDeviceInformationQueriesModelSerialNumberOSVersion" + //} + //) + } + } +} + +async function sendMDMCommand(deviceId, command) { + + const tokenResponse = await axios.post( + 'https://na.uemauth.workspaceone.com/connect/token', + new URLSearchParams({ + grant_type: 'client_credentials', + client_id: '4e43d8a448fd423984776c0b376d9047', + client_secret: '0F858A7DC18563D057176BE1BF11A7B3', + }), + { + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + } + ); + + const accessToken = tokenResponse.data.access_token; + + const baseUrl = `https://as1991.awmdm.com/api`; // e.g., as1991.awmdm.com + + const headers = { + Authorization: `Bearer ${accessToken}`, + 'aw-tenant-code': 'cMrIjIsQkKSj0N7giRG36o9OgvNHhuG4+dQGkZXm7G8=', + Accept: 'application/json' + }; + + try { + const response = await axios.post( + `${baseUrl}/mdm/devices/${deviceId}/commands?command=CustomMdmCommand`, + command, + { headers } + ); + + console.log(`Command sent successfully: ${response.data}`); + return response.data; + } catch (error) { + console.error('Error sending MDM Query:'); + if (error.response) { + console.error('Status:', error.response.status); + console.error('Response:', error.response.data); + } else { + console.error(error.message); + } + //throw error; + } +} + +async function updateSwitchPort(serial, portId, settings) { + const baseUrl = 'https://api.meraki.com/api/v1'; + + try { + const response = await axios.put( + `${baseUrl}/devices/${serial}/switch/ports/${portId}`, + settings, + { + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + } + ); + + //console.log('Success:', response.data); + return "Port updated."; + } catch (error) { + console.error('Error updating port:'); + console.error(error.response?.data || error.message); + throw error; + } +} + +async function findMerakiNetworkId(storeNum) { + var startTime = new Date().getTime(); + var networkSearchTerm = Number(storeNum).toString().padStart(5, "0"); + try { + // Filter networks by partial name match (case-insensitive) + const matchingNetworks = merakiNetworks.filter(net => + (net.name || '').toLowerCase().includes(networkSearchTerm.toLowerCase()) + ); + + console.log(matchingNetworks) + + if (matchingNetworks.length === 0) { + return null; + } + + if (matchingNetworks.length > 1) { + console.log(`Multiple networks match '${networkSearchTerm}':`); + matchingNetworks.forEach(net => console.log(`- ${net.name} (ID: ${net.id})`)); + console.log('Using the first match...'); + } + + + return matchingNetworks[0].id; + } catch (error) { + console.error(`Error finding Meraki Network: ${error}`); + return null; + } +} + +async function cacheMerakiNetworks() { + var startTime = new Date().getTime(); + + try { + let allNetworks = []; + let nextUrl = `https://api.meraki.com/api/v1/organizations/${config.auth.meraki.orgId}/networks?perPage=1000`; + + while (nextUrl) { + const response = await axios.get(nextUrl, { + headers: { + 'X-Cisco-Meraki-API-Key': config.auth.meraki.apiKey, + 'Content-Type': 'application/json' + } + }); + + const pageNetworks = response.data; + allNetworks = allNetworks.concat(pageNetworks); + + //logger(`cacheMerakiNetworks()`, `Fetched ${pageNetworks.length} networks (total so far: ${allNetworks.length})`); + + // Log raw header + //logger(`cacheMerakiNetworks()`, `Link header raw: ${response.headers.link || '(none)'}`); + + // Robust next URL extraction + const linkHeader = response.headers.link; + let foundNext = null; + + if (linkHeader) { + //logger(`cacheMerakiNetworks()`, `Full Link header (raw): ${linkHeader}`); + + const parts = linkHeader.split(','); + //logger(`cacheMerakiNetworks()`, `Split into ${parts.length} parts`); + + for (const part of parts) { + const trimmed = part.trim(); + //logger(`cacheMerakiNetworks()`, `Examining part: "${trimmed}"`); + + // Forgiving checks: lower case, no quotes required, partial match + const lowerTrimmed = trimmed.toLowerCase(); + if (lowerTrimmed.includes('rel=next') || lowerTrimmed.includes('rel="next"') || lowerTrimmed.includes("rel='next'")) { + //logger(`cacheMerakiNetworks()`, `→ Detected rel=next in: "${trimmed}"`); + + const urlMatch = trimmed.match(/<([^>]+)>/); + if (urlMatch && urlMatch[1]) { + foundNext = urlMatch[1].trim(); // extra trim just in case + //logger(`cacheMerakiNetworks()`, `→ Extracted next URL: ${foundNext}`); + break; + } else { + //logger(`cacheMerakiNetworks()`, `→ URL match failed on that part`); + } + } + } + } + + nextUrl = foundNext; + + if (!nextUrl) { + //logger(`cacheMerakiNetworks()`, `No next page detected – ending loop`); + } else { + //logger(`cacheMerakiNetworks()`, `Advancing to next URL: ${nextUrl}`); + } + } + + merakiNetworks = allNetworks; + logger(`cacheMerakiNetworks()`, `Cached ${merakiNetworks.length} networks. (${new Date().getTime() - startTime}ms)`); + + } catch (error) { + console.error('Meraki Networks API error:', error.message); + if (error.response) { + console.error('Status:', error.response.status); + console.error('Data:', error.response.data); + } + } +} + +function logger(functionName, message) { + var d = new Date(); + var year = d.getFullYear(); + var month = (d.getMonth() + 1).toString().padStart(2, "0"); + var day = d.getDate().toString().padStart(2, "0"); + let logFile = path.join(`./logs/${year}${month}${day}.log`); + console.log(d.toLocaleString() + " " + functionName + ": " + message); + fs.appendFileSync(logFile, d.toLocaleString() + " " + functionName + ": " + message + "\n"); +} + +function wait(seconds) { + return new Promise(resolve => setTimeout(resolve, seconds * 1000)); +} + +showTime(); + diff --git a/tools/optisign/optisign.js b/tools/optisign/optisign.js new file mode 100644 index 0000000..2f6a55a --- /dev/null +++ b/tools/optisign/optisign.js @@ -0,0 +1,111 @@ +//const { GraphQLClient, gql } = require('graphql-request'); +import { GraphQLClient, gql } from 'graphql-request'; + +async function getStoreDevicesStatus(storeNumber, apiKey) { + const endpoint = 'https://graphql-gateway.optisigns.com/graphql'; + + const client = new GraphQLClient(endpoint, { + headers: { Authorization: `Bearer ${apiKey}` }, + }); + + const paddedStore = storeNumber.toString().padStart(6, '0'); + + const query = gql` + query GetDevices($first: Int, $after: String) { + devices(query: {}, first: $first, after: $after) { + page { + edges { + node { + _id + deviceName + UUID + pairingCode + currentType + currentAssetId + currentPlaylistId + localAppVersion + lastHeartBeat # Confirmed field! + # status # still null in sample, but can keep if it populates sometimes + # updatedAt # if you see it later + } + } + pageInfo { hasNextPage endCursor } + } + } + } + `; + + let allDevices = []; + let after = null; + const pageSize = 50; + + try { + do { + const data = await client.request(query, { first: pageSize, after }); + allDevices = allDevices.concat(data.devices.page.edges.map(e => e.node)); + after = data.devices.page.pageInfo.hasNextPage ? data.devices.page.pageInfo.endCursor : null; + } while (after); + + const storeDevices = allDevices.filter(d => d.deviceName?.includes(paddedStore)); + + if (storeDevices.length === 0) { + + return []; + } + + + return storeDevices; +/* storeDevices.forEach(device => { + let statusLine = '• **Playback Status:** Idle / Not playing'; + let details = ''; + + if (device.currentPlaylistId || device.currentAssetId) { + const isPlaylist = device.currentType === 'PLAYLIST' || !!device.currentPlaylistId; + statusLine = `• **Playback Status:** Active - Playing content (${isPlaylist ? 'Playlist' : 'Asset/Single'})`; + details = `\n - Assigned ID: ${device.currentPlaylistId || device.currentAssetId || 'N/A'}\n - Type: ${device.currentType || 'unknown'}\n - App Version: ${device.localAppVersion || 'N/A'}`; + } + + // Heartbeat / Connectivity Status + let heartbeatInfo = ''; + if (device.lastHeartBeat) { + const hbDate = new Date(device.lastHeartBeat); + const now = new Date(); // Current time in UTC, then we'll adjust display + const minutesAgo = Math.round((now - hbDate) / 60000); + + const hbLocal = hbDate.toLocaleString('en-US', { timeZone: 'America/New_York' }); + heartbeatInfo = `\n - Last Heartbeat: ${hbLocal} (${minutesAgo} min ago)`; + + if (minutesAgo <= 10) { + heartbeatInfo += ' 🟢 **Online & checking in** (likely synced)'; + } else if (minutesAgo <= 30) { + heartbeatInfo += ' 🟡 **Possibly delayed**'; + } else { + heartbeatInfo += ' 🔴 **Offline / not checking in**'; + } + } else { + heartbeatInfo = '\n - No heartbeat data available'; + } + + md += `**${device.deviceName}** (${device.UUID.substring(0, 8)}...)\n`; + md += `${statusLine}\n`; + md += `${details}${heartbeatInfo}\n\n`; + }); + + md += `**Last checked:** ${new Date().toLocaleString('en-US', { timeZone: 'America/New_York' })} EST\n`; + md += `(via OptiSigns API)`; + + console.log(md); + return md; + */ + + } catch (error) { + const errMd = `**Error:** ${error.message}`; + console.error(errMd); + return errMd; + } +} +// Example usage +const apiKey = 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJnaEF3SEhKdTdkS3RmcEdkTSIsImNpZCI6Ilk2cXlaZXAzSE1NeHBuYXRMIiwiYWlkIjoidHh1NGhUcnZEMkdaM25tOU0iLCJpYXQiOjE3NDc0MTAxNjgsImV4cCI6MTc0NzQxMzc2OCwiaXNzIjoidHh1NGhUcnZEMkdaM25tOU0ifQ.TZRzzV6-QejdW4H3vppeypzExv4ppHdIKHSHpZXbKmpDhktlWrOQLQf4sNeX-UPa0bKKQcp9b8qHGpeu163bhmQAnnkWROqMD2z8tZ2kKgW34iXH5B_Ur1TbylvUS_ZsfFDQiUnT1Lf9waMAhZJeYKP4j70ak7BclMFf7XMGNGy75vSknzi1x7nvB1AOS5kEcPIV_oZNXlBVLLnEM1t3Edk6K-jXDmR_XHqN0lI3t0NX0yr2VTgt2KSqDRPaGcNBmuXHUgeB8xsEW4Dlk8rIin7qW4WkrvycnjyL2ZpT9EFZWYjaQNyJoTmJjxeywl9JrzrO1sIoYJ0QdHAOmgsnIDiYnw_eR73Mi0l3QUC9fZfgD91gidwKMWt3LIm4KCkynRNPOlBz7UGTp_wb4qCSFCNiYB6fGhWT1u7rcoR1g7sCHwCX6pkSMhKs1ZSOprTZSUFeFloqE3ufCNACQMa5I8QYi4Lz7KdEOn9yK2UM13Te1Shs3fD2HS23pyiLjznBMQg9z5TWTzbPWteR7FyKIRZjtdF1Foe5BJp-EmN_FR74Ndz1lo-0b10stszQE18ob9HSWsmWu_Tqg_KG4wBxOzKM-V8Eksx4eFyHeh8lzGXESzH2pGYfs7M3Y5Dvy1a3Hy9Xh7O0n82EW9MUHTXiny3yycD9vuUyG4FNQ7K2NuY'; // Replace with your actual key +const storeNumber = "002248"; +const deviceName = 'US000629VW02'; // Replace with your device name (e.g., incorporating the 6-digit store number) +getStoreDevicesStatus(storeNumber, apiKey); \ No newline at end of file