diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..a2c1fcbf45628b0cdcb4c8df14543f44972d3ce0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +node_modules +dist +npm-debug.log +Dockerfile +.dockerignore +.git +.env +README.md +test +coverage +prisma/migrations diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000000000000000000000000000000000..e4670d87f56955c159a70d48cdf48e57598e0b1e --- /dev/null +++ b/.env.example @@ -0,0 +1,23 @@ +# Application +NODE_ENV=development +PORT=3000 + +# Database (PostgreSQL) - Prisma Connection String +DATABASE_URL="postgresql://postgres:your_password_here@localhost:5432/maternal_health?schema=public" + +# JWT Authentication +JWT_SECRET=your_jwt_secret_here_change_in_production +JWT_EXPIRATION=1h +JWT_REFRESH_SECRET=your_refresh_secret_here_change_in_production +JWT_REFRESH_EXPIRATION=7d + +# Frontend Configuration +FRONTEND_URL=http://localhost:8081 + +# Email Configuration (SMTP) +SMTP_HOST=smtp.gmail.com +SMTP_PORT=587 +SMTP_USER=your-email@gmail.com +SMTP_PASS=your-app-password +SMTP_FROM=MaternAlert + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..697e4412097be49eb44f300a360258dce762728d --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +# compiled output +/dist +/node_modules + +# Logs +logs +*.log +npm-debug.log* +pnpm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# OS +.DS_Store + +# Tests +/coverage +/.nyc_output + +# IDEs and editors +/.idea +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace + +# IDE - VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +# Environment +# .env +.env.local +.env.*.local + +/generated/prisma + +# Firebase Service Account +*-firebase-adminsdk-*.json +google-services.json diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md new file mode 100644 index 0000000000000000000000000000000000000000..8f4514795bef68eecd13eb0feca66286a11a441e --- /dev/null +++ b/DEPLOYMENT.md @@ -0,0 +1,40 @@ +# MaternAlert Backend Deployment Guide (Hugging Face Spaces) + +This guide covers the deployment of the MaternAlert backend as a persistent, Docker-based environment on Hugging Face Spaces. This setup ensures 99.9% uptime for background tasks and cron jobs. + +## šŸš€ Deployment Steps + +### 1. Prepare Hugging Face Space +1. Create a new Space on [Hugging Face](https://huggingface.co/new-space). +2. Choose **Docker** as the SDK. +3. Select the **Blank** template or **NestJS** if available. +4. Choose your hardware (the free tier is sufficient for this backend). + +### 2. Configure Environment Variables +In your Space settings, add the following secrets: +- `DATABASE_URL`: Your production PostgreSQL connection string. +- `JWT_SECRET`: A strong secret for token signing. +- `EXPO_ACCESS_TOKEN`: Your Expo access token for push notifications. +- `EMAIL_HOST`, `EMAIL_PORT`, `EMAIL_USER`, `EMAIL_PASS`: SMTP credentials for email alerts. +- `FRONTEND_URL`: The URL of your deployed frontend. + +### 3. Deploy Code +1. Clone the Space repository. +2. Copy the contents of the `maternalert-be` directory into the Space repository. +3. Ensure the `Dockerfile` and `.dockerignore` are in the root of the Space repository. +4. Push your changes to the Space. + +## šŸ•’ Scheduled Tasks (Cron Jobs) +The backend is configured with `@nestjs/schedule` to run the following persistent tasks: +- **Daily Inactivity Check**: Runs at midnight to remind users who haven't logged BP in 5 days. +- **Trend Analysis**: Runs daily at 1 AM to detect dangerous BP patterns. +- **4-Hour Follow-Up**: Runs every 30 minutes to check for missed rechecks after elevated readings. + +## šŸ„ Health & Monitoring +- **Health Endpoint**: Access `https://your-space-url/api/v1/health` to verify service status and uptime. +- **Logs**: Monitor execution logs directly in the Hugging Face Space "Logs" tab. + +## šŸ›  Troubleshooting +- **Cold Starts**: Hugging Face Spaces stay active as long as they receive traffic or are configured as "Persistent." Ensure the Space is set to "Public" or "Private" with persistence enabled. +- **Database Connectivity**: Verify that your database allows connections from the Hugging Face IP range. +- **Permissions**: The Dockerfile is configured to run as a non-root user (UID 1000) as required by Hugging Face. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..a1968687780992fbe61de424ac597a3ac4885920 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,40 @@ +# Build stage +FROM node:20-alpine AS builder + +WORKDIR /app + +# Install dependencies first (better caching) +COPY package*.json ./ +COPY prisma ./prisma/ + +RUN npm install + +# Copy source and build +COPY . . +RUN npx prisma generate +RUN npm run build + +# Production stage +FROM node:20-alpine + +WORKDIR /app + +# Create a non-root user for security (Hugging Face requirement) +RUN adduser -D -u 1000 appuser +USER appuser + +# Copy built assets and production dependencies +COPY --from=builder /app/package*.json ./ +COPY --from=builder /app/node_modules ./node_modules +COPY --from=builder /app/dist ./dist +COPY --from=builder /app/prisma ./prisma + +# Set production environment +ENV NODE_ENV=production +ENV PORT=7860 + +# Expose the port (Hugging Face default is 7860) +EXPOSE 7860 + +# Run the app +CMD ["npm", "run", "start:prod"] diff --git a/README.md b/README.md index 6cce9a635bcf178382b093f3bf169ec2c05640e3..a291d4544500e45f120aac71378d5637bf60d7c2 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,169 @@ ---- -title: MaternAlert -emoji: šŸ‘ -colorFrom: gray -colorTo: indigo -sdk: docker -pinned: false -short_description: 'Clinical-safe maternal health support backend ' +# Maternal Health Support Backend + +āš ļø **CLINICAL SAFETY NOTICE** + +This application is a **CARE-SUPPORT and ESCALATION TOOL**. + +- āŒ This is **NOT** a diagnostic system +- āŒ This is **NOT** a medical device +- āœ… This **IS** a care-support and escalation tool for early warning awareness + +## Purpose + +This backend supports a maternal health application focused on: +- Early warning awareness for high blood pressure disorders in pregnancy +- Care escalation based on objective measurements +- Educational content delivery +- Connection to healthcare providers + +## Non-Diagnostic Design Principles + +This system is built with strict clinical safety constraints: + +1. **No Diagnosis**: The system never diagnoses conditions +2. **No Medical Advice**: No treatment recommendations or medical guidance +3. **No Risk Scoring**: No probability calculations or risk percentages +4. **Data Minimization**: Only essential data is collected +5. **Escalation Bias**: When uncertain, always escalate to higher priority +6. **Template-Only Messaging**: No dynamic medical text generation + +## Architecture + +### Modular Domain-Driven Design + +``` +src/ +ā”œā”€ā”€ auth/ # Authentication (minimal PII) +ā”œā”€ā”€ user-profile/ # User profile (data minimization) +ā”œā”€ā”€ blood-pressure/ # BP readings (neutral storage) +ā”œā”€ā”€ symptoms/ # Symptom tracking (atomic, non-scored) +ā”œā”€ā”€ care-priority/ # Care priority engine (rule-based) +ā”œā”€ā”€ notifications/ # Alerts (template-only) +└── education/ # Educational content +``` + +### Technology Stack + +- **Framework**: NestJS with TypeScript (strict mode) +- **Database**: PostgreSQL (to be configured in STEP 2) +- **Authentication**: JWT-based +- **Validation**: class-validator with strict settings + +## Getting Started + +### Prerequisites + +- Node.js 18+ +- PostgreSQL 14+ +- npm or yarn + +### Installation + +```bash +# Install dependencies +npm install + +# Copy environment template +cp .env.example .env + +# Edit .env with your configuration +# (Database credentials, JWT secrets, etc.) +``` + +### Development + +```bash +# Start in development mode with hot reload +npm run start:dev + +# Build for production +npm run build + +# Start production server +npm run start:prod +``` + +### Testing + +```bash +# Run unit tests +npm test + +# Run tests in watch mode +npm test:watch + +# Generate coverage report +npm test:cov +``` + +## Deployment + +For persistent background tasks and cron jobs, the backend is optimized for deployment on **Hugging Face Spaces** using Docker. + +- [Deployment Guide](./DEPLOYMENT.md) +- [Health Check API](http://localhost:3000/api/v1/health) (when running locally) + +## Implementation Status + +This project follows a 12-step implementation process: + +### Phase 1: Foundation +- [x] **STEP 1**: Project Bootstrap & Architecture āœ… +- [ ] **STEP 2**: Database & ORM Setup +- [ ] **STEP 3**: Authentication Module + +### Phase 2: Core Data Modules +- [ ] **STEP 4**: User Profile Module (Data Minimization) +- [ ] **STEP 5**: Blood Pressure Module (Neutral Handling) +- [ ] **STEP 6**: Symptom Module (Atomic, Non-Scored) + +### Phase 3: Care Logic & Safety +- [ ] **STEP 7**: Care Priority Engine (Most Critical) +- [ ] **STEP 8**: Care Priority API Endpoint +- [ ] **STEP 9**: Notifications & Alerts + +### Phase 4: Support & Security +- [ ] **STEP 10**: Education Content Module +- [ ] **STEP 11**: Security, Logging & Rate Limiting +- [ ] **STEP 12**: Final Safety Audit + +## API Documentation + +Once running, API documentation will be available at: +- Development: `http://localhost:3000/api/v1` +- Swagger docs: (to be added in later steps) + +## Clinical Safety Commitments + +Every module in this system adheres to: + +1. **Deterministic Logic**: No AI/ML for medical decisions +2. **Transparent Rules**: All escalation rules are documented +3. **Conservative Defaults**: Favor care-seeking when uncertain +4. **Audit Trail**: All decisions are logged (without PII) +5. **No Diagnostic Language**: Careful wording throughout + +## Regulatory Considerations + +This system is designed for: +- NGO deployments +- Public health pilots +- Clinical partnerships +- Research studies + +**Not intended for**: +- Direct-to-consumer medical diagnosis +- Replacement of clinical judgment +- Unsupervised medical decision-making + +## License + +ISC + +## Support + +For questions about clinical safety design or implementation, please review the inline documentation in each module. + --- -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference +**Remember**: This is a care-support tool. Always encourage users to seek professional medical advice. diff --git a/nest-cli.json b/nest-cli.json new file mode 100644 index 0000000000000000000000000000000000000000..f9aa683b1ad5cffc76da9ad4b77c562ac4c2b399 --- /dev/null +++ b/nest-cli.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://json.schemastore.org/nest-cli", + "collection": "@nestjs/schematics", + "sourceRoot": "src", + "compilerOptions": { + "deleteOutDir": true + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..b6648ea85f6043fdf5e658c9eb55c89cb909ac3f --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6778 @@ +{ + "name": "maternal-health-backend", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "maternal-health-backend", + "version": "1.0.0", + "hasInstallScript": true, + "license": "ISC", + "dependencies": { + "@googlemaps/google-maps-services-js": "^3.4.2", + "@nestjs/config": "^4.0.2", + "@nestjs/jwt": "^11.0.2", + "@nestjs/passport": "^11.0.5", + "@nestjs/platform-express": "^11.1.11", + "@nestjs/schedule": "^6.1.1", + "@nestjs/swagger": "^11.2.4", + "@nestjs/throttler": "^6.5.0", + "@prisma/adapter-pg": "^7.2.0", + "@prisma/client": "^7.2.0", + "axios": "^1.13.5", + "bcrypt": "^6.0.0", + "class-transformer": "^0.5.1", + "class-validator": "^0.14.3", + "compression": "^1.8.1", + "expo-server-sdk": "^6.1.0", + "helmet": "^8.1.0", + "nodemailer": "^8.0.1", + "passport": "^0.7.0", + "passport-jwt": "^4.0.1", + "pg": "^8.16.3", + "swagger-ui-express": "^5.0.1" + }, + "devDependencies": { + "@nestjs/cli": "^11.0.14", + "@nestjs/schematics": "^11.0.9", + "@nestjs/testing": "^11.1.11", + "@types/bcrypt": "^6.0.0", + "@types/compression": "^1.8.1", + "@types/express": "^5.0.6", + "@types/node": "^25.0.6", + "@types/nodemailer": "^7.0.11", + "@types/passport-jwt": "^4.0.1", + "@types/pg": "^8.16.0", + "dotenv": "^17.2.3", + "prisma": "^7.2.0", + "ts-loader": "^9.5.4", + "ts-node": "^10.9.2", + "typescript": "^5.9.3" + } + }, + "node_modules/@angular-devkit/core": { + "version": "19.2.19", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-19.2.19.tgz", + "integrity": "sha512-JbLL+4IMLMBgjLZlnPG4lYDfz4zGrJ/s6Aoon321NJKuw1Kb1k5KpFu9dUY0BqLIe8xPQ2UJBpI+xXdK5MXMHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "8.17.1", + "ajv-formats": "3.0.1", + "jsonc-parser": "3.3.1", + "picomatch": "4.0.2", + "rxjs": "7.8.1", + "source-map": "0.7.4" + }, + "engines": { + "node": "^18.19.1 || ^20.11.1 || >=22.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "chokidar": "^4.0.0" + }, + "peerDependenciesMeta": { + "chokidar": { + "optional": true + } + } + }, + "node_modules/@angular-devkit/core/node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@angular-devkit/schematics": { + "version": "19.2.19", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-19.2.19.tgz", + "integrity": "sha512-J4Jarr0SohdrHcb40gTL4wGPCQ952IMWF1G/MSAQfBAPvA9ZKApYhpxcY7PmehVePve+ujpus1dGsJ7dPxz8Kg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "19.2.19", + "jsonc-parser": "3.3.1", + "magic-string": "0.30.17", + "ora": "5.4.1", + "rxjs": "7.8.1" + }, + "engines": { + "node": "^18.19.1 || ^20.11.1 || >=22.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/schematics-cli": { + "version": "19.2.19", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics-cli/-/schematics-cli-19.2.19.tgz", + "integrity": "sha512-7q9UY6HK6sccL9F3cqGRUwKhM7b/XfD2YcVaZ2WD7VMaRlRm85v6mRjSrfKIAwxcQU0UK27kMc79NIIqaHjzxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "19.2.19", + "@angular-devkit/schematics": "19.2.19", + "@inquirer/prompts": "7.3.2", + "ansi-colors": "4.1.3", + "symbol-observable": "4.0.0", + "yargs-parser": "21.1.1" + }, + "bin": { + "schematics": "bin/schematics.js" + }, + "engines": { + "node": "^18.19.1 || ^20.11.1 || >=22.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/schematics-cli/node_modules/@inquirer/prompts": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.3.2.tgz", + "integrity": "sha512-G1ytyOoHh5BphmEBxSwALin3n1KGNYB6yImbICcRQdzXfOGbuJ9Jske/Of5Sebk339NSGGNfUshnzK8YWkTPsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/checkbox": "^4.1.2", + "@inquirer/confirm": "^5.1.6", + "@inquirer/editor": "^4.2.7", + "@inquirer/expand": "^4.0.9", + "@inquirer/input": "^4.1.6", + "@inquirer/number": "^3.0.9", + "@inquirer/password": "^4.0.9", + "@inquirer/rawlist": "^4.0.9", + "@inquirer/search": "^3.0.9", + "@inquirer/select": "^4.0.9" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@angular-devkit/schematics/node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@borewit/text-codec": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.1.tgz", + "integrity": "sha512-k7vvKPbf7J2fZ5klGRD9AeKfUvojuZIQ3BT5u7Jfv+puwXkUBUT5PVyMDfJZpy30CBDXGMgw7fguK/lpOMBvgw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/@chevrotain/cst-dts-gen": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-10.5.0.tgz", + "integrity": "sha512-lhmC/FyqQ2o7pGK4Om+hzuDrm9rhFYIJ/AXoQBeongmn870Xeb0L6oGEiuR8nohFNL5sMaQEJWCxr1oIVIVXrw==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/gast": "10.5.0", + "@chevrotain/types": "10.5.0", + "lodash": "4.17.21" + } + }, + "node_modules/@chevrotain/gast": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-10.5.0.tgz", + "integrity": "sha512-pXdMJ9XeDAbgOWKuD1Fldz4ieCs6+nLNmyVhe2gZVqoO7v8HXuHYs5OV2EzUtbuai37TlOAQHrTDvxMnvMJz3A==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/types": "10.5.0", + "lodash": "4.17.21" + } + }, + "node_modules/@chevrotain/types": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-10.5.0.tgz", + "integrity": "sha512-f1MAia0x/pAVPWH/T73BJVyO2XU5tI4/iE7cnxb7tqdNTNhQI3Uq3XkqcoteTmD4t1aM0LbHCJOhgIDn07kl2A==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/utils": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-10.5.0.tgz", + "integrity": "sha512-hBzuU5+JjB2cqNZyszkDHZgOSrUUT8V3dhgRl8Q9Gp6dAj/H5+KILGjbhDpc3Iy9qmqlm/akuOI2ut9VUtzJxQ==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@electric-sql/pglite": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite/-/pglite-0.3.2.tgz", + "integrity": "sha512-zfWWa+V2ViDCY/cmUfRqeWY1yLto+EpxjXnZzenB1TyxsTiXaTWeZFIZw6mac52BsuQm0RjCnisjBtdBaXOI6w==", + "devOptional": true, + "license": "Apache-2.0", + "peer": true + }, + "node_modules/@electric-sql/pglite-socket": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite-socket/-/pglite-socket-0.0.6.tgz", + "integrity": "sha512-6RjmgzphIHIBA4NrMGJsjNWK4pu+bCWJlEWlwcxFTVY3WT86dFpKwbZaGWZV6C5Rd7sCk1Z0CI76QEfukLAUXw==", + "devOptional": true, + "license": "Apache-2.0", + "bin": { + "pglite-server": "dist/scripts/server.js" + }, + "peerDependencies": { + "@electric-sql/pglite": "0.3.2" + } + }, + "node_modules/@electric-sql/pglite-tools": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite-tools/-/pglite-tools-0.2.7.tgz", + "integrity": "sha512-9dAccClqxx4cZB+Ar9B+FZ5WgxDc/Xvl9DPrTWv+dYTf0YNubLzi4wHHRGRGhrJv15XwnyKcGOZAP1VXSneSUg==", + "devOptional": true, + "license": "Apache-2.0", + "peerDependencies": { + "@electric-sql/pglite": "0.3.2" + } + }, + "node_modules/@googlemaps/google-maps-services-js": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/@googlemaps/google-maps-services-js/-/google-maps-services-js-3.4.2.tgz", + "integrity": "sha512-QjxiJSt8woyPaaQIUUDNL1nRfCEXTiv8KfJSNq/YzKEUVXABT75GLG+Zo267UwOcq70n8OsZbaro5VrY962mJg==", + "license": "Apache-2.0", + "dependencies": { + "@googlemaps/url-signature": "^1.0.4", + "agentkeepalive": "^4.1.0", + "axios": "^1.5.1", + "query-string": "<8.x", + "retry-axios": "<3.x" + } + }, + "node_modules/@googlemaps/url-signature": { + "version": "1.0.40", + "resolved": "https://registry.npmjs.org/@googlemaps/url-signature/-/url-signature-1.0.40.tgz", + "integrity": "sha512-Gme3JxGZWQ4NVpATajSpS2/inQzhUxRvr/FK6IFpcC7AHOAmx8blI0y1/Qi2jqil+WoQ3TkEqq/MaKVtuV68RQ==", + "license": "Apache-2.0", + "dependencies": { + "crypto-js": "^4.2.0" + } + }, + "node_modules/@hono/node-server": { + "version": "1.19.6", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.6.tgz", + "integrity": "sha512-Shz/KjlIeAhfiuE93NDKVdZ7HdBVLQAfdbaXEaoAVO3ic9ibRSLGIQGkcBbFyuLr+7/1D5ZCINM8B+6IvXeMtw==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, + "node_modules/@inquirer/ansi": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/ansi/-/ansi-1.0.2.tgz", + "integrity": "sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@inquirer/checkbox": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.3.2.tgz", + "integrity": "sha512-VXukHf0RR1doGe6Sm4F0Em7SWYLTHSsbGfJdS9Ja2bX5/D5uwVOEjr07cncLROdBvmnvCATYEWlHqYmXv2IlQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/ansi": "^1.0.2", + "@inquirer/core": "^10.3.2", + "@inquirer/figures": "^1.0.15", + "@inquirer/type": "^3.0.10", + "yoctocolors-cjs": "^2.1.3" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/confirm": { + "version": "5.1.21", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.21.tgz", + "integrity": "sha512-KR8edRkIsUayMXV+o3Gv+q4jlhENF9nMYUZs9PA2HzrXeHI8M5uDag70U7RJn9yyiMZSbtF5/UexBtAVtZGSbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.3.2", + "@inquirer/type": "^3.0.10" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/core": { + "version": "10.3.2", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.3.2.tgz", + "integrity": "sha512-43RTuEbfP8MbKzedNqBrlhhNKVwoK//vUFNW3Q3vZ88BLcrs4kYpGg+B2mm5p2K/HfygoCxuKwJJiv8PbGmE0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/ansi": "^1.0.2", + "@inquirer/figures": "^1.0.15", + "@inquirer/type": "^3.0.10", + "cli-width": "^4.1.0", + "mute-stream": "^2.0.0", + "signal-exit": "^4.1.0", + "wrap-ansi": "^6.2.0", + "yoctocolors-cjs": "^2.1.3" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/editor": { + "version": "4.2.23", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.23.tgz", + "integrity": "sha512-aLSROkEwirotxZ1pBaP8tugXRFCxW94gwrQLxXfrZsKkfjOYC1aRvAZuhpJOb5cu4IBTJdsCigUlf2iCOu4ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.3.2", + "@inquirer/external-editor": "^1.0.3", + "@inquirer/type": "^3.0.10" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/expand": { + "version": "4.0.23", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.23.tgz", + "integrity": "sha512-nRzdOyFYnpeYTTR2qFwEVmIWypzdAx/sIkCMeTNTcflFOovfqUk+HcFhQQVBftAh9gmGrpFj6QcGEqrDMDOiew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.3.2", + "@inquirer/type": "^3.0.10", + "yoctocolors-cjs": "^2.1.3" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/external-editor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.3.tgz", + "integrity": "sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chardet": "^2.1.1", + "iconv-lite": "^0.7.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/figures": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.15.tgz", + "integrity": "sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@inquirer/input": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.3.1.tgz", + "integrity": "sha512-kN0pAM4yPrLjJ1XJBjDxyfDduXOuQHrBB8aLDMueuwUGn+vNpF7Gq7TvyVxx8u4SHlFFj4trmj+a2cbpG4Jn1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.3.2", + "@inquirer/type": "^3.0.10" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/number": { + "version": "3.0.23", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.23.tgz", + "integrity": "sha512-5Smv0OK7K0KUzUfYUXDXQc9jrf8OHo4ktlEayFlelCjwMXz0299Y8OrI+lj7i4gCBY15UObk76q0QtxjzFcFcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.3.2", + "@inquirer/type": "^3.0.10" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/password": { + "version": "4.0.23", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.23.tgz", + "integrity": "sha512-zREJHjhT5vJBMZX/IUbyI9zVtVfOLiTO66MrF/3GFZYZ7T4YILW5MSkEYHceSii/KtRk+4i3RE7E1CUXA2jHcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/ansi": "^1.0.2", + "@inquirer/core": "^10.3.2", + "@inquirer/type": "^3.0.10" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/prompts": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.10.1.tgz", + "integrity": "sha512-Dx/y9bCQcXLI5ooQ5KyvA4FTgeo2jYj/7plWfV5Ak5wDPKQZgudKez2ixyfz7tKXzcJciTxqLeK7R9HItwiByg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/checkbox": "^4.3.2", + "@inquirer/confirm": "^5.1.21", + "@inquirer/editor": "^4.2.23", + "@inquirer/expand": "^4.0.23", + "@inquirer/input": "^4.3.1", + "@inquirer/number": "^3.0.23", + "@inquirer/password": "^4.0.23", + "@inquirer/rawlist": "^4.1.11", + "@inquirer/search": "^3.2.2", + "@inquirer/select": "^4.4.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/rawlist": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.11.tgz", + "integrity": "sha512-+LLQB8XGr3I5LZN/GuAHo+GpDJegQwuPARLChlMICNdwW7OwV2izlCSCxN6cqpL0sMXmbKbFcItJgdQq5EBXTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.3.2", + "@inquirer/type": "^3.0.10", + "yoctocolors-cjs": "^2.1.3" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/search": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.2.2.tgz", + "integrity": "sha512-p2bvRfENXCZdWF/U2BXvnSI9h+tuA8iNqtUKb9UWbmLYCRQxd8WkvwWvYn+3NgYaNwdUkHytJMGG4MMLucI1kA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.3.2", + "@inquirer/figures": "^1.0.15", + "@inquirer/type": "^3.0.10", + "yoctocolors-cjs": "^2.1.3" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/select": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.4.2.tgz", + "integrity": "sha512-l4xMuJo55MAe+N7Qr4rX90vypFwCajSakx59qe/tMaC1aEHWLyw68wF4o0A4SLAY4E0nd+Vt+EyskeDIqu1M6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/ansi": "^1.0.2", + "@inquirer/core": "^10.3.2", + "@inquirer/figures": "^1.0.15", + "@inquirer/type": "^3.0.10", + "yoctocolors-cjs": "^2.1.3" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/type": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.10.tgz", + "integrity": "sha512-BvziSRxfz5Ov8ch0z/n3oijRSEcEsHnhggm4xFZe93DHcUCTlutlq9Ox4SVENAfcRD22UQq7T/atg9Wr3k09eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "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==", + "dev": true, + "license": "MIT", + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/gen-mapping/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/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==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, + "node_modules/@jridgewell/source-map/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@lukeed/csprng": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", + "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@microsoft/tsdoc": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.16.0.tgz", + "integrity": "sha512-xgAyonlVVS+q7Vc7qLW0UrJU7rSFcETRWsqdXZtjzRU8dF+6CkozTK4V4y1LwOX7j8r/vHphjDeMeGI4tNGeGA==", + "license": "MIT" + }, + "node_modules/@mrleebo/prisma-ast": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@mrleebo/prisma-ast/-/prisma-ast-0.12.1.tgz", + "integrity": "sha512-JwqeCQ1U3fvccttHZq7Tk0m/TMC6WcFAQZdukypW3AzlJYKYTGNVd1ANU2GuhKnv4UQuOFj3oAl0LLG/gxFN1w==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "chevrotain": "^10.5.0", + "lilconfig": "^2.1.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@nestjs/cli": { + "version": "11.0.14", + "resolved": "https://registry.npmjs.org/@nestjs/cli/-/cli-11.0.14.tgz", + "integrity": "sha512-YwP03zb5VETTwelXU+AIzMVbEZKk/uxJL+z9pw0mdG9ogAtqZ6/mpmIM4nEq/NU8D0a7CBRLcMYUmWW/55pfqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "19.2.19", + "@angular-devkit/schematics": "19.2.19", + "@angular-devkit/schematics-cli": "19.2.19", + "@inquirer/prompts": "7.10.1", + "@nestjs/schematics": "^11.0.1", + "ansis": "4.2.0", + "chokidar": "4.0.3", + "cli-table3": "0.6.5", + "commander": "4.1.1", + "fork-ts-checker-webpack-plugin": "9.1.0", + "glob": "13.0.0", + "node-emoji": "1.11.0", + "ora": "5.4.1", + "tsconfig-paths": "4.2.0", + "tsconfig-paths-webpack-plugin": "4.2.0", + "typescript": "5.9.3", + "webpack": "5.103.0", + "webpack-node-externals": "3.0.0" + }, + "bin": { + "nest": "bin/nest.js" + }, + "engines": { + "node": ">= 20.11" + }, + "peerDependencies": { + "@swc/cli": "^0.1.62 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0", + "@swc/core": "^1.3.62" + }, + "peerDependenciesMeta": { + "@swc/cli": { + "optional": true + }, + "@swc/core": { + "optional": true + } + } + }, + "node_modules/@nestjs/cli/node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/@nestjs/cli/node_modules/es-module-lexer": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@nestjs/cli/node_modules/schema-utils": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", + "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/@nestjs/cli/node_modules/webpack": { + "version": "5.103.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.103.0.tgz", + "integrity": "sha512-HU1JOuV1OavsZ+mfigY0j8d1TgQgbZ6M+J75zDkpEAwYeXjWSqrGJtgnPblJjd/mAyTNQ7ygw0MiKOn6etz8yw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.8", + "@types/json-schema": "^7.0.15", + "@webassemblyjs/ast": "^1.14.1", + "@webassemblyjs/wasm-edit": "^1.14.1", + "@webassemblyjs/wasm-parser": "^1.14.1", + "acorn": "^8.15.0", + "acorn-import-phases": "^1.0.3", + "browserslist": "^4.26.3", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.17.3", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.11", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.3.1", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^4.3.3", + "tapable": "^2.3.0", + "terser-webpack-plugin": "^5.3.11", + "watchpack": "^2.4.4", + "webpack-sources": "^3.3.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/@nestjs/common": { + "version": "11.1.11", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.11.tgz", + "integrity": "sha512-R/+A8XFqLgN8zNs2twhrOaE7dJbRQhdPX3g46am4RT/x8xGLqDphrXkUIno4cGUZHxbczChBAaAPTdPv73wDZA==", + "license": "MIT", + "peer": true, + "dependencies": { + "file-type": "21.2.0", + "iterare": "1.2.1", + "load-esm": "1.0.3", + "tslib": "2.8.1", + "uid": "2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "class-transformer": ">=0.4.1", + "class-validator": ">=0.13.2", + "reflect-metadata": "^0.1.12 || ^0.2.0", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, + "node_modules/@nestjs/config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@nestjs/config/-/config-4.0.2.tgz", + "integrity": "sha512-McMW6EXtpc8+CwTUwFdg6h7dYcBUpH5iUILCclAsa+MbCEvC9ZKu4dCHRlJqALuhjLw97pbQu62l4+wRwGeZqA==", + "license": "MIT", + "dependencies": { + "dotenv": "16.4.7", + "dotenv-expand": "12.0.1", + "lodash": "4.17.21" + }, + "peerDependencies": { + "@nestjs/common": "^10.0.0 || ^11.0.0", + "rxjs": "^7.1.0" + } + }, + "node_modules/@nestjs/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", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/@nestjs/core": { + "version": "11.1.11", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.11.tgz", + "integrity": "sha512-H9i+zT3RvHi7tDc+lCmWHJ3ustXveABCr+Vcpl96dNOxgmrx4elQSTC4W93Mlav2opfLV+p0UTHY6L+bpUA4zA==", + "hasInstallScript": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@nuxt/opencollective": "0.4.1", + "fast-safe-stringify": "2.1.1", + "iterare": "1.2.1", + "path-to-regexp": "8.3.0", + "tslib": "2.8.1", + "uid": "2.0.2" + }, + "engines": { + "node": ">= 20" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^11.0.0", + "@nestjs/microservices": "^11.0.0", + "@nestjs/platform-express": "^11.0.0", + "@nestjs/websockets": "^11.0.0", + "reflect-metadata": "^0.1.12 || ^0.2.0", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "@nestjs/microservices": { + "optional": true + }, + "@nestjs/platform-express": { + "optional": true + }, + "@nestjs/websockets": { + "optional": true + } + } + }, + "node_modules/@nestjs/jwt": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@nestjs/jwt/-/jwt-11.0.2.tgz", + "integrity": "sha512-rK8aE/3/Ma45gAWfCksAXUNbOoSOUudU0Kn3rT39htPF7wsYXtKfjALKeKKJbFrIWbLjsbqfXX5bIJNvgBugGA==", + "license": "MIT", + "dependencies": { + "@types/jsonwebtoken": "9.0.10", + "jsonwebtoken": "9.0.3" + }, + "peerDependencies": { + "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0" + } + }, + "node_modules/@nestjs/mapped-types": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@nestjs/mapped-types/-/mapped-types-2.1.0.tgz", + "integrity": "sha512-W+n+rM69XsFdwORF11UqJahn4J3xi4g/ZEOlJNL6KoW5ygWSmBB2p0S2BZ4FQeS/NDH72e6xIcu35SfJnE8bXw==", + "license": "MIT", + "peerDependencies": { + "@nestjs/common": "^10.0.0 || ^11.0.0", + "class-transformer": "^0.4.0 || ^0.5.0", + "class-validator": "^0.13.0 || ^0.14.0", + "reflect-metadata": "^0.1.12 || ^0.2.0" + }, + "peerDependenciesMeta": { + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, + "node_modules/@nestjs/passport": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/@nestjs/passport/-/passport-11.0.5.tgz", + "integrity": "sha512-ulQX6mbjlws92PIM15Naes4F4p2JoxGnIJuUsdXQPT+Oo2sqQmENEZXM7eYuimocfHnKlcfZOuyzbA33LwUlOQ==", + "license": "MIT", + "peerDependencies": { + "@nestjs/common": "^10.0.0 || ^11.0.0", + "passport": "^0.5.0 || ^0.6.0 || ^0.7.0" + } + }, + "node_modules/@nestjs/platform-express": { + "version": "11.1.11", + "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-11.1.11.tgz", + "integrity": "sha512-kyABSskdMRIAMWL0SlbwtDy4yn59RL4HDdwHDz/fxWuv7/53YP8Y2DtV3/sHqY5Er0msMVTZrM38MjqXhYL7gw==", + "license": "MIT", + "peer": true, + "dependencies": { + "cors": "2.8.5", + "express": "5.2.1", + "multer": "2.0.2", + "path-to-regexp": "8.3.0", + "tslib": "2.8.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^11.0.0", + "@nestjs/core": "^11.0.0" + } + }, + "node_modules/@nestjs/schedule": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@nestjs/schedule/-/schedule-6.1.1.tgz", + "integrity": "sha512-kQl1RRgi02GJ0uaUGCrXHCcwISsCsJDciCKe38ykJZgnAeeoeVWs8luWtBo4AqAAXm4nS5K8RlV0smHUJ4+2FA==", + "license": "MIT", + "dependencies": { + "cron": "4.4.0" + }, + "peerDependencies": { + "@nestjs/common": "^10.0.0 || ^11.0.0", + "@nestjs/core": "^10.0.0 || ^11.0.0" + } + }, + "node_modules/@nestjs/schematics": { + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/@nestjs/schematics/-/schematics-11.0.9.tgz", + "integrity": "sha512-0NfPbPlEaGwIT8/TCThxLzrlz3yzDNkfRNpbL7FiplKq3w4qXpJg0JYwqgMEJnLQZm3L/L/5XjoyfJHUO3qX9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "19.2.17", + "@angular-devkit/schematics": "19.2.17", + "comment-json": "4.4.1", + "jsonc-parser": "3.3.1", + "pluralize": "8.0.0" + }, + "peerDependencies": { + "typescript": ">=4.8.2" + } + }, + "node_modules/@nestjs/schematics/node_modules/@angular-devkit/core": { + "version": "19.2.17", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-19.2.17.tgz", + "integrity": "sha512-Ah008x2RJkd0F+NLKqIpA34/vUGwjlprRCkvddjDopAWRzYn6xCkz1Tqwuhn0nR1Dy47wTLKYD999TYl5ONOAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "8.17.1", + "ajv-formats": "3.0.1", + "jsonc-parser": "3.3.1", + "picomatch": "4.0.2", + "rxjs": "7.8.1", + "source-map": "0.7.4" + }, + "engines": { + "node": "^18.19.1 || ^20.11.1 || >=22.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "chokidar": "^4.0.0" + }, + "peerDependenciesMeta": { + "chokidar": { + "optional": true + } + } + }, + "node_modules/@nestjs/schematics/node_modules/@angular-devkit/schematics": { + "version": "19.2.17", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-19.2.17.tgz", + "integrity": "sha512-ADfbaBsrG8mBF6Mfs+crKA/2ykB8AJI50Cv9tKmZfwcUcyAdmTr+vVvhsBCfvUAEokigSsgqgpYxfkJVxhJYeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "19.2.17", + "jsonc-parser": "3.3.1", + "magic-string": "0.30.17", + "ora": "5.4.1", + "rxjs": "7.8.1" + }, + "engines": { + "node": "^18.19.1 || ^20.11.1 || >=22.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@nestjs/schematics/node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@nestjs/swagger": { + "version": "11.2.4", + "resolved": "https://registry.npmjs.org/@nestjs/swagger/-/swagger-11.2.4.tgz", + "integrity": "sha512-7MLqtHfD2qfhZUyg13FyX6liwigtXUL8gHXq7PaBcGo9cu8QWDDT//Fn3qzJx59+Wh+Ly/Zn+prCMpskPI5nrQ==", + "license": "MIT", + "dependencies": { + "@microsoft/tsdoc": "0.16.0", + "@nestjs/mapped-types": "2.1.0", + "js-yaml": "4.1.1", + "lodash": "4.17.21", + "path-to-regexp": "8.3.0", + "swagger-ui-dist": "5.31.0" + }, + "peerDependencies": { + "@fastify/static": "^8.0.0 || ^9.0.0", + "@nestjs/common": "^11.0.1", + "@nestjs/core": "^11.0.1", + "class-transformer": "*", + "class-validator": "*", + "reflect-metadata": "^0.1.12 || ^0.2.0" + }, + "peerDependenciesMeta": { + "@fastify/static": { + "optional": true + }, + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, + "node_modules/@nestjs/testing": { + "version": "11.1.11", + "resolved": "https://registry.npmjs.org/@nestjs/testing/-/testing-11.1.11.tgz", + "integrity": "sha512-Po2aZKXlxuySDEh3Gi05LJ7/BtfTAPRZ3KPTrbpNrTmgGr3rFgEGYpQwN50wXYw0pywoICiFLZSZ/qXsplf6NA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "2.8.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^11.0.0", + "@nestjs/core": "^11.0.0", + "@nestjs/microservices": "^11.0.0", + "@nestjs/platform-express": "^11.0.0" + }, + "peerDependenciesMeta": { + "@nestjs/microservices": { + "optional": true + }, + "@nestjs/platform-express": { + "optional": true + } + } + }, + "node_modules/@nestjs/throttler": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@nestjs/throttler/-/throttler-6.5.0.tgz", + "integrity": "sha512-9j0ZRfH0QE1qyrj9JjIRDz5gQLPqq9yVC2nHsrosDVAfI5HHw08/aUAWx9DZLSdQf4HDkmhTTEGLrRFHENvchQ==", + "license": "MIT", + "peerDependencies": { + "@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0", + "@nestjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0", + "reflect-metadata": "^0.1.13 || ^0.2.0" + } + }, + "node_modules/@nuxt/opencollective": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@nuxt/opencollective/-/opencollective-0.4.1.tgz", + "integrity": "sha512-GXD3wy50qYbxCJ652bDrDzgMr3NFEkIS374+IgFQKkCvk9yiYcLvX2XDYr7UyQxf4wK0e+yqDYRubZ0DtOxnmQ==", + "license": "MIT", + "dependencies": { + "consola": "^3.2.3" + }, + "bin": { + "opencollective": "bin/opencollective.js" + }, + "engines": { + "node": "^14.18.0 || >=16.10.0", + "npm": ">=5.10.0" + } + }, + "node_modules/@prisma/adapter-pg": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/adapter-pg/-/adapter-pg-7.2.0.tgz", + "integrity": "sha512-euIdQ13cRB2wZ3jPsnDnFhINquo1PYFPCg6yVL8b2rp3EdinQHsX9EDdCtRr489D5uhphcRk463OdQAFlsCr0w==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/driver-adapter-utils": "7.2.0", + "pg": "^8.16.3", + "postgres-array": "3.0.4" + } + }, + "node_modules/@prisma/adapter-pg/node_modules/postgres-array": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.4.tgz", + "integrity": "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/@prisma/client": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-7.2.0.tgz", + "integrity": "sha512-JdLF8lWZ+LjKGKpBqyAlenxd/kXjd1Abf/xK+6vUA7R7L2Suo6AFTHFRpPSdAKCan9wzdFApsUpSa/F6+t1AtA==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/client-runtime-utils": "7.2.0" + }, + "engines": { + "node": "^20.19 || ^22.12 || >=24.0" + }, + "peerDependencies": { + "prisma": "*", + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "prisma": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/@prisma/client-runtime-utils": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/client-runtime-utils/-/client-runtime-utils-7.2.0.tgz", + "integrity": "sha512-dn7oB53v0tqkB0wBdMuTNFNPdEbfICEUe82Tn9FoKAhJCUkDH+fmyEp0ClciGh+9Hp2Tuu2K52kth2MTLstvmA==", + "license": "Apache-2.0" + }, + "node_modules/@prisma/config": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/config/-/config-7.2.0.tgz", + "integrity": "sha512-qmvSnfQ6l/srBW1S7RZGfjTQhc44Yl3ldvU6y3pgmuLM+83SBDs6UQVgMtQuMRe9J3gGqB0RF8wER6RlXEr6jQ==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "c12": "3.1.0", + "deepmerge-ts": "7.1.5", + "effect": "3.18.4", + "empathic": "2.0.0" + } + }, + "node_modules/@prisma/debug": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-7.2.0.tgz", + "integrity": "sha512-YSGTiSlBAVJPzX4ONZmMotL+ozJwQjRmZweQNIq/ER0tQJKJynNkRB3kyvt37eOfsbMCXk3gnLF6J9OJ4QWftw==", + "license": "Apache-2.0" + }, + "node_modules/@prisma/dev": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@prisma/dev/-/dev-0.17.0.tgz", + "integrity": "sha512-6sGebe5jxX+FEsQTpjHLzvOGPn6ypFQprcs3jcuIWv1Xp/5v6P/rjfdvAwTkP2iF6pDx2tCd8vGLNWcsWzImTA==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "@electric-sql/pglite": "0.3.2", + "@electric-sql/pglite-socket": "0.0.6", + "@electric-sql/pglite-tools": "0.2.7", + "@hono/node-server": "1.19.6", + "@mrleebo/prisma-ast": "0.12.1", + "@prisma/get-platform": "6.8.2", + "@prisma/query-plan-executor": "6.18.0", + "foreground-child": "3.3.1", + "get-port-please": "3.1.2", + "hono": "4.10.6", + "http-status-codes": "2.3.0", + "pathe": "2.0.3", + "proper-lockfile": "4.1.2", + "remeda": "2.21.3", + "std-env": "3.9.0", + "valibot": "1.2.0", + "zeptomatch": "2.0.2" + } + }, + "node_modules/@prisma/driver-adapter-utils": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/driver-adapter-utils/-/driver-adapter-utils-7.2.0.tgz", + "integrity": "sha512-gzrUcbI9VmHS24Uf+0+7DNzdIw7keglJsD5m/MHxQOU68OhGVzlphQRobLiDMn8CHNA2XN8uugwKjudVtnfMVQ==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.2.0" + } + }, + "node_modules/@prisma/engines": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-7.2.0.tgz", + "integrity": "sha512-HUeOI/SvCDsHrR9QZn24cxxZcujOjcS3w1oW/XVhnSATAli5SRMOfp/WkG3TtT5rCxDA4xOnlJkW7xkho4nURA==", + "devOptional": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.2.0", + "@prisma/engines-version": "7.2.0-4.0c8ef2ce45c83248ab3df073180d5eda9e8be7a3", + "@prisma/fetch-engine": "7.2.0", + "@prisma/get-platform": "7.2.0" + } + }, + "node_modules/@prisma/engines-version": { + "version": "7.2.0-4.0c8ef2ce45c83248ab3df073180d5eda9e8be7a3", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-7.2.0-4.0c8ef2ce45c83248ab3df073180d5eda9e8be7a3.tgz", + "integrity": "sha512-KezsjCZDsbjNR7SzIiVlUsn9PnLePI7r5uxABlwL+xoerurZTfgQVbIjvjF2sVr3Uc0ZcsnREw3F84HvbggGdA==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@prisma/engines/node_modules/@prisma/get-platform": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-7.2.0.tgz", + "integrity": "sha512-k1V0l0Td1732EHpAfi2eySTezyllok9dXb6UQanajkJQzPUGi3vO2z7jdkz67SypFTdmbnyGYxvEvYZdZsMAVA==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.2.0" + } + }, + "node_modules/@prisma/fetch-engine": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-7.2.0.tgz", + "integrity": "sha512-Z5XZztJ8Ap+wovpjPD2lQKnB8nWFGNouCrglaNFjxIWAGWz0oeHXwUJRiclIoSSXN/ptcs9/behptSk8d0Yy6w==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.2.0", + "@prisma/engines-version": "7.2.0-4.0c8ef2ce45c83248ab3df073180d5eda9e8be7a3", + "@prisma/get-platform": "7.2.0" + } + }, + "node_modules/@prisma/fetch-engine/node_modules/@prisma/get-platform": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-7.2.0.tgz", + "integrity": "sha512-k1V0l0Td1732EHpAfi2eySTezyllok9dXb6UQanajkJQzPUGi3vO2z7jdkz67SypFTdmbnyGYxvEvYZdZsMAVA==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.2.0" + } + }, + "node_modules/@prisma/get-platform": { + "version": "6.8.2", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-6.8.2.tgz", + "integrity": "sha512-vXSxyUgX3vm1Q70QwzwkjeYfRryIvKno1SXbIqwSptKwqKzskINnDUcx85oX+ys6ooN2ATGSD0xN2UTfg6Zcow==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "6.8.2" + } + }, + "node_modules/@prisma/get-platform/node_modules/@prisma/debug": { + "version": "6.8.2", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-6.8.2.tgz", + "integrity": "sha512-4muBSSUwJJ9BYth5N8tqts8JtiLT8QI/RSAzEogwEfpbYGFo9mYsInsVo8dqXdPO2+Rm5OG5q0qWDDE3nyUbVg==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@prisma/query-plan-executor": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/@prisma/query-plan-executor/-/query-plan-executor-6.18.0.tgz", + "integrity": "sha512-jZ8cfzFgL0jReE1R10gT8JLHtQxjWYLiQ//wHmVYZ2rVkFHoh0DT8IXsxcKcFlfKN7ak7k6j0XMNn2xVNyr5cA==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@prisma/studio-core": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@prisma/studio-core/-/studio-core-0.9.0.tgz", + "integrity": "sha512-xA2zoR/ADu/NCSQuriBKTh6Ps4XjU0bErkEcgMfnSGh346K1VI7iWKnoq1l2DoxUqiddPHIEWwtxJ6xCHG6W7g==", + "devOptional": true, + "license": "Apache-2.0", + "peerDependencies": { + "@types/react": "^18.0.0 || ^19.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + } + }, + "node_modules/@scarf/scarf": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.4.0.tgz", + "integrity": "sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==", + "hasInstallScript": true, + "license": "Apache-2.0" + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/@tokenizer/inflate": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.4.1.tgz", + "integrity": "sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "token-types": "^6.1.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "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/@tsconfig/node10": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.12.tgz", + "integrity": "sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/bcrypt": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-6.0.0.tgz", + "integrity": "sha512-/oJGukuH3D2+D+3H4JWLaAsJ/ji86dhRidzZ/Od7H/i8g+aCmvkeCc6Ni/f9uxGLSQVCRZkX2/lqEFG2BvWtlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.6", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", + "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/compression": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@types/compression/-/compression-1.8.1.tgz", + "integrity": "sha512-kCFuWS0ebDbmxs0AXYn6e2r2nrGAb5KwQhknjSPSPgJcGd8+HVSILlUyFhGqML2gk39HcG7D1ydW9/qpYkN00Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "*", + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/eslint": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", + "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/express": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.6.tgz", + "integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^5.0.0", + "@types/serve-static": "^2" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.1.tgz", + "integrity": "sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", + "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/jsonwebtoken": { + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.10.tgz", + "integrity": "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==", + "license": "MIT", + "dependencies": { + "@types/ms": "*", + "@types/node": "*" + } + }, + "node_modules/@types/luxon": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/@types/luxon/-/luxon-3.7.1.tgz", + "integrity": "sha512-H3iskjFIAn5SlJU7OuxUmTEpebK6TKB8rxZShDslBMZJ5u9S//KM1sbdAisiSrqwLQncVjnpi2OK2J51h+4lsg==", + "license": "MIT" + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "25.0.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.6.tgz", + "integrity": "sha512-NNu0sjyNxpoiW3YuVFfNz7mxSQ+S4X2G28uqg2s+CzoqoQjLPsWSbsFFyztIAqt2vb8kfEAsJNepMGPTxFDx3Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/nodemailer": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-7.0.11.tgz", + "integrity": "sha512-E+U4RzR2dKrx+u3N4DlsmLaDC6mMZOM/TPROxA0UAPiTgI0y4CEFBmZE+coGWTjakDriRsXG368lNk1u9Q0a2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/passport": { + "version": "1.0.17", + "resolved": "https://registry.npmjs.org/@types/passport/-/passport-1.0.17.tgz", + "integrity": "sha512-aciLyx+wDwT2t2/kJGJR2AEeBz0nJU4WuRX04Wu9Dqc5lSUtwu0WERPHYsLhF9PtseiAMPBGNUOtFjxZ56prsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/passport-jwt": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/passport-jwt/-/passport-jwt-4.0.1.tgz", + "integrity": "sha512-Y0Ykz6nWP4jpxgEUYq8NoVZeCQPo1ZndJLfapI249g1jHChvRfZRO/LS3tqu26YgAS/laI1qx98sYGz0IalRXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/jsonwebtoken": "*", + "@types/passport-strategy": "*" + } + }, + "node_modules/@types/passport-strategy": { + "version": "0.2.38", + "resolved": "https://registry.npmjs.org/@types/passport-strategy/-/passport-strategy-0.2.38.tgz", + "integrity": "sha512-GC6eMqqojOooq993Tmnmp7AUTbbQSgilyvpCYQjT+H6JfG/g6RGc7nXEniZlp0zyKJ0WUdOiZWLBZft9Yug1uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "*", + "@types/passport": "*" + } + }, + "node_modules/@types/pg": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.16.0.tgz", + "integrity": "sha512-RmhMd/wD+CF8Dfo+cVIy3RR5cl8CyfXQ0tGgW6XBL8L4LM/UTEbNXYRbLwU6w+CgrKBNbrQWt4FUtTfaU5jSYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^2.2.0" + } + }, + "node_modules/@types/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "19.2.8", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.8.tgz", + "integrity": "sha512-3MbSL37jEchWZz2p2mjntRZtPt837ij10ApxKfgmXCTuHWagYg7iA5bqPw6C8BMPfwidlvfPI/fxOc42HLhcyg==", + "devOptional": true, + "license": "MIT", + "peer": true, + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz", + "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-2.2.0.tgz", + "integrity": "sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*" + } + }, + "node_modules/@types/validator": { + "version": "13.15.10", + "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.15.10.tgz", + "integrity": "sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==", + "license": "MIT" + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "license": "Apache-2.0" + }, + "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/accepts/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/accepts/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/accepts/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/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-phases": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz", + "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.13.0" + }, + "peerDependencies": { + "acorn": "^8.14.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.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", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ansis": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/ansis/-/ansis-4.2.0.tgz", + "integrity": "sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + } + }, + "node_modules/append-field": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", + "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==", + "license": "MIT" + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/array-timsort": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-timsort/-/array-timsort-1.0.3.tgz", + "integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==", + "dev": true, + "license": "MIT" + }, + "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/aws-ssl-profiles": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz", + "integrity": "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/axios": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz", + "integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.14", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.14.tgz", + "integrity": "sha512-B0xUquLkiGLgHhpPBqvl7GWegWBUNuujQ6kXd/r1U38ElPT6Ok8KZ8e+FpUGEc2ZoRQUzq/aUnaKFc/svWUGSg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/bcrypt": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-6.0.0.tgz", + "integrity": "sha512-cU8v/EGSrnH+HnxV2z0J7/blxH8gq7Xh2JFT6Aroax7UohdmiJJlxApMxtKfuI7z68NvvVcmR78k2LbT6efhRg==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "node-addon-api": "^8.3.0", + "node-gyp-build": "^4.8.4" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "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/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==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "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/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "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" + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "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/c12": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/c12/-/c12-3.1.0.tgz", + "integrity": "sha512-uWoS8OU1MEIsOv8p/5a82c3H31LsWVR5qiyXVfBNOzfffjUWtPnhAb4BYI2uG2HfGmZmFjCtui5XNWaps+iFuw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "chokidar": "^4.0.3", + "confbox": "^0.2.2", + "defu": "^6.1.4", + "dotenv": "^16.6.1", + "exsolve": "^1.0.7", + "giget": "^2.0.0", + "jiti": "^2.4.2", + "ohash": "^2.0.11", + "pathe": "^2.0.3", + "perfect-debounce": "^1.0.0", + "pkg-types": "^2.2.0", + "rc9": "^2.1.2" + }, + "peerDependencies": { + "magicast": "^0.3.5" + }, + "peerDependenciesMeta": { + "magicast": { + "optional": true + } + } + }, + "node_modules/c12/node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "devOptional": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "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/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001764", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001764.tgz", + "integrity": "sha512-9JGuzl2M+vPL+pz70gtMF9sHdMFbY9FJaQBi186cHKH3pSzDvzoUJUPV6fqiKIMyXbud9ZLg4F3Yza1vJ1+93g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chardet": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.1.tgz", + "integrity": "sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/chevrotain": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-10.5.0.tgz", + "integrity": "sha512-Pkv5rBY3+CsHOYfV5g/Vs5JY9WTHHDEKOlohI2XeygaZhUeqhAlldZ8Hz9cRmxu709bvS08YzxHdTPHhffc13A==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/cst-dts-gen": "10.5.0", + "@chevrotain/gast": "10.5.0", + "@chevrotain/types": "10.5.0", + "@chevrotain/utils": "10.5.0", + "lodash": "4.17.21", + "regexp-to-ast": "0.5.0" + } + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "devOptional": true, + "license": "MIT", + "peer": true, + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", + "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0" + } + }, + "node_modules/citty": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz", + "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "consola": "^3.2.3" + } + }, + "node_modules/class-transformer": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.5.1.tgz", + "integrity": "sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==", + "license": "MIT", + "peer": true + }, + "node_modules/class-validator": { + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.14.3.tgz", + "integrity": "sha512-rXXekcjofVN1LTOSw+u4u9WXVEUvNBVjORW154q/IdmYWy1nMbOU9aNtZB0t8m+FJQ9q91jlr2f9CwwUFdFMRA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/validator": "^13.15.3", + "libphonenumber-js": "^1.11.1", + "validator": "^13.15.20" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-table3": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz", + "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/cli-width": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", + "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", + "dev": true, + "license": "ISC", + "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==", + "dev": true, + "license": "MIT", + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/comment-json": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.4.1.tgz", + "integrity": "sha512-r1To31BQD5060QdkC+Iheai7gHwoSZobzunqkf2/kQ6xIAfJyrKNAFUwdKvkK7Qgu7pVTKQEa7ok7Ed3ycAJgg==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-timsort": "^1.0.3", + "core-util-is": "^1.0.3", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "license": "MIT", + "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", + "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", + "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" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", + "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", + "engines": [ + "node >= 6.0" + ], + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.0.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/confbox": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.2.tgz", + "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, + "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/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-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/cosmiconfig": { + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cron": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/cron/-/cron-4.4.0.tgz", + "integrity": "sha512-fkdfq+b+AHI4cKdhZlppHveI/mgz2qpiYxcm+t5E5TsxX7QrLS1VE0+7GENEk9z0EeGPcpSciGv6ez24duWhwQ==", + "license": "MIT", + "dependencies": { + "@types/luxon": "~3.7.0", + "luxon": "~3.7.0" + }, + "engines": { + "node": ">=18.x" + }, + "funding": { + "type": "ko-fi", + "url": "https://ko-fi.com/intcreator" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "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/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "devOptional": true, + "license": "MIT" + }, + "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/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/deepmerge-ts": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-7.1.5.tgz", + "integrity": "sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==", + "devOptional": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=16.0.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==", + "dev": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/defu": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", + "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "devOptional": true, + "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/destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dotenv": { + "version": "17.2.3", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz", + "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dotenv-expand": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-12.0.1.tgz", + "integrity": "sha512-LaKRbou8gt0RNID/9RoI+J2rvXsBRPMV7p+ElHlPhcSARbCPDYcYG2s1TIzAfWv4YSgyY5taidWzzs31lNV3yQ==", + "license": "BSD-2-Clause", + "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", + "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/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/effect": { + "version": "3.18.4", + "resolved": "https://registry.npmjs.org/effect/-/effect-3.18.4.tgz", + "integrity": "sha512-b1LXQJLe9D11wfnOKAk3PKxuqYshQ0Heez+y5pnkd3jLj1yx9QhM72zZ9uUrOQyNvrs2GZZd/3maL0ZV18YuDA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.0.0", + "fast-check": "^3.23.1" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", + "dev": true, + "license": "ISC" + }, + "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==", + "dev": true, + "license": "MIT" + }, + "node_modules/empathic": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/empathic/-/empathic-2.0.0.tgz", + "integrity": "sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "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/enhanced-resolve": { + "version": "5.18.4", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.4.tgz", + "integrity": "sha512-LgQMM4WXU3QI+SYgEc2liRgznaD5ojbmY3sb8LxyguVkIg5FxdpTkvk72te2R38/TGKxH634oLxXRGY6d7AP+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "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" + }, + "node_modules/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "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-module-lexer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz", + "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==", + "dev": true, + "license": "MIT" + }, + "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/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-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/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "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==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "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/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/expo-server-sdk": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/expo-server-sdk/-/expo-server-sdk-6.1.0.tgz", + "integrity": "sha512-ISuax1AQ7cpM5RAqcu8gVcoLL0ZKskJ5OLoMWmdITBe9nYjTucjdGyBq817YkIvTcj1pAUwx+9toUT7l/V7thA==", + "license": "MIT", + "dependencies": { + "promise-limit": "^2.7.0", + "promise-retry": "^2.0.1", + "undici": "^7.2.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/express": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "license": "MIT", + "peer": true, + "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/express/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/express/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/exsolve": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz", + "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/fast-check": { + "version": "3.23.2", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.23.2.tgz", + "integrity": "sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==", + "devOptional": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT", + "dependencies": { + "pure-rand": "^6.1.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/file-type": { + "version": "21.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.2.0.tgz", + "integrity": "sha512-vCYBgFOrJQLoTzDyAXAL/RFfKnXXpUYt4+tipVy26nJJhT7ftgGETf2tAQF59EEL61i3MrorV/PG6tf7LJK7eg==", + "license": "MIT", + "dependencies": { + "@tokenizer/inflate": "^0.4.1", + "strtok3": "^10.3.4", + "token-types": "^6.1.1", + "uint8array-extras": "^1.4.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/filter-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "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/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/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fork-ts-checker-webpack-plugin": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-9.1.0.tgz", + "integrity": "sha512-mpafl89VFPJmhnJ1ssH+8wmM2b50n+Rew5x42NeI2U78aRWgtkEtGmctp7iT16UjquJTjorEmIfESj3DxdW84Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.16.7", + "chalk": "^4.1.2", + "chokidar": "^4.0.1", + "cosmiconfig": "^8.2.0", + "deepmerge": "^4.2.2", + "fs-extra": "^10.0.0", + "memfs": "^3.4.1", + "minimatch": "^3.0.4", + "node-abort-controller": "^3.0.1", + "schema-utils": "^3.1.1", + "semver": "^7.3.5", + "tapable": "^2.2.1" + }, + "engines": { + "node": ">=14.21.3" + }, + "peerDependencies": { + "typescript": ">3.6.0", + "webpack": "^5.11.0" + } + }, + "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/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/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-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs-monkey": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.1.0.tgz", + "integrity": "sha512-QMUezzXWII9EV5aTFXW1UBVUO77wYPpjqIF8/AviUCThNeSYZykpoTixUeaNNBwmCev0AMDWMAni+f8Hxb1IFw==", + "dev": true, + "license": "Unlicense" + }, + "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/generate-function": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", + "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "is-property": "^1.0.2" + } + }, + "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-port-please": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/get-port-please/-/get-port-please-3.1.2.tgz", + "integrity": "sha512-Gxc29eLs1fbn6LQ4jSU4vXjlwyZhF5HsGuMAa7gqBP4Rw4yxxltyDUuF5MBclFzDTXO+ACchGQoeela4DSfzdQ==", + "devOptional": true, + "license": "MIT" + }, + "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/giget": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/giget/-/giget-2.0.0.tgz", + "integrity": "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "citty": "^0.1.6", + "consola": "^3.4.0", + "defu": "^6.1.4", + "node-fetch-native": "^1.6.6", + "nypm": "^0.6.0", + "pathe": "^2.0.3" + }, + "bin": { + "giget": "dist/cli.mjs" + } + }, + "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==", + "dev": true, + "license": "BlueOak-1.0.0", + "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/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "license": "BSD-2-Clause" + }, + "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==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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==", + "devOptional": true, + "license": "ISC" + }, + "node_modules/grammex": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/grammex/-/grammex-3.1.12.tgz", + "integrity": "sha512-6ufJOsSA7LcQehIJNCO7HIBykfM7DXQual0Ny780/DEcJIpBlHRvcqEBWGPYd7hrXL2GJ3oJI1MIhaXjWmLQOQ==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/helmet": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/helmet/-/helmet-8.1.0.tgz", + "integrity": "sha512-jOiHyAZsmnr8LqoPGmCjYAaiuWwjAPLgY8ZX2XrmHawt99/u1y6RgrZMTeoPfpUbV96HOalYgz1qzkRbw54Pmg==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/hono": { + "version": "4.10.6", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.10.6.tgz", + "integrity": "sha512-BIdolzGpDO9MQ4nu3AUuDwHZZ+KViNm+EZ75Ae55eMXMqLVhDFqEMXxtUe9Qh8hjL+pIna/frs2j6Y2yD5Ua/g==", + "devOptional": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=16.9.0" + } + }, + "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-status-codes": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/http-status-codes/-/http-status-codes-2.3.0.tgz", + "integrity": "sha512-RJ8XvFvpPM/Dmc5SV+dC4y5PCeOhT3x1Hq0NU3rjGeg5a/CqlhZ7uudknPwZFz4aeAXDcbAyaeP7GAo9lvngtA==", + "devOptional": true, + "license": "MIT" + }, + "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", + "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/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/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/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-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-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-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "devOptional": true, + "license": "ISC" + }, + "node_modules/iterare": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz", + "integrity": "sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==", + "license": "ISC", + "engines": { + "node": ">=6" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.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==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "devOptional": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "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==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonc-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsonfile": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "dev": true, + "license": "MIT", + "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/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/libphonenumber-js": { + "version": "1.12.34", + "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.12.34.tgz", + "integrity": "sha512-v/Ip8k8eYdp7bINpzqDh46V/PaQ8sK+qi97nMQgjZzFlb166YFqlR/HVI+MzsI9JqcyyVWCOipmmretiaSyQyw==", + "license": "MIT" + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/load-esm": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/load-esm/-/load-esm-1.0.3.tgz", + "integrity": "sha512-v5xlu8eHD1+6r8EHTg6hfmO97LN8ugKtiXcy5e6oN72iD2r6u0RPfLl6fxM+7Wnh2ZRq15o0russMst44WauPA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + }, + { + "type": "buymeacoffee", + "url": "https://buymeacoffee.com/borewit" + } + ], + "license": "MIT", + "engines": { + "node": ">=13.2.0" + } + }, + "node_modules/loader-runner": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.1.tgz", + "integrity": "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.11.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "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.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.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.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/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/lru-cache": { + "version": "11.2.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.4.tgz", + "integrity": "sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/lru.min": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/lru.min/-/lru.min-1.1.3.tgz", + "integrity": "sha512-Lkk/vx6ak3rYkRR0Nhu4lFUT2VDnQSxBe8Hbl7f36358p6ow8Bnvr8lrLt98H8J1aGxfhbX4Fs5tYg2+FTwr5Q==", + "devOptional": true, + "license": "MIT", + "engines": { + "bun": ">=1.0.0", + "deno": ">=1.30.0", + "node": ">=8.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wellwelwel" + } + }, + "node_modules/luxon": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.7.2.tgz", + "integrity": "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "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/memfs": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.3.tgz", + "integrity": "sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==", + "dev": true, + "license": "Unlicense", + "dependencies": { + "fs-monkey": "^1.0.4" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "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==", + "dev": true, + "license": "MIT" + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "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": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "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/multer": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/multer/-/multer-2.0.2.tgz", + "integrity": "sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==", + "license": "MIT", + "dependencies": { + "append-field": "^1.0.0", + "busboy": "^1.6.0", + "concat-stream": "^2.0.0", + "mkdirp": "^0.5.6", + "object-assign": "^4.1.1", + "type-is": "^1.6.18", + "xtend": "^4.0.2" + }, + "engines": { + "node": ">= 10.16.0" + } + }, + "node_modules/multer/node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/multer/node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mute-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", + "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/mysql2": { + "version": "3.15.3", + "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.15.3.tgz", + "integrity": "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "aws-ssl-profiles": "^1.1.1", + "denque": "^2.1.0", + "generate-function": "^2.3.1", + "iconv-lite": "^0.7.0", + "long": "^5.2.1", + "lru.min": "^1.0.0", + "named-placeholders": "^1.1.3", + "seq-queue": "^0.0.5", + "sqlstring": "^2.3.2" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/named-placeholders": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.6.tgz", + "integrity": "sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "lru.min": "^1.1.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/negotiator": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", + "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-abort-controller": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-3.1.1.tgz", + "integrity": "sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-addon-api": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.5.0.tgz", + "integrity": "sha512-/bRZty2mXUIFY/xU5HLvveNHlswNJej+RnxBjOMkidWfwZzgTbPG1E3K5TOxRLOR+5hX7bSofy8yf1hZevMS8A==", + "license": "MIT", + "engines": { + "node": "^18 || ^20 || >= 21" + } + }, + "node_modules/node-emoji": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", + "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", + "dev": true, + "license": "MIT", + "dependencies": { + "lodash": "^4.17.21" + } + }, + "node_modules/node-fetch-native": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz", + "integrity": "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/node-gyp-build": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", + "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", + "license": "MIT", + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "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==", + "dev": true, + "license": "MIT" + }, + "node_modules/nodemailer": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.1.tgz", + "integrity": "sha512-5kcldIXmaEjZcHR6F28IKGSgpmZHaF1IXLWFTG+Xh3S+Cce4MiakLtWY+PlBU69fLbRa8HlaGIrC/QolUpHkhg==", + "license": "MIT-0", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/nypm": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.6.2.tgz", + "integrity": "sha512-7eM+hpOtrKrBDCh7Ypu2lJ9Z7PNZBdi/8AT3AX8xoCj43BBVHD0hPSTEvMtkMpfs8FCqBGhxB+uToIQimA111g==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "citty": "^0.1.6", + "consola": "^3.4.2", + "pathe": "^2.0.3", + "pkg-types": "^2.3.0", + "tinyexec": "^1.0.1" + }, + "bin": { + "nypm": "dist/cli.mjs" + }, + "engines": { + "node": "^14.16.0 || >=16.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-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/ohash": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.11.tgz", + "integrity": "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==", + "devOptional": true, + "license": "MIT" + }, + "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", + "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": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/passport": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/passport/-/passport-0.7.0.tgz", + "integrity": "sha512-cPLl+qZpSc+ireUvt+IzqbED1cHHkDoVYMo30jbJIdOOjQ1MQYZBPiNvmi8UM6lJuOpTPXJGZQk0DtC4y61MYQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "passport-strategy": "1.x.x", + "pause": "0.0.1", + "utils-merge": "^1.0.1" + }, + "engines": { + "node": ">= 0.4.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jaredhanson" + } + }, + "node_modules/passport-jwt": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/passport-jwt/-/passport-jwt-4.0.1.tgz", + "integrity": "sha512-UCKMDYhNuGOBE9/9Ycuoyh7vP6jpeTp/+sfMJl7nLff/t6dps+iaeE0hhNkKN8/HZHcJ7lCdOyDxHdDoxoSvdQ==", + "license": "MIT", + "dependencies": { + "jsonwebtoken": "^9.0.0", + "passport-strategy": "^1.0.0" + } + }, + "node_modules/passport-strategy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", + "integrity": "sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA==", + "engines": { + "node": ">= 0.4.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==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/pause": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", + "integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==" + }, + "node_modules/perfect-debounce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", + "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/pg": { + "version": "8.16.3", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.16.3.tgz", + "integrity": "sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==", + "license": "MIT", + "peer": true, + "dependencies": { + "pg-connection-string": "^2.9.1", + "pg-pool": "^3.10.1", + "pg-protocol": "^1.10.3", + "pg-types": "2.2.0", + "pgpass": "1.0.5" + }, + "engines": { + "node": ">= 16.0.0" + }, + "optionalDependencies": { + "pg-cloudflare": "^1.2.7" + }, + "peerDependencies": { + "pg-native": ">=3.0.1" + }, + "peerDependenciesMeta": { + "pg-native": { + "optional": true + } + } + }, + "node_modules/pg-cloudflare": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.2.7.tgz", + "integrity": "sha512-YgCtzMH0ptvZJslLM1ffsY4EuGaU0cx4XSdXLRFae8bPP4dS5xL1tNB3k2o/N64cHJpwU7dxKli/nZ2lUa5fLg==", + "license": "MIT", + "optional": true + }, + "node_modules/pg-connection-string": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.9.1.tgz", + "integrity": "sha512-nkc6NpDcvPVpZXxrreI/FOtX3XemeLl8E0qFr6F2Lrm/I8WOnaWNhIPK2Z7OHpw7gh5XJThi6j6ppgNoaT1w4w==", + "license": "MIT" + }, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/pg-pool": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.10.1.tgz", + "integrity": "sha512-Tu8jMlcX+9d8+QVzKIvM/uJtp07PKr82IUOYEphaWcoBhIYkoHpLXN3qO59nAI11ripznDsEzEv8nUxBVWajGg==", + "license": "MIT", + "peerDependencies": { + "pg": ">=8.0" + } + }, + "node_modules/pg-protocol": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.10.3.tgz", + "integrity": "sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pgpass": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", + "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", + "license": "MIT", + "dependencies": { + "split2": "^4.1.0" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-types": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.2.2", + "exsolve": "^1.0.7", + "pathe": "^2.0.3" + } + }, + "node_modules/pluralize": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/postgres": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/postgres/-/postgres-3.4.7.tgz", + "integrity": "sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw==", + "devOptional": true, + "license": "Unlicense", + "engines": { + "node": ">=12" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/porsager" + } + }, + "node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/postgres-bytea": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz", + "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", + "license": "MIT", + "dependencies": { + "xtend": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prisma": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-7.2.0.tgz", + "integrity": "sha512-jSdHWgWOgFF24+nRyyNRVBIgGDQEsMEF8KPHvhBBg3jWyR9fUAK0Nq9ThUmiGlNgq2FA7vSk/ZoCvefod+a8qg==", + "devOptional": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@prisma/config": "7.2.0", + "@prisma/dev": "0.17.0", + "@prisma/engines": "7.2.0", + "@prisma/studio-core": "0.9.0", + "mysql2": "3.15.3", + "postgres": "3.4.7" + }, + "bin": { + "prisma": "build/index.js" + }, + "engines": { + "node": "^20.19 || ^22.12 || >=24.0" + }, + "peerDependencies": { + "better-sqlite3": ">=9.0.0", + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "better-sqlite3": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/promise-limit": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/promise-limit/-/promise-limit-2.7.0.tgz", + "integrity": "sha512-7nJ6v5lnJsXwGprnGXga4wx6d1POjvi5Qmf1ivTRxTjH4Z/9Czja/UCMLVmB9N93GeWOU93XaFaEt6jbuoagNw==", + "license": "ISC" + }, + "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", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, + "node_modules/proper-lockfile/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==", + "devOptional": true, + "license": "ISC" + }, + "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/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "devOptional": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "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/query-string": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.3.tgz", + "integrity": "sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==", + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.2", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "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/rc9": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/rc9/-/rc9-2.1.2.tgz", + "integrity": "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "defu": "^6.1.4", + "destr": "^2.0.3" + } + }, + "node_modules/react": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.3.tgz", + "integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==", + "devOptional": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==", + "devOptional": true, + "license": "MIT", + "peer": true, + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.3" + } + }, + "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/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/reflect-metadata": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", + "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", + "license": "Apache-2.0", + "peer": true + }, + "node_modules/regexp-to-ast": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/regexp-to-ast/-/regexp-to-ast-0.5.0.tgz", + "integrity": "sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/remeda": { + "version": "2.21.3", + "resolved": "https://registry.npmjs.org/remeda/-/remeda-2.21.3.tgz", + "integrity": "sha512-XXrZdLA10oEOQhLLzEJEiFFSKi21REGAkHdImIb4rt/XXy8ORGXh5HCcpUOsElfPNDb+X6TA/+wkh+p2KffYmg==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "type-fest": "^4.39.1" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/restore-cursor/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==", + "dev": true, + "license": "ISC" + }, + "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", + "engines": { + "node": ">= 4" + } + }, + "node_modules/retry-axios": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-2.6.0.tgz", + "integrity": "sha512-pOLi+Gdll3JekwuFjXO3fTq+L9lzMQGcSq7M5gIjExcl3Gu1hd4XXuf5o3+LuSBsaULQH7DiNbsqPd1chVpQGQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=10.7.0" + }, + "peerDependencies": { + "axios": "*" + } + }, + "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/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", + "peer": 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/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==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "peer": true, + "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/schema-utils/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/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/send/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/send/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/seq-queue": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz", + "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==", + "devOptional": true + }, + "node_modules/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "randombytes": "^2.1.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/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==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "devOptional": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 8" + } + }, + "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==", + "dev": true, + "license": "MIT", + "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==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/sqlstring": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", + "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">= 0.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/std-env": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.9.0.tgz", + "integrity": "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/strict-uri-encode": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "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==", + "dev": true, + "license": "MIT", + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/strtok3": { + "version": "10.3.4", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.3.4.tgz", + "integrity": "sha512-KIy5nylvC5le1OdaaoCJ07L+8iQzJHGH6pWDuzS+d07Cu7n1MZ2x26P8ZKIWfbK02+XIL8Mp4RkWeqdUCrDMfg==", + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/swagger-ui-dist": { + "version": "5.31.0", + "resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-5.31.0.tgz", + "integrity": "sha512-zSUTIck02fSga6rc0RZP3b7J7wgHXwLea8ZjgLA3Vgnb8QeOl3Wou2/j5QkzSGeoz6HusP/coYuJl33aQxQZpg==", + "license": "Apache-2.0", + "dependencies": { + "@scarf/scarf": "=1.4.0" + } + }, + "node_modules/swagger-ui-express": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/swagger-ui-express/-/swagger-ui-express-5.0.1.tgz", + "integrity": "sha512-SrNU3RiBGTLLmFU8GIJdOdanJTl4TOmT27tt3bWWHppqYmAZ6IDuEuBvMU6nZq0zLEe6b/1rACXCgLZqO6ZfrA==", + "license": "MIT", + "dependencies": { + "swagger-ui-dist": ">=5.0.0" + }, + "engines": { + "node": ">= v0.10.32" + }, + "peerDependencies": { + "express": ">=4.0.0 || >=5.0.0-beta" + } + }, + "node_modules/symbol-observable": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-4.0.0.tgz", + "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/tapable": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", + "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser": { + "version": "5.44.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.44.1.tgz", + "integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==", + "dev": true, + "license": "BSD-2-Clause", + "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-webpack-plugin": { + "version": "5.3.16", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.16.tgz", + "integrity": "sha512-h9oBFCWrq78NyWWVcSwZarJkZ01c2AyGrzs1crmHZO3QUg9D61Wu4NPjBy69n7JqylFF5y+CsUZYmYEIZ3mR+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "jest-worker": "^27.4.5", + "schema-utils": "^4.3.0", + "serialize-javascript": "^6.0.2", + "terser": "^5.31.1" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", + "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "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==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.2.tgz", + "integrity": "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/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": "6.1.2", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.1.2.tgz", + "integrity": "sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==", + "license": "MIT", + "dependencies": { + "@borewit/text-codec": "^0.2.1", + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/ts-loader": { + "version": "9.5.4", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.5.4.tgz", + "integrity": "sha512-nCz0rEwunlTZiy6rXFByQU1kVVpCIgUpc/psFiKVrUwrizdnIbRFu8w7bxhUF0X613DYwT4XzrZHpVyMe758hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4", + "source-map": "^0.7.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/tsconfig-paths": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", + "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "json5": "^2.2.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tsconfig-paths-webpack-plugin": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths-webpack-plugin/-/tsconfig-paths-webpack-plugin-4.2.0.tgz", + "integrity": "sha512-zbem3rfRS8BgeNK50Zz5SIQgXzLafiHjOwUAvk/38/o1jHn/V5QAgVUcz884or7WYcPaH3N2CIfUc2u0ul7UcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.7.0", + "tapable": "^2.2.1", + "tsconfig-paths": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "devOptional": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/type-is/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/type-is/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/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "license": "MIT" + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "devOptional": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uid": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz", + "integrity": "sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==", + "license": "MIT", + "dependencies": { + "@lukeed/csprng": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/uint8array-extras": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.5.0.tgz", + "integrity": "sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/undici": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.24.7.tgz", + "integrity": "sha512-H/nlJ/h0ggGC+uRL3ovD+G0i4bqhvsDOpbDv7At5eFLlj2b41L8QliGbnl2H7SnDiYhENphh1tQFJZf+MyfLsQ==", + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, + "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" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "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==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/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", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true, + "license": "MIT" + }, + "node_modules/valibot": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.2.0.tgz", + "integrity": "sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg==", + "devOptional": true, + "license": "MIT", + "peerDependencies": { + "typescript": ">=5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "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/watchpack": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.0.tgz", + "integrity": "sha512-e6vZvY6xboSwLz2GD36c16+O/2Z6fKvIf4pOXptw2rY9MVwE/TXc6RGqxD3I3x0a28lwBY7DE+76uTPSsBrrCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "dev": true, + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webpack": { + "version": "5.104.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.104.1.tgz", + "integrity": "sha512-Qphch25abbMNtekmEGJmeRUhLDbe+QfiWTiqpKYkpCOWY64v9eyl+KRRLmqOFA2AvKPpc9DC6+u2n76tQLBoaA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.8", + "@types/json-schema": "^7.0.15", + "@webassemblyjs/ast": "^1.14.1", + "@webassemblyjs/wasm-edit": "^1.14.1", + "@webassemblyjs/wasm-parser": "^1.14.1", + "acorn": "^8.15.0", + "acorn-import-phases": "^1.0.3", + "browserslist": "^4.28.1", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.17.4", + "es-module-lexer": "^2.0.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.11", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.3.1", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^4.3.3", + "tapable": "^2.3.0", + "terser-webpack-plugin": "^5.3.16", + "watchpack": "^2.4.4", + "webpack-sources": "^3.3.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-node-externals": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/webpack-node-externals/-/webpack-node-externals-3.0.0.tgz", + "integrity": "sha512-LnL6Z3GGDPht/AigwRh2dvL9PQPFQ8skEpVrWZXLWBYmqcaojHNN0onvHzie6rq7EWKrrBfPYqNEzTJgiwEQDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-sources": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", + "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", + "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "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/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/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==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/yoctocolors-cjs": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.3.tgz", + "integrity": "sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zeptomatch": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/zeptomatch/-/zeptomatch-2.0.2.tgz", + "integrity": "sha512-H33jtSKf8Ijtb5BW6wua3G5DhnFjbFML36eFu+VdOoVY4HD9e7ggjqdM6639B+L87rjnR6Y+XeRzBXZdy52B/g==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "grammex": "^3.1.10" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000000000000000000000000000000000000..00a9991967a68863fe45295523a13b6b9b999fd2 --- /dev/null +++ b/package.json @@ -0,0 +1,75 @@ +{ + "name": "maternal-health-backend", + "version": "1.0.0", + "description": "Clinical-safe maternal health support backend - Care escalation tool (NOT a diagnostic system)", + "main": "dist/main.js", + "scripts": { + "build": "prisma generate && prisma migrate deploy && nest build", + "postinstall": "prisma generate", + "format": "prettier --write \"src/**/*.ts\"", + "start": "nest start", + "start:dev": "nest start --watch", + "start:debug": "nest start --debug --watch", + "start:prod": "node dist/main", + "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", + "test": "jest", + "test:watch": "jest --watch", + "test:cov": "jest --coverage", + "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", + "prisma:generate": "prisma generate", + "prisma:migrate": "prisma migrate dev", + "prisma:studio": "prisma studio", + "prisma:push": "prisma db push" + }, + "keywords": [ + "maternal-health", + "pregnancy", + "hypertension", + "care-escalation", + "clinical-safety" + ], + "author": "", + "license": "ISC", + "type": "commonjs", + "devDependencies": { + "@nestjs/cli": "^11.0.14", + "@nestjs/schematics": "^11.0.9", + "@nestjs/testing": "^11.1.11", + "@types/bcrypt": "^6.0.0", + "@types/compression": "^1.8.1", + "@types/express": "^5.0.6", + "@types/node": "^25.0.6", + "@types/nodemailer": "^7.0.11", + "@types/passport-jwt": "^4.0.1", + "@types/pg": "^8.16.0", + "dotenv": "^17.2.3", + "prisma": "^7.2.0", + "ts-loader": "^9.5.4", + "ts-node": "^10.9.2", + "typescript": "^5.9.3" + }, + "dependencies": { + "@googlemaps/google-maps-services-js": "^3.4.2", + "@nestjs/config": "^4.0.2", + "@nestjs/jwt": "^11.0.2", + "@nestjs/passport": "^11.0.5", + "@nestjs/platform-express": "^11.1.11", + "@nestjs/schedule": "^6.1.1", + "@nestjs/swagger": "^11.2.4", + "@nestjs/throttler": "^6.5.0", + "@prisma/adapter-pg": "^7.2.0", + "@prisma/client": "^7.2.0", + "axios": "^1.13.5", + "bcrypt": "^6.0.0", + "class-transformer": "^0.5.1", + "class-validator": "^0.14.3", + "compression": "^1.8.1", + "expo-server-sdk": "^6.1.0", + "helmet": "^8.1.0", + "nodemailer": "^8.0.1", + "passport": "^0.7.0", + "passport-jwt": "^4.0.1", + "pg": "^8.16.3", + "swagger-ui-express": "^5.0.1" + } +} diff --git a/prisma.config.ts b/prisma.config.ts new file mode 100644 index 0000000000000000000000000000000000000000..831a20fa83a22b5b1735aa34a78ec276f7c05e4c --- /dev/null +++ b/prisma.config.ts @@ -0,0 +1,14 @@ +// This file was generated by Prisma, and assumes you have installed the following: +// npm install --save-dev prisma dotenv +import "dotenv/config"; +import { defineConfig } from "prisma/config"; + +export default defineConfig({ + schema: "prisma/schema.prisma", + migrations: { + path: "prisma/migrations", + }, + datasource: { + url: process.env["DATABASE_URL"], + }, +}); diff --git a/prisma/schema.prisma b/prisma/schema.prisma new file mode 100644 index 0000000000000000000000000000000000000000..0d311da879098a3a56209ecbcc6b6680803ac078 --- /dev/null +++ b/prisma/schema.prisma @@ -0,0 +1,282 @@ +/** + * Prisma Schema for Maternal Health Support Backend + * + * ORM CHOICE: Prisma + * + * JUSTIFICATION: + * - Type-safe database client with excellent TypeScript support + * - Intuitive schema definition language + * - Automatic migration generation + * - Built-in connection pooling + * - Great developer experience with Prisma Studio + * - Strong PostgreSQL support + * + * CLINICAL SAFETY PRINCIPLES: + * - Data minimization enforced at schema level + * - No free-text medical fields + * - Enums for controlled vocabularies + * - Timestamps for audit trails + * - Strict validation rules + */ + +generator client { + provider = "prisma-client-js" + engineType = "library" +} + +datasource db { + provider = "postgresql" +} + +/** + * UserAuth Entity + * + * CLINICAL SAFETY CONSTRAINTS: + * - Minimal PII only (email OR phone, not both required) + * - No health data in this table + * - No logging of credentials + * - Passwords are hashed (never stored in plain text) + * + * DATA MINIMIZATION: + * - Only authentication-related fields + * - No names, addresses, or demographic data + * - Health data stored in separate UserProfile table + */ +model UserAuth { + id String @id @default(uuid()) + email String? @unique + phone String? @unique + passwordHash String // bcrypt hashed password + refreshToken String? // For JWT refresh token rotation + pushToken String? // For Expo push notifications + resetPasswordToken String? // For forgot password + resetPasswordExpires DateTime? // For forgot password + isActive Boolean @default(true) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + // Relation to UserProfile (optional - created after registration) + profile UserProfile? + + // Relation to BloodPressureReadings + bloodPressureReadings BloodPressureReading[] + + // Relation to SymptomRecords + symptomRecords SymptomRecord[] + + // Relation to Notifications + notifications Notification[] + + @@index([email]) + @@index([phone]) + @@map("user_auth") +} + +/** + * Age Range Enum + * + * DATA MINIMIZATION: + * - Use age ranges instead of exact DOB + * - Prevents unnecessary PII collection + */ +enum AgeRange { + UNDER_18 + AGE_18_34 + AGE_35_PLUS +} + +/** + * Emergency Contact Relationship Enum + * + * DATA MINIMIZATION: + * - Relationship type only (no names stored) + * - Supports midwife or closest relative + */ +enum EmergencyContactRelationship { + MIDWIFE + PARTNER + FAMILY_MEMBER + OTHER +} + +/** + * Known Conditions Enum + * + * CLINICAL SAFETY: + * - Enumerated list prevents free-text medical history + * - Only high-risk pregnancy conditions relevant to hypertension + * - No diagnostic information stored + */ +enum KnownCondition { + CHRONIC_HYPERTENSION + GESTATIONAL_DIABETES + PREECLAMPSIA_HISTORY + KIDNEY_DISEASE + AUTOIMMUNE_DISORDER + MULTIPLE_PREGNANCY + NONE +} + +/** + * UserProfile Entity + * + * DATA MINIMIZATION PRINCIPLES: + * - No DOB (age range only) + * - No address + * - No free-text medical history + * - No name or demographic data + * - Only pregnancy-relevant information + * + * CLINICAL SAFETY: + * - All fields are enumerated or structured + * - No diagnostic interpretations stored + * - Links to UserAuth via userId + */ +model UserProfile { + id String @id @default(uuid()) + userId String @unique + ageRange AgeRange + pregnancyWeeks Int // Current week of pregnancy (0-42) + firstPregnancy Boolean + knownConditions KnownCondition[] // Array of enumerated conditions + emergencyContactPhone String? // Phone number only (no name) + emergencyContactRelationship EmergencyContactRelationship? // Relationship enum (e.g. MIDWIFE, PARTNER) + + // Clinic Information + clinicName String? + clinicAddress String? + clinicPhone String? + + // Notification Preferences + notifyCarePriority Boolean @default(true) + notifyBpAlert Boolean @default(true) + notifySymptomAlert Boolean @default(true) + notifyReminders Boolean @default(true) + reminderTime String? @default("09:00") // 24h format (HH:mm) + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + // Relation to UserAuth + userAuth UserAuth @relation(fields: [userId], references: [id], onDelete: Cascade) + + @@index([userId]) + @@map("user_profile") +} + +/** + * Blood Pressure Reading Entity + * + * CLINICAL SAFETY CONSTRAINTS: + * - Manual entry only (no device integration) + * - Do NOT label readings as normal/abnormal + * - Do NOT store interpretations + * - Neutral data handling only + * + * VALIDATION: + * - Systolic: 60-260 mmHg (physiologically possible range) + * - Diastolic: 40-160 mmHg (physiologically possible range) + * - Timestamp for temporal tracking + * + * PURPOSE: + * - Store raw BP measurements + * - Used by care priority engine (Phase 3) + * - No diagnostic labels attached to data + */ +model BloodPressureReading { + id String @id @default(uuid()) + userId String + systolic Int // mmHg (60-260) + diastolic Int // mmHg (40-160) + recordedAt DateTime @default(now()) + createdAt DateTime @default(now()) + + // Relation to UserAuth + userAuth UserAuth @relation(fields: [userId], references: [id], onDelete: Cascade) + + @@index([userId]) + @@index([recordedAt]) + @@map("blood_pressure_reading") +} + +/** + * Symptom Type Enum + * + * CLINICAL SAFETY: + * - Enumerated list of pregnancy hypertension warning signs + * - No free-text symptoms + * - No severity levels + * - Based on clinical guidelines for preeclampsia/eclampsia + */ +enum SymptomType { + HEADACHE // Severe or persistent headache + BLURRED_VISION // Visual disturbances + SWELLING // Edema (face, hands, feet) + UPPER_ABDOMINAL_PAIN // Right upper quadrant pain + REDUCED_URINE // Decreased urine output + NAUSEA_VOMITING // Persistent nausea/vomiting + SHORTNESS_OF_BREATH // Difficulty breathing +} + +/** + * Symptom Record Entity + * + * CLINICAL SAFETY CONSTRAINTS: + * - Atomic recording (one symptom per record) + * - No severity levels + * - No numeric scoring + * - No interpretation or diagnosis + * + * PURPOSE: + * - Track presence of warning symptoms + * - Used by care priority engine for escalation + * - Each symptom is a separate, timestamped record + */ +model SymptomRecord { + id String @id @default(uuid()) + userId String + symptomType SymptomType + recordedAt DateTime @default(now()) + createdAt DateTime @default(now()) + + // Relation to UserAuth + userAuth UserAuth @relation(fields: [userId], references: [id], onDelete: Cascade) + + @@index([userId]) + @@index([recordedAt]) + @@index([symptomType]) + @@map("symptom_record") +} + +/** + * Notification Type Enum + */ +enum NotificationType { + CARE_PRIORITY + BP_ALERT + SYMPTOM_ALERT + REMINDER +} + +/** + * Notification Entity + * + * PURPOSE: + * - Store history of alerts and notifications + * - Track read status + */ +model Notification { + id String @id @default(uuid()) + userId String + type NotificationType + title String + message String + read Boolean @default(false) + createdAt DateTime @default(now()) + + userAuth UserAuth @relation(fields: [userId], references: [id], onDelete: Cascade) + + @@index([userId]) + @@index([createdAt]) + @@map("notification") +} diff --git a/src/app.controller.ts b/src/app.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..2464bd869d27c7d4e5b632dc4ad9db9530e2ae8c --- /dev/null +++ b/src/app.controller.ts @@ -0,0 +1,30 @@ +import { Controller, Get } from '@nestjs/common'; +import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger'; + +@ApiTags('Health') +@Controller() +export class AppController { + @Get('health') + @ApiOperation({ summary: 'Check API health status' }) + @ApiResponse({ status: 200, description: 'API is healthy' }) + getHealth() { + return { + status: 'ok', + timestamp: new Date().toISOString(), + service: 'Maternal Health Support API', + clinical_safety_notice: 'CARE-SUPPORT TOOL - NOT A DIAGNOSTIC SYSTEM', + }; + } + + @Get() + @ApiOperation({ summary: 'API Root' }) + @ApiResponse({ status: 200, description: 'Welcome message' }) + getHello() { + return { + message: 'Welcome to Maternal Health Support API', + version: '1.0.0', + docs: '/api/v1/docs', + health: '/api/v1/health', + }; + } +} diff --git a/src/app.module.ts b/src/app.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..3a0f006fbd2e59a4614cebf0ab7ca566c0eda2cb --- /dev/null +++ b/src/app.module.ts @@ -0,0 +1,50 @@ +import { Module } from "@nestjs/common"; +import { ConfigModule, ConfigService } from "@nestjs/config"; +import { ThrottlerModule, ThrottlerGuard } from "@nestjs/throttler"; +import { APP_GUARD } from "@nestjs/core"; +import { ScheduleModule } from "@nestjs/schedule"; +import { DatabaseModule } from "./database/database.module"; +import { AuthModule } from "./auth/auth.module"; +import { UserProfileModule } from "./user-profile/user-profile.module"; +import { BloodPressureModule } from "./blood-pressure/blood-pressure.module"; +import { SymptomsModule } from "./symptoms/symptoms.module"; +import { CarePriorityModule } from "./care-priority/care-priority.module"; +import { NotificationsModule } from "./notifications/notifications.module"; +import { EducationModule } from "./education/education.module"; +import { ClinicFinderModule } from "./clinic-finder/clinic-finder.module"; +import { AppController } from "./app.controller"; +import { HealthController } from "./health.controller"; + +@Module({ + imports: [ + // Configuration + ConfigModule.forRoot({ + isGlobal: true, + envFilePath: ".env", + }), + + // Scheduling + ScheduleModule.forRoot(), + + // Database (Prisma) - Global module + DatabaseModule, + + // Domain modules + AuthModule, + UserProfileModule, + BloodPressureModule, + SymptomsModule, + CarePriorityModule, + NotificationsModule, + EducationModule, + ClinicFinderModule, + ], + controllers: [AppController, HealthController], + providers: [ + { + provide: APP_GUARD, + useClass: ThrottlerGuard, + }, + ], +}) +export class AppModule {} diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..ede7fbf30365056a38306b116a3084ecd8f80ba8 --- /dev/null +++ b/src/auth/auth.controller.ts @@ -0,0 +1,129 @@ +import { + Body, + Controller, + HttpCode, + HttpStatus, + Post, + Req, + UseGuards, +} from "@nestjs/common"; +import { AuthService } from "./auth.service"; +import { RegisterDto } from "./dto/register.dto"; +import { LoginDto } from "./dto/login.dto"; +import { RefreshTokenDto } from "./dto/refresh-token.dto"; +import { AuthResponseDto } from "./dto/auth-response.dto"; +import { ForgotPasswordDto } from "./dto/forgot-password.dto"; +import { ResetPasswordDto } from "./dto/reset-password.dto"; +import { JwtAuthGuard } from "./guards/jwt-auth.guard"; + +/** + * Authentication Controller + * + * ENDPOINTS: + * - POST /auth/register - Register new user + * - POST /auth/login - Login user + * - POST /auth/refresh - Refresh access token + * - POST /auth/forgot-password - Forgot password request + * - POST /auth/reset-password - Reset password with token + * + * CLINICAL SAFETY: + * - No health data collected + * - Minimal PII only + * - No credential logging + */ + +@Controller("auth") +export class AuthController { + constructor(private readonly authService: AuthService) {} + + /** + * Register a new user + * + * @param registerDto - Email/phone and password + * @returns Access token, refresh token, and user ID + */ + @Post("register") + @HttpCode(HttpStatus.CREATED) + async register(@Body() registerDto: RegisterDto): Promise { + return this.authService.register(registerDto); + } + + /** + * Login user + * + * @param loginDto - Email/phone and password + * @returns Access token, refresh token, and user ID + */ + @Post("login") + @HttpCode(HttpStatus.OK) + async login(@Body() loginDto: LoginDto): Promise { + return this.authService.login(loginDto); + } + + /** + * Forgot password request + * + * @param forgotPasswordDto - Email or phone + */ + @Post("forgot-password") + @HttpCode(HttpStatus.OK) + async forgotPassword( + @Body() forgotPasswordDto: ForgotPasswordDto + ): Promise { + return this.authService.forgotPassword(forgotPasswordDto); + } + + /** + * Reset password with token + * + * @param resetPasswordDto - Token and new password + */ + @Post("reset-password") + @HttpCode(HttpStatus.OK) + async resetPassword( + @Body() resetPasswordDto: ResetPasswordDto + ): Promise { + return this.authService.resetPassword(resetPasswordDto); + } + + /** + * Refresh access token + * + * @param refreshTokenDto - Refresh token + * @returns New access token and refresh token + */ + @Post("refresh") + @HttpCode(HttpStatus.OK) + async refresh( + @Body() refreshTokenDto: RefreshTokenDto + ): Promise { + return this.authService.refreshToken(refreshTokenDto.refreshToken); + } + + /** + * Logout user + * + * SECURITY: + * - Requires valid access token + * - Clears stored refresh token so it cannot be reused + */ + @Post("logout") + @UseGuards(JwtAuthGuard) + @HttpCode(HttpStatus.OK) + async logout(@Req() req: any): Promise { + await this.authService.logout(req.user.id); + } + + /** + * Get current authenticated user + * + * @param req - Request with authenticated user + * @returns Current user details + */ + @Post("me") + @UseGuards(JwtAuthGuard) + @HttpCode(HttpStatus.OK) + async getMe(@Req() req: any) { + return req.user; + } +} diff --git a/src/auth/auth.module.ts b/src/auth/auth.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..ce04c1bb1b7dc845a7c7b3b46bf2ba70a22c06ff --- /dev/null +++ b/src/auth/auth.module.ts @@ -0,0 +1,46 @@ +import { Module } from "@nestjs/common"; +import { JwtModule } from "@nestjs/jwt"; +import { PassportModule } from "@nestjs/passport"; +import { ConfigModule, ConfigService } from "@nestjs/config"; +import { AuthController } from "./auth.controller"; +import { AuthService } from "./auth.service"; +import { JwtStrategy } from "./strategies/jwt.strategy"; +import { NotificationsModule } from "../notifications/notifications.module"; + +/** + * Authentication Module + * + * RESPONSIBILITIES: + * - User authentication (JWT-based) + * - Minimal PII storage + * - No health data in auth tables + * - No credential logging + * + * FEATURES: + * - Email OR phone login + * - Password hashing with bcrypt + * - JWT access tokens (short-lived) + * - Refresh token rotation + * - Secure authentication flow + */ + +@Module({ + imports: [ + NotificationsModule, + PassportModule.register({ defaultStrategy: "jwt" }), + JwtModule.registerAsync({ + imports: [ConfigModule], + useFactory: (configService: ConfigService) => ({ + secret: configService.get("JWT_SECRET"), + signOptions: { + expiresIn: configService.get("JWT_EXPIRATION"), + }, + }), + inject: [ConfigService], + }), + ], + controllers: [AuthController], + providers: [AuthService, JwtStrategy], + exports: [AuthService, JwtStrategy, PassportModule], +}) +export class AuthModule {} diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..48595d00865ae9decbfd3d8560a232da658fd001 --- /dev/null +++ b/src/auth/auth.service.ts @@ -0,0 +1,343 @@ +import { + Injectable, + UnauthorizedException, + ConflictException, + Logger, + NotFoundException, +} from "@nestjs/common"; +import { JwtService } from "@nestjs/jwt"; +import { ConfigService } from "@nestjs/config"; +import * as bcrypt from "bcrypt"; +import * as crypto from "crypto"; +import { PrismaService } from "../database/prisma.service"; +import { RegisterDto } from "./dto/register.dto"; +import { LoginDto } from "./dto/login.dto"; +import { AuthResponseDto } from "./dto/auth-response.dto"; +import { ForgotPasswordDto } from "./dto/forgot-password.dto"; +import { ResetPasswordDto } from "./dto/reset-password.dto"; +import { NotificationsService } from "../notifications/notifications.service"; + +/** + * Authentication Service + * + * CLINICAL SAFETY PRINCIPLES: + * - Minimal PII storage + * - No health data in auth tables + * - No credential logging + * - Secure password hashing (bcrypt) + * - JWT-based stateless authentication + * - Refresh token rotation for security + */ + +@Injectable() +export class AuthService { + private readonly logger = new Logger(AuthService.name); + private readonly SALT_ROUNDS = 10; + + constructor( + private readonly prisma: PrismaService, + private readonly jwtService: JwtService, + private readonly configService: ConfigService, + private readonly notificationsService: NotificationsService, + ) {} + + /** + * Forgot password request + */ + async forgotPassword(forgotPasswordDto: ForgotPasswordDto): Promise { + const { email, phone } = forgotPasswordDto; + + if (!email && !phone) { + this.logger.warn("Forgot password attempt with no email or phone"); + return; + } + + // Find user — build conditions dynamically to avoid empty {} matching all rows + const conditions: any[] = []; + if (email) conditions.push({ email }); + if (phone) conditions.push({ phone }); + + const user = await this.prisma.userAuth.findFirst({ + where: conditions.length === 1 ? conditions[0] : { OR: conditions }, + }); + + if (!user) { + // Don't reveal if user exists for security + this.logger.warn( + `Forgot password attempt for non-existent user: ${email || phone}`, + ); + return; + } + + // Generate token (valid for 1 hour) + const token = crypto.randomBytes(32).toString("hex"); + const expires = new Date(); + expires.setHours(expires.getHours() + 1); + + // Save token + await this.prisma.userAuth.update({ + where: { id: user.id }, + data: { + resetPasswordToken: token, + resetPasswordExpires: expires, + }, + }); + + // Send reset message (via notification service) + await this.notificationsService.sendResetPasswordNotification( + user.id, + token, + ); + + this.logger.log(`Password reset token generated for user: ${user.id}`); + } + + /** + * Reset password with token + */ + async resetPassword(resetPasswordDto: ResetPasswordDto): Promise { + const { token, newPassword } = resetPasswordDto; + + // Find user with valid token + const user = await this.prisma.userAuth.findFirst({ + where: { + resetPasswordToken: token, + resetPasswordExpires: { gt: new Date() }, + }, + }); + + if (!user) { + throw new UnauthorizedException("Invalid or expired reset token"); + } + + // Hash new password + const passwordHash = await bcrypt.hash(newPassword, this.SALT_ROUNDS); + + // Update user + await this.prisma.userAuth.update({ + where: { id: user.id }, + data: { + passwordHash, + resetPasswordToken: null, + resetPasswordExpires: null, + refreshToken: null, // Force logout from all devices + }, + }); + + this.logger.log(`Password reset successful for user: ${user.id}`); + } + + /** + * Register a new user + * + * CONSTRAINTS: + * - Email OR phone required (not both) + * - Password must be at least 8 characters + * - No duplicate email/phone + */ + async register(registerDto: RegisterDto): Promise { + this.logger.log( + `Registration attempt for: ${registerDto.email || registerDto.phone}`, + ); + const { email, phone, password } = registerDto; + + // Validate that at least one identifier is provided + if (!email && !phone) { + throw new ConflictException("Either email or phone must be provided"); + } + + // Check for existing user — build conditions dynamically + const conditions: any[] = []; + if (email) conditions.push({ email }); + if (phone) conditions.push({ phone }); + + const existingUser = await this.prisma.userAuth.findFirst({ + where: conditions.length === 1 ? conditions[0] : { OR: conditions }, + }); + + if (existingUser) { + throw new ConflictException( + "User with this email or phone already exists", + ); + } + + // Hash password (NEVER log the password) + const passwordHash = await bcrypt.hash(password, this.SALT_ROUNDS); + + // Create user + try { + const user = await this.prisma.userAuth.create({ + data: { + email, + phone, + passwordHash, + }, + }); + this.logger.log(`New user registered: ${user.id}`); + return this.generateTokens(user.id); + } catch (error: any) { + this.logger.error( + `Database error during registration: ${error.message}`, + error.stack, + ); + throw error; + } + } + + /** + * Login user + * + * CONSTRAINTS: + * - Email OR phone required + * - Password verification + * - No credential logging + */ + async login(loginDto: LoginDto): Promise { + const { email, phone, password } = loginDto; + + // Validate that at least one identifier is provided + if (!email && !phone) { + throw new UnauthorizedException("Either email or phone must be provided"); + } + + // Find user — build conditions dynamically + const loginConditions: any[] = []; + if (email) loginConditions.push({ email }); + if (phone) loginConditions.push({ phone }); + + const user = await this.prisma.userAuth.findFirst({ + where: + loginConditions.length === 1 + ? loginConditions[0] + : { OR: loginConditions }, + }); + + if (!user) { + // Generic error to prevent user enumeration + throw new UnauthorizedException("Invalid credentials"); + } + + // Verify password (NEVER log the password) + const isPasswordValid = await bcrypt.compare(password, user.passwordHash); + + if (!isPasswordValid) { + throw new UnauthorizedException("Invalid credentials"); + } + + // Check if user is active + if (!user.isActive) { + throw new UnauthorizedException("Account is inactive"); + } + + this.logger.log(`User logged in: ${user.id}`); + + // Generate tokens + return this.generateTokens(user.id); + } + + /** + * Refresh access token + */ + async refreshToken(refreshToken: string): Promise { + try { + // Verify refresh token + const payload = this.jwtService.verify(refreshToken, { + secret: this.configService.get("JWT_REFRESH_SECRET"), + }); + + // Find user + const user = await this.prisma.userAuth.findUnique({ + where: { id: payload.sub }, + }); + + if (!user || !user.isActive) { + throw new UnauthorizedException("Invalid refresh token"); + } + + // Verify stored refresh token matches + if (user.refreshToken !== refreshToken) { + throw new UnauthorizedException("Invalid refresh token"); + } + + // Generate new tokens + return this.generateTokens(user.id); + } catch (error) { + throw new UnauthorizedException("Invalid refresh token"); + } + } + + /** + * Logout user by invalidating stored refresh token + * + * SECURITY: + * - Clears refresh token from database so it can no longer be used + */ + async logout(userId: string): Promise { + await this.prisma.userAuth.update({ + where: { id: userId }, + data: { + refreshToken: null, + pushToken: null, // Clear push token on logout for security + }, + }); + + this.logger.log(`User logged out: ${userId}`); + } + + /** + * Generate JWT access and refresh tokens + * + * SECURITY: + * - Access token: short-lived (1 hour) + * - Refresh token: longer-lived (7 days) + * - Refresh token stored in database for rotation + */ + private async generateTokens(userId: string): Promise { + const payload = { sub: userId }; + + // Generate access token + const accessToken = this.jwtService.sign(payload, { + secret: this.configService.get("JWT_SECRET"), + expiresIn: this.configService.get("JWT_EXPIRATION"), + }); + + // Generate refresh token + const refreshToken = this.jwtService.sign(payload, { + secret: this.configService.get("JWT_REFRESH_SECRET"), + expiresIn: this.configService.get("JWT_REFRESH_EXPIRATION"), + }); + + // Store refresh token in database + await this.prisma.userAuth.update({ + where: { id: userId }, + data: { refreshToken }, + }); + + return { + accessToken, + refreshToken, + userId, + }; + } + + /** + * Validate user by ID (used by JWT strategy) + */ + async validateUser(userId: string) { + const user = await this.prisma.userAuth.findUnique({ + where: { id: userId }, + select: { + id: true, + email: true, + phone: true, + isActive: true, + }, + }); + + if (!user || !user.isActive) { + return null; + } + + return user; + } +} diff --git a/src/auth/dto/auth-response.dto.ts b/src/auth/dto/auth-response.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..bc8279a3bda8667bcabc1318931a61f46f005d2b --- /dev/null +++ b/src/auth/dto/auth-response.dto.ts @@ -0,0 +1,10 @@ +/** + * Auth Response DTO + * + * Returned after successful login or registration + */ +export class AuthResponseDto { + accessToken!: string; + refreshToken!: string; + userId!: string; +} diff --git a/src/auth/dto/forgot-password.dto.ts b/src/auth/dto/forgot-password.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..73c6a10b9d328faa295a2eba01e3d7d5aa7cb1fc --- /dev/null +++ b/src/auth/dto/forgot-password.dto.ts @@ -0,0 +1,17 @@ +import { IsEmail, IsNotEmpty, IsOptional, IsString } from 'class-validator'; + +/** + * Forgot Password DTO + * + * Supports both email and phone for reset + */ +export class ForgotPasswordDto { + @IsEmail() + @IsOptional() + email?: string; + + @IsString() + @IsNotEmpty() + @IsOptional() + phone?: string; +} diff --git a/src/auth/dto/login.dto.ts b/src/auth/dto/login.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..5cacc322c1c91c16f40d2c49ad4e1f6c7f07d170 --- /dev/null +++ b/src/auth/dto/login.dto.ts @@ -0,0 +1,23 @@ +import { IsEmail, IsOptional, IsString, ValidateIf } from "class-validator"; + +/** + * Login DTO + * + * CLINICAL SAFETY: + * - Email OR phone for login + * - No credential logging + */ +export class LoginDto { + @IsOptional() + @IsEmail() + @ValidateIf((o) => !o.phone) + email?: string; + + @IsOptional() + @IsString() + @ValidateIf((o) => !o.email) + phone?: string; + + @IsString() + password!: string; +} diff --git a/src/auth/dto/refresh-token.dto.ts b/src/auth/dto/refresh-token.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..6abdf4f8fd8e3fde27d04bb839e7db253103ca4f --- /dev/null +++ b/src/auth/dto/refresh-token.dto.ts @@ -0,0 +1,9 @@ +import { IsString } from "class-validator"; + +/** + * Refresh Token DTO + */ +export class RefreshTokenDto { + @IsString() + refreshToken!: string; +} diff --git a/src/auth/dto/register.dto.ts b/src/auth/dto/register.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..4eb6b4d43912d0360a4f2f01267a048b40006605 --- /dev/null +++ b/src/auth/dto/register.dto.ts @@ -0,0 +1,31 @@ +import { + IsEmail, + IsOptional, + IsString, + MinLength, + ValidateIf, +} from "class-validator"; + +/** + * Register DTO + * + * CLINICAL SAFETY: + * - Email OR phone required (not both) + * - No health data collected during registration + * - Minimal PII only + */ +export class RegisterDto { + @IsOptional() + @IsEmail() + @ValidateIf((o) => !o.phone) // Email required if no phone + email?: string; + + @IsOptional() + @IsString() + @ValidateIf((o) => !o.email) // Phone required if no email + phone?: string; + + @IsString() + @MinLength(8, { message: "Password must be at least 8 characters long" }) + password!: string; +} diff --git a/src/auth/dto/reset-password.dto.ts b/src/auth/dto/reset-password.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..e06de64797380a3ca00252cd67246e80cc754eaf --- /dev/null +++ b/src/auth/dto/reset-password.dto.ts @@ -0,0 +1,17 @@ +import { IsNotEmpty, IsString, MinLength } from 'class-validator'; + +/** + * Reset Password DTO + * + * Used with a reset token to set a new password + */ +export class ResetPasswordDto { + @IsString() + @IsNotEmpty() + token!: string; + + @IsString() + @IsNotEmpty() + @MinLength(8, { message: 'Password must be at least 8 characters' }) + newPassword!: string; +} diff --git a/src/auth/guards/jwt-auth.guard.ts b/src/auth/guards/jwt-auth.guard.ts new file mode 100644 index 0000000000000000000000000000000000000000..70f5dee164660e93a489044a02ce179bf5e33478 --- /dev/null +++ b/src/auth/guards/jwt-auth.guard.ts @@ -0,0 +1,14 @@ +import { Injectable } from "@nestjs/common"; +import { AuthGuard } from "@nestjs/passport"; + +/** + * JWT Auth Guard + * + * Use this guard to protect routes that require authentication + * + * Usage: + * @UseGuards(JwtAuthGuard) + */ + +@Injectable() +export class JwtAuthGuard extends AuthGuard("jwt") {} diff --git a/src/auth/strategies/jwt.strategy.ts b/src/auth/strategies/jwt.strategy.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9ec43c2732436451ef33249586d08cd41131c24 --- /dev/null +++ b/src/auth/strategies/jwt.strategy.ts @@ -0,0 +1,39 @@ +import { Injectable, UnauthorizedException } from "@nestjs/common"; +import { PassportStrategy } from "@nestjs/passport"; +import { ExtractJwt, Strategy } from "passport-jwt"; +import { ConfigService } from "@nestjs/config"; +import { AuthService } from "../auth.service"; + +/** + * JWT Strategy + * + * Validates JWT tokens and attaches user to request + */ + +@Injectable() +export class JwtStrategy extends PassportStrategy(Strategy) { + constructor( + private readonly configService: ConfigService, + private readonly authService: AuthService + ) { + super({ + jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), + ignoreExpiration: false, + secretOrKey: configService.get("JWT_SECRET") || "fallback_secret", + }); + } + + /** + * Validate JWT payload + * Called automatically by Passport after token verification + */ + async validate(payload: any) { + const user = await this.authService.validateUser(payload.sub); + + if (!user) { + throw new UnauthorizedException(); + } + + return user; + } +} diff --git a/src/blood-pressure/blood-pressure.controller.ts b/src/blood-pressure/blood-pressure.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..22a2b8008ff71673f78e4a15412a1b364c69a878 --- /dev/null +++ b/src/blood-pressure/blood-pressure.controller.ts @@ -0,0 +1,92 @@ +import { + Controller, + Get, + Post, + Delete, + Body, + Param, + Query, + UseGuards, + Request, + HttpCode, + HttpStatus, + ParseIntPipe, + Inject, + forwardRef, +} from "@nestjs/common"; +import { BloodPressureService } from "./blood-pressure.service"; +import { CreateBloodPressureDto } from "./dto/create-blood-pressure.dto"; +import { JwtAuthGuard } from "../auth/guards/jwt-auth.guard"; +import { HealthAssessmentService } from "../care-priority/health-assessment.service"; + +@Controller("blood-pressure") +@UseGuards(JwtAuthGuard) +export class BloodPressureController { + constructor( + private readonly bloodPressureService: BloodPressureService, + @Inject(forwardRef(() => HealthAssessmentService)) + private readonly healthAssessmentService: HealthAssessmentService + ) {} + + @Post() + @HttpCode(HttpStatus.CREATED) + async create( + @Request() req: any, + @Body() createBloodPressureDto: CreateBloodPressureDto + ) { + const userId = req.user.id; + const reading = await this.bloodPressureService.create( + userId, + createBloodPressureDto + ); + + // Trigger health assessment and notifications (don't await to avoid blocking response) + this.healthAssessmentService.assessAndNotify(userId); + + return reading; + } + + /** + * Get all BP readings for authenticated user + * + * @param req - Request with authenticated user + * @param limit - Optional limit (default: 50) + * @returns Array of BP readings + */ + @Get() + @HttpCode(HttpStatus.OK) + async getReadings( + @Request() req: any, + @Query("limit", new ParseIntPipe({ optional: true })) limit?: number + ) { + const userId = req.user.id; + return this.bloodPressureService.findByUserId(userId, limit); + } + + /** + * Get latest BP reading + * + * @param req - Request with authenticated user + * @returns Latest BP reading or null + */ + @Get("latest") + @HttpCode(HttpStatus.OK) + async getLatest(@Request() req: any) { + const userId = req.user.id; + return this.bloodPressureService.getLatestReading(userId); + } + + /** + * Delete a BP reading + * + * @param req - Request with authenticated user + * @param id - Reading ID + * @returns Success message + */ + @Delete(":id") + @HttpCode(HttpStatus.OK) + async delete(@Request() req: any, @Param("id") id: string) { + const userId = req.user.id; + return this.bloodPressureService.delete(id, userId); + } +} diff --git a/src/blood-pressure/blood-pressure.module.ts b/src/blood-pressure/blood-pressure.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..3a2603c6214d63e5142e2e49a63d5a72332edab2 --- /dev/null +++ b/src/blood-pressure/blood-pressure.module.ts @@ -0,0 +1,27 @@ +import { Module, forwardRef } from "@nestjs/common"; +import { BloodPressureController } from "./blood-pressure.controller"; +import { BloodPressureService } from "./blood-pressure.service"; +import { CarePriorityModule } from "../care-priority/care-priority.module"; + +/** + * Blood Pressure Module + * + * RESPONSIBILITIES: + * - Store BP readings (systolic/diastolic) + * - Manual entry only + * - Timestamp tracking + * + * CLINICAL SAFETY CONSTRAINTS: + * - Do NOT label readings as normal/abnormal + * - Do NOT store interpretations + * - Neutral data handling only + * - Raw measurements for care priority engine + */ + +@Module({ + imports: [forwardRef(() => CarePriorityModule)], + controllers: [BloodPressureController], + providers: [BloodPressureService], + exports: [BloodPressureService], +}) +export class BloodPressureModule {} diff --git a/src/blood-pressure/blood-pressure.service.ts b/src/blood-pressure/blood-pressure.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..d6404aaf5b5580874889bd15fafde245435913e5 --- /dev/null +++ b/src/blood-pressure/blood-pressure.service.ts @@ -0,0 +1,151 @@ +import { Injectable, Logger } from "@nestjs/common"; +import { PrismaService } from "../database/prisma.service"; +import { CreateBloodPressureDto } from "./dto/create-blood-pressure.dto"; + +/** + * Blood Pressure Service + * + * CLINICAL SAFETY PRINCIPLES: + * - Manual entry only (no device integration) + * - Do NOT label readings as normal/abnormal + * - Do NOT store interpretations + * - Neutral data handling only + * + * RESPONSIBILITIES: + * - Store BP readings with validation + * - Retrieve readings for user + * - Provide latest reading for care priority engine + * - Query readings by date range + */ + +@Injectable() +export class BloodPressureService { + private readonly logger = new Logger(BloodPressureService.name); + + constructor(private readonly prisma: PrismaService) {} + + /** + * Create a new blood pressure reading + * + * CONSTRAINTS: + * - Systolic: 60-260 mmHg + * - Diastolic: 40-160 mmHg + * - No interpretation stored + */ + async create(userId: string, createBloodPressureDto: CreateBloodPressureDto) { + const { systolic, diastolic, recordedAt } = createBloodPressureDto; + + const reading = await this.prisma.bloodPressureReading.create({ + data: { + userId, + systolic, + diastolic, + recordedAt: recordedAt ? new Date(recordedAt) : new Date(), + }, + }); + + this.logger.log( + `BP reading created for user: ${userId} (${systolic}/${diastolic})` + ); + + return reading; + } + + /** + * Get all BP readings for a user + * + * @param userId - User ID + * @param limit - Optional limit (default: 50) + * @returns Array of BP readings, newest first + */ + async findByUserId(userId: string, limit: number = 50) { + const readings = await this.prisma.bloodPressureReading.findMany({ + where: { userId }, + orderBy: { recordedAt: "desc" }, + take: limit, + }); + + return readings; + } + + /** + * Get latest BP reading for a user + * + * Used by care priority engine + */ + async getLatestReading(userId: string) { + const reading = await this.prisma.bloodPressureReading.findFirst({ + where: { userId }, + orderBy: { recordedAt: "desc" }, + }); + + return reading; + } + + /** + * Get BP readings within a date range + * + * @param userId - User ID + * @param startDate - Start date + * @param endDate - End date + * @returns Array of BP readings in range + */ + async getReadingsInRange(userId: string, startDate: Date, endDate: Date) { + const readings = await this.prisma.bloodPressureReading.findMany({ + where: { + userId, + recordedAt: { + gte: startDate, + lte: endDate, + }, + }, + orderBy: { recordedAt: "desc" }, + }); + + return readings; + } + + /** + * Get readings from last N hours + * + * Used by care priority engine to check recent trends + */ + async getRecentReadings(userId: string, hours: number = 48) { + const cutoffDate = new Date(); + cutoffDate.setHours(cutoffDate.getHours() - hours); + + const readings = await this.prisma.bloodPressureReading.findMany({ + where: { + userId, + recordedAt: { + gte: cutoffDate, + }, + }, + orderBy: { recordedAt: "desc" }, + }); + + return readings; + } + + /** + * Delete a BP reading + */ + async delete(id: string, userId: string) { + // Ensure user owns the reading + const reading = await this.prisma.bloodPressureReading.findFirst({ + where: { id, userId }, + }); + + if (!reading) { + throw new Error("Reading not found or unauthorized"); + } + + await this.prisma.bloodPressureReading.delete({ + where: { id }, + }); + + this.logger.log(`BP reading deleted: ${id}`); + + return { message: "Reading deleted successfully" }; + } +} diff --git a/src/blood-pressure/dto/create-blood-pressure.dto.ts b/src/blood-pressure/dto/create-blood-pressure.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..12697b5b91f1d300fab960343f3355c3746662fa --- /dev/null +++ b/src/blood-pressure/dto/create-blood-pressure.dto.ts @@ -0,0 +1,30 @@ +import { IsInt, Min, Max, IsOptional, IsDateString } from "class-validator"; + +/** + * Create Blood Pressure Reading DTO + * + * VALIDATION RULES: + * - Systolic: 60-260 mmHg (physiologically possible range) + * - Diastolic: 40-160 mmHg (physiologically possible range) + * - Optional recordedAt (defaults to now) + * + * CLINICAL SAFETY: + * - No interpretation or labeling + * - Neutral data collection only + * - Manual entry only + */ +export class CreateBloodPressureDto { + @IsInt() + @Min(60, { message: "Systolic must be at least 60 mmHg" }) + @Max(260, { message: "Systolic must not exceed 260 mmHg" }) + systolic!: number; + + @IsInt() + @Min(40, { message: "Diastolic must be at least 40 mmHg" }) + @Max(160, { message: "Diastolic must not exceed 160 mmHg" }) + diastolic!: number; + + @IsOptional() + @IsDateString() + recordedAt?: string; +} diff --git a/src/care-priority/care-priority.controller.ts b/src/care-priority/care-priority.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..0fcaba89853cdda755538b5b1258199af960a4ad --- /dev/null +++ b/src/care-priority/care-priority.controller.ts @@ -0,0 +1,71 @@ +import { + Controller, + Get, + UseGuards, + Request, + HttpCode, + HttpStatus, +} from "@nestjs/common"; +import { CarePriorityService } from "./care-priority.service"; +import { JwtAuthGuard } from "../auth/guards/jwt-auth.guard"; + +/** + * Care Priority Controller + * + * ENDPOINT: + * - GET /care-priority - Get current care priority (authenticated, read-only) + * + * CLINICAL SAFETY: + * - Read-only endpoint (no POST/PUT/DELETE) + * - Returns priority level and safe next step message + * - Non-diagnostic language only + * - No explanation of medical reasoning + * - Template-based messaging + * + * RESPONSE FORMAT: + * { + * priority: 'ROUTINE' | 'INCREASED_MONITORING' | 'URGENT_REVIEW' | 'EMERGENCY', + * message: 'Safe next step message', + * reasons: ['Factor 1', 'Factor 2'], + * timestamp: '2024-01-01T00:00:00.000Z' + * } + */ + +@Controller("care-priority") +@UseGuards(JwtAuthGuard) +export class CarePriorityController { + constructor(private readonly carePriorityService: CarePriorityService) {} + + /** + * Get current care priority for authenticated user + * + * CONSTRAINTS: + * - Read-only operation + * - Calculates priority based on latest data + * - Returns predefined safe message + * - No diagnostic information + * + * @param req - Request with authenticated user + * @returns Care priority result with safe message + */ + @Get() + @HttpCode(HttpStatus.OK) + async getCarePriority(@Request() req: any) { + const userId = req.user.id; + + // Calculate care priority + const result = await this.carePriorityService.calculateCarePriority(userId); + + // Get safe next step message + const message = this.carePriorityService.getSafeNextStepMessage( + result.priority + ); + + return { + priority: result.priority, + message, + reasons: result.reasons, + timestamp: result.timestamp, + }; + } +} diff --git a/src/care-priority/care-priority.module.ts b/src/care-priority/care-priority.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..2e3528c05a929b79c06a7a7a7a2649643ef9998b --- /dev/null +++ b/src/care-priority/care-priority.module.ts @@ -0,0 +1,21 @@ +import { Module, forwardRef } from "@nestjs/common"; +import { CarePriorityService } from "./care-priority.service"; +import { CarePriorityController } from "./care-priority.controller"; +import { BloodPressureModule } from "../blood-pressure/blood-pressure.module"; +import { SymptomsModule } from "../symptoms/symptoms.module"; +import { UserProfileModule } from "../user-profile/user-profile.module"; +import { NotificationsModule } from "../notifications/notifications.module"; +import { HealthAssessmentService } from "./health-assessment.service"; + +@Module({ + imports: [ + forwardRef(() => BloodPressureModule), + forwardRef(() => SymptomsModule), + UserProfileModule, + NotificationsModule, + ], + controllers: [CarePriorityController], + providers: [CarePriorityService, HealthAssessmentService], + exports: [CarePriorityService, HealthAssessmentService], +}) +export class CarePriorityModule {} diff --git a/src/care-priority/care-priority.service.ts b/src/care-priority/care-priority.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..468eab90b285eebb4daf1c4ec1cc859e49d087dc --- /dev/null +++ b/src/care-priority/care-priority.service.ts @@ -0,0 +1,298 @@ +import { Injectable, Logger } from "@nestjs/common"; +import { BloodPressureService } from "../blood-pressure/blood-pressure.service"; +import { SymptomsService } from "../symptoms/symptoms.service"; +import { UserProfileService } from "../user-profile/user-profile.service"; +import { CarePriority, CarePriorityResult } from "./types/care-priority.types"; +import { KnownCondition, SymptomType } from "@prisma/client"; + +/** + * Care Priority Engine Service + * + * āš ļø MOST CRITICAL MODULE - CLINICAL SAFETY āš ļø + * + * PRINCIPLES: + * - Deterministic, rule-based logic (NO AI/ML) + * - NO diagnosis + * - NO medical advice + * - NO risk scoring or probability calculations + * - Default to HIGHER priority when uncertain + * - Based on clinical guidelines for hypertensive disorders in pregnancy + * + * RULES SOURCE: + * - ACOG (American College of Obstetricians and Gynecologists) guidelines + * - Preeclampsia Foundation recommendations + * - NHS (UK) hypertension in pregnancy guidelines + * + * PURPOSE: + * - Provide care escalation recommendations + * - Guide users to seek appropriate level of care + * - NOT to replace clinical judgment + */ + +@Injectable() +export class CarePriorityService { + private readonly logger = new Logger(CarePriorityService.name); + + constructor( + private readonly bloodPressureService: BloodPressureService, + private readonly symptomsService: SymptomsService, + private readonly userProfileService: UserProfileService + ) {} + + /** + * Calculate care priority for a user + * + * ALGORITHM: + * 1. Check for EMERGENCY conditions (immediate medical attention) + * 2. Check for URGENT_REVIEW conditions (contact provider within 24h) + * 3. Check for INCREASED_MONITORING conditions (more frequent monitoring) + * 4. Default to ROUTINE if no concerning factors + * + * CONSERVATIVE APPROACH: + * - If multiple factors present, use highest priority + * - If uncertain, escalate to higher priority + * - Better to over-escalate than under-escalate + */ + async calculateCarePriority(userId: string): Promise { + const reasons: string[] = []; + let priority: CarePriority = CarePriority.ROUTINE; + + try { + // Get user data + const profile = await this.userProfileService.findByUserId(userId); + const latestBP = await this.bloodPressureService.getLatestReading(userId); + const recentBPs = await this.bloodPressureService.getRecentReadings( + userId, + 48 + ); + const recentSymptoms = await this.symptomsService.getRecentSymptoms( + userId, + 72 + ); + + // ======================================== + // EMERGENCY CHECKS + // ======================================== + + // EMERGENCY: Severe hypertension (BP ≄160/110) + if (latestBP && (latestBP.systolic >= 160 || latestBP.diastolic >= 110)) { + priority = CarePriority.EMERGENCY; + reasons.push("Blood pressure reading indicates severe hypertension"); + this.logger.warn( + `EMERGENCY priority for user ${userId}: BP ${latestBP.systolic}/${latestBP.diastolic}` + ); + } + + // EMERGENCY: Dangerous symptom combinations + const symptomTypes = new Set( + recentSymptoms.map((s: any) => s.symptomType) + ); + + // Severe preeclampsia warning signs + if ( + symptomTypes.has(SymptomType.HEADACHE) && + symptomTypes.has(SymptomType.BLURRED_VISION) + ) { + priority = CarePriority.EMERGENCY; + reasons.push("Combination of severe headache and vision changes"); + this.logger.warn( + `EMERGENCY priority for user ${userId}: Headache + Vision changes` + ); + } + + if ( + symptomTypes.has(SymptomType.UPPER_ABDOMINAL_PAIN) && + symptomTypes.has(SymptomType.NAUSEA_VOMITING) + ) { + priority = CarePriority.EMERGENCY; + reasons.push("Upper abdominal pain with nausea/vomiting"); + this.logger.warn( + `EMERGENCY priority for user ${userId}: Abdominal pain + Nausea` + ); + } + + if (symptomTypes.has(SymptomType.SHORTNESS_OF_BREATH)) { + priority = CarePriority.EMERGENCY; + reasons.push("Difficulty breathing reported"); + this.logger.warn( + `EMERGENCY priority for user ${userId}: Shortness of breath` + ); + } + + // If already EMERGENCY, return immediately + if (priority === CarePriority.EMERGENCY) { + return { + priority, + reasons, + timestamp: new Date(), + }; + } + + // ======================================== + // URGENT_REVIEW CHECKS + // ======================================== + + // URGENT: Confirmed hypertension (BP ≄140/90 on two occasions) + if (recentBPs.length >= 2) { + const elevatedReadings = recentBPs.filter( + (bp: any) => bp.systolic >= 140 || bp.diastolic >= 90 + ); + + if (elevatedReadings.length >= 2) { + priority = CarePriority.URGENT_REVIEW; + reasons.push("Multiple elevated blood pressure readings"); + } + } + + // URGENT: High-risk conditions + elevated BP + const highRiskConditions = [ + KnownCondition.CHRONIC_HYPERTENSION, + KnownCondition.PREECLAMPSIA_HISTORY, + KnownCondition.KIDNEY_DISEASE, + ]; + + const hasHighRiskCondition = profile.knownConditions.some( + (condition: any) => highRiskConditions.includes(condition) + ); + + if ( + hasHighRiskCondition && + latestBP && + (latestBP.systolic >= 130 || latestBP.diastolic >= 85) + ) { + priority = CarePriority.URGENT_REVIEW; + reasons.push("High-risk condition with elevated blood pressure"); + } + + // URGENT: Any severe symptoms individually + if ( + symptomTypes.has(SymptomType.HEADACHE) || + symptomTypes.has(SymptomType.BLURRED_VISION) || + symptomTypes.has(SymptomType.UPPER_ABDOMINAL_PAIN) + ) { + if (priority !== CarePriority.URGENT_REVIEW) { + priority = CarePriority.URGENT_REVIEW; + } + reasons.push("Warning symptoms present"); + } + + // URGENT: Reduced urine output + if (symptomTypes.has(SymptomType.REDUCED_URINE)) { + priority = CarePriority.URGENT_REVIEW; + reasons.push("Reduced urine output reported"); + } + + // If URGENT_REVIEW, return + if (priority === CarePriority.URGENT_REVIEW) { + return { + priority, + reasons, + timestamp: new Date(), + }; + } + + // ======================================== + // INCREASED_MONITORING CHECKS + // ======================================== + + // INCREASED: Borderline BP (130-159 / 85-109) + if ( + latestBP && + (latestBP.systolic >= 130 || latestBP.diastolic >= 85) + ) { + priority = CarePriority.INCREASED_MONITORING; + reasons.push("Blood pressure reading is above normal range"); + } + + // INCREASED: High-risk conditions present + if (hasHighRiskCondition) { + priority = CarePriority.INCREASED_MONITORING; + reasons.push("High-risk pregnancy condition present"); + } + + // INCREASED: Advanced maternal age (35+) + if (profile.ageRange === "AGE_35_PLUS") { + if (priority !== CarePriority.INCREASED_MONITORING) { + priority = CarePriority.INCREASED_MONITORING; + } + reasons.push("Advanced maternal age"); + } + + // INCREASED: Multiple pregnancy + if (profile.knownConditions.includes(KnownCondition.MULTIPLE_PREGNANCY)) { + priority = CarePriority.INCREASED_MONITORING; + reasons.push("Multiple pregnancy"); + } + + // INCREASED: Any symptoms present (even mild) + if (recentSymptoms.length > 0) { + if (priority !== CarePriority.INCREASED_MONITORING) { + priority = CarePriority.INCREASED_MONITORING; + } + reasons.push("Symptoms reported"); + } + + // If INCREASED_MONITORING, return + if (priority === CarePriority.INCREASED_MONITORING) { + return { + priority, + reasons, + timestamp: new Date(), + }; + } + + // ======================================== + // ROUTINE (Default) + // ======================================== + + reasons.push("No concerning factors identified"); + + return { + priority: CarePriority.ROUTINE, + reasons, + timestamp: new Date(), + }; + } catch (error) { + // SAFETY: If calculation fails, default to INCREASED_MONITORING + this.logger.error( + `Error calculating care priority for user ${userId}:`, + error + ); + + return { + priority: CarePriority.INCREASED_MONITORING, + reasons: [ + "Unable to complete assessment - please contact your healthcare provider", + ], + timestamp: new Date(), + }; + } + } + + /** + * Get safe next step message based on priority + * + * CONSTRAINTS: + * - Predefined templates only + * - No dynamic medical text + * - No diagnostic language + * - No fear-based messaging + */ + getSafeNextStepMessage(priority: CarePriority): string { + const messages = { + [CarePriority.EMERGENCY]: + "Seek immediate medical attention. Call emergency services or go to the nearest emergency room.", + + [CarePriority.URGENT_REVIEW]: + "Contact your healthcare provider within the next 24 hours to discuss your readings.", + + [CarePriority.INCREASED_MONITORING]: + "Continue monitoring your blood pressure regularly and discuss with your healthcare provider at your next appointment.", + + [CarePriority.ROUTINE]: + "Continue routine prenatal care and monitoring as recommended by your healthcare provider.", + }; + + return messages[priority]; + } +} diff --git a/src/care-priority/health-assessment.service.ts b/src/care-priority/health-assessment.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..7740a6769a20fc6b0f43c0bdfd6279d12ba33f9d --- /dev/null +++ b/src/care-priority/health-assessment.service.ts @@ -0,0 +1,104 @@ +import { Injectable, Logger } from "@nestjs/common"; +import { CarePriorityService } from "./care-priority.service"; +import { NotificationsService } from "../notifications/notifications.service"; +import { BloodPressureService } from "../blood-pressure/blood-pressure.service"; +import { SymptomsService } from "../symptoms/symptoms.service"; +import { CarePriority } from "./types/care-priority.types"; +import { SymptomType } from "@prisma/client"; + +@Injectable() +export class HealthAssessmentService { + private readonly logger = new Logger(HealthAssessmentService.name); + + constructor( + private readonly carePriorityService: CarePriorityService, + private readonly notificationsService: NotificationsService, + private readonly bloodPressureService: BloodPressureService, + private readonly symptomsService: SymptomsService + ) {} + + /** + * Assess user health after a new BP reading or symptom is recorded + * and trigger appropriate notifications. + */ + async assessAndNotify(userId: string): Promise { + try { + this.logger.log(`Starting health assessment for user: ${userId}`); + + // 1. Calculate current care priority + const assessment = await this.carePriorityService.calculateCarePriority( + userId + ); + const { priority } = assessment; + + // 2. Get latest data for specific alerts + const latestBP = await this.bloodPressureService.getLatestReading(userId); + const recentSymptoms = await this.symptomsService.getRecentSymptoms( + userId, + 24 + ); + const symptomTypes = new Set( + recentSymptoms.map((s: any) => s.symptomType) + ); + + // 3. Trigger specific BP alerts if needed + if (latestBP) { + if (latestBP.systolic >= 160 || latestBP.diastolic >= 110) { + await this.notificationsService.sendSevereBPAlert( + userId, + latestBP.systolic, + latestBP.diastolic + ); + } else if (latestBP.systolic >= 140 || latestBP.diastolic >= 90) { + await this.notificationsService.sendElevatedBPNotification( + userId, + latestBP.systolic, + latestBP.diastolic + ); + } + } + + // 4. Trigger symptom alerts if dangerous symptoms are present + const dangerousSymptoms = [ + SymptomType.HEADACHE, + SymptomType.BLURRED_VISION, + SymptomType.UPPER_ABDOMINAL_PAIN, + SymptomType.SHORTNESS_OF_BREATH, + ]; + + const hasDangerousSymptom = Array.from(symptomTypes).some((type) => + dangerousSymptoms.includes(type) + ); + + if (hasDangerousSymptom) { + const activeDangerous = Array.from(symptomTypes).filter((type) => + dangerousSymptoms.includes(type) + ); + await this.notificationsService.sendDangerousSymptomAlert( + userId, + activeDangerous.map((s) => s.toString()) + ); + } else if (symptomTypes.size > 0) { + await this.notificationsService.sendWarningSymptomNotification( + userId, + Array.from(symptomTypes)[0].toString() + ); + } + + // 5. Trigger care priority notification if priority is not ROUTINE + if (priority !== CarePriority.ROUTINE) { + await this.notificationsService.sendCarePriorityNotification( + userId, + priority + ); + } + + this.logger.log(`Health assessment completed for user: ${userId}`); + } catch (error) { + this.logger.error( + `Error during health assessment for user ${userId}:`, + error + ); + } + } +} diff --git a/src/care-priority/types/care-priority.types.ts b/src/care-priority/types/care-priority.types.ts new file mode 100644 index 0000000000000000000000000000000000000000..6bfb397693d1197931e71a16933555745e62d41c --- /dev/null +++ b/src/care-priority/types/care-priority.types.ts @@ -0,0 +1,32 @@ +/** + * Care Priority Levels + * + * CLINICAL SAFETY PRINCIPLES: + * - These are NOT diagnoses + * - These are NOT risk scores + * - These are care escalation recommendations + * - When uncertain, escalate to higher priority + * + * LEVELS: + * - ROUTINE: Normal monitoring, next scheduled appointment + * - INCREASED_MONITORING: More frequent self-monitoring, contact provider soon + * - URGENT_REVIEW: Contact healthcare provider within 24 hours + * - EMERGENCY: Seek immediate medical attention + */ +export enum CarePriority { + ROUTINE = "ROUTINE", + INCREASED_MONITORING = "INCREASED_MONITORING", + URGENT_REVIEW = "URGENT_REVIEW", + EMERGENCY = "EMERGENCY", +} + +/** + * Care Priority Result + * + * Returned by the care priority engine + */ +export interface CarePriorityResult { + priority: CarePriority; + reasons: string[]; // List of factors that contributed to this priority + timestamp: Date; +} diff --git a/src/clinic-finder/clinic-finder.controller.ts b/src/clinic-finder/clinic-finder.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..04a9cdeaea62b7a17dd515e30ecc2f86473f6806 --- /dev/null +++ b/src/clinic-finder/clinic-finder.controller.ts @@ -0,0 +1,33 @@ +import { Controller, Get, HttpCode, HttpStatus, Query, UseGuards } from "@nestjs/common"; +import { ClinicFinderService } from "./clinic-finder.service"; +import { JwtAuthGuard } from "../auth/guards/jwt-auth.guard"; + +@Controller("clinic-finder") +@UseGuards(JwtAuthGuard) +export class ClinicFinderController { + constructor(private readonly clinicFinderService: ClinicFinderService) {} + + @Get() + @HttpCode(HttpStatus.OK) + findAll( + @Query("city") city?: string, + @Query("lat") lat?: string, + @Query("lng") lng?: string, + @Query("radius") radius?: string + ) { + if (lat && lng) { + return this.clinicFinderService.findNearby( + parseFloat(lat), + parseFloat(lng), + radius ? parseInt(radius) : 5000 + ); + } + + if (city) { + return this.clinicFinderService.findByCity(city); + } + + return this.clinicFinderService.findAll(); + } +} + diff --git a/src/clinic-finder/clinic-finder.module.ts b/src/clinic-finder/clinic-finder.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..877d7a54f42fb71197692ed865b83c8a63de570f --- /dev/null +++ b/src/clinic-finder/clinic-finder.module.ts @@ -0,0 +1,11 @@ +import { Module } from "@nestjs/common"; +import { ClinicFinderController } from "./clinic-finder.controller"; +import { ClinicFinderService } from "./clinic-finder.service"; + +@Module({ + controllers: [ClinicFinderController], + providers: [ClinicFinderService], + exports: [ClinicFinderService], +}) +export class ClinicFinderModule {} + diff --git a/src/clinic-finder/clinic-finder.service.ts b/src/clinic-finder/clinic-finder.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..86b8d011ccb43bb911c598f59141ebeda4de523a --- /dev/null +++ b/src/clinic-finder/clinic-finder.service.ts @@ -0,0 +1,73 @@ +import { Injectable, Logger } from "@nestjs/common"; +import axios from "axios"; +import { CLINIC_LOCATIONS, ClinicLocation } from "./data/clinics.data"; + +@Injectable() +export class ClinicFinderService { + private readonly logger = new Logger(ClinicFinderService.name); + private readonly overpassUrl = "https://overpass-api.de/api/interpreter"; + + async findNearby( + lat: number, + lng: number, + radius: number = 5000 + ): Promise { + try { + this.logger.log(`Searching for hospitals near ${lat}, ${lng} within ${radius}m using Overpass API`); + + const query = ` + [out:json][timeout:25]; + ( + node["amenity"="hospital"](around:${radius},${lat},${lng}); + way["amenity"="hospital"](around:${radius},${lat},${lng}); + node["amenity"="clinic"](around:${radius},${lat},${lng}); + way["amenity"="clinic"](around:${radius},${lat},${lng}); + ); + out center; + `; + + const response = await axios.post(this.overpassUrl, `data=${encodeURIComponent(query)}`); + + if (response.data && response.data.elements) { + return response.data.elements.map((element: any) => ({ + id: element.id.toString(), + name: element.tags.name || "Unnamed Hospital", + latitude: element.lat || element.center?.lat, + longitude: element.lon || element.center?.lon, + address: element.tags["addr:street"] + ? `${element.tags["addr:housenumber"] || ""} ${element.tags["addr:street"]}`.trim() + : "Address not available", + city: element.tags["addr:city"] || "Detected", + country: "Nigeria", + phone: element.tags.phone || element.tags["contact:phone"] || "Contact via Maps", + isEmergency: element.tags.amenity === "hospital", + })); + } + + return []; + } catch (error: any) { + this.logger.error(`Failed to fetch nearby hospitals from Overpass: ${error.message}`); + return this.findAll(); // Fallback to seed data on error + } + } + + findAll(): ClinicLocation[] { + return CLINIC_LOCATIONS; + } + + findByCity(city: string): ClinicLocation[] { + const normalized = city.trim().toLowerCase(); + + // If city is "Ikeja", include "Lagos" clinics as well, as Ikeja is part of Lagos + const isIkeja = normalized === "ikeja"; + + return CLINIC_LOCATIONS.filter((clinic) => { + const clinicCity = clinic.city.toLowerCase(); + if (isIkeja) { + return clinicCity === "ikeja" || clinicCity === "lagos"; + } + return clinicCity === normalized; + }); + } +} + diff --git a/src/clinic-finder/data/clinics.data.ts b/src/clinic-finder/data/clinics.data.ts new file mode 100644 index 0000000000000000000000000000000000000000..5cf60f24fe6de67fd110d1416750de95cb5d0edf --- /dev/null +++ b/src/clinic-finder/data/clinics.data.ts @@ -0,0 +1,125 @@ +export interface ClinicLocation { + id: string; + name: string; + latitude: number; + longitude: number; + address: string; + city: string; + country: string; + phone?: string; + isEmergency?: boolean; +} + +export const CLINIC_LOCATIONS: ClinicLocation[] = [ + { + id: "lagos-luth", + name: "Lagos University Teaching Hospital", + latitude: 6.5069, + longitude: 3.3673, + address: "Ishaga Road, Idi-Araba, Surulere", + city: "Lagos", + country: "Nigeria", + phone: "+234-1-877-7000", + isEmergency: true, + }, + { + id: "lagos-island-maternity", + name: "Island Maternity Hospital", + latitude: 6.4513, + longitude: 3.3940, + address: "Broad Street, Lagos Island", + city: "Lagos", + country: "Nigeria", + phone: "+234-1-264-3018", + isEmergency: true, + }, + { + id: "abuja-national-hospital", + name: "National Hospital Abuja", + latitude: 9.0360, + longitude: 7.4899, + address: "Plot 132 Central District (Phase II), Garki", + city: "Abuja", + country: "Nigeria", + phone: "+234-9-234-0940", + isEmergency: true, + }, + { + id: "abuja-nyanya-general", + name: "Nyanya General Hospital", + latitude: 8.9953, + longitude: 7.6207, + address: "Nyanya", + city: "Abuja", + country: "Nigeria", + phone: "+234-9-123-4567", + isEmergency: false, + }, + { + id: "ikeja-lasuth", + name: "Lagos State University Teaching Hospital (LASUTH)", + latitude: 6.5962, + longitude: 3.3514, + address: "1-5 Oba Akinjobi Way, Ikeja", + city: "Ikeja", + country: "Nigeria", + phone: "+234-1-493-4500", + isEmergency: true, + }, + { + id: "ikeja-medical-centre", + name: "Ikeja Medical Centre", + latitude: 6.6015, + longitude: 3.3421, + address: "11-15 Olufemi Road, Ikeja", + city: "Ikeja", + country: "Nigeria", + phone: "+234-1-497-2345", + isEmergency: true, + }, + { + id: "reddington-hospital-ikeja", + name: "Reddington Hospital Ikeja", + latitude: 6.5921, + longitude: 3.3587, + address: "12 Isaac John St, GRA, Ikeja", + city: "Ikeja", + country: "Nigeria", + phone: "+234-1-271-5341", + isEmergency: true, + }, + { + id: "eunice-clinic-ikeja", + name: "Eunice Clinic & Hospital", + latitude: 6.6054, + longitude: 3.3489, + address: "24 Allen Ave, Ikeja", + city: "Ikeja", + country: "Nigeria", + phone: "+234-803-123-4567", + isEmergency: false, + }, + { + id: "nicholas-hospital-ikeja", + name: "St. Nicholas Hospital Ikeja", + latitude: 6.5901, + longitude: 3.3602, + address: "7b Maryland Est, Ikeja", + city: "Ikeja", + country: "Nigeria", + phone: "+234-1-280-5000", + isEmergency: true, + }, + { + id: "blue-cross-ikeja", + name: "Blue Cross Hospital", + latitude: 6.6123, + longitude: 3.3345, + address: "14 Ogba Road, Ikeja", + city: "Ikeja", + country: "Nigeria", + phone: "+234-1-492-3456", + isEmergency: false, + }, +]; + diff --git a/src/database/database.module.ts b/src/database/database.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..9ba54d8295c223b443ddf1d689ab6d10d23f596a --- /dev/null +++ b/src/database/database.module.ts @@ -0,0 +1,33 @@ +import { Module, Global } from "@nestjs/common"; +import { PrismaService } from "./prisma.service"; + +/** + * Database Module (Prisma) + * + * ORM CHOICE: Prisma + * + * JUSTIFICATION: + * - Type-safe database client with excellent TypeScript support + * - Intuitive schema definition language + * - Automatic migration generation + * - Built-in connection pooling + * - Great developer experience with Prisma Studio + * - Strong PostgreSQL support + * + * CLINICAL SAFETY CONSIDERATIONS: + * - All entities will enforce strict validation at schema level + * - Type safety prevents invalid data operations + * - Audit logging capabilities via middleware + * - Transaction support for data integrity + * - No raw SQL for sensitive operations (use Prisma queries) + * + * This module is marked as @Global so PrismaService is available + * throughout the application without repeated imports + */ + +@Global() +@Module({ + providers: [PrismaService], + exports: [PrismaService], +}) +export class DatabaseModule {} diff --git a/src/database/prisma.service.ts b/src/database/prisma.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..e5de158ec6a477facc68a9125578c85353922d7f --- /dev/null +++ b/src/database/prisma.service.ts @@ -0,0 +1,102 @@ +import { + Injectable, + OnModuleInit, + OnModuleDestroy, + Logger, +} from "@nestjs/common"; +import { PrismaClient } from "@prisma/client"; +import { PrismaPg } from "@prisma/adapter-pg"; +import { Pool } from "pg"; + +/** + * Prisma Service + * + * Provides database access throughout the application + * Handles connection lifecycle and health checks + * + * CLINICAL SAFETY CONSIDERATIONS: + * - All queries are type-safe + * - Automatic connection pooling + * - Transaction support for data integrity + * - Query logging in development + */ + +@Injectable() +export class PrismaService + extends PrismaClient + implements OnModuleInit, OnModuleDestroy +{ + private readonly logger = new Logger(PrismaService.name); + + constructor() { + const pool = new Pool({ + connectionString: process.env.DATABASE_URL, + max: 10, // Maintain up to 10 connections + idleTimeoutMillis: 30000, + connectionTimeoutMillis: 10000, + ssl: { + rejectUnauthorized: false, // Required for Neon in some environments + }, + }); + + // Log pool errors + pool.on('error', (err) => { + this.logger.error('Unexpected error on idle client', err); + }); + + super({ + adapter: new PrismaPg(pool), + log: + process.env.NODE_ENV === "development" + ? ["query", "info", "warn", "error"] + : ["error"], + }); + } + + /** + * Connect to database on module initialization + */ + async onModuleInit() { + try { + await this.$connect(); + this.logger.log("āœ… Database connection successful"); + + // Test the connection + await this.$queryRaw`SELECT 1`; + this.logger.log("šŸ“Š Database health check passed"); + } catch (error) { + this.logger.error("āŒ Database connection failed", error); + throw error; + } + } + + /** + * Disconnect from database on module destruction + */ + async onModuleDestroy() { + await this.$disconnect(); + this.logger.log("šŸ”Œ Database disconnected"); + } + + /** + * Get database health status + */ + async isHealthy(): Promise { + try { + await this.$queryRaw`SELECT 1`; + return true; + } catch { + return false; + } + } + + /** + * Get database info (safe, no credentials) + */ + getDatabaseInfo() { + return { + provider: "postgresql", + isConnected: true, // If we can call this, we're connected + }; + } +} diff --git a/src/education/data/data.txt b/src/education/data/data.txt new file mode 100644 index 0000000000000000000000000000000000000000..6ae6b9a728df4aed16bc0f18c5f386f75fd60583 --- /dev/null +++ b/src/education/data/data.txt @@ -0,0 +1,123 @@ +THIS IS ACCORDING TO WHO + +Pre-eclampsia is a high blood pressure disorder that typically develops after 20 weeks into pregnancy. It can present serious risks to both mother and baby. Early detection and management are crucial to prevent progression to eclampsia, which involves seizures. Both conditions can be life-threatening. + +Diagnosis + +Pre-eclampsia is diagnosed based on the onset of hypertension (blood pressure ≄140/90 mm Hg) proteinuria (protein in the urine) (≄0.3 g/24 hours) after 20 weeks of gestation. Severe pre-eclampsia may include symptoms such as severe headaches, visual disturbances and upper abdominal pain. + +Risk factors + +Several factors can increase the risk of developing pre-eclampsia during pregnancy. Understanding these risk factors is essential for proactive monitoring and management. Having a risk factor doesn't always mean pre-eclampsia will occur, but closer medical supervision beyond routine screening is recommended. + +Several factors can increase the risk of developing pre-eclampsia, including: + +first-time pregnancies +multiple pregnancies (twins, triplets, etc.) +obesity +pre-existing conditions such as hypertension, diabetes, or kidney disease +family history of pre-eclampsia. +Symptoms + +Symptoms of pre-eclampsia can vary significantly among individuals. While some may experience a range of noticeable symptoms, others may remain asymptomatic. It is important to be aware of potential indicators and seek medical attention if any concerns arise during pregnancy or after childbirth. + +Common symptoms of pre-eclampsia include: + +persistent high blood pressure +proteinuria +severe headaches +visual disturbances (e.g., blurred vision, seeing spots) +upper abdominal pain +nausea and vomiting (after the first trimester) +swelling in the hands and face. +Complications + +Pre-eclampsia, if left untreated, can lead to serious complications for both mother and baby. These complications can range from short-term issues to long-term health problems. Prompt medical intervention is crucial to minimize these risks. + +Complications can be severe and include: + +eclampsia (seizures) +HELLP syndrome (hemolysis, elevated liver enzymes, low platelet count) +organ damage (kidneys, liver, brain) +placental abruption +preterm birth +fetal growth restriction +maternal and fetal death. +Treatment and management + +The primary treatment for pre-eclampsia is the administration of magnesium sulfate to prevent seizures. + +The treatment and management of pre-eclampsia depend on the severity of the condition and the gestational age of the pregnancy. The goal is to prevent complications. + +Other management strategies include: + +antihypertensive medications to control blood pressure +corticosteroids to accelerate fetal lung maturity if preterm delivery is anticipated +close monitoring of maternal and fetal health. +Prevention + +While there's no guaranteed way to prevent pre-eclampsia, certain strategies can help lower the risk. Early and consistent prenatal care is essential for monitoring and managing potential risk factors. + +Preventive measures focus on regular prenatal care to monitor for early signs of pre-eclampsia. Recommendations include: + +regular blood pressure checks +urine tests for protein +monitoring for symptoms such as headaches and visual disturbances +lifestyle considerations, such as maintaining a healthy weight and activity (when permitted) +managing pre-existing conditions, especially pre-existing high blood pressure. +Additional prevention measures include: + +low dose of aspirin by 20 weeks or when antenatal care begins +calcium supplementation during pregnancy in settings with low dietary intake +treatment of pre-existing high blood pressure with antihypertensive medications. +WHO response + +The World Health Organization (WHO) has developed guidelines to improve health during pregnancy. This includes prevention and treatment of pre-eclampsia and eclampsia and continuously reviewing evidence to see if revisions in the recommendations are needed so that improvements in care can be effected. These guidelines aim to reduce maternal and perinatal morbidity and mortality by promoting evidence-based clinical practices. Key WHO recommendations include: + +calcium supplementation during pregnancy in areas with low dietary calcium intake +low-dose aspirin during pregnancy for women at high risk of pre-eclampsia +use of magnesium sulfate for the prevention of eclampsia +training healthcare providers in the early detection and management of pre-eclampsia +strengthening health systems to ensure timely and effective care for pregnant women. +By implementing these guidelines, WHO aims to address the profound inequities in maternal and perinatal health globally and achieve the health targets of the Sustainable Development Goals (SDGs). + + +END OF WHO + + + + +The causes of preeclampsia and eclampsia are not known. These disorders previously were believed to be caused by a toxin, called ā€œtoxemia,ā€ in the blood, but health care providers now know that is not true. Nevertheless, preeclampsia is sometimes still referred to as ā€œtoxemia.ā€ + +To learn more about preeclampsia and eclampsia, scientists are investigating many factors that could contribute to the development and progression of these diseases, including: + +Placental abnormalities, such as insufficient blood flow +Genetic factors +Environmental exposures +Nutritional factors +Maternal immunology and autoimmune disorders +Cardiovascular and inflammatory changes +Hormonal imbalances + +Risks During Pregnancy +Preeclampsia during pregnancy is mild in the majority of cases.1 However, a woman can progress from mild to severe preeclampsia or to full eclampsia very quickly―even in a matter of days. Both preeclampsia and eclampsia can cause serious health problems for the mother and infant. + +Women with preeclampsia are at increased risk for damage to the kidneys, liver, brain, and other organ and blood systems. Preeclampsia may also affect the placenta. The condition could lead to a separation of the placenta from the uterus (referred to as placental abruption), preterm birth, and pregnancy loss or stillbirth. In some cases, preeclampsia can lead to organ failure or stroke. + +In severe cases, preeclampsia can develop into eclampsia, which includes seizures. Seizures in eclampsia may cause a woman to lose consciousness and twitch uncontrollably.2 If the fetus is not delivered, these conditions can cause the death of the mother and/or the fetus. + +Although most pregnant women in developed countries survive preeclampsia, it is still a major cause of illness and death globally.3 According to the World Health Organization, preeclampsia and eclampsia cause 14% of maternal deaths each year, or about 50,000 to 75,000 women worldwide.4 + + +Risks After Pregnancy +In "uncomplicated preeclampsia," the mother's high blood pressure and other symptoms usually go back to normal within 6 weeks of the infant's birth. However, studies have shown that women who had preeclampsia are four times more likely to later develop hypertension (high blood pressure) and are twice as likely to later develop ischemic heart disease (reduced blood supply to the heart muscle, which can cause heart attacks), a blood clot in a vein, and stroke as are women who did not have preeclampsia.5 + +Less commonly, mothers who had preeclampsia can experience permanent damage to their organs, such as their kidneys and liver. They can also experience fluid in the lungs. In the days following birth, women with preeclampsia remain at increased risk for developing eclampsia and seizures.3,6 + +In some women, preeclampsia develops between 48 hours and 6 weeks after they deliver their baby—a condition called postpartum preeclampsia.7,8 Postpartum preeclampsia can occur in women who had preeclampsia during pregnancy and among those who did not. One study found that slightly more than one-half of women who had postpartum preeclampsia did not have preeclampsia during pregnancy.9 If a woman has seizures within 72 hours of delivery, she may have postpartum eclampsia. It is important to recognize and treat postpartum preeclampsia and eclampsia because the risk of complications may be higher than if the conditions had occurred during pregnancy.10 Postpartum preeclampsia and eclampsia can progress very quickly if not treated and may lead to stroke or death. Visit the Preeclampsia Foundation website for mor + + +https://youtu.be/dqMXyDLiUqg + + +Video: Overview of Preeclampsia and Eclampsia-MSD Manual Professional Edition https://www.msdmanuals.com/professional/multimedia/video/overview-of-preeclampsia-and-eclampsia?utm_source=chatgpt.com \ No newline at end of file diff --git a/src/education/data/education.content.ts b/src/education/data/education.content.ts new file mode 100644 index 0000000000000000000000000000000000000000..1565bd70c5f3034acbb79032cd2ef73a3b836e03 --- /dev/null +++ b/src/education/data/education.content.ts @@ -0,0 +1,177 @@ +export interface EducationArticle { + id: string; + title: string; + category: "HYPERTENSION" | "NUTRITION" | "WARNING_SIGNS" | "POSTPARTUM"; + summary: string; + content: string; // Plain text or safe markdown + readTimeMinutes: number; + source: string; + sourceUrl?: string; + videoUrl?: string; +} + +/** + * Static Education Content + * + * CLINICAL SAFETY: + * - Hardcoded content to ensure clinical accuracy + * - No dynamic generation + * - Curated from reputable sources (ACOG, WHO, Preeclampsia Foundation) + * - Non-alarmist language + */ +export const EDUCATION_CONTENT: EducationArticle[] = [ + { + id: "understanding-bp", + title: "Understanding Blood Pressure in Pregnancy", + category: "HYPERTENSION", + summary: + "Learn what blood pressure numbers mean and why they matter during pregnancy.", + content: `Blood pressure is the force of your blood pushing against the walls of your arteries. It is measured with two numbers: + +1. Systolic (top number): The pressure when your heart beats. +2. Diastolic (bottom number): The pressure when your heart rests between beats. + +In pregnancy, it's important to keep track of these numbers. A normal reading is typically below 120/80 mmHg. If your numbers are higher, your healthcare provider will want to monitor you more closely to ensure both you and your baby stay healthy.`, + readTimeMinutes: 3, + source: "World Health Organization (WHO) patient information on hypertension in pregnancy", + sourceUrl: + "https://www.who.int/health-topics/hypertension#tab=tab_1", + videoUrl: + "https://www.preeclampsia.org/video-library", + }, + { + id: "warning-signs", + title: "Warning Signs to Watch For", + category: "WARNING_SIGNS", + summary: + "Key symptoms that should prompt you to call your healthcare provider.", + content: `Most pregnancies go smoothly, but knowing which symptoms to watch for can help you get care quickly if needed. Contact your provider if you experience: + +- Severe headaches that won't go away with medication +- Changes in vision (blurring, flashing lights, or spots) +- Sudden swelling in your face or hands +- Pain in the upper right side of your belly +- Trouble breathing +- Nausea or vomiting (especially after mid-pregnancy) + +If you are unsure, it is always safer to call your provider and ask.`, + readTimeMinutes: 4, + source: + "Preeclampsia Foundation - 7 Signs and Symptoms Every Pregnant Woman Should Know", + sourceUrl: + "https://www.preeclampsia.org/health-information/signs-and-symptoms", + videoUrl: + "https://www.preeclampsia.org/video-library", + }, + { + id: "nutrition-hypertension", + title: "Nutrition for Healthy Blood Pressure", + category: "NUTRITION", + summary: "Dietary tips to help manage blood pressure naturally.", + content: `Eating a balanced diet is good for you and your baby. To help support healthy blood pressure: + +- Stay hydrated: Drink plenty of water throughout the day. +- Watch sodium intake: Try to limit processed foods which are often high in salt. +- Eat plenty of fruits and vegetables: These provide essential nutrients like potassium. +- Choose whole grains: Brown rice, oats, and whole wheat bread are great options. + +Always talk to your doctor or a nutritionist before making major changes to your diet.`, + readTimeMinutes: 3, + source: + "American College of Obstetricians and Gynecologists (ACOG) – Nutrition During Pregnancy", + sourceUrl: + "https://www.acog.org/womens-health/faqs/nutrition-during-pregnancy", + videoUrl: undefined, + }, + { + id: "postpartum-care", + title: "Taking Care After Birth", + category: "POSTPARTUM", + summary: + "Why monitoring your health remains important after your baby arrives.", + content: `The postpartum period (after birth) is a time of recovery. It is important to continue listening to your body. + +Some conditions, like postpartum preeclampsia, can occur even after the baby is born. Continue to watch for severe headaches, vision changes, or shortness of breath. + +Make sure to attend your postpartum check-ups so your provider can ensure you are healing well.`, + readTimeMinutes: 2, + source: + "American College of Obstetricians and Gynecologists (ACOG) – Postpartum Preeclampsia information", + sourceUrl: + "https://www.acog.org/womens-health/faqs/preeclampsia-and-high-blood-pressure-during-pregnancy", + videoUrl: + "https://www.preeclampsia.org/video-library", + }, + { + id: "preeclampsia-eclampsia-overview", + title: "Preeclampsia and Eclampsia: What You Should Know", + category: "HYPERTENSION", + summary: + "Overview of causes, warning signs, and care for preeclampsia and eclampsia.", + content: `Preeclampsia is a blood pressure condition that usually develops after 20 weeks of pregnancy. It involves high blood pressure and signs that organs such as the kidneys or liver are under strain. If it is not treated, it can progress to eclampsia, which includes seizures. Early recognition and close medical care greatly reduce the chance of serious problems. + +Diagnosis + +- Blood pressure at or above 140/90 mmHg on more than one occasion +- Protein in the urine (proteinuria) +- Sometimes other changes in blood tests or organ function + +Risk factors + +- First pregnancy +- Multiple pregnancy (twins, triplets, etc.) +- History of high blood pressure, diabetes, kidney disease, or autoimmune disease +- Obesity +- Family history of preeclampsia + +Warning symptoms + +- Severe or persistent headache +- Changes in vision (blurred vision, flashing lights, or spots) +- Pain in the upper right side of the abdomen +- Nausea or vomiting after the first trimester +- Sudden swelling of the face, hands, or around the eyes +- Shortness of breath + +Possible complications + +- Seizures (eclampsia) +- HELLP syndrome (problems with the liver and blood clotting) +- Problems with the kidneys, liver, brain, or lungs +- Placental abruption (the placenta pulling away from the uterus) +- Restricted growth of the baby or early birth + +Treatment and monitoring + +- Close monitoring of blood pressure, urine, and blood tests +- Medications to lower blood pressure when needed +- Magnesium sulfate in some cases to help prevent seizures +- Corticosteroids to help the baby's lungs if early delivery is likely +- Timing of birth based on the health of you and your baby + +After pregnancy + +Preeclampsia can sometimes develop after birth (postpartum preeclampsia), usually within the first six weeks. Headache, vision changes, shortness of breath, or severe pain after delivery should be checked urgently. + +Long-term health + +Women who have had preeclampsia have a higher chance of high blood pressure, heart disease, and stroke later in life than women who did not. Regular follow-up with a primary care provider is important. + +Prevention and self-care + +- Attend all antenatal and postpartum visits +- Have blood pressure and urine checked as recommended +- Report warning symptoms promptly +- Follow advice on healthy eating, activity, and weight management when appropriate +- Take low-dose aspirin and calcium supplements if recommended by your care team + +This summary is based on guidance from the World Health Organization and other international expert groups.`, + readTimeMinutes: 8, + source: + "World Health Organization (WHO) and international guidelines on preeclampsia and eclampsia", + sourceUrl: + "https://www.who.int/health-topics/hypertension#tab=tab_1", + videoUrl: + "https://www.msdmanuals.com/professional/multimedia/video/overview-of-preeclampsia-and-eclampsia?utm_source=chatgpt.com", + }, +]; diff --git a/src/education/education.controller.ts b/src/education/education.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..9b420d3c744fa47a37688c8ce51bfc3a88c8cccf --- /dev/null +++ b/src/education/education.controller.ts @@ -0,0 +1,43 @@ +import { + Controller, + Get, + Param, + Query, + UseGuards, + HttpCode, + HttpStatus, +} from "@nestjs/common"; +import { EducationService } from "./education.service"; +import { JwtAuthGuard } from "../auth/guards/jwt-auth.guard"; + +/** + * Education Controller + * + * ENDPOINTS: + * - GET /education - List all articles (optional category filter) + * - GET /education/:id - Get specific article + * + * RESTRICTIONS: + * - Authenticated users only + * - Read-only access + */ +@Controller("education") +@UseGuards(JwtAuthGuard) +export class EducationController { + constructor(private readonly educationService: EducationService) {} + + @Get() + @HttpCode(HttpStatus.OK) + findAll(@Query("category") category?: string) { + if (category) { + return this.educationService.findByCategory(category); + } + return this.educationService.findAll(); + } + + @Get(":id") + @HttpCode(HttpStatus.OK) + findOne(@Param("id") id: string) { + return this.educationService.findOne(id); + } +} diff --git a/src/education/education.module.ts b/src/education/education.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..a48af895e55b8e52b08a12075cc00df8fcb61830 --- /dev/null +++ b/src/education/education.module.ts @@ -0,0 +1,22 @@ +import { Module } from "@nestjs/common"; +import { EducationController } from "./education.controller"; +import { EducationService } from "./education.service"; + +/** + * Education Module + * + * RESPONSIBILITIES: + * CONSTRAINTS: + * - No personalization + * - No interpretation + * - Content delivery only + * + * To be implemented in STEP 10 + */ + +@Module({ + controllers: [EducationController], + providers: [EducationService], + exports: [EducationService], +}) +export class EducationModule {} diff --git a/src/education/education.service.ts b/src/education/education.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..4ba33565645bf1126fef01317e14936b53147aa0 --- /dev/null +++ b/src/education/education.service.ts @@ -0,0 +1,44 @@ +import { Injectable, NotFoundException } from "@nestjs/common"; +import { EDUCATION_CONTENT, EducationArticle } from "./data/education.content"; + +/** + * Education Service + * + * RESPONSIBILITIES: + * - Serve static, curated education content + * - Filter by category + * - Retrieve single articles + * + * CLINICAL SAFETY: + * - Read-only access to curated content + * - No dynamic user-generated content allowed + */ +@Injectable() +export class EducationService { + /** + * Get all education articles + */ + findAll(): EducationArticle[] { + return EDUCATION_CONTENT; + } + + /** + * Get articles by category + */ + findByCategory(category: string): EducationArticle[] { + return EDUCATION_CONTENT.filter((article) => article.category === category); + } + + /** + * Get single article by ID + */ + findOne(id: string): EducationArticle { + const article = EDUCATION_CONTENT.find((a) => a.id === id); + + if (!article) { + throw new NotFoundException("Article not found"); + } + + return article; + } +} diff --git a/src/health.controller.ts b/src/health.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..d636502c853624e80edc6c40bedd0dc0e725220d --- /dev/null +++ b/src/health.controller.ts @@ -0,0 +1,18 @@ +import { Controller, Get } from '@nestjs/common'; +import { ApiTags, ApiOperation } from '@nestjs/swagger'; + +@ApiTags('Health') +@Controller('health') +export class HealthController { + @Get() + @ApiOperation({ summary: 'Check API health and uptime' }) + check() { + return { + status: 'ok', + timestamp: new Date().toISOString(), + uptime: process.uptime(), + service: 'MaternAlert Backend', + version: '1.0.0', + }; + } +} diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000000000000000000000000000000000000..5fc0b76992a282b3656b1c05f5cf1c2d8227754d --- /dev/null +++ b/src/main.ts @@ -0,0 +1,19 @@ +import { NestFactory } from "@nestjs/core"; +import { AppModule } from "./app.module"; +import { setupGlobalMiddleware } from "./setup"; + +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + setupGlobalMiddleware(app); + + const port = process.env.PORT || 3000; + await app.listen(port, '0.0.0.0'); + + console.log(`\nšŸ„ Maternal Health Support Backend`); + console.log(`āš ļø CARE-SUPPORT TOOL - NOT A DIAGNOSTIC SYSTEM`); + console.log(`šŸš€ Server running on: http://localhost:${port}/api/v1`); + console.log(`šŸ“” Network access: http://10.120.165.24:${port}/api/v1\n`); +} + +bootstrap(); diff --git a/src/notifications/dto/register-push-token.dto.ts b/src/notifications/dto/register-push-token.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..840c18936888cfce941177da50fa306f4b1f197e --- /dev/null +++ b/src/notifications/dto/register-push-token.dto.ts @@ -0,0 +1,7 @@ +import { IsNotEmpty, IsString } from "class-validator"; + +export class RegisterPushTokenDto { + @IsNotEmpty() + @IsString() + token!: string; +} diff --git a/src/notifications/email.service.ts b/src/notifications/email.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..298c5b82b38d2d9636faeaa48a452984bb602c61 --- /dev/null +++ b/src/notifications/email.service.ts @@ -0,0 +1,41 @@ +import { Injectable, Logger } from '@nestjs/common'; +import { ConfigService } from '@nestjs/config'; +import * as nodemailer from 'nodemailer'; + +@Injectable() +export class EmailService { + private readonly logger = new Logger(EmailService.name); + private transporter: nodemailer.Transporter; + + constructor(private readonly configService: ConfigService) { + this.transporter = nodemailer.createTransport({ + host: this.configService.get('SMTP_HOST'), + port: this.configService.get('SMTP_PORT'), + secure: false, // true for 465, false for other ports + auth: { + user: this.configService.get('SMTP_USER'), + pass: this.configService.get('SMTP_PASS'), + }, + }); + } + + async sendEmail(to: string, subject: string, text: string, html?: string): Promise { + try { + const from = this.configService.get('SMTP_FROM'); + + const info = await this.transporter.sendMail({ + from, + to, + subject, + text, + html: html || text, + }); + + this.logger.log(`Email sent successfully: ${info.messageId} to ${to}`); + return true; + } catch (error: any) { + this.logger.error(`Failed to send email to ${to}: ${error.message}`, error.stack); + return false; + } + } +} diff --git a/src/notifications/notifications.controller.ts b/src/notifications/notifications.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..960be7810e884916082c81173f5185eb90c4d391 --- /dev/null +++ b/src/notifications/notifications.controller.ts @@ -0,0 +1,25 @@ +import { Controller, Get, Patch, Post, Param, Body, UseGuards, Request } from "@nestjs/common"; +import { NotificationsService } from "./notifications.service"; +import { JwtAuthGuard } from "../auth/guards/jwt-auth.guard"; +import { RegisterPushTokenDto } from "./dto/register-push-token.dto"; + +@Controller("notifications") +@UseGuards(JwtAuthGuard) +export class NotificationsController { + constructor(private readonly notificationsService: NotificationsService) {} + + @Get() + async getUserNotifications(@Request() req: any) { + return this.notificationsService.getNotificationHistory(req.user.id); + } + + @Post("register") + async registerPushToken(@Request() req: any, @Body() dto: RegisterPushTokenDto) { + return this.notificationsService.registerPushToken(req.user.id, dto.token); + } + + @Patch(":id/read") + async markAsRead(@Param("id") id: string, @Request() req: any) { + return this.notificationsService.markAsRead(id, req.user.id); + } +} diff --git a/src/notifications/notifications.module.ts b/src/notifications/notifications.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..5051f067387333c713243fe21f7b09e3e24c2f83 --- /dev/null +++ b/src/notifications/notifications.module.ts @@ -0,0 +1,31 @@ +import { Module } from "@nestjs/common"; +import { NotificationsService } from "./notifications.service"; +import { NotificationsController } from "./notifications.controller"; +import { EmailService } from "./email.service"; + +/** + * Notifications Module + * + * RESPONSIBILITIES: + * - Send care escalation alerts + * - Template-based messaging only + * - No dynamic medical text generation + * + * CLINICAL SAFETY CONSTRAINTS: + * - No fear-based language + * - No predictions + * - Predefined templates only + * - Clear, actionable guidance + * + * DELIVERY: + * - Currently stub implementation (console logging) + * - Ready for integration with email/SMS services + * - Examples: SendGrid, Twilio, AWS SNS + */ + +@Module({ + controllers: [NotificationsController], + providers: [NotificationsService, EmailService], + exports: [NotificationsService, EmailService], +}) +export class NotificationsModule {} diff --git a/src/notifications/notifications.service.ts b/src/notifications/notifications.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..46434ef9a93a0e95028a7a900fba5da2e017ace9 --- /dev/null +++ b/src/notifications/notifications.service.ts @@ -0,0 +1,774 @@ +import { Injectable, Logger } from "@nestjs/common"; +import { ConfigService } from "@nestjs/config"; +import { Cron, CronExpression } from "@nestjs/schedule"; +import { PrismaService } from "../database/prisma.service"; +import { EmailService } from "./email.service"; +import { CarePriority } from "../care-priority/types/care-priority.types"; +import { NotificationType } from "@prisma/client"; +import type { ExpoPushMessage } from "expo-server-sdk"; +import { + CARE_PRIORITY_TEMPLATES, + BP_ALERT_TEMPLATES, + SYMPTOM_ALERT_TEMPLATES, + AUTH_TEMPLATES, + MONITORING_TEMPLATES, + TREND_ALERT_TEMPLATES, +} from "./templates/notification.templates"; +import { generateEmailHtml } from "./templates/email.template"; + +/** + * Notification Service + * + * RESPONSIBILITIES: + * - Send care priority escalation notifications + * - Send BP alert notifications + * - Send symptom alert notifications + * - Log all notifications for audit trail + * - Persist notifications to database + * - Send push notifications via Expo + * - Background monitoring (Inactivity, Daily reminders, Trends, Follow-ups) + */ +@Injectable() +export class NotificationsService { + private readonly logger = new Logger(NotificationsService.name); + private expoInstance: any = null; + + constructor( + private readonly prisma: PrismaService, + private readonly emailService: EmailService, + private readonly configService: ConfigService + ) {} + + /** + * Helper to get Expo instance dynamically (fixes ERR_REQUIRE_ESM) + */ + private async getExpo() { + if (!this.expoInstance) { + const { Expo } = await import("expo-server-sdk"); + this.expoInstance = new Expo(); + } + return this.expoInstance; + } + + /** + * Helper to get user's email + */ + private async getUserEmail(userId: string): Promise { + const user = await this.prisma.userAuth.findUnique({ + where: { id: userId }, + select: { email: true }, + }); + return user?.email || null; + } + + /** + * Internal helper to send push notifications + */ + private async sendPushNotification( + userId: string, + title: string, + body: string, + data?: any + ): Promise { + const user = await this.prisma.userAuth.findUnique({ + where: { id: userId }, + select: { pushToken: true }, + }); + + if (!user?.pushToken) { + this.logger.debug(`No push token found for user ${userId}, skipping push.`); + return; + } + + const { Expo } = await import("expo-server-sdk"); + if (!Expo.isExpoPushToken(user.pushToken)) { + this.logger.error(`Push token ${user.pushToken} is not a valid Expo push token`); + return; + } + + const messages: ExpoPushMessage[] = [ + { + to: user.pushToken, + sound: "default", + title, + body, + data, + }, + ]; + + try { + const expo = await this.getExpo(); + const chunks = expo.chunkPushNotifications(messages); + for (const chunk of chunks) { + await expo.sendPushNotificationsAsync(chunk); + } + this.logger.log(`Push notification sent to user ${userId}`); + } catch (error) { + this.logger.error(`Error sending push notification to user ${userId}:`, error); + } + } + + /** + * Daily BP Reminder Monitor + * Runs every minute to check which users should be reminded + */ + @Cron(CronExpression.EVERY_MINUTE) + async checkDailyReminders() { + const now = new Date(); + const currentHHmm = now.toLocaleTimeString("en-GB", { + hour: "2-digit", + minute: "2-digit", + hour12: false, + }); + + const today = new Date(); + today.setHours(0, 0, 0, 0); + + // Find users who: + // 1. Have reminders enabled + // 2. Their reminderTime matches current time + // 3. Haven't logged BP today + const usersToRemind = await this.prisma.userAuth.findMany({ + where: { + isActive: true, + profile: { + notifyReminders: true, + reminderTime: currentHHmm, + }, + bloodPressureReadings: { + none: { + recordedAt: { gte: today }, + }, + }, + }, + select: { id: true, email: true }, + }); + + if (usersToRemind.length > 0) { + this.logger.log( + `[REMINDER] Sending daily BP reminders to ${usersToRemind.length} users for time ${currentHHmm}`, + ); + } + + for (const user of usersToRemind) { + try { + const template = MONITORING_TEMPLATES.DAILY_REMINDER; + await this.prisma.notification.create({ + data: { + userId: user.id, + type: NotificationType.REMINDER, + title: template.subject, + message: template.body, + }, + }); + + await this.sendPushNotification( + user.id, + template.subject, + template.body, + { type: "DAILY_REMINDER" } + ); + } catch (error) { + this.logger.error(`Failed to send daily reminder to user ${user.id}:`, error); + } + } + } + + /** + * Inactivity Monitor - Checks for users who haven't logged BP in 5 days + * Runs daily at midnight + */ + @Cron(CronExpression.EVERY_DAY_AT_MIDNIGHT) + async checkInactivity() { + this.logger.log("Running inactivity check..."); + const fiveDaysAgo = new Date(); + fiveDaysAgo.setDate(fiveDaysAgo.getDate() - 5); + + // Find users whose last reading was > 5 days ago or who never logged + const users = await this.prisma.userAuth.findMany({ + where: { + isActive: true, + bloodPressureReadings: { + none: { + recordedAt: { gte: fiveDaysAgo }, + }, + }, + }, + select: { id: true, email: true }, + }); + + for (const user of users) { + try { + const template = MONITORING_TEMPLATES.INACTIVITY_REMINDER; + await this.prisma.notification.create({ + data: { + userId: user.id, + type: NotificationType.REMINDER, + title: template.subject, + message: template.body, + }, + }); + + // Send Push + await this.sendPushNotification( + user.id, + template.subject, + template.body, + { type: "INACTIVITY_REMINDER" } + ); + + // Send Email + if (user.email) { + const html = generateEmailHtml( + template.subject, + template.body, + "Log BP Reading", + `${this.configService.get("FRONTEND_URL")}/bp-entry`, + "#2DE474" + ); + + await this.emailService.sendEmail( + user.email, + template.subject, + template.body, + html + ); + } + } catch (error) { + this.logger.error(`Failed to process inactivity reminder for user ${user.id}:`, error); + } + } + this.logger.log(`Inactivity check finished. ${users.length} users notified.`); + } + + /** + * 4-Hour Follow-Up Monitor + * Runs every 30 minutes + */ + @Cron(CronExpression.EVERY_30_MINUTES) + async checkFollowUps() { + this.logger.log("Running follow-up recheck monitor..."); + const now = new Date(); + const fourHoursAgo = new Date(now.getTime() - 4 * 60 * 60 * 1000); + const fiveHoursAgo = new Date(now.getTime() - 5 * 60 * 60 * 1000); + + // Find users who had an elevated reading (130/80 - 159/109) 4-5 hours ago + // AND haven't logged since then + const users = await this.prisma.userAuth.findMany({ + where: { + isActive: true, + bloodPressureReadings: { + some: { + recordedAt: { gte: fiveHoursAgo, lte: fourHoursAgo }, + OR: [ + { systolic: { gte: 130 } }, + { diastolic: { gte: 80 } }, + ], + }, + none: { + recordedAt: { gt: fourHoursAgo }, + }, + }, + }, + select: { id: true, email: true }, + }); + + for (const user of users) { + try { + const template = MONITORING_TEMPLATES.FOLLOW_UP_REMINDER; + await this.prisma.notification.create({ + data: { + userId: user.id, + type: NotificationType.REMINDER, + title: template.subject, + message: template.body, + }, + }); + + // Send Push + await this.sendPushNotification( + user.id, + template.subject, + template.body, + { type: "FOLLOW_UP" } + ); + + // Send Email + if (user.email) { + const html = generateEmailHtml( + template.subject, + template.body, + "Recheck BP Now", + `${this.configService.get("FRONTEND_URL")}/bp-entry`, + "#FF9B3E" + ); + + await this.emailService.sendEmail( + user.email, + template.subject, + template.body, + html + ); + } + } catch (error) { + this.logger.error(`Failed to process follow-up reminder for user ${user.id}:`, error); + } + } + } + + /** + * Trend Analysis Monitor - Analyzes 7 days of readings for patterns + * Runs every day at 1 AM + */ + @Cron(CronExpression.EVERY_DAY_AT_1AM) + async analyzeTrends() { + this.logger.log("Running trend analysis..."); + const sevenDaysAgo = new Date(); + sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7); + + const users = await this.prisma.userAuth.findMany({ + where: { isActive: true }, + select: { id: true, email: true }, + }); + + for (const user of users) { + try { + const readings = await this.prisma.bloodPressureReading.findMany({ + where: { + userId: user.id, + recordedAt: { gte: sevenDaysAgo }, + }, + orderBy: { recordedAt: "asc" }, + }); + + if (readings.length < 3) continue; + + // 1. Creeping Rise Detection (Consistent rise over 3+ readings) + let riseCount = 0; + for (let i = 1; i < readings.length; i++) { + if (readings[i].systolic > readings[i-1].systolic) riseCount++; + else riseCount = 0; + } + if (riseCount >= 3) { + await this.sendTrendAlert(user.id, TREND_ALERT_TEMPLATES.CREEPING_RISE, "CREEPING_RISE", user.email); + continue; // Don't spam multiple trend alerts + } + + // 2. Repeated High Readings (3+ elevated readings in a week) + const highReadings = readings.filter(r => r.systolic >= 135 || r.diastolic >= 85); + if (highReadings.length >= 3) { + await this.sendTrendAlert(user.id, TREND_ALERT_TEMPLATES.REPEATED_HIGH, "REPEATED_HIGH", user.email); + continue; + } + + // 3. Sudden Spike Detection (Latest reading is 20% > personal average) + const avgSystolic = readings.slice(0, -1).reduce((acc, curr) => acc + curr.systolic, 0) / (readings.length - 1); + const latest = readings[readings.length - 1]; + if (latest.systolic > avgSystolic * 1.2) { + await this.sendTrendAlert(user.id, TREND_ALERT_TEMPLATES.SUDDEN_SPIKE, "SUDDEN_SPIKE", user.email); + } + } catch (error) { + this.logger.error(`Failed to analyze trends for user ${user.id}:`, error); + } + } + } + + private async sendTrendAlert(userId: string, template: any, trendType: string, email?: string | null) { + await this.prisma.notification.create({ + data: { + userId, + type: NotificationType.BP_ALERT, + title: template.subject, + message: template.body, + }, + }); + + await this.sendPushNotification( + userId, + template.subject, + template.body, + { type: "TREND_ALERT", trendType } + ); + + if (email) { + const html = generateEmailHtml( + template.subject, + template.body, + "View Trends", + `${this.configService.get("FRONTEND_URL")}/(tabs)/tracking`, + "#FF9B3E" + ); + + await this.emailService.sendEmail( + email, + template.subject, + template.body, + html + ); + } + } + + /** + * Send care priority escalation notification + */ + async sendCarePriorityNotification( + userId: string, + priority: CarePriority + ): Promise { + const template = CARE_PRIORITY_TEMPLATES[priority]; + const email = await this.getUserEmail(userId); + + // Log notification + this.logger.log(`[NOTIFICATION] User: ${userId}, Priority: ${priority}`); + + // Persist to database + await this.prisma.notification.create({ + data: { + userId, + type: NotificationType.CARE_PRIORITY, + title: template.subject, + message: `${template.body}\n\n${template.callToAction}`, + }, + }); + + // Send email + if (email) { + const html = generateEmailHtml( + template.subject, + `${template.body}\n\n${template.callToAction}`, + "View Details", + `${this.configService.get("FRONTEND_URL")}/(tabs)/tracking`, + priority === CarePriority.EMERGENCY ? "#FF4B4B" : priority === CarePriority.URGENT_REVIEW ? "#FF9B3E" : "#2DE474" + ); + + await this.emailService.sendEmail( + email, + template.subject, + `${template.body}\n\n${template.callToAction}`, + html + ); + } + + // Send Push + await this.sendPushNotification( + userId, + template.subject, + template.body, + { type: "ESCALATION_ALERT", priority } + ); + + this.logger.log(`āœ… Notification handled for user ${userId}`); + } + + /** + * Send severe BP alert + */ + async sendSevereBPAlert( + userId: string, + systolic: number, + diastolic: number + ): Promise { + const template = BP_ALERT_TEMPLATES.SEVERE_HYPERTENSION; + const email = await this.getUserEmail(userId); + + this.logger.warn( + `[ALERT] Severe BP for user ${userId}: ${systolic}/${diastolic}` + ); + + const message = `${template.body}\nReading: ${systolic}/${diastolic}\n\n${template.callToAction}`; + + await this.prisma.notification.create({ + data: { + userId, + type: NotificationType.BP_ALERT, + title: template.subject, + message, + }, + }); + + // Send email + if (email) { + const html = generateEmailHtml( + template.subject, + message, + "Log Now", + `${this.configService.get("FRONTEND_URL")}/bp-entry`, + "#FF4B4B" + ); + + await this.emailService.sendEmail( + email, + template.subject, + message, + html + ); + } + + // Send Push + await this.sendPushNotification( + userId, + template.subject, + template.body, + { type: "TREND_ALERT", systolic, diastolic } + ); + + this.logger.log(`āœ… Severe BP alert handled for user ${userId}`); + } + + /** + * Send elevated BP notification + */ + async sendElevatedBPNotification( + userId: string, + systolic: number, + diastolic: number + ): Promise { + const template = BP_ALERT_TEMPLATES.ELEVATED_BP; + const email = await this.getUserEmail(userId); + + this.logger.log( + `[NOTIFICATION] Elevated BP for user ${userId}: ${systolic}/${diastolic}` + ); + + const message = `${template.body}\nReading: ${systolic}/${diastolic}\n\n${template.callToAction}`; + + await this.prisma.notification.create({ + data: { + userId, + type: NotificationType.BP_ALERT, + title: template.subject, + message, + }, + }); + + // Send email + if (email) { + const html = generateEmailHtml( + template.subject, + message, + "Log Now", + `${this.configService.get("FRONTEND_URL")}/bp-entry`, + "#FF9B3E" + ); + + await this.emailService.sendEmail( + email, + template.subject, + message, + html + ); + } + + // Send Push + await this.sendPushNotification( + userId, + template.subject, + template.body, + { type: "TREND_ALERT", systolic, diastolic } + ); + + this.logger.log(`āœ… Elevated BP notification handled for user ${userId}`); + } + + /** + * Send dangerous symptom combination alert + */ + async sendDangerousSymptomAlert( + userId: string, + symptoms: string[] + ): Promise { + const template = SYMPTOM_ALERT_TEMPLATES.DANGEROUS_COMBINATION; + const email = await this.getUserEmail(userId); + + this.logger.warn( + `[ALERT] Dangerous symptoms for user ${userId}: ${symptoms.join(", ")}` + ); + + const message = `${template.body}\nSymptoms reported: ${symptoms.join(", ")}\n\n${template.callToAction}`; + + await this.prisma.notification.create({ + data: { + userId, + type: NotificationType.SYMPTOM_ALERT, + title: template.subject, + message, + }, + }); + + // Send email + if (email) { + const html = generateEmailHtml( + template.subject, + message, + "Open App", + `${this.configService.get("FRONTEND_URL")}/(tabs)/tracking`, + "#FF4B4B" + ); + + await this.emailService.sendEmail( + email, + template.subject, + message, + html + ); + } + + // Send Push + await this.sendPushNotification( + userId, + template.subject, + template.body, + { type: "TREND_ALERT", symptoms } + ); + + this.logger.log(`āœ… Dangerous symptom alert handled for user ${userId}`); + } + + /** + * Send warning symptom notification + */ + async sendWarningSymptomNotification( + userId: string, + symptom: string + ): Promise { + const template = SYMPTOM_ALERT_TEMPLATES.SINGLE_WARNING_SYMPTOM; + const email = await this.getUserEmail(userId); + + this.logger.log( + `[NOTIFICATION] Warning symptom for user ${userId}: ${symptom}` + ); + + const message = `${template.body}\nSymptom reported: ${symptom}\n\n${template.callToAction}`; + + await this.prisma.notification.create({ + data: { + userId, + type: NotificationType.SYMPTOM_ALERT, + title: template.subject, + message, + }, + }); + + // Send email + if (email) { + const html = generateEmailHtml( + template.subject, + message, + "Open App", + `${this.configService.get("FRONTEND_URL")}/(tabs)/tracking`, + "#FF9B3E" + ); + + await this.emailService.sendEmail( + email, + template.subject, + message, + html + ); + } + + // Send Push + await this.sendPushNotification( + userId, + template.subject, + template.body, + { type: "TREND_ALERT", symptom } + ); + + this.logger.log(`āœ… Warning symptom notification handled for user ${userId}`); + } + + /** + * Send reset password notification + */ + async sendResetPasswordNotification( + userId: string, + token: string + ): Promise { + const template = AUTH_TEMPLATES.RESET_PASSWORD; + const email = await this.getUserEmail(userId); + + this.logger.log(`[AUTH] Reset password request for user ${userId}. Email: ${email || 'N/A'}`); + + const resetLink = `${this.configService.get("FRONTEND_URL")}/reset-password?token=${token}`; + const message = `${template.body}\n\nReset Link: ${resetLink}`; + + // Store in database + await this.prisma.notification.create({ + data: { + userId, + type: NotificationType.REMINDER, + title: template.subject, + message, + }, + }); + + // Send actual email if available + if (email) { + const html = generateEmailHtml( + template.subject, + template.body, + "Reset Password", + resetLink, + "#1E6BFF" // Use setup blue for auth actions + ); + + await this.emailService.sendEmail( + email, + template.subject, + message, + html + ); + } + + // Send Push + await this.sendPushNotification( + userId, + template.subject, + template.body, + { type: "SESSION_EXPIRY" } // Using session expiry as a proxy for generic auth actions + ); + + this.logger.log(`āœ… Reset password notification handled for user ${userId}`); + } + + /** + * Register push token for user + */ + async registerPushToken(userId: string, pushToken: string) { + this.logger.log(`Registering push token for user ${userId}`); + return this.prisma.userAuth.update({ + where: { id: userId }, + data: { pushToken }, + }); + } + + /** + * Get notification history for user + */ + async getNotificationHistory(userId: string) { + this.logger.log(`Fetching notification history for user ${userId}`); + return this.prisma.notification.findMany({ + where: { userId }, + orderBy: { createdAt: "desc" }, + }); + } + + /** + * Mark notification as read + */ + async markAsRead(notificationId: string, userId: string) { + const notification = await this.prisma.notification.findUnique({ + where: { id: notificationId }, + }); + + if (!notification || notification.userId !== userId) { + throw new Error("Notification not found or access denied"); + } + + return this.prisma.notification.update({ + where: { id: notificationId }, + data: { read: true }, + }); + } +} diff --git a/src/notifications/templates/email.template.ts b/src/notifications/templates/email.template.ts new file mode 100644 index 0000000000000000000000000000000000000000..981bf13911bd22473ffc4eb47c63632461f21626 --- /dev/null +++ b/src/notifications/templates/email.template.ts @@ -0,0 +1,126 @@ + +export const generateEmailHtml = ( + title: string, + body: string, + callToAction: string, + ctaUrl: string = 'https://maternalert.app', + accentColor: string = '#2DE474' // Default to primary neon green +) => ` + + + + + + ${title} + + + +
+ +
+

${title}

+

${body.replace(/\n/g, '
')}

+ + +
+ +
+ + +`; diff --git a/src/notifications/templates/notification.templates.ts b/src/notifications/templates/notification.templates.ts new file mode 100644 index 0000000000000000000000000000000000000000..4b943ee4de1456ab74efbcc83a6d38aa8b78c604 --- /dev/null +++ b/src/notifications/templates/notification.templates.ts @@ -0,0 +1,153 @@ +import { CarePriority } from "../../care-priority/types/care-priority.types"; + +/** + * Notification Templates + * + * CLINICAL SAFETY CONSTRAINTS: + * - Predefined templates only + * - No dynamic medical text generation + * - No fear-based language + * - No predictions + * - Encouraging but not alarming + * + * TEMPLATE STRUCTURE: + * - Subject: Brief, clear subject line + * - Body: Actionable guidance without diagnosis + * - CTA: Clear next step + */ + +export interface NotificationTemplate { + subject: string; + body: string; + callToAction: string; +} + +/** + * Care Priority Escalation Templates + */ +export const CARE_PRIORITY_TEMPLATES: Record< + CarePriority, + NotificationTemplate +> = { + [CarePriority.EMERGENCY]: { + subject: "Important: Seek Immediate Medical Attention", + body: "Based on your recent readings, we recommend seeking immediate medical attention. This is a precautionary measure to ensure you and your baby receive appropriate care.", + callToAction: + "Call emergency services or go to the nearest emergency room now.", + }, + + [CarePriority.URGENT_REVIEW]: { + subject: "Action Needed: Contact Your Healthcare Provider", + body: "Your recent readings suggest you should speak with your healthcare provider within the next 24 hours. They can review your information and provide personalized guidance.", + callToAction: "Contact your healthcare provider within 24 hours.", + }, + + [CarePriority.INCREASED_MONITORING]: { + subject: "Reminder: Continue Monitoring", + body: "Your readings indicate that more frequent monitoring would be beneficial. Please continue tracking your blood pressure and discuss your readings with your healthcare provider at your next appointment.", + callToAction: "Monitor regularly and discuss at your next appointment.", + }, + + [CarePriority.ROUTINE]: { + subject: "Keep Up the Good Work", + body: "Your readings look good. Continue with your routine prenatal care and monitoring as recommended by your healthcare provider.", + callToAction: "Continue routine care as planned.", + }, +}; + +/** + * Blood Pressure Alert Templates + */ +export const BP_ALERT_TEMPLATES = { + SEVERE_HYPERTENSION: { + subject: "Critical: High Blood Pressure Reading", + body: "Your blood pressure reading is significantly elevated. Please seek immediate medical attention.", + callToAction: "Seek immediate medical care.", + }, + + ELEVATED_BP: { + subject: "Notice: Elevated Blood Pressure", + body: "Your blood pressure reading is elevated. Please monitor closely and contact your healthcare provider if it remains elevated.", + callToAction: "Monitor and contact provider if readings stay elevated.", + }, +}; + +/** + * Symptom Alert Templates + */ +export const SYMPTOM_ALERT_TEMPLATES = { + DANGEROUS_COMBINATION: { + subject: "Important: Warning Symptoms Reported", + body: "You have reported symptoms that may require medical attention. Please contact your healthcare provider or seek immediate care if symptoms worsen.", + callToAction: "Contact your healthcare provider or seek immediate care.", + }, + + SINGLE_WARNING_SYMPTOM: { + subject: "Notice: Warning Symptom Reported", + body: "You have reported a symptom that should be discussed with your healthcare provider. Please mention this at your next appointment or contact them if you have concerns.", + callToAction: "Discuss with your healthcare provider.", + }, +}; + +/** + * Auth Templates + */ +export const AUTH_TEMPLATES = { + RESET_PASSWORD: { + subject: "Reset Your Password", + body: "You requested a password reset. Use the link below to set a new password. This link will expire in 1 hour.", + callToAction: "Reset your password.", + }, +}; + +/** + * Monitoring and Reminder Templates + */ +export const MONITORING_TEMPLATES = { + INACTIVITY_REMINDER: { + subject: "It's Been a While", + body: "We haven't seen a blood pressure entry from you in 5 days. Regular logging is key to a healthy pregnancy.", + callToAction: "Log your BP now to stay on track.", + }, + + DAILY_REMINDER: { + subject: "Time to Check Your Blood Pressure", + body: "It only takes 30 seconds. Staying on top of your readings helps you and your baby stay healthy.", + callToAction: "Open the app to log your reading.", + }, + + FOLLOW_UP_REMINDER: { + subject: "Time for Your 4-Hour BP Recheck", + body: "Your last reading was elevated. Please recheck your blood pressure now to ensure it has returned to normal.", + callToAction: "Log your follow-up reading now.", + }, + + FOLLOW_UP_URGENT: { + subject: "Urgent: Missed BP Recheck", + body: "You missed your 4-hour recheck after an elevated reading. It's important to monitor your blood pressure closely right now.", + callToAction: "Please log a new reading immediately.", + }, +}; + +/** + * Trend Alert Templates + */ +export const TREND_ALERT_TEMPLATES = { + CREEPING_RISE: { + subject: "Trend Detected: Gradual Rise in BP", + body: "Our analysis shows a gradual, consistent rise in your blood pressure over several readings. While not an emergency, this trend should be discussed with your healthcare provider.", + callToAction: "Please contact your clinic to discuss this trend.", + }, + + REPEATED_HIGH: { + subject: "Trend Detected: Multiple High Readings", + body: "You have had several high blood pressure readings within the past week. Consistent high readings require medical review.", + callToAction: "Contact your healthcare provider within 24 hours.", + }, + + SUDDEN_SPIKE: { + subject: "Alert: Sudden BP Spike", + body: "Your latest reading is significantly higher than your personal average. Sudden spikes can be a warning sign.", + callToAction: "Rest for 15 minutes and recheck. If still high, seek medical advice.", + }, +}; diff --git a/src/setup.ts b/src/setup.ts new file mode 100644 index 0000000000000000000000000000000000000000..3b4229a597c23272cc7e0b5b6a8282bcb1f17f9f --- /dev/null +++ b/src/setup.ts @@ -0,0 +1,49 @@ +import { INestApplication, ValidationPipe } from "@nestjs/common"; +import compression from "compression"; +import helmet from "helmet"; +import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger"; + +export function setupGlobalMiddleware(app: INestApplication) { + // 1. HELMET: Sets various HTTP headers for security + // Disable CSP for Swagger UI to load correctly + app.use(helmet({ + contentSecurityPolicy: false, + })); + + // 2. CORS: Restrict cross-origin access + app.enableCors({ + origin: "*", // For development, allow all origins + methods: "GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS", + credentials: true, + allowedHeaders: "Content-Type, Accept, Authorization", + }); + + // 3. COMPRESSION: Gzip compression for smaller payloads + app.use(compression()); + + // 4. GLOBAL VALIDATION + // Global validation pipe with strict settings + app.useGlobalPipes( + new ValidationPipe({ + whitelist: true, // Strip properties that don't have decorators + forbidNonWhitelisted: true, // Throw error if non-whitelisted properties exist + transform: true, // Automatically transform payloads to DTO instances + transformOptions: { + enableImplicitConversion: true, + }, + }) + ); + + // API prefix + app.setGlobalPrefix("api/v1"); + + // 5. SWAGGER DOCUMENTATION + const config = new DocumentBuilder() + .setTitle('Maternal Health Support API') + .setDescription('Clinical-safe maternal health support backend - Care escalation tool (NOT a diagnostic system)') + .setVersion('1.0') + .addBearerAuth() + .build(); + const document = SwaggerModule.createDocument(app, config); + SwaggerModule.setup('api/v1/docs', app, document); +} diff --git a/src/symptoms/dto/create-symptom.dto.ts b/src/symptoms/dto/create-symptom.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..2979c57fa9c236429d180c256e8c2963cf6df631 --- /dev/null +++ b/src/symptoms/dto/create-symptom.dto.ts @@ -0,0 +1,24 @@ +import { IsEnum, IsOptional, IsDateString } from "class-validator"; +import { SymptomType } from "@prisma/client"; + +/** + * Create Symptom Record DTO + * + * CLINICAL SAFETY: + * - Enumerated symptom types only + * - No severity levels + * - No numeric scoring + * - Atomic recording (one symptom per record) + * + * VALIDATION: + * - symptomType must be valid enum value + * - Optional recordedAt (defaults to now) + */ +export class CreateSymptomDto { + @IsEnum(SymptomType) + symptomType!: SymptomType; + + @IsOptional() + @IsDateString() + recordedAt?: string; +} diff --git a/src/symptoms/symptoms.controller.ts b/src/symptoms/symptoms.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..f079c1045362fb3ccac53ed65caab0f23b6399df --- /dev/null +++ b/src/symptoms/symptoms.controller.ts @@ -0,0 +1,93 @@ +import { + Controller, + Get, + Post, + Delete, + Body, + Param, + Query, + UseGuards, + Request, + HttpCode, + HttpStatus, + ParseIntPipe, + Inject, + forwardRef, +} from "@nestjs/common"; +import { SymptomsService } from "./symptoms.service"; +import { CreateSymptomDto } from "./dto/create-symptom.dto"; +import { JwtAuthGuard } from "../auth/guards/jwt-auth.guard"; +import { HealthAssessmentService } from "../care-priority/health-assessment.service"; + +@Controller("symptoms") +@UseGuards(JwtAuthGuard) +export class SymptomsController { + constructor( + private readonly symptomsService: SymptomsService, + @Inject(forwardRef(() => HealthAssessmentService)) + private readonly healthAssessmentService: HealthAssessmentService + ) {} + + @Post() + @HttpCode(HttpStatus.CREATED) + async create( + @Request() req: any, + @Body() createSymptomDto: CreateSymptomDto + ) { + const userId = req.user.id; + const symptom = await this.symptomsService.create(userId, createSymptomDto); + + // Trigger health assessment and notifications + this.healthAssessmentService.assessAndNotify(userId); + + return symptom; + } + + /** + * Get all symptoms for authenticated user + * + * @param req - Request with authenticated user + * @param limit - Optional limit (default: 100) + * @returns Array of symptom records + */ + @Get() + @HttpCode(HttpStatus.OK) + async getSymptoms( + @Request() req: any, + @Query("limit", new ParseIntPipe({ optional: true })) limit?: number + ) { + const userId = req.user.id; + return this.symptomsService.findByUserId(userId, limit); + } + + /** + * Get recent symptoms (last 48 hours by default) + * + * @param req - Request with authenticated user + * @param hours - Number of hours to look back + * @returns Array of recent symptom records + */ + @Get("recent") + @HttpCode(HttpStatus.OK) + async getRecent( + @Request() req: any, + @Query("hours", new ParseIntPipe({ optional: true })) hours?: number + ) { + const userId = req.user.id; + return this.symptomsService.getRecentSymptoms(userId, hours); + } + + /** + * Delete a symptom record + * + * @param req - Request with authenticated user + * @param id - Symptom record ID + * @returns Success message + */ + @Delete(":id") + @HttpCode(HttpStatus.OK) + async delete(@Request() req: any, @Param("id") id: string) { + const userId = req.user.id; + return this.symptomsService.delete(id, userId); + } +} diff --git a/src/symptoms/symptoms.module.ts b/src/symptoms/symptoms.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9a2994df971b263db7c9bab20f4ce0b9de037d4 --- /dev/null +++ b/src/symptoms/symptoms.module.ts @@ -0,0 +1,27 @@ +import { Module, forwardRef } from "@nestjs/common"; +import { SymptomsController } from "./symptoms.controller"; +import { SymptomsService } from "./symptoms.service"; +import { CarePriorityModule } from "../care-priority/care-priority.module"; + +/** + * Symptoms Module + * + * RESPONSIBILITIES: + * - Store individual symptom records + * - Atomic, non-scored entries + * - Timestamp tracking + * + * CLINICAL SAFETY CONSTRAINTS: + * - No severity levels + * - No numeric scoring + * - Each symptom is a separate record + * - Enumerated symptom types only + */ + +@Module({ + imports: [forwardRef(() => CarePriorityModule)], + controllers: [SymptomsController], + providers: [SymptomsService], + exports: [SymptomsService], +}) +export class SymptomsModule {} diff --git a/src/symptoms/symptoms.service.ts b/src/symptoms/symptoms.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..eb00c4652b69676804c1ea785bce23833a854e93 --- /dev/null +++ b/src/symptoms/symptoms.service.ts @@ -0,0 +1,193 @@ +import { Injectable, Logger } from "@nestjs/common"; +import { PrismaService } from "../database/prisma.service"; +import { CreateSymptomDto } from "./dto/create-symptom.dto"; +import { SymptomType } from "@prisma/client"; + +/** + * Symptoms Service + * + * CLINICAL SAFETY PRINCIPLES: + * - Atomic recording (one symptom per record) + * - No severity levels + * - No numeric scoring + * - No interpretation or diagnosis + * + * RESPONSIBILITIES: + * - Record individual symptoms + * - Retrieve symptoms for user + * - Provide recent symptoms for care priority engine + * - Query symptoms by type and date range + */ + +@Injectable() +export class SymptomsService { + private readonly logger = new Logger(SymptomsService.name); + + constructor(private readonly prisma: PrismaService) {} + + /** + * Record a new symptom + * + * CONSTRAINTS: + * - Enumerated symptom types only + * - No severity or scoring + * - Each symptom is a separate record + */ + async create(userId: string, createSymptomDto: CreateSymptomDto) { + const { symptomType, recordedAt } = createSymptomDto; + + const symptom = await this.prisma.symptomRecord.create({ + data: { + userId, + symptomType, + recordedAt: recordedAt ? new Date(recordedAt) : new Date(), + }, + }); + + this.logger.log(`Symptom recorded for user: ${userId} (${symptomType})`); + + return symptom; + } + + /** + * Get all symptoms for a user + * + * @param userId - User ID + * @param limit - Optional limit (default: 100) + * @returns Array of symptom records, newest first + */ + async findByUserId(userId: string, limit: number = 100) { + const symptoms = await this.prisma.symptomRecord.findMany({ + where: { userId }, + orderBy: { recordedAt: "desc" }, + take: limit, + }); + + return symptoms; + } + + /** + * Get symptoms from last N hours + * + * Used by care priority engine to check recent symptoms + * + * @param userId - User ID + * @param hours - Number of hours to look back (default: 48) + * @returns Array of recent symptom records + */ + async getRecentSymptoms(userId: string, hours: number = 48) { + const cutoffDate = new Date(); + cutoffDate.setHours(cutoffDate.getHours() - hours); + + const symptoms = await this.prisma.symptomRecord.findMany({ + where: { + userId, + recordedAt: { + gte: cutoffDate, + }, + }, + orderBy: { recordedAt: "desc" }, + }); + + return symptoms; + } + + /** + * Get symptoms by type + * + * @param userId - User ID + * @param symptomType - Symptom type to filter by + * @param limit - Optional limit + * @returns Array of symptom records of specified type + */ + async getSymptomsByType( + userId: string, + symptomType: SymptomType, + limit: number = 50 + ) { + const symptoms = await this.prisma.symptomRecord.findMany({ + where: { + userId, + symptomType, + }, + orderBy: { recordedAt: "desc" }, + take: limit, + }); + + return symptoms; + } + + /** + * Get symptoms within a date range + * + * @param userId - User ID + * @param startDate - Start date + * @param endDate - End date + * @returns Array of symptom records in range + */ + async getSymptomsInRange(userId: string, startDate: Date, endDate: Date) { + const symptoms = await this.prisma.symptomRecord.findMany({ + where: { + userId, + recordedAt: { + gte: startDate, + lte: endDate, + }, + }, + orderBy: { recordedAt: "desc" }, + }); + + return symptoms; + } + + /** + * Check for dangerous symptom combinations + * + * Used by care priority engine + * Returns true if dangerous combinations are present in recent symptoms + */ + async hasDangerousCombinations( + userId: string, + hours: number = 48 + ): Promise { + const recentSymptoms = await this.getRecentSymptoms(userId, hours); + const symptomTypes = new Set(recentSymptoms.map((s: any) => s.symptomType)); + + // Dangerous combinations (examples - will be refined in care priority engine) + const dangerousCombos = [ + [SymptomType.HEADACHE, SymptomType.BLURRED_VISION], + [SymptomType.UPPER_ABDOMINAL_PAIN, SymptomType.NAUSEA_VOMITING], + [SymptomType.SWELLING, SymptomType.REDUCED_URINE], + ]; + + for (const combo of dangerousCombos) { + if (combo.every((symptom) => symptomTypes.has(symptom))) { + return true; + } + } + + return false; + } + + /** + * Delete a symptom record + */ + async delete(id: string, userId: string) { + // Ensure user owns the symptom + const symptom = await this.prisma.symptomRecord.findFirst({ + where: { id, userId }, + }); + + if (!symptom) { + throw new Error("Symptom not found or unauthorized"); + } + + await this.prisma.symptomRecord.delete({ + where: { id }, + }); + + this.logger.log(`Symptom deleted: ${id}`); + + return { message: "Symptom deleted successfully" }; + } +} diff --git a/src/user-profile/dto/create-user-profile.dto.ts b/src/user-profile/dto/create-user-profile.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..96276441b3696ea8c9e83545e91f7cafcad0d4c0 --- /dev/null +++ b/src/user-profile/dto/create-user-profile.dto.ts @@ -0,0 +1,60 @@ +import { + IsEnum, + IsBoolean, + IsInt, + Min, + Max, + IsArray, + IsOptional, + IsString, + Matches, +} from "class-validator"; +import { AgeRange, KnownCondition } from "@prisma/client"; + +enum EmergencyContactRelationshipDto { + MIDWIFE = "MIDWIFE", + PARTNER = "PARTNER", + FAMILY_MEMBER = "FAMILY_MEMBER", + OTHER = "OTHER", +} + +/** + * Create User Profile DTO + * + * DATA MINIMIZATION: + * - Age range (not DOB) + * - Pregnancy information only + * - Enumerated conditions only + * - Optional emergency contact (phone + relationship) + * + * VALIDATION: + * - Pregnancy weeks: 0-42 (typical pregnancy duration) + * - All fields required for profile creation + */ +export class CreateUserProfileDto { + @IsEnum(AgeRange) + ageRange!: AgeRange; + + @IsInt() + @Min(0, { message: "Pregnancy weeks must be at least 0" }) + @Max(42, { message: "Pregnancy weeks must not exceed 42" }) + pregnancyWeeks!: number; + + @IsBoolean() + firstPregnancy!: boolean; + + @IsArray() + @IsEnum(KnownCondition, { each: true }) + knownConditions!: KnownCondition[]; + + @IsOptional() + @IsEnum(EmergencyContactRelationshipDto) + emergencyContactRelationship?: EmergencyContactRelationshipDto; + + @IsOptional() + @IsString() + @Matches(/^[0-9+\-() ]{7,20}$/, { + message: "Emergency contact phone must be a valid phone number format", + }) + emergencyContactPhone?: string; +} diff --git a/src/user-profile/dto/update-user-profile.dto.ts b/src/user-profile/dto/update-user-profile.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..932ae3ebdd5c1e9627938f61457e1bf68e57e041 --- /dev/null +++ b/src/user-profile/dto/update-user-profile.dto.ts @@ -0,0 +1,94 @@ +import { + IsEnum, + IsBoolean, + IsInt, + Min, + Max, + IsArray, + IsOptional, + IsString, + Matches, +} from "class-validator"; +import { AgeRange, KnownCondition } from "@prisma/client"; + +enum EmergencyContactRelationshipUpdateDto { + MIDWIFE = "MIDWIFE", + PARTNER = "PARTNER", + FAMILY_MEMBER = "FAMILY_MEMBER", + OTHER = "OTHER", +} + +/** + * Update User Profile DTO + * + * All fields optional for partial updates + */ +export class UpdateUserProfileDto { + @IsOptional() + @IsEnum(AgeRange) + ageRange?: AgeRange; + + @IsOptional() + @IsInt() + @Min(0) + @Max(42) + pregnancyWeeks?: number; + + @IsOptional() + @IsBoolean() + firstPregnancy?: boolean; + + @IsOptional() + @IsArray() + @IsEnum(KnownCondition, { each: true }) + knownConditions?: KnownCondition[]; + + @IsOptional() + @IsEnum(EmergencyContactRelationshipUpdateDto) + emergencyContactRelationship?: EmergencyContactRelationshipUpdateDto; + + @IsOptional() + @IsString() + @Matches(/^[0-9+\-() ]{7,20}$/, { + message: "Emergency contact phone must be a valid phone number format", + }) + emergencyContactPhone?: string; + + @IsOptional() + @IsString() + clinicName?: string; + + @IsOptional() + @IsString() + clinicAddress?: string; + + @IsOptional() + @IsString() + @Matches(/^[0-9+\-() ]{7,20}$/, { + message: "Clinic phone must be a valid phone number format", + }) + clinicPhone?: string; + + @IsOptional() + @IsBoolean() + notifyCarePriority?: boolean; + + @IsOptional() + @IsBoolean() + notifyBpAlert?: boolean; + + @IsOptional() + @IsBoolean() + notifySymptomAlert?: boolean; + + @IsOptional() + @IsBoolean() + notifyReminders?: boolean; + + @IsOptional() + @IsString() + @Matches(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/, { + message: "Reminder time must be in HH:mm format (24h clock)", + }) + reminderTime?: string; +} diff --git a/src/user-profile/user-profile.controller.ts b/src/user-profile/user-profile.controller.ts new file mode 100644 index 0000000000000000000000000000000000000000..aa40b9099a435ac08cd060e862537fcfb1dc466e --- /dev/null +++ b/src/user-profile/user-profile.controller.ts @@ -0,0 +1,99 @@ +import { + Controller, + Get, + Post, + Put, + Delete, + Body, + UseGuards, + Request, + HttpCode, + HttpStatus, +} from "@nestjs/common"; +import { UserProfileService } from "./user-profile.service"; +import { CreateUserProfileDto } from "./dto/create-user-profile.dto"; +import { UpdateUserProfileDto } from "./dto/update-user-profile.dto"; +import { JwtAuthGuard } from "../auth/guards/jwt-auth.guard"; + +/** + * User Profile Controller + * + * ENDPOINTS: + * - POST /user-profile - Create profile (authenticated) + * - GET /user-profile - Get own profile (authenticated) + * - PUT /user-profile - Update profile (authenticated) + * - DELETE /user-profile - Delete profile (authenticated) + * + * CLINICAL SAFETY: + * - All endpoints require authentication + * - Users can only access their own profile + * - No PII collected (age range, not DOB) + * - No free-text medical history + * - Enumerated conditions only + */ + +@Controller("user-profile") +@UseGuards(JwtAuthGuard) +export class UserProfileController { + constructor(private readonly userProfileService: UserProfileService) {} + + /** + * Create user profile + * + * @param req - Request with authenticated user + * @param createUserProfileDto - Profile data + * @returns Created profile + */ + @Post() + @HttpCode(HttpStatus.CREATED) + async create( + @Request() req: any, + @Body() createUserProfileDto: CreateUserProfileDto + ) { + const userId = req.user.id; + return this.userProfileService.create(userId, createUserProfileDto); + } + + /** + * Get own user profile + * + * @param req - Request with authenticated user + * @returns User profile + */ + @Get() + @HttpCode(HttpStatus.OK) + async getProfile(@Request() req: any) { + const userId = req.user.id; + return this.userProfileService.findByUserId(userId); + } + + /** + * Update user profile + * + * @param req - Request with authenticated user + * @param updateUserProfileDto - Updated profile data + * @returns Updated profile + */ + @Put() + @HttpCode(HttpStatus.OK) + async update( + @Request() req: any, + @Body() updateUserProfileDto: UpdateUserProfileDto + ) { + const userId = req.user.id; + return this.userProfileService.update(userId, updateUserProfileDto); + } + + /** + * Delete user profile + * + * @param req - Request with authenticated user + * @returns Success message + */ + @Delete() + @HttpCode(HttpStatus.OK) + async delete(@Request() req: any) { + const userId = req.user.id; + return this.userProfileService.delete(userId); + } +} diff --git a/src/user-profile/user-profile.module.ts b/src/user-profile/user-profile.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..d6718becc61a4c382e3a7ec2f4c7e8df1250c1bb --- /dev/null +++ b/src/user-profile/user-profile.module.ts @@ -0,0 +1,32 @@ +import { Module } from "@nestjs/common"; +import { UserProfileController } from "./user-profile.controller"; +import { UserProfileService } from "./user-profile.service"; + +/** + * User Profile Module + * + * RESPONSIBILITIES: + * - Store minimal user profile data + * - Age range (not DOB) + * - Pregnancy information + * - Known conditions (enumerated) + * + * DATA MINIMIZATION PRINCIPLE: + * - No full DOB + * - No address + * - No free-text medical history + * - No names or demographic data + * - Only pregnancy-relevant structured data + * + * CLINICAL SAFETY: + * - All data enumerated or validated + * - No diagnostic interpretations + * - Used for care priority calculations (Phase 3) + */ + +@Module({ + controllers: [UserProfileController], + providers: [UserProfileService], + exports: [UserProfileService], +}) +export class UserProfileModule {} diff --git a/src/user-profile/user-profile.service.ts b/src/user-profile/user-profile.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..29e7510a578b8bb3d09429ebfd6cff1c14c3eb6c --- /dev/null +++ b/src/user-profile/user-profile.service.ts @@ -0,0 +1,148 @@ +import { + Injectable, + NotFoundException, + ConflictException, + Logger, +} from "@nestjs/common"; +import { PrismaService } from "../database/prisma.service"; +import { CreateUserProfileDto } from "./dto/create-user-profile.dto"; +import { UpdateUserProfileDto } from "./dto/update-user-profile.dto"; + +/** + * User Profile Service + * + * CLINICAL SAFETY PRINCIPLES: + * - Data minimization (no DOB, no address, no free-text) + * - Only pregnancy-relevant structured data + * - No diagnostic interpretations + * - All data enumerated or validated + * + * RESPONSIBILITIES: + * - Create user profile after registration + * - Update profile information + * - Retrieve profile for care priority calculations + */ + +@Injectable() +export class UserProfileService { + private readonly logger = new Logger(UserProfileService.name); + + constructor(private readonly prisma: PrismaService) {} + + /** + * Create a new user profile + * + * CONSTRAINTS: + * - One profile per user + * - User must exist in UserAuth + * - All fields validated + */ + async create(userId: string, createUserProfileDto: CreateUserProfileDto) { + // Check if user exists + const userAuth = await this.prisma.userAuth.findUnique({ + where: { id: userId }, + }); + + if (!userAuth) { + throw new NotFoundException("User not found"); + } + + // Check if profile already exists + const existingProfile = await this.prisma.userProfile.findUnique({ + where: { userId }, + }); + + if (existingProfile) { + throw new ConflictException("User profile already exists"); + } + + // Create profile + const profile = await this.prisma.userProfile.create({ + data: { + userId, + ...createUserProfileDto, + }, + }); + + this.logger.log(`Profile created for user: ${userId}`); + + return profile; + } + + /** + * Get user profile by user ID + */ + async findByUserId(userId: string) { + const profile = await this.prisma.userProfile.findUnique({ + where: { userId }, + }); + + if (!profile) { + throw new NotFoundException("User profile not found"); + } + + return profile; + } + + /** + * Update user profile + * + * CONSTRAINTS: + * - Profile must exist + * - Partial updates allowed + * - All fields validated + */ + async update(userId: string, updateUserProfileDto: UpdateUserProfileDto) { + // Check if profile exists + const existingProfile = await this.prisma.userProfile.findUnique({ + where: { userId }, + }); + + if (!existingProfile) { + throw new NotFoundException("User profile not found"); + } + + // Update profile + const updatedProfile = await this.prisma.userProfile.update({ + where: { userId }, + data: updateUserProfileDto, + }); + + this.logger.log(`Profile updated for user: ${userId}`); + + return updatedProfile; + } + + /** + * Check if user has a profile + */ + async hasProfile(userId: string): Promise { + const profile = await this.prisma.userProfile.findUnique({ + where: { userId }, + }); + + return !!profile; + } + + /** + * Delete user profile + * (Cascade delete will happen automatically when user is deleted) + */ + async delete(userId: string) { + const profile = await this.prisma.userProfile.findUnique({ + where: { userId }, + }); + + if (!profile) { + throw new NotFoundException("User profile not found"); + } + + await this.prisma.userProfile.delete({ + where: { userId }, + }); + + this.logger.log(`Profile deleted for user: ${userId}`); + + return { message: "Profile deleted successfully" }; + } +} diff --git a/src/vercel.ts b/src/vercel.ts new file mode 100644 index 0000000000000000000000000000000000000000..63a4444fdf1bba4d550ecab3dcf4524c4ebfb5d6 --- /dev/null +++ b/src/vercel.ts @@ -0,0 +1,23 @@ +import { NestFactory } from '@nestjs/core'; +import { ExpressAdapter } from '@nestjs/platform-express'; +import { AppModule } from './app.module'; +import { setupGlobalMiddleware } from './setup'; +import express from 'express'; + +const expressApp = express(); + +let app: any; + +const bootstrap = async () => { + if (!app) { + app = await NestFactory.create(AppModule, new ExpressAdapter(expressApp)); + setupGlobalMiddleware(app); + await app.init(); + } + return app; +}; + +export default async (req: any, res: any) => { + await bootstrap(); + expressApp(req, res); +}; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..0a35af990b0ff1cf320ee77f1a03f7c67a58716d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "declaration": true, + "removeComments": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "target": "ES2021", + "sourceMap": true, + "outDir": "./dist", + "baseUrl": "./", + "incremental": true, + "skipLibCheck": true, + "strictNullChecks": true, + "noImplicitAny": true, + "strictBindCallApply": true, + "forceConsistentCasingInFileNames": true, + "noFallthroughCasesInSwitch": true, + "strict": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "test"] +} diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000000000000000000000000000000000000..d3d9a8cf7cfd4b4f6c5beb0b7ee5f04636bed500 --- /dev/null +++ b/vercel.json @@ -0,0 +1,15 @@ +{ + "version": 2, + "builds": [ + { + "src": "src/vercel.ts", + "use": "@vercel/node" + } + ], + "routes": [ + { + "src": "/(.*)", + "dest": "src/vercel.ts" + } + ] +}