diff --git a/.bandit.yml b/.bandit.yml index b6b3a2c8..937e9397 100644 --- a/.bandit.yml +++ b/.bandit.yml @@ -8,4 +8,8 @@ tests: skips: - - B101 # skip "assert used" check since assertions are required in pytests + # Skip "assert used" check since assertions are required in pytests + - B101 + # Skip "pseudo-random generators not suitable for security" + # b/c it's used for sample data + - B311 diff --git a/.flake8 b/.flake8 index 92ff8268..edaa6b0e 100644 --- a/.flake8 +++ b/.flake8 @@ -22,4 +22,4 @@ select = C,D,E,F,W,B,B950 # operators. It no longer agrees with PEP8. See, for example, here: # https://github.com/ambv/black/issues/21. Guido agrees here: # https://github.com/python/peps/commit/c59c4376ad233a62ca4b3a6060c81368bd21e85b. -ignore = E501,W503 +ignore = E203,E402,E501,W503 diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index c3f1cb34..932cd33b 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -5,14 +5,14 @@ on: push: branches: - develop - - production + - integration paths: - backend/** - .github/workflows/backend.yml pull_request: branches: - develop - - production + - integration paths: - backend/** - .github/workflows/backend.yml @@ -22,28 +22,12 @@ defaults: working-directory: ./backend jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '18' - - name: Restore npm cache - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} - restore-keys: ${{ runner.os }}-node- - - name: Install dependencies - run: npm ci - - name: Lint - run: npm run lint test: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '18' @@ -55,71 +39,31 @@ jobs: restore-keys: ${{ runner.os }}-node- - name: Install dependencies run: npm ci + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Run site locally run: | cp dev.env.example .env docker compose up -d db backend es - npm install -g wait-port - wait-port -t 3000 5432 9200 9300 + python -m pip install wait-for-it + wait-for-it --service localhost:3000 --timeout=10 + wait-for-it --service localhost:5432 --timeout=10 + wait-for-it --service localhost:9200 --timeout=10 + wait-for-it --service localhost:9300 --timeout=10 working-directory: ./ + - name: Sync database - run: npm run syncdb - working-directory: ./backend - - name: Test - run: npm run test -- --collectCoverage --silent - - name: Package - run: npx sls package - env: - SLS_DEBUG: '*' - test_worker: - runs-on: ubuntu-latest - timeout-minutes: 20 - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '18' - - name: Restore npm cache - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} - restore-keys: ${{ runner.os }}-node- - - name: Install dependencies - run: npm ci - - name: Build - run: npx webpack --config webpack.worker.config.js - - name: Run db locally - run: | - cp dev.env.example .env - docker compose up -d db - npm install -g wait-port - wait-port -t 3000 5432 - working-directory: ./ - - name: Test - run: node dist/worker.bundle.js - env: - CROSSFEED_COMMAND_OPTIONS: '{"scanName": "test"}' - DB_USERNAME: crossfeed - DB_PASSWORD: password - test_python: - runs-on: ubuntu-latest - timeout-minutes: 20 - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v5.0.0 - with: - python-version: '3.10' - - name: Copy .env file - run: cp ../dev.env.example .env - - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: pip- - - run: pip install -r worker/requirements.txt - - run: pytest + run: make syncdb + + - name: Lint with pylint + run: make pylint + + - name: Run pytest + run: make pytest + build_worker: runs-on: ubuntu-latest timeout-minutes: 90 @@ -139,8 +83,9 @@ jobs: - name: Build worker container run: npm run build-worker working-directory: ./backend + deploy_staging: - needs: [build_worker, lint, test, test_worker, test_python] + needs: [build_worker, test] runs-on: ubuntu-latest environment: staging concurrency: '1' @@ -150,6 +95,10 @@ jobs: - uses: actions/setup-node@v3 with: node-version: '18' + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' - name: Restore npm cache uses: actions/cache@v3 with: @@ -160,14 +109,14 @@ jobs: run: npm ci - name: Ensure domain exists - run: npx sls create_domain --stage=staging + run: npx sls create_domain --stage=staging-cd env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SLS_DEBUG: '*' - name: Deploy backend - run: npx sls deploy --stage=staging + run: npx sls deploy --stage=staging-cd env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -182,7 +131,7 @@ jobs: - name: Run syncdb run: | - aws lambda invoke --function-name crossfeed-staging-syncdb \ + aws lambda invoke --function-name crossfeed-staging-cd-syncdb \ --region us-east-1 /dev/stdout working-directory: backend env: @@ -191,24 +140,28 @@ jobs: - name: Run syncmdl run: | - aws lambda invoke --function-name crossfeed-staging-syncmdl \ + aws lambda invoke --function-name crossfeed-staging-cd-syncmdl \ --region us-east-1 /dev/stdout working-directory: backend env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - deploy_prod: - needs: [build_worker, lint, test, test_python] + deploy_integration: + needs: [build_worker, test] runs-on: ubuntu-latest - environment: production + environment: integration concurrency: '1' - if: github.event_name == 'push' && github.ref == 'refs/heads/production' + if: github.event_name == 'push' && github.ref == 'refs/heads/integration' steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '18' + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' - name: Restore npm cache uses: actions/cache@v3 with: @@ -219,21 +172,21 @@ jobs: run: npm ci - name: Ensure domain exists - run: npx sls create_domain --stage=prod + run: npx sls create_domain --stage=integration env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SLS_DEBUG: '*' - name: Deploy backend - run: npx sls deploy --stage=prod + run: npx sls deploy --stage=integration --force env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SLS_DEBUG: '*' - name: Deploy worker - run: npm run deploy-worker-prod + run: npm run deploy-worker-integration working-directory: backend env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -241,8 +194,8 @@ jobs: - name: Run syncdb run: | - aws lambda invoke --function-name crossfeed-prod-syncdb --region us-east-1 \ - /dev/stdout + aws lambda invoke --function-name crossfeed-integration-syncdb \ + --region us-east-1 /dev/stdout working-directory: backend env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -250,8 +203,8 @@ jobs: - name: Run syncmdl run: | - aws lambda invoke --function-name crossfeed-prod-syncmdl --region us-east-1 \ - /dev/stdout + aws lambda invoke --function-name crossfeed-integration-syncmdl \ + --region us-east-1 /dev/stdout working-directory: backend env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e527d368..30ea81c6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -3,7 +3,7 @@ name: CodeQL on: push: - branches: [develop, production] + branches: [develop, integration] pull_request: branches: [develop] schedule: diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index e2e2ac51..63fa8749 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -5,22 +5,20 @@ on: push: branches: - develop - - production + - integration paths: - 'frontend/**' + - 'docs/**' - '.github/workflows/frontend.yml' pull_request: branches: - develop - - production + - integration paths: - 'frontend/**' + - 'docs/**' - '.github/workflows/frontend.yml' -defaults: - run: - working-directory: ./frontend - jobs: lint: runs-on: ubuntu-latest @@ -37,8 +35,11 @@ jobs: restore-keys: ${{ runner.os }}-node- - name: Install dependencies run: npm ci + working-directory: ./frontend - name: Lint run: npm run lint + working-directory: ./frontend + test: runs-on: ubuntu-latest timeout-minutes: 20 @@ -55,10 +56,14 @@ jobs: restore-keys: ${{ runner.os }}-node- - name: Install dependencies run: npm ci + working-directory: ./frontend - name: Build run: npm run build + working-directory: ./frontend - name: Test run: npm run test + working-directory: ./frontend + deploy_staging: needs: [lint, test] runs-on: ubuntu-latest @@ -78,24 +83,39 @@ jobs: restore-keys: ${{ runner.os }}-node- - name: Install dependencies run: npm ci + working-directory: ./frontend + - name: Build Docs + run: | + npm ci + npm run build + working-directory: ./docs + - name: Copy Docs to Frontend + run: cp -R ./docs/public ./frontend/docs-build - name: Build Staging - run: cp stage.env .env && npm run build - + run: | + cp stage-cd.env .env + npm run build + working-directory: ./frontend - name: Deploy Staging - run: npx sls deploy --stage=staging + run: npx sls deploy --stage=staging-cd + working-directory: ./frontend env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SLS_DEBUG: '*' - deploy_prod: + deploy_integration: needs: [lint, test] runs-on: ubuntu-latest - environment: production + environment: integration concurrency: '1' - if: github.event_name == 'push' && github.ref == 'refs/heads/production' + if: github.event_name == 'push' && github.ref == 'refs/heads/integration' steps: - uses: actions/checkout@v3 + - name: Debug Directory Structure + run: | + pwd + ls -la . - uses: actions/setup-node@v3 with: node-version: '18' @@ -105,14 +125,30 @@ jobs: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node- - - name: Install dependencies + - name: Install Frontend Dependencies run: npm ci - - - name: Build Production - run: cp prod.env .env && npm run build - - - name: Deploy Production - run: npx sls deploy --stage=staging + working-directory: ./frontend + - name: Install Docs Dependencies + run: | + npm ci + working-directory: ./docs + - name: Build Docs + run: npm run build + working-directory: ./docs + - name: Copy Docs to Frontend + run: cp -R ./docs/public ./frontend/docs-build + - name: Build Integration + run: | + cp integration.env .env + npm run build + working-directory: ./frontend + - name: Debug Directory Structure After Build + run: | + ls -la ./frontend/docs-build + ls -la ./frontend + - name: Deploy Integration + run: npx sls deploy --stage=integration + working-directory: ./frontend env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/infrastructure.yml b/.github/workflows/infrastructure.yml index 1148ac47..a0926c85 100644 --- a/.github/workflows/infrastructure.yml +++ b/.github/workflows/infrastructure.yml @@ -8,14 +8,14 @@ on: push: branches: - develop - - production + - integration paths: - infrastructure/** - .github/workflows/infrastructure.yml pull_request: branches: - develop - - production + - integration paths: - infrastructure/** - .github/workflows/infrastructure.yml @@ -53,34 +53,37 @@ jobs: sudo mv terraform /usr/local/bin - name: Terraform init - run: terraform init -backend-config=stage.config + run: terraform init -backend-config=stage-cd.config env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-1" - name: Terraform validation run: terraform validate - name: Terraform plan - run: terraform plan -var-file=stage.tfvars -out stage.plan + run: terraform plan -var-file=stage-cd.tfvars -out stage-cd.plan env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-1" - name: Terraform apply if: github.ref == 'refs/heads/develop' - run: terraform apply stage.plan + run: terraform apply stage-cd.plan env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-1" - if: ${{ always() }} - run: rm stage.plan || true + run: rm stage-cd.plan || true - prod: + integration: timeout-minutes: 4320 runs-on: ubuntu-latest - environment: production + environment: integration concurrency: '1' steps: - uses: actions/checkout@v3 @@ -92,29 +95,33 @@ jobs: sudo mv terraform /usr/local/bin - name: Terraform init - run: terraform init -backend-config=prod.config -input=false + run: terraform init -backend-config=integration.config -input=false env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-1" - name: Terraform validation run: terraform validate env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-1" - name: Terraform plan - run: terraform plan -var-file=prod.tfvars -out prod.plan + run: terraform plan -var-file=integration.tfvars -out integration.plan env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-1" - name: Terraform apply - if: github.ref == 'refs/heads/production' - run: terraform apply prod.plan + if: github.ref == 'refs/heads/integration' + run: terraform apply integration.plan env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-1" - if: ${{ always() }} - run: rm prod.plan || true + run: rm integration.plan || true diff --git a/.gitignore b/.gitignore index 1248786c..b9595c37 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ frontend/coverage # production frontend/build +frontend/docs-build # misc .env @@ -54,3 +55,6 @@ minio-data infrastructure/lambdas/security_headers.zip *.hcl .iac-data + +# VS Code +*.vscode/* diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0b53bed3..b709a3f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -107,6 +107,7 @@ repos: - id: mypy additional_dependencies: - types-requests + - redis==5.2.0 - repo: https://github.com/asottile/pyupgrade rev: v3.10.1 hooks: diff --git a/backend/.pylintrc b/backend/.pylintrc new file mode 100644 index 00000000..4fcce85f --- /dev/null +++ b/backend/.pylintrc @@ -0,0 +1,45 @@ +[CLASSES] +min-public-methods=1 + +[DESIGN] +max-branches=20 +max-args=6 +max-locals=20 +max-nested-blocks=6 + + +[FORMAT] +max-line-length=120 + +[MESSAGES CONTROL] +disable=C0103, # Conforms to snake_case + C0301, # Line too long + C0415, # Import outside top-level (consider refactoring) + C0302, # Too many lines in module + C0413, # Wrong import position + E1101, # Class has no 'objects' member (doesn't understand it's a django model) + E0213, # Self not first argument + E0606, # Possibly used variable before assignment + E0611, # No name in module + R0801, # Duplicate code + R0901, # Too many ancestors + R0902, # Too many instance attributes + R0903, # Too few public methods + R0914, # Too many local variables + R0917, # Too many positional arguments + R1705, # Unnecessary else + R1729, # Use a generator + R1732, # Consider using 'with' + W0106, # Expression not assigned + W0108, # Lambda may not be necessary + W0212, # Access to a protected member + W0221, # Model-validate name conflict + W0511, # TODO comments + W0612, # Unused variable + W0613, # Unused argument + W0621, # Redefining name from outer scope + W0707, # Consider explicitly re-raising exception + W0718, # Catching too general exception + W0719, # Too broad exception + W1203, # Use lazy % formatting in logging functions + W1514, # Unspecified encoding diff --git a/backend/Dockerfile.pe b/backend/Dockerfile.pe index 7b91de4e..36bd0842 100644 --- a/backend/Dockerfile.pe +++ b/backend/Dockerfile.pe @@ -28,7 +28,7 @@ RUN ./aws/install # Sync the latest from cf-staging branch RUN git clone -b crossfeed-SQS https://github.com/cisagov/ATC-Framework.git && \ cd ATC-Framework && \ - git checkout 9793c3975f09cf272ba83e6c7aa7cce2034fe94b && \ + git checkout 694dc68487ab24b625f157fb5d79f675c7ec1467 && \ pip install . RUN python -m spacy download en_core_web_lg diff --git a/backend/Dockerfile.python b/backend/Dockerfile.python new file mode 100644 index 00000000..2ff1b8f2 --- /dev/null +++ b/backend/Dockerfile.python @@ -0,0 +1,20 @@ +# Dockerfile for FastAPI application +FROM python:3.11-slim + +WORKDIR /app + +# Install dependencies +COPY requirements.txt requirements.txt +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the FastAPI application +COPY src/xfd_django . + +# Copy the .pylintrc file +COPY .pylintrc . + +# Set environment variable +ENV DJANGO_SETTINGS_MODULE=xfd_django.settings + +# Command to run the FastAPI application +CMD ["uvicorn", "--workers", "4", "xfd_django.asgi:app", "--host", "0.0.0.0", "--port", "3000", "--reload"] diff --git a/backend/Dockerfile.worker b/backend/Dockerfile.worker index c1b2f96b..2ce14e23 100644 --- a/backend/Dockerfile.worker +++ b/backend/Dockerfile.worker @@ -1,84 +1,34 @@ -FROM node:18-alpine3.17 as build -USER root - -RUN apk update && apk upgrade - -WORKDIR /app - -COPY ./package* ./ - -RUN npm install -g npm@9 - -RUN npm ci - -COPY tsconfig.json ./tsconfig.json -COPY webpack.worker.config.js ./webpack.worker.config.js -COPY mock.js ./mock.js -COPY src ./src - -RUN npx webpack --config webpack.worker.config.js - -FROM golang:1.19-alpine as deps - -RUN apk update && apk upgrade +# Base image for Python environment +FROM python:3.10-bullseye WORKDIR /app -RUN apk add --no-cache curl unzip musl-dev - -RUN curl -4LO http://github.com/Findomain/Findomain/releases/latest/download/findomain-linux.zip -RUN unzip findomain-linux.zip && chmod +x findomain && cp findomain /usr/bin/findomain - -RUN go mod init crossfeed-worker - -RUN go install github.com/facebookincubator/nvdtools/...@latest -RUN go install -v github.com/owasp-amass/amass/v3/...@master - -FROM ruby:alpine as rubyBuild +# Install system dependencies +RUN apt-get update && apt-get install -y \ + wget \ + unzip \ + build-essential \ + netcat \ + --no-install-recommends && \ + apt-get clean && rm -rf /var/lib/apt/lists/* -RUN apk add --update --no-cache build-base git ruby ruby-dev openssl-dev +# Install Python dependencies from worker and application +COPY worker/requirements.txt /app/worker/requirements.txt +COPY requirements.txt /app/requirements.txt -RUN gem install bundler:2.3.21 -RUN export RUBY_VERSION=$(ruby -e "print RUBY_VERSION") && git clone https://github.com/intrigueio/intrigue-ident.git && cd intrigue-ident && git checkout ee119abeac20564e728a92ab786400126e7a97f0 && sed -i "s/2.7.2/$RUBY_VERSION/g" Gemfile && sed -i "s/2.7.2p114/$RUBY_VERSION/g" Gemfile.lock && bundle install --jobs=4 -RUN echo 'cd /app/intrigue-ident && bundle exec ruby ./util/ident.rb $@' > /usr/bin/intrigue-ident && chmod +x /usr/bin/intrigue-ident - -FROM node:18-bullseye - -#RUN apt update && apt upgrade -y && apt install zip -y -RUN apt update && apt install wget build-essential libreadline-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev zip git -y -WORKDIR /app - -RUN npm install -g pm2@5 wait-port@1 -RUN wget -c https://www.python.org/ftp/python/3.10.11/Python-3.10.11.tar.xz && tar -Jxvf Python-3.10.11.tar.xz - -RUN cd Python-3.10.11 && ./configure && make -j4 && make altinstall -RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python3.10 1 -RUN update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.10 1 -RUN pip3.10 install --upgrade pip - -RUN apt remove dav1d && apt autoclean && apt autoremove - -# Python dependencies - -COPY worker/requirements.txt worker/requirements.txt - -RUN pip install -r worker/requirements.txt +RUN pip install --no-cache-dir -r /app/requirements.txt +RUN pip install --no-cache-dir -r /app/worker/requirements.txt +# Copy worker scripts and Django project COPY worker worker +COPY src/xfd_django . -RUN wget https://publicsuffix.org/list/public_suffix_list.dat --no-use-server-timestamps - -COPY --from=build /app/dist/worker.bundle.js worker.bundle.js - -COPY --from=deps /usr/bin/findomain /usr/bin/ -COPY --from=deps /go/bin/amass /usr/bin/ -COPY --from=deps /go/bin/csv2cpe /go/bin/nvdsync /go/bin/cpe2cve /usr/bin/ - -COPY --from=deps /etc/ssl/certs /etc/ssl/certs - -COPY --from=rubyBuild /usr/bin/intrigue-ident /usr/bin/ +# Set environment variables +ENV DJANGO_SETTINGS_MODULE=xfd_django.settings +ENV PYTHONPATH="/app:$PYTHONPATH" -ENV GLOBAL_AGENT_HTTP_PROXY=http://localhost:8080 -ENV GLOBAL_AGENT_NO_PROXY=censys.io +# Make the entry script executable +RUN chmod +x worker/worker-entry.sh -CMD ["./worker/worker-entry.sh"] +# Default entrypoint +CMD ["worker/worker-entry.sh"] diff --git a/backend/Makefile b/backend/Makefile new file mode 100644 index 00000000..e8cf24b6 --- /dev/null +++ b/backend/Makefile @@ -0,0 +1,32 @@ +.PHONY: syncdb +.PHONY: populate-cache + +# Synchronize and populate the database +syncdb: + docker compose exec backend python manage.py syncdb + +syncdb-populate: + docker compose exec backend python manage.py syncdb --populate + +# Pytest +# i.e. make pytest FILE=xfd_api/tests/test_domain.py +pytest: + docker compose exec backend python manage.py makemigrations + docker compose exec backend pytest --no-migrations --reuse-db $(FILE) + +pylint: + docker compose exec backend sh -c "PYTHONPATH=/app pylint ." + +# Redis lambdas +populate-cache: + docker compose exec backend python manage.py populate_services_cache + docker compose exec backend python manage.py populate_ports_cache + docker compose exec backend python manage.py populate_vulns_cache + docker compose exec backend python manage.py populate_most_common_vulns_cache + docker compose exec backend python manage.py populate_latest_vulns_cache + docker compose exec backend python manage.py populate_severity_count_cache + docker compose exec backend python manage.py populate_by_orgs_cache + +# Run scan execution locally with RabbitMQ and Docker +local-scan-execution: + docker compose exec backend python manage.py local_scan_execution --scan-type=dnstwist --desired-count=1 --org-list="National Science Foundation (NSF) - CISA" diff --git a/backend/env.yml b/backend/env.yml index c0c44773..90d2f599 100644 --- a/backend/env.yml +++ b/backend/env.yml @@ -1,14 +1,26 @@ --- dev: DUMMY: + ENDPOINT_TYPE: REGIONAL + VPC_ENDPOINT: dummy + REGION: us-east-1 -staging: +staging-cd: + REGION: us-east-1 + ENDPOINT_TYPE: REGIONAL + COGNITO_URL: https://cognito-idp.us-east-1.amazonaws.com + BACKEND_DOMAIN: https://api.staging-cd.crossfeed.cyber.dhs.gov + EMAIL_REGION: us-east-1 + DJANGO_KEY: ${ssm:/crossfeed/staging/DJANGO_KEY} + PYTHONPATH: src/xfd_django + DJANGO_SETTINGS_MODULE: xfd_django.settings DB_DIALECT: postgres DB_PORT: 5432 DB_HOST: ${ssm:/crossfeed/staging/DATABASE_HOST} DB_NAME: ${ssm:/crossfeed/staging/DATABASE_NAME} DB_USERNAME: ${ssm:/crossfeed/staging/DATABASE_USER} DB_PASSWORD: ${ssm:/crossfeed/staging/DATABASE_PASSWORD} + DJANGO_SECRET: ${ssm:/crossfeed/staging/DJANGO_SECRECT} MDL_USERNAME: ${ssm:/crossfeed/staging/MDL_USERNAME} MDL_PASSWORD: ${ssm:/crossfeed/staging/MDL_PASSWORD} MDL_NAME: ${ssm:/crossfeed/staging/MDL_NAME} @@ -22,11 +34,14 @@ staging: INTELX_API_KEY: ${ssm:/crossfeed/staging/INTELX_API_KEY} PE_SHODAN_API_KEYS: ${ssm:/crossfeed/staging/PE_SHODAN_API_KEYS} JWT_SECRET: ${ssm:/crossfeed/staging/APP_JWT_SECRET} + JWT_ALGORITHM: ${ssm:/crossfeed/staging/JWT_ALGORITHM} + JWT_TIMEOUT_HOURS: ${ssm:/crossfeed/staging/JWT_TIMEOUT_HOURS} LOGIN_GOV_REDIRECT_URI: ${ssm:/crossfeed/staging/LOGIN_GOV_REDIRECT_URI} LOGIN_GOV_BASE_URL: ${ssm:/crossfeed/staging/LOGIN_GOV_BASE_URL} LOGIN_GOV_JWT_KEY: ${ssm:/crossfeed/staging/LOGIN_GOV_JWT_KEY} LOGIN_GOV_ISSUER: ${ssm:/crossfeed/staging/LOGIN_GOV_ISSUER} DOMAIN: ${ssm:/crossfeed/staging/DOMAIN} + CERT_DOMAIN: api.staging-cd.crossfeed.cyber.dhs.gov FARGATE_SG_ID: ${ssm:/crossfeed/staging/WORKER_SG_ID} FARGATE_SUBNET_ID: ${ssm:/crossfeed/staging/WORKER_SUBNET_ID} DMZ_CIDR: ${ssm:/crossfeed/staging/DMZ_CIDR} @@ -44,6 +59,7 @@ staging: WORKER_USER_AGENT: ${ssm:/crossfeed/staging/WORKER_USER_AGENT} WORKER_SIGNATURE_PUBLIC_KEY: ${ssm:/crossfeed/staging/WORKER_SIGNATURE_PUBLIC_KEY} ELASTICSEARCH_ENDPOINT: ${ssm:/crossfeed/staging/ELASTICSEARCH_ENDPOINT} + ELASTICACHE_ENDPOINT: ${ssm:/crossfeed/staging/ELASTICACHE_ENDPOINT} REACT_APP_TERMS_VERSION: ${ssm:/crossfeed/staging/REACT_APP_TERMS_VERSION} REACT_APP_RANDOM_PASSWORD: ${ssm:/crossfeed/staging/REACT_APP_RANDOM_PASSWORD} MATOMO_URL: http://matomo.crossfeed.local @@ -61,7 +77,142 @@ staging: REACT_APP_COGNITO_USER_POOL_ID: us-east-1_iWciADuOe REACT_APP_COGNITO_CALLBACK_URL: https://staging-cd.crossfeed.cyber.dhs.gov/okta-callback +integration: + REGION: us-east-1 + ENDPOINT_TYPE: REGIONAL + COGNITO_URL: https://cognito-idp.us-east-1.amazonaws.com + BACKEND_DOMAIN: https://api.integration.crossfeed.cyber.dhs.gov + EMAIL_REGION: us-east-1 + DJANGO_KEY: ${ssm:/crossfeed/integration/DJANGO_KEY} + PYTHONPATH: src/xfd_django + DJANGO_SETTINGS_MODULE: xfd_django.settings + DB_DIALECT: postgres + DB_PORT: 5432 + DB_HOST: ${ssm:/crossfeed/integration/DATABASE_HOST} + DB_NAME: ${ssm:/crossfeed/integration/DATABASE_NAME} + DB_USERNAME: ${ssm:/crossfeed/integration/DATABASE_USER} + DB_PASSWORD: ${ssm:/crossfeed/integration/DATABASE_PASSWORD} + MDL_USERNAME: ${ssm:/crossfeed/integration/MDL_USERNAME} + MDL_PASSWORD: ${ssm:/crossfeed/integration/MDL_PASSWORD} + MDL_NAME: ${ssm:/crossfeed/integration/MDL_NAME} + MI_ACCOUNT_NAME: ${ssm:/readysetcyber/integration/MI_ACCOUNT_NAME} + MI_PASSWORD: ${ssm:/readysetcyber/integration/MI_ACCOUNT_PASSWORD} + JWT_SECRET: ${ssm:/crossfeed/integration/APP_JWT_SECRET} + JWT_ALGORITHM: ${ssm:/crossfeed/integration/JWT_ALGORITHM} + JWT_TIMEOUT_HOURS: ${ssm:/crossfeed/integration/JWT_TIMEOUT_HOURS} + LOGIN_GOV_REDIRECT_URI: ${ssm:/crossfeed/integration/LOGIN_GOV_REDIRECT_URI} + LOGIN_GOV_BASE_URL: ${ssm:/crossfeed/integration/LOGIN_GOV_BASE_URL} + LOGIN_GOV_JWT_KEY: ${ssm:/crossfeed/integration/LOGIN_GOV_JWT_KEY} + LOGIN_GOV_ISSUER: ${ssm:/crossfeed/integration/LOGIN_GOV_ISSUER} + DOMAIN: ${ssm:/crossfeed/integration/DOMAIN} + CERT_DOMAIN: integration.crossfeed.cyber.dhs.gov + FARGATE_SG_ID: ${ssm:/crossfeed/integration/WORKER_SG_ID} + FARGATE_SUBNET_ID: ${ssm:/crossfeed/integration/WORKER_SUBNET_ID} + DMZ_CIDR: ${ssm:/crossfeed/integration/DMZ_CIDR} + FARGATE_MAX_CONCURRENCY: 300 + SCHEDULER_ORGS_PER_SCANTASK: 50 + FARGATE_CLUSTER_NAME: crossfeed-integration-worker + FARGATE_TASK_DEFINITION_NAME: crossfeed-integration-worker + FARGATE_LOG_GROUP_NAME: crossfeed-integration-worker + CROSSFEED_SUPPORT_EMAIL_SENDER: noreply@integration.crossfeed.cyber.dhs.gov + CROSSFEED_SUPPORT_EMAIL_REPLYTO: vulnerability@cisa.dhs.gov + FRONTEND_DOMAIN: https://integration.crossfeed.cyber.dhs.gov + SLS_LAMBDA_PREFIX: '${self:service}-${self:provider.stage}' + USE_COGNITO: 1 + REACT_APP_USER_POOL_ID: us-east-1_MZgKoBmkN + WORKER_USER_AGENT: ${ssm:/crossfeed/integration/WORKER_USER_AGENT} + WORKER_SIGNATURE_PUBLIC_KEY: ${ssm:/crossfeed/integration/WORKER_SIGNATURE_PUBLIC_KEY} + ELASTICSEARCH_ENDPOINT: ${ssm:/crossfeed/integration/ELASTICSEARCH_ENDPOINT} + REACT_APP_TERMS_VERSION: ${ssm:/crossfeed/integration/REACT_APP_TERMS_VERSION} + REACT_APP_RANDOM_PASSWORD: ${ssm:/crossfeed/integration/REACT_APP_RANDOM_PASSWORD} + MATOMO_URL: http://matomo.crossfeed.local + EXPORT_BUCKET_NAME: cisa-crossfeed-integration-exports + PE_API_URL: ${ssm:/crossfeed/integration/PE_API_URL} + REPORTS_BUCKET_NAME: cisa-crossfeed-integration-reports + CLOUDWATCH_BUCKET_NAME: cisa-crossfeed-integration-cloudwatch + STAGE: integration + PE_FARGATE_CLUSTER_NAME: pe-integration-worker + PE_FARGATE_TASK_DEFINITION_NAME: pe-integration-worker + QUEUE_URL: ${ssm:/crossfeed/integration/QUEUE_URL} + EMAIL_BUCKET_NAME: cisa-crossfeed-integration-html-email + REACT_APP_COGNITO_DOMAIN: crossfeed-integration-okta-idp.auth.us-east-1.amazoncognito.com + REACT_APP_COGNITO_CLIENT_ID: 6pohrlhoa20675c0rds6tcsk62 + REACT_APP_COGNITO_USER_POOL_ID: us-east-1_AuTPyIYDK + REACT_APP_COGNITO_CALLBACK_URL: https://integration.crossfeed.cyber.dhs.gov/okta-callback + ELASTICACHE_ENDPOINT: ${ssm:/crossfeed/integration/ELASTICACHE_ENDPOINT} + +staging: + REGION: us-gov-east-1 + ENDPOINT_TYPE: PRIVATE + COGNITO_URL: https://cognito-idp.us-gov-west-1.amazonaws.com + BACKEND_DOMAIN: https://api.staging.crossfeed.cyber.dhs.gov + EMAIL_REGION: us-gov-west-1 + LZ_PROXY_URL: ${ssm:/crossfeed/staging/LZ_PROXY_URL} + DJANGO_KEY: ${ssm:/crossfeed/staging/DJANGO_KEY} + PYTHONPATH: src/xfd_django + DJANGO_SETTINGS_MODULE: xfd_django.settings + DB_DIALECT: postgres + DB_PORT: 5432 + DB_HOST: ${ssm:/crossfeed/staging/DATABASE_HOST} + DB_NAME: ${ssm:/crossfeed/staging/DATABASE_NAME} + DB_USERNAME: ${ssm:/crossfeed/staging/DATABASE_USER} + DB_PASSWORD: ${ssm:/crossfeed/staging/DATABASE_PASSWORD} + JWT_SECRET: ${ssm:/crossfeed/staging/APP_JWT_SECRET} + JWT_ALGORITHM: ${ssm:/crossfeed/staging/JWT_ALGORITHM} + JWT_TIMEOUT_HOURS: ${ssm:/crossfeed/staging/JWT_TIMEOUT_HOURS} + LOGIN_GOV_REDIRECT_URI: ${ssm:/crossfeed/staging/LOGIN_GOV_REDIRECT_URI} + LOGIN_GOV_BASE_URL: ${ssm:/crossfeed/staging/LOGIN_GOV_BASE_URL} + LOGIN_GOV_JWT_KEY: ${ssm:/crossfeed/staging/LOGIN_GOV_JWT_KEY} + LOGIN_GOV_ISSUER: ${ssm:/crossfeed/staging/LOGIN_GOV_ISSUER} + DOMAIN: ${ssm:/crossfeed/staging/DOMAIN} + CERT_DOMAIN: staging.crossfeed.cyber.dhs.gov + FARGATE_SG_ID: ${ssm:/crossfeed/staging/WORKER_SG_ID} + FARGATE_SUBNET_ID: ${ssm:/crossfeed/staging/WORKER_SUBNET_ID} + FARGATE_MAX_CONCURRENCY: 100 + SCHEDULER_ORGS_PER_SCANTASK: 10 + FARGATE_CLUSTER_NAME: crossfeed-staging-worker + FARGATE_TASK_DEFINITION_NAME: crossfeed-staging-worker + FARGATE_LOG_GROUP_NAME: crossfeed-staging-worker + CROSSFEED_SUPPORT_EMAIL_SENDER: noreply@staging.crossfeed.cyber.dhs.gov + CROSSFEED_SUPPORT_EMAIL_REPLYTO: vulnerability@cisa.dhs.gov + FRONTEND_DOMAIN: https://staging.crossfeed.cyber.dhs.gov + SLS_LAMBDA_PREFIX: '${self:service}-${self:provider.stage}' + USE_COGNITO: 1 + REACT_APP_USER_POOL_ID: ${ssm:/crossfeed/staging/USER_POOL_ID} + REACT_APP_USER_POOL_KEY: ${ssm(raw):/crossfeed/staging/OKTA_USER_POOL_KEY} + WORKER_USER_AGENT: ${ssm:/crossfeed/staging/WORKER_USER_AGENT} + WORKER_SIGNATURE_PUBLIC_KEY: ${ssm:/crossfeed/staging/WORKER_SIGNATURE_PUBLIC_KEY} + ELASTICSEARCH_ENDPOINT: ${ssm:/crossfeed/staging/ELASTICSEARCH_ENDPOINT} + REACT_APP_TERMS_VERSION: ${ssm:/crossfeed/staging/REACT_APP_TERMS_VERSION} + MATOMO_URL: http://matomo.cfs.lz.us-cert.gov + EXPORT_BUCKET_NAME: cisa-crossfeed-staging-exports + PE_API_URL: ${ssm:/crossfeed/staging/PE_API_URL} + REPORTS_BUCKET_NAME: cisa-crossfeed-staging-reports + VPC_ENDPOINT: ${ssm:/crossfeed/staging/BACKEND_VPC_ENDPOINT} + CLOUDWATCH_BUCKET_NAME: cisa-crossfeed-staging-cloudwatch + STAGE: staging + PE_FARGATE_CLUSTER_NAME: pe-staging-worker + PE_FARGATE_TASK_DEFINITION_NAME: pe-staging-worker + EMAIL_BUCKET_NAME: cisa-crossfeed-staging-html-email + REACT_APP_COGNITO_DOMAIN: crossfeed-staging-okta-idp.auth-fips.us-gov-west-1.amazoncognito.com + REACT_APP_COGNITO_CLIENT_ID: 3vd67chnkk7dg3jt3nkoidf94e + REACT_APP_COGNITO_USER_POOL_ID: us-gov-west-1_N84vh2cq2 + REACT_APP_COGNITO_CALLBACK_URL: https://staging.crossfeed.cyber.dhs.gov/okta-callback + MDL_USERNAME: ${ssm:/crossfeed/staging/MDL_USERNAME} + MDL_PASSWORD: ${ssm:/crossfeed/staging/MDL_PASSWORD} + MDL_NAME: ${ssm:/crossfeed/staging/MDL_NAME} + ELASTICACHE_ENDPOINT: ${ssm:/crossfeed/staging/ELASTICACHE_ENDPOINT} + prod: + REGION: us-gov-east-1 + ENDPOINT_TYPE: PRIVATE + COGNITO_URL: https://cognito-idp.us-gov-west-1.amazonaws.com + BACKEND_DOMAIN: https://api.crossfeed.cyber.dhs.gov + EMAIL_REGION: us-gov-west-1 + LZ_PROXY_URL: ${ssm:/crossfeed/prod/LZ_PROXY_URL} + DJANGO_KEY: ${ssm:/crossfeed/prod/DJANGO_KEY} + PYTHONPATH: src/xfd_django + DJANGO_SETTINGS_MODULE: xfd_django.settings DB_DIALECT: postgres DB_PORT: 5432 DB_HOST: ${ssm:/crossfeed/prod/DATABASE_HOST} @@ -70,15 +221,17 @@ prod: DB_PASSWORD: ${ssm:/crossfeed/prod/DATABASE_PASSWORD} MDL_USERNAME: ${ssm:/crossfeed/prod/MDL_USERNAME} MDL_PASSWORD: ${ssm:/crossfeed/prod/MDL_PASSWORD} + DJANGO_SECRET: ${ssm:/crossfeed/prod/DJANGO_SECRECT} MDL_NAME: ${ssm:/crossfeed/prod/MDL_NAME} - MI_ACCOUNT_NAME: ${ssm:/readysetcyber/prod/MI_ACCOUNT_NAME} - MI_PASSWORD: ${ssm:/readysetcyber/prod/MI_ACCOUNT_PASSWORD} JWT_SECRET: ${ssm:/crossfeed/prod/APP_JWT_SECRET} + JWT_ALGORITHM: ${ssm:/crossfeed/prod/JWT_ALGORITHM} + JWT_TIMEOUT_HOURS: ${ssm:/crossfeed/prod/JWT_TIMEOUT_HOURS} LOGIN_GOV_REDIRECT_URI: ${ssm:/crossfeed/prod/LOGIN_GOV_REDIRECT_URI} LOGIN_GOV_BASE_URL: ${ssm:/crossfeed/prod/LOGIN_GOV_BASE_URL} LOGIN_GOV_JWT_KEY: ${ssm:/crossfeed/prod/LOGIN_GOV_JWT_KEY} LOGIN_GOV_ISSUER: ${ssm:/crossfeed/prod/LOGIN_GOV_ISSUER} DOMAIN: ${ssm:/crossfeed/prod/DOMAIN} + CERT_DOMAIN: staging.crossfeed.cyber.dhs.gov FARGATE_SG_ID: ${ssm:/crossfeed/prod/WORKER_SG_ID} FARGATE_SUBNET_ID: ${ssm:/crossfeed/prod/WORKER_SUBNET_ID} FARGATE_MAX_CONCURRENCY: 300 @@ -91,22 +244,23 @@ prod: FRONTEND_DOMAIN: https://crossfeed.cyber.dhs.gov SLS_LAMBDA_PREFIX: '${self:service}-${self:provider.stage}' USE_COGNITO: 1 - REACT_APP_USER_POOL_ID: us-east-1_MZgKoBmkN + REACT_APP_USER_POOL_ID: ${ssm:/crossfeed/prod/USER_POOL_ID} + REACT_APP_USER_POOL_KEY: ${ssm(raw):/crossfeed/prod/OKTA_USER_POOL_KEY} WORKER_USER_AGENT: ${ssm:/crossfeed/prod/WORKER_USER_AGENT} WORKER_SIGNATURE_PUBLIC_KEY: ${ssm:/crossfeed/prod/WORKER_SIGNATURE_PUBLIC_KEY} ELASTICSEARCH_ENDPOINT: ${ssm:/crossfeed/prod/ELASTICSEARCH_ENDPOINT} + ELASTICACHE_ENDPOINT: ${ssm:/crossfeed/prod/ELASTICACHE_ENDPOINT} REACT_APP_TERMS_VERSION: ${ssm:/crossfeed/prod/REACT_APP_TERMS_VERSION} - REACT_APP_RANDOM_PASSWORD: ${ssm:/crossfeed/prod/REACT_APP_RANDOM_PASSWORD} - MATOMO_URL: http://matomo.crossfeed.local + MATOMO_URL: http://matomo.cfs.lz.us-cert.gov EXPORT_BUCKET_NAME: cisa-crossfeed-prod-exports PE_API_URL: ${ssm:/crossfeed/prod/PE_API_URL} REPORTS_BUCKET_NAME: cisa-crossfeed-prod-reports + VPC_ENDPOINT: ${ssm:/crossfeed/prod/BACKEND_VPC_ENDPOINT} CLOUDWATCH_BUCKET_NAME: cisa-crossfeed-prod-cloudwatch STAGE: prod PE_FARGATE_CLUSTER_NAME: pe-prod-worker PE_FARGATE_TASK_DEFINITION_NAME: pe-prod-worker - QUEUE_URL: ${ssm:/crossfeed/staging/QUEUE_URL} - EMAIL_BUCKET_NAME: cisa-crossfeed-staging-html-email + EMAIL_BUCKET_NAME: cisa-crossfeed-prod-html-email REACT_APP_COGNITO_DOMAIN: crossfeed-prod-okta-idp.auth-fips.us-gov-west-1.amazoncognito.com REACT_APP_COGNITO_CLIENT_ID: 1nacnjc6sejbala9uf97eeq9o1 REACT_APP_COGNITO_USER_POOL_ID: us-gov-west-1_L1ZjQdUKA @@ -118,6 +272,18 @@ dev-vpc: subnetIds: - dummy +staging-cd-vpc: + securityGroupIds: + - ${ssm:/crossfeed/staging/SG_ID} + subnetIds: + - ${ssm:/crossfeed/staging/SUBNET_ID} + +integration-vpc: + securityGroupIds: + - ${ssm:/crossfeed/integration/SG_ID} + subnetIds: + - ${ssm:/crossfeed/integration/SUBNET_ID} + staging-vpc: securityGroupIds: - ${ssm:/crossfeed/staging/SG_ID} @@ -130,6 +296,10 @@ prod-vpc: subnetIds: - ${ssm:/crossfeed/prod/SUBNET_ID} +staging-cd-ecs-cluster: ${ssm:/crossfeed/staging/WORKER_CLUSTER_ARN} + +integration-ecs-cluster: ${ssm:/crossfeed/integration/WORKER_CLUSTER_ARN} + staging-ecs-cluster: ${ssm:/crossfeed/staging/WORKER_CLUSTER_ARN} prod-ecs-cluster: ${ssm:/crossfeed/prod/WORKER_CLUSTER_ARN} diff --git a/backend/package-lock.json b/backend/package-lock.json index 74b1c8d1..dc9a7929 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -3,95 +3,14 @@ "name": "crossfeed-backend", "packages": { "": { - "dependencies": { - "@aws-sdk/client-cloudwatch-logs": "^3.417.0", - "@aws-sdk/client-ssm": "^3.414.0", - "@elastic/elasticsearch": "~7.10.0", - "@thefaultvault/tfv-cpe-parser": "^1.3.0", - "@types/dockerode": "^3.3.19", - "amqplib": "^0.10.3", - "aws-sdk": "^2.1551.0", - "axios": "^1.6", - "body-parser": "^1.19.0", - "bufferutil": "^4.0.7", - "class-transformer": "^0.3.1", - "class-validator": "^0.14.0", - "cookie": "^0.4.1", - "cookie-parser": "^1.4.6", - "cors": "^2.8.5", - "date-fns": "^3.3.1", - "express": "^4.18.1", - "express-rate-limit": "^7.2.0", - "global-agent": "^2.2.0", - "got": "^11.8.5", - "handlebars": "^4.7.8", - "helmet": "^4.1.1", - "http-proxy-middleware": "^2.0.6", - "ip-address": "^9.0.5", - "jsdom": "^22.1", - "jsonwebtoken": "^9.0.2", - "jwks-rsa": "^3.0", - "lodash": "^4.17.21", - "nodemailer": "^6.7.2", - "openid-client": "^5.4", - "p-queue": "^6.6.2", - "p-retry": "^4.6.1", - "papaparse": "^5.3.1", - "pg": "^8.11", - "portscanner": "^2.2.0", - "reflect-metadata": "^0.1.13", - "sanitizer": "^0.1.3", - "serverless-http": "^3.2.0", - "ssl-checker": "^2.0.7", - "tar": "^7.0.0", - "tough-cookie": "^4.1.3", - "typeorm": "^0.2.45", - "utf-8-validate": "^6.0.3", - "uuid": "^9.0.1", - "ws": "^8.18.0" - }, "devDependencies": { - "@jest/globals": "^29", - "@types/aws-lambda": "^8.10.62", - "@types/cors": "^2.8.17", - "@types/dockerode": "^3.3.19", - "@types/jest": "^27", - "@types/node": "^20.6", - "@types/node-fetch": "^2.6.4", - "@types/nodemailer": "^6.4.0", - "@types/papaparse": "^5.3.0", - "@types/supertest": "^2.0", - "@types/uuid": "^9.0.7", - "@typescript-eslint/eslint-plugin": "^5.59", - "@typescript-eslint/parser": "^5.59", - "debug": "^4.3.4", - "dockerode": "^3.3.1", - "dotenv": "^16.0", - "eslint": "^8.46.0", - "eslint-config-prettier": "^6.12.0", - "eslint-plugin-prettier": "^5.0.0", - "jest": "^27", - "json-schema-to-typescript": "^13.0", - "nock": "^13.0.4", - "pg": "^8.11", - "prettier": "^3.0.0", - "sentencer": "^0.2.1", "serverless": "^3.30", + "serverless-better-credentials": "^2.0.0", "serverless-domain-manager": "^7.0", "serverless-dotenv-plugin": "^6.0.0", - "serverless-webpack": "^5.11.0", - "supertest": "^6.3", - "ts-jest": "^27", - "ts-loader": "^9.4.1", - "ts-node": "^10.9", - "ts-node-dev": "^2.0.0", - "typescript": "^4.9", - "wait-for-expect": "^3.0.2", - "webpack": "^5.88", - "webpack-cli": "^5.1" - }, - "engines": { - "node": ">=18.0.0" + "serverless-plugin-ifelse": "^1.0.7", + "serverless-prune-versions": "^1.0.4", + "serverless-python-requirements": "^6.1.1" }, "license": "ISC", "name": "crossfeed-backend", @@ -107,57 +26,19 @@ "resolved": "https://registry.npmjs.org/2-thenable/-/2-thenable-1.0.0.tgz", "version": "1.0.0" }, - "node_modules/@aashutoshrathi/word-wrap": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "version": "1.2.6" - }, - "node_modules/@acuminous/bitsyntax": { - "dependencies": { - "buffer-more-ints": "~1.0.0", - "debug": "^4.3.4", - "safe-buffer": "~5.1.2" - }, - "engines": { - "node": ">=0.8" - }, - "integrity": "sha512-29lUK80d1muEQqiUsSo+3A0yP6CdspgC95EnKBMi22Xlwt79i/En4Vr67+cXhU+cZjbti3TgGGC5wy1stIywVQ==", - "resolved": "https://registry.npmjs.org/@acuminous/bitsyntax/-/bitsyntax-0.1.2.tgz", - "version": "0.1.2" - }, - "node_modules/@acuminous/bitsyntax/node_modules/safe-buffer": { - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "version": "5.1.2" - }, - "node_modules/@ampproject/remapping": { - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "dev": true, - "engines": { - "node": ">=6.0.0" - }, - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "version": "2.2.1" - }, "node_modules/@aws-crypto/crc32": { "dependencies": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", "tslib": "^1.11.1" }, + "dev": true, "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==", "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-3.0.0.tgz", "version": "3.0.0" }, "node_modules/@aws-crypto/crc32/node_modules/tslib": { + "dev": true, "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "version": "1.14.1" @@ -183,11 +64,13 @@ "dependencies": { "tslib": "^1.11.1" }, + "dev": true, "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz", "version": "3.0.0" }, "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { + "dev": true, "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "version": "1.14.1" @@ -224,11 +107,13 @@ "@aws-sdk/util-utf8-browser": "^3.0.0", "tslib": "^1.11.1" }, + "dev": true, "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz", "version": "3.0.0" }, "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { + "dev": true, "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "version": "1.14.1" @@ -239,11 +124,13 @@ "@aws-sdk/types": "^3.222.0", "tslib": "^1.11.1" }, + "dev": true, "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz", "version": "3.0.0" }, "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { + "dev": true, "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "version": "1.14.1" @@ -252,11 +139,13 @@ "dependencies": { "tslib": "^1.11.1" }, + "dev": true, "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz", "version": "3.0.0" }, "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { + "dev": true, "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "version": "1.14.1" @@ -267,11 +156,13 @@ "@aws-sdk/util-utf8-browser": "^3.0.0", "tslib": "^1.11.1" }, + "dev": true, "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz", "version": "3.0.0" }, "node_modules/@aws-crypto/util/node_modules/tslib": { + "dev": true, "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "version": "1.14.1" @@ -920,456 +811,6 @@ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "version": "8.3.2" }, - "node_modules/@aws-sdk/client-cloudwatch-logs": { - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.414.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0", - "uuid": "^8.3.2" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-WYSNWFaj3WGXdUrZQyM5xVwLjX5e1sMbb1Jv1lDKu+VbUZGtBJ3icGXs+DXJaBxdiwgqUmok3BsEnOovHbO8KA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudwatch-logs/-/client-cloudwatch-logs-3.417.0.tgz", - "version": "3.417.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/client-sso": { - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-GvRwQ7wA3edzsQEKS70ZPhkOUZ62PAiXasjp6GxrsADEb8sV1z4FxXNl9Un/7fQxKkh9QYaK1Wu1PmhLi9MLMg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/client-sts": { - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-sdk-sts": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-xeYH3si6Imp1EWolWn1zuxJJu2AXKwXl1HDftQULwC5AWkm1mNFbXYSJN4hQul1IM+kn+JTRB0XRHByQkKhe+Q==", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-env": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-yeMOkfG20/RlzfPMtQuDB647AcPEvFEVYOWZzAWVJfldYQ5ybKr0d7sBkgG9sdAzGkK3Aw9dE4rigYI8EIqc1Q==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-ini": { - "dependencies": { - "@aws-sdk/credential-provider-env": "3.413.0", - "@aws-sdk/credential-provider-process": "3.413.0", - "@aws-sdk/credential-provider-sso": "3.414.0", - "@aws-sdk/credential-provider-web-identity": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-rlpLLx70roJL/t40opWC96LbIASejdMbRlgSCRpK8b/hKngYDe5A7SRVacaw08vYrAywxRiybxpQOwOt9b++rA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-node": { - "dependencies": { - "@aws-sdk/credential-provider-env": "3.413.0", - "@aws-sdk/credential-provider-ini": "3.414.0", - "@aws-sdk/credential-provider-process": "3.413.0", - "@aws-sdk/credential-provider-sso": "3.414.0", - "@aws-sdk/credential-provider-web-identity": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-xlkcOUKeGHInxWKKrZKIPSBCUL/ozyCldJBjmMKEj7ZmBAEiDcjpMe3pZ//LibMkCSy0b/7jtyQBE/eaIT2o0A==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-process": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-GFJdgS14GzJ1wc2DEnS44Z/34iBZ05CAkvDsLN2CMwcDgH4eZuif9/x0lwzIJBK3xVFHzYUeVvEzsqRPbCHRsw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-sso": { - "dependencies": { - "@aws-sdk/client-sso": "3.414.0", - "@aws-sdk/token-providers": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-w9g2hlkZn7WekWICRqk+L33py7KrjYMFryVpkKXOx2pjDchCfZDr6pL1ml782GZ0L3qsob4SbNpbtp13JprnWQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-web-identity": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-5cdA1Iq9JeEHtg59ERV9fdMQ7cS0JF6gH/BWA7HYEUGdSVPXCuwyEggPtG64QgpNU7SmxH+QdDG+Ldxz09ycIA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-host-header": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-r9PQx468EzPHo9wRzZLfgROpKtVdbkteMrdhsuM12bifVHjU1OHr7yfhc1OdWv39X8Xiv6F8n5r+RBQEM0S6+g==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-logger": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-jqcXDubcKvoqBy+kkEa0WoNjG6SveDeyNy+gdGnTV+DEtYjkcHrHJei4q0W5zFl0mzc+dP+z8tJF44rv95ZY3Q==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-recursion-detection": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-C6k0IKJk/A4/VBGwUjxEPG+WOjjnmWAZVRBUzaeM7PqRh+g5rLcuIV356ntV3pREVxyiSTePTYVYIHU9YXkLKQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-sdk-sts": { - "dependencies": { - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-t0u//JUyaEZRVnH5q+Ur3tWnuyIsTdwA0XOdDCZXcSlLYzGp2MI/tScLjn9IydRrceIFpFfmbjk4Nf/Q6TeBTQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-signing": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.3.1", - "@smithy/util-middleware": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-QFEnVvIKYPCermM+ESxEztgUgXzGSKpnPnohMYNvSZySqmOLu/4VvxiZbRO/BX9J3ZHcUgaw4vKm5VBZRrycxw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-user-agent": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-eVMJyeWxNBqerhfD+sE9sTjDtwQiECrfU6wpUQP5fGPhJD2cVVZPxuTuJGDZCu/4k/V61dF85IYlsPUNLdVQ6w==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/token-providers": { - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-NfP1Ib9LAWVLMTOa/1aJwt4TRrlRrNyukCpVZGfNaMnNNEoP5Rakdbcs8KFVHe/MJzU+GdKVzxQ4TgRkLOGTrA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/types": { - "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-j1xib0f/TazIFc5ySIKOlT1ujntRbaoG4LJFeEezz4ji03/wSJMI8Vi4KjzpBp8J1tTu0oRDnsxRIGixsUBeYQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/util-endpoints": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-VAwr7cITNb1L6/2XUPIbCOuhKGm0VtKCRblurrfUF2bxqG/wtuw/2Fm4ahYJPyxklOSXAMSq+RHdFWcir0YB/g==", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/util-user-agent-browser": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "bowser": "^2.11.0", - "tslib": "^2.5.0" - }, - "integrity": "sha512-7j/qWcRO2OBZBre2fC6V6M0PAS9n7k6i+VtofPkkhxC2DZszLJElqnooF9hGmVGYK3zR47Np4WjURXKIEZclWg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/util-user-agent-node": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-vHm9TVZIzfWMeDvdmoOky6VarqOt8Pr68CESHN0jyuO6XbhCDnr9rpaXiBhbSR+N1Qm7R/AfJgAhQyTMu2G1OA==", - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/protocol-http": { - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-3t3fxj+ip4EPHRC2fQ0JimMxR/qCQ1LSQJjZZVZFgROnFLYWPDgUZqpoi7chr+EzatxJVXF/Rtoi5yLHOWCoZQ==", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.5.tgz", - "version": "3.0.5" - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/uuid": { - "bin": { - "uuid": "dist/bin/uuid" - }, - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "version": "8.3.2" - }, "node_modules/@aws-sdk/client-cognito-identity": { "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", @@ -1533,458 +974,7 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.400.0.tgz", "version": "3.400.0" }, - "node_modules/@aws-sdk/client-ssm": { - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.414.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "@smithy/util-waiter": "^2.0.7", - "tslib": "^2.5.0", - "uuid": "^8.3.2" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-aaH662yFB2McqiH0ho25UBAFy9rYFocjibnuFptpHAmZKw2LyNqqroLDp6RbVQYyqWHoPOBjM2XoHz8NJoEvIA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/client-sso": { - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-GvRwQ7wA3edzsQEKS70ZPhkOUZ62PAiXasjp6GxrsADEb8sV1z4FxXNl9Un/7fQxKkh9QYaK1Wu1PmhLi9MLMg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/client-sts": { - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-sdk-sts": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-xeYH3si6Imp1EWolWn1zuxJJu2AXKwXl1HDftQULwC5AWkm1mNFbXYSJN4hQul1IM+kn+JTRB0XRHByQkKhe+Q==", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-env": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-yeMOkfG20/RlzfPMtQuDB647AcPEvFEVYOWZzAWVJfldYQ5ybKr0d7sBkgG9sdAzGkK3Aw9dE4rigYI8EIqc1Q==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-ini": { - "dependencies": { - "@aws-sdk/credential-provider-env": "3.413.0", - "@aws-sdk/credential-provider-process": "3.413.0", - "@aws-sdk/credential-provider-sso": "3.414.0", - "@aws-sdk/credential-provider-web-identity": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-rlpLLx70roJL/t40opWC96LbIASejdMbRlgSCRpK8b/hKngYDe5A7SRVacaw08vYrAywxRiybxpQOwOt9b++rA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-node": { - "dependencies": { - "@aws-sdk/credential-provider-env": "3.413.0", - "@aws-sdk/credential-provider-ini": "3.414.0", - "@aws-sdk/credential-provider-process": "3.413.0", - "@aws-sdk/credential-provider-sso": "3.414.0", - "@aws-sdk/credential-provider-web-identity": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-xlkcOUKeGHInxWKKrZKIPSBCUL/ozyCldJBjmMKEj7ZmBAEiDcjpMe3pZ//LibMkCSy0b/7jtyQBE/eaIT2o0A==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-process": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-GFJdgS14GzJ1wc2DEnS44Z/34iBZ05CAkvDsLN2CMwcDgH4eZuif9/x0lwzIJBK3xVFHzYUeVvEzsqRPbCHRsw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-sso": { - "dependencies": { - "@aws-sdk/client-sso": "3.414.0", - "@aws-sdk/token-providers": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-w9g2hlkZn7WekWICRqk+L33py7KrjYMFryVpkKXOx2pjDchCfZDr6pL1ml782GZ0L3qsob4SbNpbtp13JprnWQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.414.0.tgz", - "version": "3.414.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-web-identity": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-5cdA1Iq9JeEHtg59ERV9fdMQ7cS0JF6gH/BWA7HYEUGdSVPXCuwyEggPtG64QgpNU7SmxH+QdDG+Ldxz09ycIA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-host-header": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-r9PQx468EzPHo9wRzZLfgROpKtVdbkteMrdhsuM12bifVHjU1OHr7yfhc1OdWv39X8Xiv6F8n5r+RBQEM0S6+g==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-jqcXDubcKvoqBy+kkEa0WoNjG6SveDeyNy+gdGnTV+DEtYjkcHrHJei4q0W5zFl0mzc+dP+z8tJF44rv95ZY3Q==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-recursion-detection": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-C6k0IKJk/A4/VBGwUjxEPG+WOjjnmWAZVRBUzaeM7PqRh+g5rLcuIV356ntV3pREVxyiSTePTYVYIHU9YXkLKQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-sdk-sts": { - "dependencies": { - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-t0u//JUyaEZRVnH5q+Ur3tWnuyIsTdwA0XOdDCZXcSlLYzGp2MI/tScLjn9IydRrceIFpFfmbjk4Nf/Q6TeBTQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-signing": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.3.1", - "@smithy/util-middleware": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-QFEnVvIKYPCermM+ESxEztgUgXzGSKpnPnohMYNvSZySqmOLu/4VvxiZbRO/BX9J3ZHcUgaw4vKm5VBZRrycxw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-user-agent": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-eVMJyeWxNBqerhfD+sE9sTjDtwQiECrfU6wpUQP5fGPhJD2cVVZPxuTuJGDZCu/4k/V61dF85IYlsPUNLdVQ6w==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/token-providers": { - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-NfP1Ib9LAWVLMTOa/1aJwt4TRrlRrNyukCpVZGfNaMnNNEoP5Rakdbcs8KFVHe/MJzU+GdKVzxQ4TgRkLOGTrA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/types": { - "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-j1xib0f/TazIFc5ySIKOlT1ujntRbaoG4LJFeEezz4ji03/wSJMI8Vi4KjzpBp8J1tTu0oRDnsxRIGixsUBeYQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/util-endpoints": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-VAwr7cITNb1L6/2XUPIbCOuhKGm0VtKCRblurrfUF2bxqG/wtuw/2Fm4ahYJPyxklOSXAMSq+RHdFWcir0YB/g==", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/util-user-agent-browser": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "bowser": "^2.11.0", - "tslib": "^2.5.0" - }, - "integrity": "sha512-7j/qWcRO2OBZBre2fC6V6M0PAS9n7k6i+VtofPkkhxC2DZszLJElqnooF9hGmVGYK3zR47Np4WjURXKIEZclWg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/util-user-agent-node": { - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-vHm9TVZIzfWMeDvdmoOky6VarqOt8Pr68CESHN0jyuO6XbhCDnr9rpaXiBhbSR+N1Qm7R/AfJgAhQyTMu2G1OA==", - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.413.0.tgz", - "version": "3.413.0" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/protocol-http": { - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-3t3fxj+ip4EPHRC2fQ0JimMxR/qCQ1LSQJjZZVZFgROnFLYWPDgUZqpoi7chr+EzatxJVXF/Rtoi5yLHOWCoZQ==", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.5.tgz", - "version": "3.0.5" - }, - "node_modules/@aws-sdk/client-ssm/node_modules/uuid": { - "bin": { - "uuid": "dist/bin/uuid" - }, - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "version": "8.3.2" - }, - "node_modules/@aws-sdk/client-sso": { + "node_modules/@aws-sdk/client-sso": { "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -2587,21 +1577,6 @@ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.2.0.tgz", "version": "1.2.0" }, - "node_modules/@aws-sdk/region-config-resolver": { - "dependencies": { - "@smithy/node-config-provider": "^2.0.10", - "@smithy/types": "^2.3.1", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-h90e6yyOhvoc+1F5vFk3C5mxwB8RSDEMKTO/fxexyur94seczZ1yxyYkTMZv30oc9RUiToABlHNrh/wxL7TZPQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.413.0.tgz", - "version": "3.413.0" - }, "node_modules/@aws-sdk/signature-v4-multi-region": { "dependencies": { "@aws-sdk/types": "3.398.0", @@ -2893,6 +1868,7 @@ "@smithy/types": "^2.2.2", "tslib": "^2.5.0" }, + "dev": true, "engines": { "node": ">=14.0.0" }, @@ -2929,6 +1905,7 @@ "dependencies": { "tslib": "^2.5.0" }, + "dev": true, "engines": { "node": ">=14.0.0" }, @@ -3011,6 +1988,7 @@ "dependencies": { "tslib": "^2.3.1" }, + "dev": true, "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz", "version": "3.259.0" @@ -3027,14465 +2005,5045 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.310.0.tgz", "version": "3.310.0" }, - "node_modules/@babel/code-frame": { + "node_modules/@iarna/toml": { + "dev": true, + "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==", + "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", + "version": "2.2.5" + }, + "node_modules/@kwsites/file-exists": { "dependencies": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" + "debug": "^4.1.1" }, "dev": true, - "engines": { - "node": ">=6.9.0" - }, - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "version": "7.22.13" + "integrity": "sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==", + "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz", + "version": "1.1.1" + }, + "node_modules/@kwsites/promise-deferred": { + "dev": true, + "integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==", + "resolved": "https://registry.npmjs.org/@kwsites/promise-deferred/-/promise-deferred-1.1.1.tgz", + "version": "1.1.1" }, - "node_modules/@babel/code-frame/node_modules/ansi-styles": { + "node_modules/@nodelib/fs.scandir": { "dependencies": { - "color-convert": "^1.9.0" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" }, "dev": true, "engines": { - "node": ">=4" + "node": ">= 8" }, - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "version": "3.2.1" + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "version": "2.1.5" }, - "node_modules/@babel/code-frame/node_modules/chalk": { - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, + "node_modules/@nodelib/fs.stat": { "dev": true, "engines": { - "node": ">=4" + "node": ">= 8" }, - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "version": "2.4.2" + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@babel/code-frame/node_modules/color-convert": { + "node_modules/@nodelib/fs.walk": { "dependencies": { - "color-name": "1.1.3" - }, - "dev": true, - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "version": "1.9.3" - }, - "node_modules/@babel/code-frame/node_modules/color-name": { - "dev": true, - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "version": "1.1.3" - }, - "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { - "dev": true, - "engines": { - "node": ">=0.8.0" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" }, - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/@babel/code-frame/node_modules/has-flag": { "dev": true, "engines": { - "node": ">=4" + "node": ">= 8" }, - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "version": "1.2.8" }, - "node_modules/@babel/code-frame/node_modules/supports-color": { + "node_modules/@serverless/dashboard-plugin": { "dependencies": { - "has-flag": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=4" + "@aws-sdk/client-cloudformation": "^3.410.0", + "@aws-sdk/client-sts": "^3.410.0", + "@serverless/event-mocks": "^1.1.1", + "@serverless/platform-client": "^4.4.0", + "@serverless/utils": "^6.14.0", + "child-process-ext": "^3.0.1", + "chokidar": "^3.5.3", + "flat": "^5.0.2", + "fs-extra": "^9.1.0", + "js-yaml": "^4.1.0", + "jszip": "^3.10.1", + "lodash": "^4.17.21", + "memoizee": "^0.4.15", + "ncjsm": "^4.3.2", + "node-dir": "^0.1.17", + "node-fetch": "^2.6.8", + "open": "^7.4.2", + "semver": "^7.3.8", + "simple-git": "^3.16.0", + "timers-ext": "^0.1.7", + "type": "^2.7.2", + "uuid": "^8.3.2", + "yamljs": "^0.3.0" }, - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "version": "5.5.0" - }, - "node_modules/@babel/compat-data": { "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=12.0" }, - "integrity": "sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.9.tgz", - "version": "7.22.9" + "integrity": "sha512-mAiTU2ERsDHdCrXJa/tihh/r+8ZwSuYYBqln3SkwuBD/49ct9QrK7S00cpiqFoY/geMFlHpOkriGzCPz6UP/rw==", + "resolved": "https://registry.npmjs.org/@serverless/dashboard-plugin/-/dashboard-plugin-7.1.0.tgz", + "version": "7.1.0" }, - "node_modules/@babel/core": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/client-sso": { "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.10", - "@babel/generator": "^7.22.10", - "@babel/helper-compilation-targets": "^7.22.10", - "@babel/helper-module-transforms": "^7.22.9", - "@babel/helpers": "^7.22.11", - "@babel/parser": "^7.22.11", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.11", - "@babel/types": "^7.22.11", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "3.451.0", + "@aws-sdk/middleware-host-header": "3.451.0", + "@aws-sdk/middleware-logger": "3.451.0", + "@aws-sdk/middleware-recursion-detection": "3.451.0", + "@aws-sdk/middleware-user-agent": "3.451.0", + "@aws-sdk/region-config-resolver": "3.451.0", + "@aws-sdk/types": "3.451.0", + "@aws-sdk/util-endpoints": "3.451.0", + "@aws-sdk/util-user-agent-browser": "3.451.0", + "@aws-sdk/util-user-agent-node": "3.451.0", + "@smithy/config-resolver": "^2.0.18", + "@smithy/fetch-http-handler": "^2.2.6", + "@smithy/hash-node": "^2.0.15", + "@smithy/invalid-dependency": "^2.0.13", + "@smithy/middleware-content-length": "^2.0.15", + "@smithy/middleware-endpoint": "^2.2.0", + "@smithy/middleware-retry": "^2.0.20", + "@smithy/middleware-serde": "^2.0.13", + "@smithy/middleware-stack": "^2.0.7", + "@smithy/node-config-provider": "^2.1.5", + "@smithy/node-http-handler": "^2.1.9", + "@smithy/protocol-http": "^3.0.9", + "@smithy/smithy-client": "^2.1.15", + "@smithy/types": "^2.5.0", + "@smithy/url-parser": "^2.0.13", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.0", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.19", + "@smithy/util-defaults-mode-node": "^2.0.25", + "@smithy/util-endpoints": "^1.0.4", + "@smithy/util-retry": "^2.0.6", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" + "node": ">=14.0.0" }, - "integrity": "sha512-lh7RJrtPdhibbxndr6/xx0w8+CVlY5FJZiaSz908Fpy+G0xkBFTvwLcKJFF4PJxVfGhVWNebikpWGnOoC71juQ==", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.11.tgz", - "version": "7.22.11" + "integrity": "sha512-KkYSke3Pdv3MfVH/5fT528+MKjMyPKlcLcd4zQb0x6/7Bl7EHrPh1JZYjzPLHelb+UY5X0qN8+cb8iSu1eiwIQ==", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/generator": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/client-sts": { "dependencies": { - "@babel/types": "^7.23.3", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "3.451.0", + "@aws-sdk/credential-provider-node": "3.451.0", + "@aws-sdk/middleware-host-header": "3.451.0", + "@aws-sdk/middleware-logger": "3.451.0", + "@aws-sdk/middleware-recursion-detection": "3.451.0", + "@aws-sdk/middleware-sdk-sts": "3.451.0", + "@aws-sdk/middleware-signing": "3.451.0", + "@aws-sdk/middleware-user-agent": "3.451.0", + "@aws-sdk/region-config-resolver": "3.451.0", + "@aws-sdk/types": "3.451.0", + "@aws-sdk/util-endpoints": "3.451.0", + "@aws-sdk/util-user-agent-browser": "3.451.0", + "@aws-sdk/util-user-agent-node": "3.451.0", + "@smithy/config-resolver": "^2.0.18", + "@smithy/fetch-http-handler": "^2.2.6", + "@smithy/hash-node": "^2.0.15", + "@smithy/invalid-dependency": "^2.0.13", + "@smithy/middleware-content-length": "^2.0.15", + "@smithy/middleware-endpoint": "^2.2.0", + "@smithy/middleware-retry": "^2.0.20", + "@smithy/middleware-serde": "^2.0.13", + "@smithy/middleware-stack": "^2.0.7", + "@smithy/node-config-provider": "^2.1.5", + "@smithy/node-http-handler": "^2.1.9", + "@smithy/protocol-http": "^3.0.9", + "@smithy/smithy-client": "^2.1.15", + "@smithy/types": "^2.5.0", + "@smithy/url-parser": "^2.0.13", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.0", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.19", + "@smithy/util-defaults-mode-node": "^2.0.25", + "@smithy/util-endpoints": "^1.0.4", + "@smithy/util-retry": "^2.0.6", + "@smithy/util-utf8": "^2.0.2", + "fast-xml-parser": "4.2.5", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-keeZWAV4LU3tW0qRi19HRpabC/ilM0HRBBzf9/k8FFiG4KVpiv0FIy4hHfLfFQZNhziCTPTmd59zoyv6DNISzg==", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.3.tgz", - "version": "7.23.3" + "integrity": "sha512-48NcIRxWBdP1fom6RSjwn2R2u7SE7eeV3p+c4s7ukEOfrHhBxJfn3EpqBVQMGzdiU55qFImy+Fe81iA2lXq3Jw==", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-compilation-targets": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-env": { "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.5", - "browserslist": "^4.21.9", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "dev": true, - "engines": { - "node": ">=6.9.0" + "@aws-sdk/types": "3.451.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, - "integrity": "sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.10.tgz", - "version": "7.22.10" - }, - "node_modules/@babel/helper-environment-visitor": { "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "version": "7.22.20" + "integrity": "sha512-9dAav7DcRgaF7xCJEQR5ER9ErXxnu/tdnVJ+UPmb1NPeIZdESv1A3lxFDEq1Fs8c4/lzAj9BpshGyJVIZwZDKg==", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-function-name": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-ini": { "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" + "@aws-sdk/credential-provider-env": "3.451.0", + "@aws-sdk/credential-provider-process": "3.451.0", + "@aws-sdk/credential-provider-sso": "3.451.0", + "@aws-sdk/credential-provider-web-identity": "3.451.0", + "@aws-sdk/types": "3.451.0", + "@smithy/credential-provider-imds": "^2.0.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "version": "7.23.0" + "integrity": "sha512-TySt64Ci5/ZbqFw1F9Z0FIGvYx5JSC9e6gqDnizIYd8eMnn8wFRUscRrD7pIHKfrhvVKN5h0GdYovmMO/FMCBw==", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-hoist-variables": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-node": { "dependencies": { - "@babel/types": "^7.22.5" + "@aws-sdk/credential-provider-env": "3.451.0", + "@aws-sdk/credential-provider-ini": "3.451.0", + "@aws-sdk/credential-provider-process": "3.451.0", + "@aws-sdk/credential-provider-sso": "3.451.0", + "@aws-sdk/credential-provider-web-identity": "3.451.0", + "@aws-sdk/types": "3.451.0", + "@smithy/credential-provider-imds": "^2.0.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "version": "7.22.5" + "integrity": "sha512-AEwM1WPyxUdKrKyUsKyFqqRFGU70e4qlDyrtBxJnSU9NRLZI8tfEZ67bN7fHSxBUBODgDXpMSlSvJiBLh5/3pw==", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-module-imports": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-process": { "dependencies": { - "@babel/types": "^7.22.5" + "@aws-sdk/types": "3.451.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", - "version": "7.22.5" + "integrity": "sha512-HQywSdKeD5PErcLLnZfSyCJO+6T+ZyzF+Lm/QgscSC+CbSUSIPi//s15qhBRVely/3KBV6AywxwNH+5eYgt4lQ==", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-module-transforms": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-sso": { "dependencies": { - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-module-imports": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.5" + "@aws-sdk/client-sso": "3.451.0", + "@aws-sdk/token-providers": "3.451.0", + "@aws-sdk/types": "3.451.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" - }, - "integrity": "sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==", - "peerDependencies": { - "@babel/core": "^7.0.0" + "node": ">=14.0.0" }, - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz", - "version": "7.22.9" + "integrity": "sha512-Usm/N51+unOt8ID4HnQzxIjUJDrkAQ1vyTOC0gSEEJ7h64NSSPGD5yhN7il5WcErtRd3EEtT1a8/GTC5TdBctg==", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-plugin-utils": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-web-identity": { + "dependencies": { + "@aws-sdk/types": "3.451.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" + }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "version": "7.22.5" + "integrity": "sha512-Xtg3Qw65EfDjWNG7o2xD6sEmumPfsy3WDGjk2phEzVg8s7hcZGxf5wYwe6UY7RJvlEKrU0rFA+AMn6Hfj5oOzg==", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-simple-access": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-host-header": { "dependencies": { - "@babel/types": "^7.22.5" + "@aws-sdk/types": "3.451.0", + "@smithy/protocol-http": "^3.0.9", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "version": "7.22.5" + "integrity": "sha512-j8a5jAfhWmsK99i2k8oR8zzQgXrsJtgrLxc3js6U+525mcZytoiDndkWTmD5fjJ1byU1U2E5TaPq+QJeDip05Q==", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-split-export-declaration": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-logger": { "dependencies": { - "@babel/types": "^7.22.5" + "@aws-sdk/types": "3.451.0", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "version": "7.22.6" - }, - "node_modules/@babel/helper-string-parser": { - "dev": true, - "engines": { - "node": ">=6.9.0" - }, - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "version": "7.22.5" + "integrity": "sha512-0kHrYEyVeB2QBfP6TfbI240aRtatLZtcErJbhpiNUb+CQPgEL3crIjgVE8yYiJumZ7f0jyjo8HLPkwD1/2APaw==", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helper-validator-identifier": { - "dev": true, - "engines": { - "node": ">=6.9.0" + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-recursion-detection": { + "dependencies": { + "@aws-sdk/types": "3.451.0", + "@smithy/protocol-http": "^3.0.9", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "version": "7.22.20" - }, - "node_modules/@babel/helper-validator-option": { "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", - "version": "7.22.5" + "integrity": "sha512-J6jL6gJ7orjHGM70KDRcCP7so/J2SnkN4vZ9YRLTeeZY6zvBuHDjX8GCIgSqPn/nXFXckZO8XSnA7u6+3TAT0w==", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/helpers": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-sdk-sts": { "dependencies": { - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.11", - "@babel/types": "^7.22.11" + "@aws-sdk/middleware-signing": "3.451.0", + "@aws-sdk/types": "3.451.0", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-vyOXC8PBWaGc5h7GMsNx68OH33cypkEDJCHvYVVgVbbxJDROYVtexSk0gK5iCF1xNjRIN2s8ai7hwkWDq5szWg==", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.11.tgz", - "version": "7.22.11" + "integrity": "sha512-UJ6UfVUEgp0KIztxpAeelPXI5MLj9wUtUCqYeIMP7C1ZhoEMNm3G39VLkGN43dNhBf1LqjsV9jkKMZbVfYXuwg==", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/highlight": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-signing": { "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "@aws-sdk/types": "3.451.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/protocol-http": "^3.0.9", + "@smithy/signature-v4": "^2.0.0", + "@smithy/types": "^2.5.0", + "@smithy/util-middleware": "^2.0.6", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=14.0.0" }, - "integrity": "sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.13.tgz", - "version": "7.22.13" + "integrity": "sha512-s5ZlcIoLNg1Huj4Qp06iKniE8nJt/Pj1B/fjhWc6cCPCM7XJYUCejCnRh6C5ZJoBEYodjuwZBejPc1Wh3j+znA==", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-user-agent": { "dependencies": { - "color-convert": "^1.9.0" + "@aws-sdk/types": "3.451.0", + "@aws-sdk/util-endpoints": "3.451.0", + "@smithy/protocol-http": "^3.0.9", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=4" + "node": ">=14.0.0" }, - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "version": "3.2.1" + "integrity": "sha512-8NM/0JiKLNvT9wtAQVl1DFW0cEO7OvZyLSUBLNLTHqyvOZxKaZ8YFk7d8PL6l76LeUKRxq4NMxfZQlUIRe0eSA==", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/highlight/node_modules/chalk": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/region-config-resolver": { "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "@smithy/node-config-provider": "^2.1.5", + "@smithy/types": "^2.5.0", + "@smithy/util-config-provider": "^2.0.0", + "@smithy/util-middleware": "^2.0.6", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=4" + "node": ">=14.0.0" }, - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "version": "2.4.2" + "integrity": "sha512-3iMf4OwzrFb4tAAmoROXaiORUk2FvSejnHIw/XHvf/jjR4EqGGF95NZP/n/MeFZMizJWVssrwS412GmoEyoqhg==", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/highlight/node_modules/color-convert": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/token-providers": { "dependencies": { - "color-name": "1.1.3" - }, - "dev": true, - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "version": "1.9.3" - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "dev": true, - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "version": "1.1.3" - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "dev": true, - "engines": { - "node": ">=0.8.0" + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/middleware-host-header": "3.451.0", + "@aws-sdk/middleware-logger": "3.451.0", + "@aws-sdk/middleware-recursion-detection": "3.451.0", + "@aws-sdk/middleware-user-agent": "3.451.0", + "@aws-sdk/region-config-resolver": "3.451.0", + "@aws-sdk/types": "3.451.0", + "@aws-sdk/util-endpoints": "3.451.0", + "@aws-sdk/util-user-agent-browser": "3.451.0", + "@aws-sdk/util-user-agent-node": "3.451.0", + "@smithy/config-resolver": "^2.0.18", + "@smithy/fetch-http-handler": "^2.2.6", + "@smithy/hash-node": "^2.0.15", + "@smithy/invalid-dependency": "^2.0.13", + "@smithy/middleware-content-length": "^2.0.15", + "@smithy/middleware-endpoint": "^2.2.0", + "@smithy/middleware-retry": "^2.0.20", + "@smithy/middleware-serde": "^2.0.13", + "@smithy/middleware-stack": "^2.0.7", + "@smithy/node-config-provider": "^2.1.5", + "@smithy/node-http-handler": "^2.1.9", + "@smithy/property-provider": "^2.0.0", + "@smithy/protocol-http": "^3.0.9", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/smithy-client": "^2.1.15", + "@smithy/types": "^2.5.0", + "@smithy/url-parser": "^2.0.13", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.0", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.19", + "@smithy/util-defaults-mode-node": "^2.0.25", + "@smithy/util-endpoints": "^1.0.4", + "@smithy/util-retry": "^2.0.6", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" }, - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/@babel/highlight/node_modules/has-flag": { "dev": true, "engines": { - "node": ">=4" + "node": ">=14.0.0" }, - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-ij1L5iUbn6CwxVOT1PG4NFjsrsKN9c4N1YEM0lkl6DwmaNOscjLKGSNyj9M118vSWsOs1ZDbTwtj++h0O/BWrQ==", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/highlight/node_modules/supports-color": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/types": { "dependencies": { - "has-flag": "^3.0.0" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=4" + "node": ">=14.0.0" }, - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "version": "5.5.0" + "integrity": "sha512-rhK+qeYwCIs+laJfWCcrYEjay2FR/9VABZJ2NRM89jV/fKqGVQR52E5DQqrI+oEIL5JHMhhnr4N4fyECMS35lw==", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/parser": { - "bin": { - "parser": "bin/babel-parser.js" + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/util-endpoints": { + "dependencies": { + "@aws-sdk/types": "3.451.0", + "@smithy/util-endpoints": "^1.0.4", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw==", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.3.tgz", - "version": "7.23.3" + "integrity": "sha512-giqLGBTnRIcKkDqwU7+GQhKbtJ5Ku35cjGQIfMyOga6pwTBUbaK0xW1Sdd8sBQ1GhApscnChzI9o/R9x0368vw==", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/plugin-syntax-async-generators": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/util-user-agent-browser": { "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "@aws-sdk/types": "3.451.0", + "@smithy/types": "^2.5.0", + "bowser": "^2.11.0", + "tslib": "^2.5.0" }, "dev": true, - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "version": "7.8.4" + "integrity": "sha512-Ws5mG3J0TQifH7OTcMrCTexo7HeSAc3cBgjfhS/ofzPUzVCtsyg0G7I6T7wl7vJJETix2Kst2cpOsxygPgPD9w==", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/plugin-syntax-bigint": { + "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/util-user-agent-node": { "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "@aws-sdk/types": "3.451.0", + "@smithy/node-config-provider": "^2.1.5", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "engines": { + "node": ">=14.0.0" + }, + "integrity": "sha512-TBzm6P+ql4mkGFAjPlO1CI+w3yUT+NulaiALjl/jNX/nnUp6HsJsVxJf4nVFQTG5KRV0iqMypcs7I3KIhH+LmA==", "peerDependencies": { - "@babel/core": "^7.0.0-0" + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "version": "7.8.3" + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.451.0.tgz", + "version": "3.451.0" }, - "node_modules/@babel/plugin-syntax-class-properties": { + "node_modules/@serverless/dashboard-plugin/node_modules/@smithy/protocol-http": { "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": ">=14.0.0" }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "version": "7.12.13" + "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", + "version": "3.0.9" }, - "node_modules/@babel/plugin-syntax-import-meta": { + "node_modules/@serverless/dashboard-plugin/node_modules/child-process-ext": { "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "cross-spawn": "^7.0.3", + "es5-ext": "^0.10.62", + "log": "^6.3.1", + "split2": "^3.2.2", + "stream-promise": "^3.2.0" }, "dev": true, - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": ">=8.0" }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "version": "7.10.4" + "integrity": "sha512-oBePsLbQpTJFxzwyCvs9yWWF0OEM6vGGepHwt1stqmX7QQqOuDc8j2ywdvAs9Tvi44TT7d9ackqhR4Q10l1u8w==", + "resolved": "https://registry.npmjs.org/child-process-ext/-/child-process-ext-3.0.2.tgz", + "version": "3.0.2" }, - "node_modules/@babel/plugin-syntax-json-strings": { + "node_modules/@serverless/dashboard-plugin/node_modules/fs-extra": { "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "dev": true, - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": ">=10" }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "version": "7.8.3" + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "version": "9.1.0" }, - "node_modules/@babel/plugin-syntax-jsx": { + "node_modules/@serverless/dashboard-plugin/node_modules/open": { "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=8" }, - "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", - "version": "7.22.5" + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "version": "7.4.2" }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "node_modules/@serverless/dashboard-plugin/node_modules/split2": { "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "readable-stream": "^3.0.0" }, "dev": true, - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "version": "7.10.4" + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "version": "3.2.2" }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, + "node_modules/@serverless/dashboard-plugin/node_modules/type": { "dev": true, - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "version": "7.8.3" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "node_modules/@serverless/dashboard-plugin/node_modules/uuid": { + "bin": { + "uuid": "dist/bin/uuid" }, "dev": true, - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "version": "7.10.4" + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "version": "8.3.2" }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { + "node_modules/@serverless/event-mocks": { "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "@types/lodash": "^4.14.123", + "lodash": "^4.17.11" }, "dev": true, - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "version": "7.8.3" + "integrity": "sha512-YAV5V/y+XIOfd+HEVeXfPWZb8C6QLruFk9tBivoX2roQLWVq145s4uxf8D0QioCueuRzkukHUS4JIj+KVoS34A==", + "resolved": "https://registry.npmjs.org/@serverless/event-mocks/-/event-mocks-1.1.1.tgz", + "version": "1.1.1" }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "node_modules/@serverless/platform-client": { "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "adm-zip": "^0.5.5", + "archiver": "^5.3.0", + "axios": "^1.6.2", + "fast-glob": "^3.2.7", + "https-proxy-agent": "^5.0.0", + "ignore": "^5.1.8", + "isomorphic-ws": "^4.0.1", + "js-yaml": "^3.14.1", + "jwt-decode": "^2.2.0", + "minimatch": "^3.0.4", + "querystring": "^0.2.1", + "run-parallel-limit": "^1.1.0", + "throat": "^5.0.0", + "traverse": "^0.6.6", + "ws": "^7.5.3" }, "dev": true, - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": ">=10.0" }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "version": "7.8.3" + "integrity": "sha512-urL7SNefRqC2EOFDcpvm8fyn/06B5yXWneKpyGw7ylGt0Qr9JHZCB9TiUeTkIpPUNz0jTvKUaJ2+M/JNEiaVIA==", + "resolved": "https://registry.npmjs.org/@serverless/platform-client/-/platform-client-4.4.0.tgz", + "version": "4.4.0" }, - "node_modules/@babel/plugin-syntax-optional-chaining": { + "node_modules/@serverless/platform-client/node_modules/argparse": { "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "sprintf-js": "~1.0.2" }, "dev": true, - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "version": "7.8.3" + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "version": "1.0.10" }, - "node_modules/@babel/plugin-syntax-top-level-await": { + "node_modules/@serverless/platform-client/node_modules/js-yaml": { + "bin": { + "js-yaml": "bin/js-yaml.js" + }, "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, "dev": true, + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "version": "3.14.1" + }, + "node_modules/@serverless/platform-client/node_modules/querystring": { + "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "dev": true, "engines": { - "node": ">=6.9.0" - }, - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=0.4.x" }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "version": "7.14.5" + "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", + "version": "0.2.1" }, - "node_modules/@babel/plugin-syntax-typescript": { - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, + "node_modules/@serverless/platform-client/node_modules/throat": { + "dev": true, + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "version": "5.0.0" + }, + "node_modules/@serverless/platform-client/node_modules/ws": { "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=8.3.0" }, - "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", - "version": "7.22.5" - }, - "node_modules/@babel/template": { - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" }, - "dev": true, - "engines": { - "node": ">=6.9.0" + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } }, - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "version": "7.22.15" + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "version": "7.5.10" }, - "node_modules/@babel/traverse": { + "node_modules/@serverless/utils": { "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.3", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.3", - "@babel/types": "^7.23.3", - "debug": "^4.1.0", - "globals": "^11.1.0" + "archive-type": "^4.0.0", + "chalk": "^4.1.2", + "ci-info": "^3.8.0", + "cli-progress-footer": "^2.3.2", + "content-disposition": "^0.5.4", + "d": "^1.0.1", + "decompress": "^4.2.1", + "event-emitter": "^0.3.5", + "ext": "^1.7.0", + "ext-name": "^5.0.0", + "file-type": "^16.5.4", + "filenamify": "^4.3.0", + "get-stream": "^6.0.1", + "got": "^11.8.6", + "inquirer": "^8.2.5", + "js-yaml": "^4.1.0", + "jwt-decode": "^3.1.2", + "lodash": "^4.17.21", + "log": "^6.3.1", + "log-node": "^8.0.3", + "make-dir": "^4.0.0", + "memoizee": "^0.4.15", + "ms": "^2.1.3", + "ncjsm": "^4.3.2", + "node-fetch": "^2.6.11", + "open": "^8.4.2", + "p-event": "^4.2.0", + "supports-color": "^8.1.1", + "timers-ext": "^0.1.7", + "type": "^2.7.2", + "uni-global": "^1.0.0", + "uuid": "^8.3.2", + "write-file-atomic": "^4.0.2" }, "dev": true, "engines": { - "node": ">=6.9.0" + "node": ">=12.0" }, - "integrity": "sha512-+K0yF1/9yR0oHdE0StHuEj3uTPzwwbrLGfNOndVJVV2TqA5+j3oljJUb4nmB954FLGjNem976+B+eDuLIjesiQ==", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.3.tgz", - "version": "7.23.3" + "integrity": "sha512-7eDbqKv/OBd11jjdZjUwFGN8sHWkeUqLeHXHQxQ1azja2IM7WIH+z/aLgzR6LhB3/MINNwtjesDpjGqTMj2JKQ==", + "resolved": "https://registry.npmjs.org/@serverless/utils/-/utils-6.15.0.tgz", + "version": "6.15.0" }, - "node_modules/@babel/traverse/node_modules/globals": { + "node_modules/@serverless/utils/node_modules/get-stream": { "dev": true, "engines": { - "node": ">=4" - }, - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "version": "11.12.0" - }, - "node_modules/@babel/types": { - "dependencies": { - "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" + "node": ">=10" }, - "dev": true, - "engines": { - "node": ">=6.9.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw==", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.3.tgz", - "version": "7.23.3" + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "version": "6.0.1" }, - "node_modules/@balena/dockerignore": { + "node_modules/@serverless/utils/node_modules/jwt-decode": { "dev": true, - "integrity": "sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q==", - "resolved": "https://registry.npmjs.org/@balena/dockerignore/-/dockerignore-1.0.2.tgz", - "version": "1.0.2" + "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", + "version": "3.1.2" }, - "node_modules/@bcherny/json-schema-ref-parser": { + "node_modules/@serverless/utils/node_modules/supports-color": { "dependencies": { - "@jsdevtools/ono": "^7.1.3", - "@types/json-schema": "^7.0.6", - "call-me-maybe": "^1.0.1", - "js-yaml": "^4.1.0" + "has-flag": "^4.0.0" }, "dev": true, "engines": { - "node": ">= 16" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/philsturgeon" + "url": "https://github.com/chalk/supports-color?sponsor=1" }, - "integrity": "sha512-E/jKbPoca1tfUPj3iSbitDZTGnq6FUFjkH6L8U2oDwSuwK1WhnnVtCG7oFOTg/DDnyoXbQYUiUiGOibHqaGVnw==", - "resolved": "https://registry.npmjs.org/@bcherny/json-schema-ref-parser/-/json-schema-ref-parser-10.0.5-fork.tgz", - "version": "10.0.5-fork" + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "version": "8.1.1" }, - "node_modules/@bcoe/v8-coverage": { + "node_modules/@serverless/utils/node_modules/type": { "dev": true, - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "version": "0.2.3" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/@cspotcode/source-map-support": { - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" + "node_modules/@serverless/utils/node_modules/uuid": { + "bin": { + "uuid": "dist/bin/uuid" }, "dev": true, - "engines": { - "node": ">=12" - }, - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "version": "0.8.1" + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "version": "8.3.2" }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "node_modules/@serverless/utils/node_modules/write-file-atomic": { "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" }, "dev": true, - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "version": "0.3.9" + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "version": "4.0.2" }, - "node_modules/@discoveryjs/json-ext": { + "node_modules/@sindresorhus/is": { "dev": true, "engines": { - "node": ">=10.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" }, - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "version": "0.5.7" + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "version": "4.6.0" }, - "node_modules/@elastic/elasticsearch": { + "node_modules/@smithy/abort-controller": { "dependencies": { - "debug": "^4.1.1", - "hpagent": "^0.1.1", - "ms": "^2.1.1", - "pump": "^3.0.0", - "secure-json-parse": "^2.1.0" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, + "dev": true, "engines": { - "node": ">=8" + "node": ">=14.0.0" }, - "integrity": "sha512-vXtMAQf5/DwqeryQgRriMtnFppJNLc/R7/R0D8E+wG5/kGM5i7mg+Hi7TM4NZEuXgtzZ2a/Nf7aR0vLyrxOK/w==", - "resolved": "https://registry.npmjs.org/@elastic/elasticsearch/-/elasticsearch-7.10.0.tgz", - "version": "7.10.0" + "integrity": "sha512-eeOPD+GF9BzF/Mjy3PICLePx4l0f3rG/nQegQHRLTloN5p1lSJJNZsyn+FzDnW8P2AduragZqJdtKNCxXozB1Q==", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-2.0.13.tgz", + "version": "2.0.13" }, - "node_modules/@eslint-community/eslint-utils": { + "node_modules/@smithy/chunked-blob-reader": { "dependencies": { - "eslint-visitor-keys": "^3.3.0" + "tslib": "^2.5.0" }, "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + "integrity": "sha512-k+J4GHJsMSAIQPChGBrjEmGS+WbPonCXesoqP9fynIqjn7rdOThdH8FAeCmokP9mxTYKQAKoHCLPzNlm6gh7Wg==", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-2.0.0.tgz", + "version": "2.0.0" + }, + "node_modules/@smithy/chunked-blob-reader-native": { + "dependencies": { + "@smithy/util-base64": "^2.0.0", + "tslib": "^2.5.0" }, - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "version": "4.4.0" + "dev": true, + "integrity": "sha512-HM8V2Rp1y8+1343tkZUKZllFhEQPNmpNdgFAncbTsxkZ18/gqjk23XXv3qGyXWp412f3o43ZZ1UZHVcHrpRnCQ==", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@eslint-community/regexpp": { + "node_modules/@smithy/config-resolver": { + "dependencies": { + "@smithy/node-config-provider": "^2.1.5", + "@smithy/types": "^2.5.0", + "@smithy/util-config-provider": "^2.0.0", + "@smithy/util-middleware": "^2.0.6", + "tslib": "^2.5.0" + }, "dev": true, "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-JylOEEzDiOryeUnFbQz+oViCXS0KsvR1mvHkoMiu5+UiBvy+RYX7tzlIIIEstF/gVa2tj9AQXk3dgnxv6KxhFg==", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.8.0.tgz", - "version": "4.8.0" + "integrity": "sha512-761sJSgNbvsqcsKW6/WZbrZr4H+0Vp/QKKqwyrxCPwD8BsiPEXNHyYnqNgaeK9xRWYswjon0Uxbpe3DWQo0j/g==", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-2.0.18.tgz", + "version": "2.0.18" }, - "node_modules/@eslint/eslintrc": { + "node_modules/@smithy/credential-provider-imds": { "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "@smithy/node-config-provider": "^2.1.5", + "@smithy/property-provider": "^2.0.14", + "@smithy/types": "^2.5.0", + "@smithy/url-parser": "^2.0.13", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=14.0.0" }, - "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", - "version": "2.1.2" + "integrity": "sha512-gw5G3FjWC6sNz8zpOJgPpH5HGKrpoVFQpToNAwLwJVyI/LJ2jDJRjSKEsM6XI25aRpYjMSE/Qptxx305gN1vHw==", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-2.1.1.tgz", + "version": "2.1.1" }, - "node_modules/@eslint/js": { - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node_modules/@smithy/eventstream-codec": { + "dependencies": { + "@aws-crypto/crc32": "3.0.0", + "@smithy/types": "^2.2.2", + "@smithy/util-hex-encoding": "^2.0.0", + "tslib": "^2.5.0" }, - "integrity": "sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.48.0.tgz", - "version": "8.48.0" + "dev": true, + "integrity": "sha512-iqR6OuOV3zbQK8uVs9o+9AxhVk8kW9NAxA71nugwUB+kTY9C35pUd0A5/m4PRT0Y0oIW7W4kgnSR3fdYXQjECw==", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@humanwhocodes/config-array": { + "node_modules/@smithy/eventstream-serde-browser": { "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" + "@smithy/eventstream-serde-universal": "^2.0.5", + "@smithy/types": "^2.2.2", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=10.10.0" + "node": ">=14.0.0" }, - "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", - "version": "0.11.10" + "integrity": "sha512-8NU51y94qFJbxL6SmvgWDfITHO/svvbAigkLYk2pckX17TGCSf4EXuGpGLliJp5Ljh5+vASC7mUH2jYX7MWBxA==", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@humanwhocodes/module-importer": { + "node_modules/@smithy/eventstream-serde-config-resolver": { + "dependencies": { + "@smithy/types": "^2.2.2", + "tslib": "^2.5.0" + }, "dev": true, "engines": { - "node": ">=12.22" + "node": ">=14.0.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - }, - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/@humanwhocodes/object-schema": { - "dev": true, - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "version": "1.2.1" + "integrity": "sha512-u3gvukRaTH4X6tsryuZ4T1WGIEP34fPaTTzphFDJe8GJz/k11oBW1MPnkcaucBMxLnObK9swCF85j5cp1Kj1oA==", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@isaacs/cliui": { + "node_modules/@smithy/eventstream-serde-node": { "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + "@smithy/eventstream-serde-universal": "^2.0.5", + "@smithy/types": "^2.2.2", + "tslib": "^2.5.0" }, + "dev": true, "engines": { - "node": ">=12" + "node": ">=14.0.0" }, - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "version": "8.0.2" + "integrity": "sha512-/C8jb+k/vKUBIe80D30vzjvRXlJf76kG2AJY7/NwiqWuD2usRuuDFCDaswXdVsSh9P1+FeaxZ48chsK10yDryQ==", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "node_modules/@smithy/eventstream-serde-universal": { + "dependencies": { + "@smithy/eventstream-codec": "^2.0.5", + "@smithy/types": "^2.2.2", + "tslib": "^2.5.0" }, - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "version": "6.0.1" - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "dev": true, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=14.0.0" }, - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "version": "6.2.1" - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "version": "9.2.2" + "integrity": "sha512-+vHvbQtlSVYTQ/20tNpVaKi0EpTR7E8GoEUHJypRZIRgiT03b3h2MAWk+SNaqMrCJrYG9vKLkJFzDylRlUvDWg==", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@isaacs/cliui/node_modules/string-width": { + "node_modules/@smithy/fetch-http-handler": { "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "@smithy/protocol-http": "^3.0.9", + "@smithy/querystring-builder": "^2.0.13", + "@smithy/types": "^2.5.0", + "@smithy/util-base64": "^2.0.1", + "tslib": "^2.5.0" }, - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "version": "5.1.2" + "dev": true, + "integrity": "sha512-PStY3XO1Ksjwn3wMKye5U6m6zxXpXrXZYqLy/IeCbh3nM9QB3Jgw/B0PUSLUWKdXg4U8qgEu300e3ZoBvZLsDg==", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-2.2.6.tgz", + "version": "2.2.6" }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "node_modules/@smithy/fetch-http-handler/node_modules/@smithy/protocol-http": { "dependencies": { - "ansi-regex": "^6.0.1" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, + "dev": true, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "node": ">=14.0.0" }, - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "version": "7.1.0" + "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", + "version": "3.0.9" }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "node_modules/@smithy/hash-blob-browser": { "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "@smithy/chunked-blob-reader": "^2.0.0", + "@smithy/chunked-blob-reader-native": "^2.0.0", + "@smithy/types": "^2.2.2", + "tslib": "^2.5.0" }, - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "version": "8.1.0" + "dev": true, + "integrity": "sha512-ZVAUBtJXGf9bEko4/RwWcTK6d3b/ZmQMxJMrxOOcQhVDiqny9zI0mzgstO4Oxz3135R7S3V/bbGw3w3woCYpQg==", + "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@isaacs/fs-minipass": { + "node_modules/@smithy/hash-node": { "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" + "@smithy/types": "^2.5.0", + "@smithy/util-buffer-from": "^2.0.0", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" }, - "integrity": "sha512-S00nN1Qt3z3dSP6Db45fj/mksrAq5XWNIJ/SWXGP8XPT2jrzEuYRCSEx08JpJwBcG2F1xgiOtBMGDU0AZHmxew==", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/@isaacs/fs-minipass/node_modules/minipass": { + "dev": true, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=14.0.0" }, - "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", - "version": "7.0.4" + "integrity": "sha512-t/qjEJZu/G46A22PAk1k/IiJZT4ncRkG5GOCNWN9HPPy5rCcSZUbh7gwp7CGKgJJ7ATMMg+0Td7i9o1lQTwOfQ==", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-2.0.15.tgz", + "version": "2.0.15" }, - "node_modules/@istanbuljs/load-nyc-config": { + "node_modules/@smithy/hash-stream-node": { "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" + "@smithy/types": "^2.2.2", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=8" + "node": ">=14.0.0" }, - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "version": "1.1.0" + "integrity": "sha512-XiR4Aoux5kXy8OWPLQisKy3GPmm0l6deHepvPvr4MUzIwa5XWazG3JdbZXy+mk93CvEZrOwKPHU5Kul6QybJiQ==", + "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "node_modules/@smithy/invalid-dependency": { "dependencies": { - "sprintf-js": "~1.0.2" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "version": "1.0.10" + "integrity": "sha512-XsGYhVhvEikX1Yz0kyIoLssJf2Rs6E0U2w2YuKdT4jSra5A/g8V2oLROC1s56NldbgnpesTYB2z55KCHHbKyjw==", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-2.0.13.tgz", + "version": "2.0.13" }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "node_modules/@smithy/is-array-buffer": { "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=8" + "node": ">=14.0.0" }, - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "version": "4.1.0" + "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "bin": { - "js-yaml": "bin/js-yaml.js" - }, + "node_modules/@smithy/md5-js": { "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "@smithy/types": "^2.2.2", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.5.0" }, "dev": true, - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "version": "3.14.1" + "integrity": "sha512-k5EOte/Ye2r7XBVaXv2rhiehk6l3T4uRiPF+pnxKEc+G9Fwd1xAXBDZrtOq1syFPBKBmVfNszG4nevngST7NKg==", + "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "node_modules/@smithy/middleware-content-length": { "dependencies": { - "p-locate": "^4.1.0" + "@smithy/protocol-http": "^3.0.9", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=8" + "node": ">=14.0.0" }, - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "version": "5.0.0" + "integrity": "sha512-xH4kRBw01gJgWiU+/mNTrnyFXeozpZHw39gLb3JKGsFDVmSrJZ8/tRqu27tU/ki1gKkxr2wApu+dEYjI3QwV1Q==", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-2.0.15.tgz", + "version": "2.0.15" }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "node_modules/@smithy/middleware-content-length/node_modules/@smithy/protocol-http": { "dependencies": { - "p-try": "^2.0.0" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=14.0.0" }, - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "version": "2.3.0" + "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", + "version": "3.0.9" }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "node_modules/@smithy/middleware-endpoint": { "dependencies": { - "p-limit": "^2.2.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "version": "4.1.0" - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "dev": true, - "engines": { - "node": ">=8" + "@smithy/middleware-serde": "^2.0.13", + "@smithy/node-config-provider": "^2.1.5", + "@smithy/shared-ini-file-loader": "^2.2.4", + "@smithy/types": "^2.5.0", + "@smithy/url-parser": "^2.0.13", + "@smithy/util-middleware": "^2.0.6", + "tslib": "^2.5.0" }, - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/sprintf-js": { - "dev": true, - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/@istanbuljs/schema": { "dev": true, "engines": { - "node": ">=8" + "node": ">=14.0.0" }, - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "version": "0.1.3" + "integrity": "sha512-tddRmaig5URk2106PVMiNX6mc5BnKIKajHHDxb7K0J5MLdcuQluHMGnjkv18iY9s9O0tF+gAcPd/pDXA5L9DZw==", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-2.2.0.tgz", + "version": "2.2.0" }, - "node_modules/@jest/console": { + "node_modules/@smithy/middleware-retry": { "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0" + "@smithy/node-config-provider": "^2.1.5", + "@smithy/protocol-http": "^3.0.9", + "@smithy/service-error-classification": "^2.0.6", + "@smithy/types": "^2.5.0", + "@smithy/util-middleware": "^2.0.6", + "@smithy/util-retry": "^2.0.6", + "tslib": "^2.5.0", + "uuid": "^8.3.2" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-X2yrF/SHDk2WDd8LflRNS955rlzQ9daz9UWSp15wW8KtzoTXg3bhHM78HbK1cjr48/FWERSJKh9AvRUUGlIawg==", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-2.0.20.tgz", + "version": "2.0.20" }, - "node_modules/@jest/console/node_modules/@jest/types": { + "node_modules/@smithy/middleware-retry/node_modules/@smithy/protocol-http": { "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", + "version": "3.0.9" }, - "node_modules/@jest/console/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" + "node_modules/@smithy/middleware-retry/node_modules/uuid": { + "bin": { + "uuid": "dist/bin/uuid" }, "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "version": "8.3.2" }, - "node_modules/@jest/console/node_modules/jest-message-util": { + "node_modules/@smithy/middleware-serde": { "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-tBGbeXw+XsE6pPr4UaXOh+UIcXARZeiA8bKJWxk2IjJcD1icVLhBSUQH9myCIZLNNzJIH36SDjUX8Wqk4xJCJg==", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-2.0.13.tgz", + "version": "2.0.13" }, - "node_modules/@jest/console/node_modules/jest-util": { + "node_modules/@smithy/middleware-stack": { "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-L1KLAAWkXbGx1t2jjCI/mDJ2dDNq+rp4/ifr/HcC6FHngxho5O7A5bQLpKHGlkfATH6fUnOEx0VICEVFA4sUzw==", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-2.0.7.tgz", + "version": "2.0.7" }, - "node_modules/@jest/core": { + "node_modules/@smithy/node-config-provider": { "dependencies": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", - "micromatch": "^4.0.4", - "rimraf": "^3.0.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" + "@smithy/property-provider": "^2.0.14", + "@smithy/shared-ini-file-loader": "^2.2.4", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "node": ">=14.0.0" }, - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-3Omb5/h4tOCuKRx4p4pkYTvEYRCYoKk52bOYbKUyz/G/8gERbagsN8jFm4FjQubkrcIqQEghTpQaUw6uk+0edw==", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-2.1.5.tgz", + "version": "2.1.5" }, - "node_modules/@jest/core/node_modules/@jest/types": { + "node_modules/@smithy/node-http-handler": { "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "@smithy/abort-controller": "^2.0.13", + "@smithy/protocol-http": "^3.0.9", + "@smithy/querystring-builder": "^2.0.13", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/@jest/core/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" + "node": ">=14.0.0" }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" + "integrity": "sha512-+K0q3SlNcocmo9OZj+fz67gY4lwhOCvIJxVbo/xH+hfWObvaxrMTx7JEzzXcluK0thnnLz++K3Qe7Z/8MDUreA==", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-2.1.9.tgz", + "version": "2.1.9" }, - "node_modules/@jest/core/node_modules/expect": { + "node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http": { "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", + "version": "3.0.9" }, - "node_modules/@jest/core/node_modules/jest-get-type": { + "node_modules/@smithy/property-provider": { + "dependencies": { + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" + }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-k3D2qp9o6imTrLaXRj6GdLYEJr1sXqS99nLhzq8fYmJjSVOeMg/G+1KVAAc7Oxpu71rlZ2f8SSZxcSxkevuR0A==", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-2.0.14.tgz", + "version": "2.0.14" }, - "node_modules/@jest/core/node_modules/jest-message-util": { + "node_modules/@smithy/protocol-http": { "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" + "@smithy/types": "^2.2.2", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-d2hhHj34mA2V86doiDfrsy2fNTnUOowGaf9hKb0hIPHqvcnShU4/OSc4Uf1FwHkAdYF3cFXTrj5VGUYbEuvMdw==", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@jest/core/node_modules/jest-snapshot": { + "node_modules/@smithy/querystring-builder": { "dependencies": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" + "@smithy/types": "^2.5.0", + "@smithy/util-uri-escape": "^2.0.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-JhXKwp3JtsFUe96XLHy/nUPEbaXqn6r7xE4sNaH8bxEyytE5q1fwt0ew/Ke6+vIC7gP87HCHgQpJHg1X1jN2Fw==", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-2.0.13.tgz", + "version": "2.0.13" }, - "node_modules/@jest/core/node_modules/jest-util": { + "node_modules/@smithy/querystring-parser": { "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-TEiT6o8CPZVxJ44Rly/rrsATTQsE+b/nyBVzsYn2sa75xAaZcurNxsFd8z1haoUysONiyex24JMHoJY6iCfLdA==", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-2.0.13.tgz", + "version": "2.0.13" }, - "node_modules/@jest/environment": { + "node_modules/@smithy/service-error-classification": { "dependencies": { - "@jest/fake-timers": "^29.6.4", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.6.3" + "@smithy/types": "^2.5.0" }, "dev": true, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-sQ0SULEjA1XUTHmkBRl7A1dyITM9yb1yb3ZNKPX3KlTd6IG7mWUe3e2yfExtC2Zz1Q+mMckOLHmL/qLiuQJrBQ==", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.6.4.tgz", - "version": "29.6.4" + "integrity": "sha512-fCQ36frtYra2fqY2/DV8+3/z2d0VB/1D1hXbjRcM5wkxTToxq6xHbIY/NGGY6v4carskMyG8FHACxgxturJ9Pg==", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-2.0.6.tgz", + "version": "2.0.6" }, - "node_modules/@jest/expect": { + "node_modules/@smithy/shared-ini-file-loader": { "dependencies": { - "expect": "^29.6.4", - "jest-snapshot": "^29.6.4" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-Warhsa7d23+3X5bLbrbYvaehcgX5TLYhI03JKoedTiI8uJU4IhqYBWF7OSSgUyz4IgLpUYPkK0AehA5/fRclAA==", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.6.4.tgz", - "version": "29.6.4" + "integrity": "sha512-9dRknGgvYlRIsoTcmMJXuoR/3ekhGwhRq4un3ns2/byre4Ql5hyUN4iS0x8eITohjU90YOnUCsbRwZRvCkbRfw==", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-2.2.4.tgz", + "version": "2.2.4" }, - "node_modules/@jest/expect-utils": { + "node_modules/@smithy/signature-v4": { "dependencies": { - "jest-get-type": "^29.6.3" + "@smithy/eventstream-codec": "^2.0.5", + "@smithy/is-array-buffer": "^2.0.0", + "@smithy/types": "^2.2.2", + "@smithy/util-hex-encoding": "^2.0.0", + "@smithy/util-middleware": "^2.0.0", + "@smithy/util-uri-escape": "^2.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-FEhkJhqtvBwgSpiTrocquJCdXPsyvNKcl/n7A3u7X4pVoF4bswm11c9d4AV+kfq2Gpv/mM8x7E7DsRvH+djkrg==", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.4.tgz", - "version": "29.6.4" + "integrity": "sha512-ABIzXmUDXK4n2c9cXjQLELgH2RdtABpYKT+U131e2I6RbCypFZmxIHmIBufJzU2kdMCQ3+thBGDWorAITFW04A==", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-2.0.5.tgz", + "version": "2.0.5" }, - "node_modules/@jest/fake-timers": { + "node_modules/@smithy/smithy-client": { "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.6.3", - "jest-mock": "^29.6.3", - "jest-util": "^29.6.3" + "@smithy/middleware-stack": "^2.0.7", + "@smithy/types": "^2.5.0", + "@smithy/util-stream": "^2.0.20", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-6UkCwzoBK60edXIIWb0/KWkuj7R7Qq91vVInOe3De6DSpaEiqjKcJw4F7XUet24Wupahj9J6PlR09JqJ5ySDHw==", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.6.4.tgz", - "version": "29.6.4" + "integrity": "sha512-rngZcQu7Jvs9UbHihK1EI67RMPuzkc3CJmu4MBgB7D7yBnMGuFR86tq5rqHfL2gAkNnMelBN/8kzQVvZjNKefQ==", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-2.1.15.tgz", + "version": "2.1.15" }, - "node_modules/@jest/globals": { + "node_modules/@smithy/types": { "dependencies": { - "@jest/environment": "^29.6.4", - "@jest/expect": "^29.6.4", - "@jest/types": "^29.6.3", - "jest-mock": "^29.6.3" + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-wVIn5bdtjlChhXAzVXavcY/3PEjf4VqM174BM3eGL5kMxLiZD5CLnbmkEyA1Dwh9q8XjP6E8RwjBsY/iCWrWsA==", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.6.4.tgz", - "version": "29.6.4" + "integrity": "sha512-/a31lYofrMBkJb3BuPlYJTMKDj0hUmKUP6JFZQu6YVuQVoAjubiY0A52U9S0Uysd33n/djexCUSNJ+G9bf3/aA==", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.5.0.tgz", + "version": "2.5.0" }, - "node_modules/@jest/reporters": { + "node_modules/@smithy/url-parser": { "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" + "@smithy/querystring-parser": "^2.0.13", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-okWx2P/d9jcTsZWTVNnRMpFOE7fMkzloSFyM53fA7nLKJQObxM2T4JlZ5KitKKuXq7pxon9J6SF2kCwtdflIrA==", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-2.0.13.tgz", + "version": "2.0.13" }, - "node_modules/@jest/reporters/node_modules/@jest/types": { + "node_modules/@smithy/util-base64": { "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "@smithy/util-buffer-from": "^2.0.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-DlI6XFYDMsIVN+GH9JtcRp3j02JEVuWIn/QOZisVzpIAprdsxGveFed0bjbMRCqmIFe8uetn5rxzNrBtIGrPIQ==", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/@jest/reporters/node_modules/@types/yargs": { + "node_modules/@smithy/util-body-length-browser": { "dependencies": { - "@types/yargs-parser": "*" + "tslib": "^2.5.0" }, "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" + "integrity": "sha512-JdDuS4ircJt+FDnaQj88TzZY3+njZ6O+D3uakS32f2VNnDo3vyEuNdBOh/oFd8Df1zSZOuH1HEChk2AOYDezZg==", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@jest/reporters/node_modules/jest-util": { + "node_modules/@smithy/util-body-length-node": { "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-/li0/kj/y3fQ3vyzn36NTLGmUwAICb7Jbe/CsWCktW363gh1MOcpEcSO3mJ344Gv2dqz8YJCLQpb6hju/0qOWw==", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-2.1.0.tgz", + "version": "2.1.0" }, - "node_modules/@jest/schemas": { + "node_modules/@smithy/util-buffer-from": { "dependencies": { - "@sinclair/typebox": "^0.27.8" + "@smithy/is-array-buffer": "^2.0.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "version": "29.6.3" + "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@jest/source-map": { + "node_modules/@smithy/util-config-provider": { "dependencies": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-xCQ6UapcIWKxXHEU4Mcs2s7LcFQRiU3XEluM2WcCjjBtQkUN71Tb+ydGmJFPxMUrW/GWMgQEEGipLym4XG0jZg==", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@jest/test-result": { + "node_modules/@smithy/util-defaults-mode-browser": { "dependencies": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" + "@smithy/property-provider": "^2.0.14", + "@smithy/smithy-client": "^2.1.15", + "@smithy/types": "^2.5.0", + "bowser": "^2.11.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">= 10.0.0" }, - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-VHP8xdFR7/orpiABJwgoTB0t8Zhhwpf93gXhNfUBiwAE9O0rvsv7LwpQYjgvbOUDDO8JfIYQB2GYJNkqqGWsXw==", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-2.0.19.tgz", + "version": "2.0.19" }, - "node_modules/@jest/test-result/node_modules/@jest/types": { + "node_modules/@smithy/util-defaults-mode-node": { "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "@smithy/config-resolver": "^2.0.18", + "@smithy/credential-provider-imds": "^2.1.1", + "@smithy/node-config-provider": "^2.1.5", + "@smithy/property-provider": "^2.0.14", + "@smithy/smithy-client": "^2.1.15", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/@jest/test-result/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" + "node": ">= 10.0.0" }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" + "integrity": "sha512-jkmep6/JyWmn2ADw9VULDeGbugR4N/FJCKOt+gYyVswmN1BJOfzF2umaYxQ1HhQDvna3kzm1Dbo1qIfBW4iuHA==", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.0.25.tgz", + "version": "2.0.25" }, - "node_modules/@jest/test-sequencer": { + "node_modules/@smithy/util-endpoints": { "dependencies": { - "@jest/test-result": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" + "@smithy/node-config-provider": "^2.1.5", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">= 14.0.0" }, - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-FPry8j1xye5yzrdnf4xKUXVnkQErxdN7bUIaqC0OFoGsv2NfD9b2UUMuZSSt+pr9a8XWAqj0HoyVNUfPiZ/PvQ==", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-1.0.4.tgz", + "version": "1.0.4" }, - "node_modules/@jest/transform": { + "node_modules/@smithy/util-hex-encoding": { "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@jest/transform/node_modules/@jest/types": { + "node_modules/@smithy/util-middleware": { "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-7W4uuwBvSLgKoLC1x4LfeArCVcbuHdtVaC4g30kKsD1erfICyQ45+tFhhs/dZNeQg+w392fhunCm/+oCcb6BSA==", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-2.0.6.tgz", + "version": "2.0.6" }, - "node_modules/@jest/transform/node_modules/@types/yargs": { + "node_modules/@smithy/util-retry": { "dependencies": { - "@types/yargs-parser": "*" + "@smithy/service-error-classification": "^2.0.6", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" }, "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" + "engines": { + "node": ">= 14.0.0" + }, + "integrity": "sha512-PSO41FofOBmyhPQJwBQJ6mVlaD7Sp9Uff9aBbnfBJ9eqXOE/obrqQjn0PNdkfdvViiPXl49BINfnGcFtSP4kYw==", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-2.0.6.tgz", + "version": "2.0.6" }, - "node_modules/@jest/transform/node_modules/jest-util": { + "node_modules/@smithy/util-stream": { "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" + "@smithy/fetch-http-handler": "^2.2.6", + "@smithy/node-http-handler": "^2.1.9", + "@smithy/types": "^2.5.0", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-buffer-from": "^2.0.0", + "@smithy/util-hex-encoding": "^2.0.0", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-tT8VASuD8jJu0yjHEMTCPt1o5E3FVzgdsxK6FQLAjXKqVv5V8InCnc0EOsYrijgspbfDqdAJg7r0o2sySfcHVg==", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-2.0.20.tgz", + "version": "2.0.20" }, - "node_modules/@jest/types": { + "node_modules/@smithy/util-uri-escape": { "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "version": "29.6.3" + "integrity": "sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@jridgewell/gen-mapping": { + "node_modules/@smithy/util-utf8": { "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@smithy/util-buffer-from": "^2.0.0", + "tslib": "^2.5.0" }, "dev": true, "engines": { - "node": ">=6.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "version": "0.3.3" + "integrity": "sha512-qOiVORSPm6Ce4/Yu6hbSgNHABLP2VMv8QOC3tTDNHHlWY19pPyc++fBTbZPtx6egPXi4HQxKDnMxVxpbtX2GoA==", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.0.2.tgz", + "version": "2.0.2" }, - "node_modules/@jridgewell/resolve-uri": { + "node_modules/@smithy/util-waiter": { + "dependencies": { + "@smithy/abort-controller": "^2.0.13", + "@smithy/types": "^2.5.0", + "tslib": "^2.5.0" + }, "dev": true, "engines": { - "node": ">=6.0.0" + "node": ">=14.0.0" }, - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "version": "3.1.1" + "integrity": "sha512-YovIQatiuM7giEsRFotqJa2i3EbU2EE3PgtpXgtLgpx5rXiZMAwPxXYDFVFhuO0lbqvc/Zx4n+ZIisXOHPSqyg==", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-2.0.13.tgz", + "version": "2.0.13" }, - "node_modules/@jridgewell/set-array": { + "node_modules/@szmarczak/http-timer": { + "dependencies": { + "defer-to-connect": "^2.0.0" + }, "dev": true, "engines": { - "node": ">=6.0.0" + "node": ">=10" }, - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "version": "1.1.2" + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "version": "4.0.6" + }, + "node_modules/@tokenizer/token": { + "dev": true, + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "version": "0.3.0" }, - "node_modules/@jridgewell/source-map": { + "node_modules/@types/cacheable-request": { "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" }, "dev": true, - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "version": "0.3.5" + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "version": "6.0.3" }, - "node_modules/@jridgewell/sourcemap-codec": { + "node_modules/@types/http-cache-semantics": { "dev": true, - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "version": "1.4.15" + "integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz", + "version": "4.0.1" }, - "node_modules/@jridgewell/trace-mapping": { + "node_modules/@types/keyv": { "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" + "@types/node": "*" }, "dev": true, - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "version": "0.3.19" + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "version": "3.1.4" + }, + "node_modules/@types/lodash": { + "dev": true, + "integrity": "sha512-BMVOiWs0uNxHVlHBgzTIqJYmj+PgCo4euloGF+5m4okL3rEYzM2EEv78mw8zWSMM57dM7kVIgJ2QDvwHSoCI5g==", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.197.tgz", + "version": "4.14.197" }, - "node_modules/@jsdevtools/ono": { + "node_modules/@types/node": { "dev": true, - "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", - "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", - "version": "7.1.3" + "integrity": "sha512-Y+/1vGBHV/cYk6OI1Na/LHzwnlNCAfU3ZNGrc1LdRe/LAIbdDPTTv/HU3M7yXN448aTVDq3eKRm2cg7iKLb8gw==", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.6.2.tgz", + "version": "20.6.2" }, - "node_modules/@kwsites/file-exists": { + "node_modules/@types/responselike": { "dependencies": { - "debug": "^4.1.1" + "@types/node": "*" }, "dev": true, - "integrity": "sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==", - "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/@kwsites/promise-deferred": { - "dev": true, - "integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==", - "resolved": "https://registry.npmjs.org/@kwsites/promise-deferred/-/promise-deferred-1.1.1.tgz", - "version": "1.1.1" + "integrity": "sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/@nodelib/fs.scandir": { + "node_modules/abort-controller": { "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "event-target-shim": "^5.0.0" }, "dev": true, "engines": { - "node": ">= 8" + "node": ">=6.5" }, - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "version": "2.1.5" + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "version": "3.0.0" }, - "node_modules/@nodelib/fs.stat": { + "node_modules/adm-zip": { "dev": true, "engines": { - "node": ">= 8" + "node": ">=6.0" }, - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-x0HvcHqVJNTPk/Bw8JbLWlWoo6Wwnsug0fnYYro1HBrjxZ3G7/AZk7Ahv8JwDe1uIcz8eBqvu86FuF1POiG7vQ==", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.10.tgz", + "version": "0.5.10" }, - "node_modules/@nodelib/fs.walk": { + "node_modules/agent-base": { "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" + "debug": "4" }, "dev": true, "engines": { - "node": ">= 8" + "node": ">= 6.0.0" }, - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "version": "1.2.8" + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "version": "6.0.2" }, - "node_modules/@pkgjs/parseargs": { - "engines": { - "node": ">=14" + "node_modules/ajv-formats": { + "dependencies": { + "ajv": "^8.0.0" }, - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "version": "0.11.0" + "dev": true, + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + }, + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "version": "2.1.1" }, - "node_modules/@pkgr/utils": { + "node_modules/ajv-formats/node_modules/ajv": { "dependencies": { - "cross-spawn": "^7.0.3", - "fast-glob": "^3.3.0", - "is-glob": "^4.0.3", - "open": "^9.1.0", - "picocolors": "^1.0.0", - "tslib": "^2.6.0" + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" }, "dev": true, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, "funding": { - "url": "https://opencollective.com/unts" + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" }, - "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", - "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", - "version": "2.4.2" + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "version": "8.12.0" + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "dev": true, + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/@pkgr/utils/node_modules/define-lazy-prop": { + "node_modules/ansi-escapes": { + "dependencies": { + "type-fest": "^0.21.3" + }, "dev": true, "engines": { - "node": ">=12" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "version": "4.3.2" }, - "node_modules/@pkgr/utils/node_modules/open": { - "dependencies": { - "default-browser": "^4.0.0", - "define-lazy-prop": "^3.0.0", - "is-inside-container": "^1.0.0", - "is-wsl": "^2.2.0" - }, + "node_modules/ansi-escapes/node_modules/type-fest": { "dev": true, "engines": { - "node": ">=14.16" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", - "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", - "version": "9.1.0" + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "version": "0.21.3" }, - "node_modules/@serverless/dashboard-plugin": { - "dependencies": { - "@aws-sdk/client-cloudformation": "^3.410.0", - "@aws-sdk/client-sts": "^3.410.0", - "@serverless/event-mocks": "^1.1.1", - "@serverless/platform-client": "^4.4.0", - "@serverless/utils": "^6.14.0", - "child-process-ext": "^3.0.1", - "chokidar": "^3.5.3", - "flat": "^5.0.2", - "fs-extra": "^9.1.0", - "js-yaml": "^4.1.0", - "jszip": "^3.10.1", - "lodash": "^4.17.21", - "memoizee": "^0.4.15", - "ncjsm": "^4.3.2", - "node-dir": "^0.1.17", - "node-fetch": "^2.6.8", - "open": "^7.4.2", - "semver": "^7.3.8", - "simple-git": "^3.16.0", - "timers-ext": "^0.1.7", - "type": "^2.7.2", - "uuid": "^8.3.2", - "yamljs": "^0.3.0" - }, + "node_modules/ansi-regex": { "dev": true, "engines": { - "node": ">=12.0" + "node": ">=8" }, - "integrity": "sha512-mAiTU2ERsDHdCrXJa/tihh/r+8ZwSuYYBqln3SkwuBD/49ct9QrK7S00cpiqFoY/geMFlHpOkriGzCPz6UP/rw==", - "resolved": "https://registry.npmjs.org/@serverless/dashboard-plugin/-/dashboard-plugin-7.1.0.tgz", - "version": "7.1.0" + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "version": "5.0.1" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/client-sso": { + "node_modules/ansi-styles": { "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/core": "3.451.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/protocol-http": "^3.0.9", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" }, - "integrity": "sha512-KkYSke3Pdv3MfVH/5fT528+MKjMyPKlcLcd4zQb0x6/7Bl7EHrPh1JZYjzPLHelb+UY5X0qN8+cb8iSu1eiwIQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.451.0.tgz", - "version": "3.451.0" + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + }, + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "version": "4.3.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/client-sts": { + "node_modules/anymatch": { "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/core": "3.451.0", - "@aws-sdk/credential-provider-node": "3.451.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-sdk-sts": "3.451.0", - "@aws-sdk/middleware-signing": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/protocol-http": "^3.0.9", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 8" }, - "integrity": "sha512-48NcIRxWBdP1fom6RSjwn2R2u7SE7eeV3p+c4s7ukEOfrHhBxJfn3EpqBVQMGzdiU55qFImy+Fe81iA2lXq3Jw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "version": "3.1.3" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-env": { - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/appdirectory": { + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "dev": true, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-9dAav7DcRgaF7xCJEQR5ER9ErXxnu/tdnVJ+UPmb1NPeIZdESv1A3lxFDEq1Fs8c4/lzAj9BpshGyJVIZwZDKg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-DJ5DV8vZXBbusyiyPlH28xppwS8eAMRuuyMo88xeEcf4bV64lbLtbxRxqixZuJBXsZzLtXFmA13GwVjJc7vdQw==", + "resolved": "https://registry.npmjs.org/appdirectory/-/appdirectory-0.1.0.tgz", + "version": "0.1.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-ini": { + "node_modules/archive-type": { "dependencies": { - "@aws-sdk/credential-provider-env": "3.451.0", - "@aws-sdk/credential-provider-process": "3.451.0", - "@aws-sdk/credential-provider-sso": "3.451.0", - "@aws-sdk/credential-provider-web-identity": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "file-type": "^4.2.0" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-TySt64Ci5/ZbqFw1F9Z0FIGvYx5JSC9e6gqDnizIYd8eMnn8wFRUscRrD7pIHKfrhvVKN5h0GdYovmMO/FMCBw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-zV4Ky0v1F8dBrdYElwTvQhweQ0P7Kwc1aluqJsYtOBP01jXcWCyW2IEfI1YiqsG+Iy7ZR+o5LF1N+PGECBxHWA==", + "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-node": { - "dependencies": { - "@aws-sdk/credential-provider-env": "3.451.0", - "@aws-sdk/credential-provider-ini": "3.451.0", - "@aws-sdk/credential-provider-process": "3.451.0", - "@aws-sdk/credential-provider-sso": "3.451.0", - "@aws-sdk/credential-provider-web-identity": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/archive-type/node_modules/file-type": { "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-AEwM1WPyxUdKrKyUsKyFqqRFGU70e4qlDyrtBxJnSU9NRLZI8tfEZ67bN7fHSxBUBODgDXpMSlSvJiBLh5/3pw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-f2UbFQEk7LXgWpi5ntcO86OeA/cC80fuDDDaX/fZ2ZGel+AF7leRQqBBW1eJNiiQkrZlAoM6P+VYP5P6bOlDEQ==", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-4.4.0.tgz", + "version": "4.4.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-process": { + "node_modules/archiver": { "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "archiver-utils": "^2.1.0", + "async": "^3.2.4", + "buffer-crc32": "^0.2.1", + "readable-stream": "^3.6.0", + "readdir-glob": "^1.1.2", + "tar-stream": "^2.2.0", + "zip-stream": "^4.1.0" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 10" }, - "integrity": "sha512-HQywSdKeD5PErcLLnZfSyCJO+6T+ZyzF+Lm/QgscSC+CbSUSIPi//s15qhBRVely/3KBV6AywxwNH+5eYgt4lQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz", + "version": "5.3.2" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-sso": { + "node_modules/archiver-utils": { "dependencies": { - "@aws-sdk/client-sso": "3.451.0", - "@aws-sdk/token-providers": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "glob": "^7.1.4", + "graceful-fs": "^4.2.0", + "lazystream": "^1.0.0", + "lodash.defaults": "^4.2.0", + "lodash.difference": "^4.5.0", + "lodash.flatten": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.union": "^4.6.0", + "normalize-path": "^3.0.0", + "readable-stream": "^2.0.0" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 6" }, - "integrity": "sha512-Usm/N51+unOt8ID4HnQzxIjUJDrkAQ1vyTOC0gSEEJ7h64NSSPGD5yhN7il5WcErtRd3EEtT1a8/GTC5TdBctg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz", + "version": "2.1.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/credential-provider-web-identity": { + "node_modules/archiver-utils/node_modules/readable-stream": { "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" }, "dev": true, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-Xtg3Qw65EfDjWNG7o2xD6sEmumPfsy3WDGjk2phEzVg8s7hcZGxf5wYwe6UY7RJvlEKrU0rFA+AMn6Hfj5oOzg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "version": "2.3.8" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-host-header": { - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/archiver-utils/node_modules/safe-buffer": { "dev": true, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-j8a5jAfhWmsK99i2k8oR8zzQgXrsJtgrLxc3js6U+525mcZytoiDndkWTmD5fjJ1byU1U2E5TaPq+QJeDip05Q==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "version": "5.1.2" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-logger": { + "node_modules/archiver-utils/node_modules/string_decoder": { "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "safe-buffer": "~5.1.0" }, + "dev": true, + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "version": "1.1.1" + }, + "node_modules/argparse": { + "dev": true, + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "version": "2.0.1" + }, + "node_modules/array-union": { "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" }, - "integrity": "sha512-0kHrYEyVeB2QBfP6TfbI240aRtatLZtcErJbhpiNUb+CQPgEL3crIjgVE8yYiJumZ7f0jyjo8HLPkwD1/2APaw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "version": "2.1.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-recursion-detection": { - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/asap": { + "dev": true, + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "version": "2.0.6" + }, + "node_modules/async": { + "dev": true, + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "version": "3.2.6" + }, + "node_modules/asynckit": { + "dev": true, + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "version": "0.4.0" + }, + "node_modules/at-least-node": { "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 4.0.0" }, - "integrity": "sha512-J6jL6gJ7orjHGM70KDRcCP7so/J2SnkN4vZ9YRLTeeZY6zvBuHDjX8GCIgSqPn/nXFXckZO8XSnA7u6+3TAT0w==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-sdk-sts": { - "dependencies": { - "@aws-sdk/middleware-signing": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/available-typed-arrays": { "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 0.4" }, - "integrity": "sha512-UJ6UfVUEgp0KIztxpAeelPXI5MLj9wUtUCqYeIMP7C1ZhoEMNm3G39VLkGN43dNhBf1LqjsV9jkKMZbVfYXuwg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.451.0.tgz", - "version": "3.451.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "version": "1.0.5" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-signing": { + "node_modules/aws-sdk": { "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.5.0", - "@smithy/util-middleware": "^2.0.6", - "tslib": "^2.5.0" + "buffer": "4.9.2", + "events": "1.1.1", + "ieee754": "1.1.13", + "jmespath": "0.16.0", + "querystring": "0.2.0", + "sax": "1.2.1", + "url": "0.10.3", + "util": "^0.12.4", + "uuid": "8.0.0", + "xml2js": "0.6.2" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 10.0.0" }, - "integrity": "sha512-s5ZlcIoLNg1Huj4Qp06iKniE8nJt/Pj1B/fjhWc6cCPCM7XJYUCejCnRh6C5ZJoBEYodjuwZBejPc1Wh3j+znA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-nUaAzS7cheaKF8lV0AVJBqteuoYIgQ5UgpZaoRR44D7HA1f6iCYFISF6WH6d0hQvpxPDIXr5NlVt0cHyp/Sx1g==", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1551.0.tgz", + "version": "2.1551.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/middleware-user-agent": { - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "node_modules/aws-sdk/node_modules/uuid": { + "bin": { + "uuid": "dist/bin/uuid" }, "dev": true, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-8NM/0JiKLNvT9wtAQVl1DFW0cEO7OvZyLSUBLNLTHqyvOZxKaZ8YFk7d8PL6l76LeUKRxq4NMxfZQlUIRe0eSA==", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", + "version": "8.0.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/region-config-resolver": { + "node_modules/aws-sdk/node_modules/xml2js": { "dependencies": { - "@smithy/node-config-provider": "^2.1.5", - "@smithy/types": "^2.5.0", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.6", - "tslib": "^2.5.0" + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4.0.0" }, - "integrity": "sha512-3iMf4OwzrFb4tAAmoROXaiORUk2FvSejnHIw/XHvf/jjR4EqGGF95NZP/n/MeFZMizJWVssrwS412GmoEyoqhg==", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", + "version": "0.6.2" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/token-providers": { + "node_modules/axios": { "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" }, "dev": true, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-ij1L5iUbn6CwxVOT1PG4NFjsrsKN9c4N1YEM0lkl6DwmaNOscjLKGSNyj9M118vSWsOs1ZDbTwtj++h0O/BWrQ==", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", + "version": "1.7.9" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/types": { - "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/balanced-match": { "dev": true, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-rhK+qeYwCIs+laJfWCcrYEjay2FR/9VABZJ2NRM89jV/fKqGVQR52E5DQqrI+oEIL5JHMhhnr4N4fyECMS35lw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "version": "1.0.2" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/util-endpoints": { - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/util-endpoints": "^1.0.4", - "tslib": "^2.5.0" - }, + "node_modules/base64-js": { + "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" + } + ], + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "version": "1.5.1" + }, + "node_modules/binary-extensions": { "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" }, - "integrity": "sha512-giqLGBTnRIcKkDqwU7+GQhKbtJ5Ku35cjGQIfMyOga6pwTBUbaK0xW1Sdd8sBQ1GhApscnChzI9o/R9x0368vw==", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "version": "2.2.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/util-user-agent-browser": { + "node_modules/bl": { "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "bowser": "^2.11.0", - "tslib": "^2.5.0" + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" }, "dev": true, - "integrity": "sha512-Ws5mG3J0TQifH7OTcMrCTexo7HeSAc3cBgjfhS/ofzPUzVCtsyg0G7I6T7wl7vJJETix2Kst2cpOsxygPgPD9w==", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.451.0.tgz", - "version": "3.451.0" + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "version": "4.1.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@aws-sdk/util-user-agent-node": { + "node_modules/bl/node_modules/buffer": { "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" }, "dev": true, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-TBzm6P+ql4mkGFAjPlO1CI+w3yUT+NulaiALjl/jNX/nnUp6HsJsVxJf4nVFQTG5KRV0iqMypcs7I3KIhH+LmA==", - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": 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" } - }, - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.451.0.tgz", - "version": "3.451.0" + ], + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "version": "5.7.1" }, - "node_modules/@serverless/dashboard-plugin/node_modules/@smithy/protocol-http": { + "node_modules/bluebird": { + "dev": true, + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "version": "3.7.2" + }, + "node_modules/bowser": { + "dev": true, + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "version": "2.11.0" + }, + "node_modules/brace-expansion": { "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" }, "dev": true, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", - "version": "3.0.9" + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "version": "1.1.11" }, - "node_modules/@serverless/dashboard-plugin/node_modules/child-process-ext": { + "node_modules/braces": { "dependencies": { - "cross-spawn": "^7.0.3", - "es5-ext": "^0.10.62", - "log": "^6.3.1", - "split2": "^3.2.2", - "stream-promise": "^3.2.0" + "fill-range": "^7.1.1" }, "dev": true, "engines": { - "node": ">=8.0" + "node": ">=8" }, - "integrity": "sha512-oBePsLbQpTJFxzwyCvs9yWWF0OEM6vGGepHwt1stqmX7QQqOuDc8j2ywdvAs9Tvi44TT7d9ackqhR4Q10l1u8w==", - "resolved": "https://registry.npmjs.org/child-process-ext/-/child-process-ext-3.0.2.tgz", - "version": "3.0.2" - }, - "node_modules/@serverless/dashboard-plugin/node_modules/fs-extra": { + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "version": "3.0.3" + }, + "node_modules/buffer": { "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + }, + "dev": true, + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "version": "4.9.2" + }, + "node_modules/buffer-alloc": { + "dependencies": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" }, + "dev": true, + "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", + "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", + "version": "1.2.0" + }, + "node_modules/buffer-alloc-unsafe": { + "dev": true, + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", + "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", + "version": "1.1.0" + }, + "node_modules/buffer-crc32": { "dev": true, "engines": { - "node": ">=10" + "node": "*" }, - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "version": "9.1.0" + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "version": "0.2.13" }, - "node_modules/@serverless/dashboard-plugin/node_modules/open": { + "node_modules/buffer-fill": { + "dev": true, + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", + "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", + "version": "1.0.0" + }, + "node_modules/bufferutil": { "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" + "node-gyp-build": "^4.3.0" }, "dev": true, "engines": { - "node": ">=8" + "node": ">=6.14.2" + }, + "hasInstallScript": true, + "integrity": "sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==", + "optional": true, + "peer": true, + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.7.tgz", + "version": "4.0.7" + }, + "node_modules/builtin-modules": { + "dev": true, + "engines": { + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "version": "7.4.2" + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "version": "3.3.0" }, - "node_modules/@serverless/dashboard-plugin/node_modules/split2": { - "dependencies": { - "readable-stream": "^3.0.0" - }, + "node_modules/builtins": { "dev": true, - "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", - "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", - "version": "3.2.2" + "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", + "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", + "version": "1.0.3" }, - "node_modules/@serverless/dashboard-plugin/node_modules/type": { + "node_modules/cacheable-lookup": { "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/@serverless/dashboard-plugin/node_modules/uuid": { - "bin": { - "uuid": "dist/bin/uuid" + "engines": { + "node": ">=10.6.0" }, - "dev": true, - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "version": "8.3.2" + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "version": "5.0.4" }, - "node_modules/@serverless/event-mocks": { + "node_modules/cacheable-request": { "dependencies": { - "@types/lodash": "^4.14.123", - "lodash": "^4.17.11" + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" }, "dev": true, - "integrity": "sha512-YAV5V/y+XIOfd+HEVeXfPWZb8C6QLruFk9tBivoX2roQLWVq145s4uxf8D0QioCueuRzkukHUS4JIj+KVoS34A==", - "resolved": "https://registry.npmjs.org/@serverless/event-mocks/-/event-mocks-1.1.1.tgz", - "version": "1.1.1" + "engines": { + "node": ">=8" + }, + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "version": "7.0.4" }, - "node_modules/@serverless/platform-client": { + "node_modules/cachedir": { + "dev": true, + "engines": { + "node": ">=6" + }, + "integrity": "sha512-9EtFOZR8g22CL7BWjJ9BUx1+A/djkofnyW3aOXZORNW2kxoUpx2h+uN2cOqwPmFhnpVmxg+KW2OjOSgChTEvsQ==", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.4.0.tgz", + "version": "2.4.0" + }, + "node_modules/call-bind": { "dependencies": { - "adm-zip": "^0.5.5", - "archiver": "^5.3.0", - "axios": "^1.6.2", - "fast-glob": "^3.2.7", - "https-proxy-agent": "^5.0.0", - "ignore": "^5.1.8", - "isomorphic-ws": "^4.0.1", - "js-yaml": "^3.14.1", - "jwt-decode": "^2.2.0", - "minimatch": "^3.0.4", - "querystring": "^0.2.1", - "run-parallel-limit": "^1.1.0", - "throat": "^5.0.0", - "traverse": "^0.6.6", - "ws": "^7.5.3" + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" }, + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "version": "1.0.2" + }, + "node_modules/camelcase": { "dev": true, "engines": { - "node": ">=10.0" + "node": ">=6" }, - "integrity": "sha512-urL7SNefRqC2EOFDcpvm8fyn/06B5yXWneKpyGw7ylGt0Qr9JHZCB9TiUeTkIpPUNz0jTvKUaJ2+M/JNEiaVIA==", - "resolved": "https://registry.npmjs.org/@serverless/platform-client/-/platform-client-4.4.0.tgz", - "version": "4.4.0" + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "version": "5.3.1" }, - "node_modules/@serverless/platform-client/node_modules/argparse": { + "node_modules/chalk": { "dependencies": { - "sprintf-js": "~1.0.2" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "dev": true, - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "version": "1.0.10" - }, - "node_modules/@serverless/platform-client/node_modules/js-yaml": { - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" }, + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "version": "4.1.2" + }, + "node_modules/chardet": { + "dev": true, + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "version": "0.7.0" + }, + "node_modules/child-process-ext": { "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "cross-spawn": "^6.0.5", + "es5-ext": "^0.10.53", + "log": "^6.0.0", + "split2": "^3.1.1", + "stream-promise": "^3.2.0" }, "dev": true, - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "version": "3.14.1" + "integrity": "sha512-0UQ55f51JBkOFa+fvR76ywRzxiPwQS3Xe8oe5bZRphpv+dIMeerW5Zn5e4cUy4COJwVtJyU0R79RMnw+aCqmGA==", + "resolved": "https://registry.npmjs.org/child-process-ext/-/child-process-ext-2.1.1.tgz", + "version": "2.1.1" }, - "node_modules/@serverless/platform-client/node_modules/querystring": { - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "node_modules/child-process-ext/node_modules/cross-spawn": { + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, "dev": true, "engines": { - "node": ">=0.4.x" + "node": ">=4.8" }, - "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", - "version": "0.2.1" + "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", + "version": "6.0.6" }, - "node_modules/@serverless/platform-client/node_modules/sprintf-js": { + "node_modules/child-process-ext/node_modules/path-key": { "dev": true, - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "version": "1.0.3" + "engines": { + "node": ">=4" + }, + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/@serverless/platform-client/node_modules/throat": { + "node_modules/child-process-ext/node_modules/semver": { + "bin": { + "semver": "bin/semver" + }, "dev": true, - "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", - "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", - "version": "5.0.0" + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "version": "5.7.2" }, - "node_modules/@serverless/platform-client/node_modules/utf-8-validate": { + "node_modules/child-process-ext/node_modules/shebang-command": { "dependencies": { - "node-gyp-build": "^4.3.0" + "shebang-regex": "^1.0.0" }, "dev": true, "engines": { - "node": ">=6.14.2" + "node": ">=0.10.0" }, - "hasInstallScript": true, - "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", - "optional": true, - "peer": true, - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", - "version": "5.0.10" + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "version": "1.2.0" }, - "node_modules/@serverless/platform-client/node_modules/ws": { + "node_modules/child-process-ext/node_modules/shebang-regex": { "dev": true, "engines": { - "node": ">=8.3.0" + "node": ">=0.10.0" }, - "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "version": "1.0.0" + }, + "node_modules/child-process-ext/node_modules/split2": { + "dependencies": { + "readable-stream": "^3.0.0" }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "dev": true, + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "version": "3.2.2" + }, + "node_modules/child-process-ext/node_modules/which": { + "bin": { + "which": "bin/which" }, - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", - "version": "7.5.10" + "dependencies": { + "isexe": "^2.0.0" + }, + "dev": true, + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "version": "1.3.1" }, - "node_modules/@serverless/utils": { + "node_modules/chokidar": { "dependencies": { - "archive-type": "^4.0.0", - "chalk": "^4.1.2", - "ci-info": "^3.8.0", - "cli-progress-footer": "^2.3.2", - "content-disposition": "^0.5.4", - "d": "^1.0.1", - "decompress": "^4.2.1", - "event-emitter": "^0.3.5", - "ext": "^1.7.0", - "ext-name": "^5.0.0", - "file-type": "^16.5.4", - "filenamify": "^4.3.0", - "get-stream": "^6.0.1", - "got": "^11.8.6", - "inquirer": "^8.2.5", - "js-yaml": "^4.1.0", - "jwt-decode": "^3.1.2", - "lodash": "^4.17.21", - "log": "^6.3.1", - "log-node": "^8.0.3", - "make-dir": "^4.0.0", - "memoizee": "^0.4.15", - "ms": "^2.1.3", - "ncjsm": "^4.3.2", - "node-fetch": "^2.6.11", - "open": "^8.4.2", - "p-event": "^4.2.0", - "supports-color": "^8.1.1", - "timers-ext": "^0.1.7", - "type": "^2.7.2", - "uni-global": "^1.0.0", - "uuid": "^8.3.2", - "write-file-atomic": "^4.0.2" + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" }, "dev": true, "engines": { - "node": ">=12.0" + "node": ">= 8.10.0" }, - "integrity": "sha512-7eDbqKv/OBd11jjdZjUwFGN8sHWkeUqLeHXHQxQ1azja2IM7WIH+z/aLgzR6LhB3/MINNwtjesDpjGqTMj2JKQ==", - "resolved": "https://registry.npmjs.org/@serverless/utils/-/utils-6.15.0.tgz", - "version": "6.15.0" + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "version": "3.5.3" }, - "node_modules/@serverless/utils/node_modules/get-stream": { + "node_modules/chokidar/node_modules/glob-parent": { + "dependencies": { + "is-glob": "^4.0.1" + }, "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 6" }, - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "version": "6.0.1" + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "version": "5.1.2" }, - "node_modules/@serverless/utils/node_modules/jwt-decode": { + "node_modules/ci-info": { "dev": true, - "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==", - "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", - "version": "3.1.2" + "engines": { + "node": ">=8" + }, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "version": "3.8.0" }, - "node_modules/@serverless/utils/node_modules/supports-color": { + "node_modules/cli-color": { "dependencies": { - "has-flag": "^4.0.0" + "d": "^1.0.1", + "es5-ext": "^0.10.61", + "es6-iterator": "^2.0.3", + "memoizee": "^0.4.15", + "timers-ext": "^0.1.7" }, "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "node": ">=0.10" }, - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "version": "8.1.1" - }, - "node_modules/@serverless/utils/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" + "integrity": "sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==", + "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.3.tgz", + "version": "2.0.3" }, - "node_modules/@serverless/utils/node_modules/uuid": { - "bin": { - "uuid": "dist/bin/uuid" + "node_modules/cli-cursor": { + "dependencies": { + "restore-cursor": "^3.1.0" }, "dev": true, - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "version": "8.3.2" + "engines": { + "node": ">=8" + }, + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "version": "3.1.0" }, - "node_modules/@serverless/utils/node_modules/write-file-atomic": { + "node_modules/cli-progress-footer": { "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" + "cli-color": "^2.0.2", + "d": "^1.0.1", + "es5-ext": "^0.10.61", + "mute-stream": "0.0.8", + "process-utils": "^4.0.0", + "timers-ext": "^0.1.7", + "type": "^2.6.0" }, "dev": true, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": ">=10.0" }, - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "version": "4.0.2" + "integrity": "sha512-uzHGgkKdeA9Kr57eyH1W5HGiNShP8fV1ETq04HDNM1Un6ShXbHhwi/H8LNV9L1fQXKjEw0q5FUkEVNuZ+yZdSw==", + "resolved": "https://registry.npmjs.org/cli-progress-footer/-/cli-progress-footer-2.3.2.tgz", + "version": "2.3.2" }, - "node_modules/@sinclair/typebox": { + "node_modules/cli-progress-footer/node_modules/type": { "dev": true, - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "version": "0.27.8" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/@sindresorhus/is": { + "node_modules/cli-spinners": { + "dev": true, "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "version": "4.6.0" + "integrity": "sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.1.tgz", + "version": "2.9.1" }, - "node_modules/@sinonjs/commons": { + "node_modules/cli-sprintf-format": { "dependencies": { - "type-detect": "4.0.8" + "cli-color": "^2.0.1", + "es5-ext": "^0.10.53", + "sprintf-kit": "^2.0.1", + "supports-color": "^6.1.0" + }, + "dev": true, + "engines": { + "node": ">=6.0" }, + "integrity": "sha512-BbEjY9BEdA6wagVwTqPvmAwGB24U93rQPBFZUT8lNCDxXzre5LFHQUTJc70czjgUomVg8u8R5kW8oY9DYRFNeg==", + "resolved": "https://registry.npmjs.org/cli-sprintf-format/-/cli-sprintf-format-1.1.1.tgz", + "version": "1.1.1" + }, + "node_modules/cli-sprintf-format/node_modules/has-flag": { "dev": true, - "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "engines": { + "node": ">=4" + }, + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "version": "3.0.0" }, - "node_modules/@sinonjs/fake-timers": { + "node_modules/cli-sprintf-format/node_modules/supports-color": { "dependencies": { - "@sinonjs/commons": "^3.0.0" + "has-flag": "^3.0.0" }, "dev": true, - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "version": "10.3.0" + "engines": { + "node": ">=6" + }, + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "version": "6.1.0" }, - "node_modules/@smithy/abort-controller": { - "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "node_modules/cli-width": { + "dev": true, + "engines": { + "node": ">= 10" }, + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "version": "3.0.0" + }, + "node_modules/clone": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.8" }, - "integrity": "sha512-eeOPD+GF9BzF/Mjy3PICLePx4l0f3rG/nQegQHRLTloN5p1lSJJNZsyn+FzDnW8P2AduragZqJdtKNCxXozB1Q==", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-2.0.13.tgz", - "version": "2.0.13" + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "version": "1.0.4" }, - "node_modules/@smithy/chunked-blob-reader": { + "node_modules/clone-response": { "dependencies": { - "tslib": "^2.5.0" + "mimic-response": "^1.0.0" }, "dev": true, - "integrity": "sha512-k+J4GHJsMSAIQPChGBrjEmGS+WbPonCXesoqP9fynIqjn7rdOThdH8FAeCmokP9mxTYKQAKoHCLPzNlm6gh7Wg==", - "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/@smithy/chunked-blob-reader-native": { - "dependencies": { - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "dev": true, - "integrity": "sha512-HM8V2Rp1y8+1343tkZUKZllFhEQPNmpNdgFAncbTsxkZ18/gqjk23XXv3qGyXWp412f3o43ZZ1UZHVcHrpRnCQ==", - "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "version": "1.0.3" }, - "node_modules/@smithy/config-resolver": { + "node_modules/color-convert": { "dependencies": { - "@smithy/node-config-provider": "^2.1.5", - "@smithy/types": "^2.5.0", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.6", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" }, - "integrity": "sha512-761sJSgNbvsqcsKW6/WZbrZr4H+0Vp/QKKqwyrxCPwD8BsiPEXNHyYnqNgaeK9xRWYswjon0Uxbpe3DWQo0j/g==", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-2.0.18.tgz", - "version": "2.0.18" + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/@smithy/credential-provider-imds": { + "node_modules/color-name": { + "dev": true, + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "version": "1.1.4" + }, + "node_modules/combined-stream": { "dependencies": { - "@smithy/node-config-provider": "^2.1.5", - "@smithy/property-provider": "^2.0.14", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "tslib": "^2.5.0" + "delayed-stream": "~1.0.0" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 0.8" }, - "integrity": "sha512-gw5G3FjWC6sNz8zpOJgPpH5HGKrpoVFQpToNAwLwJVyI/LJ2jDJRjSKEsM6XI25aRpYjMSE/Qptxx305gN1vHw==", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-2.1.1.tgz", - "version": "2.1.1" + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "version": "1.0.8" }, - "node_modules/@smithy/eventstream-codec": { - "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@smithy/types": "^2.2.2", - "@smithy/util-hex-encoding": "^2.0.0", - "tslib": "^2.5.0" + "node_modules/commander": { + "dev": true, + "engines": { + "node": ">= 6" }, - "integrity": "sha512-iqR6OuOV3zbQK8uVs9o+9AxhVk8kW9NAxA71nugwUB+kTY9C35pUd0A5/m4PRT0Y0oIW7W4kgnSR3fdYXQjECw==", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "version": "4.1.1" }, - "node_modules/@smithy/eventstream-serde-browser": { + "node_modules/component-emitter": { + "dev": true, + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "version": "1.3.0" + }, + "node_modules/compress-commons": { "dependencies": { - "@smithy/eventstream-serde-universal": "^2.0.5", - "@smithy/types": "^2.2.2", - "tslib": "^2.5.0" + "buffer-crc32": "^0.2.13", + "crc32-stream": "^4.0.2", + "normalize-path": "^3.0.0", + "readable-stream": "^3.6.0" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 10" }, - "integrity": "sha512-8NU51y94qFJbxL6SmvgWDfITHO/svvbAigkLYk2pckX17TGCSf4EXuGpGLliJp5Ljh5+vASC7mUH2jYX7MWBxA==", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-QLdDLCKNV2dtoTorqgxngQCMA+gWXkM/Nwu7FpeBhk/RdkzimqC3jueb/FDmaZeXh+uby1jkBqE3xArsLBE5wQ==", + "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.1.tgz", + "version": "4.1.1" }, - "node_modules/@smithy/eventstream-serde-config-resolver": { + "node_modules/concat-map": { + "dev": true, + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "version": "0.0.1" + }, + "node_modules/content-disposition": { "dependencies": { - "@smithy/types": "^2.2.2", - "tslib": "^2.5.0" + "safe-buffer": "5.2.1" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 0.6" }, - "integrity": "sha512-u3gvukRaTH4X6tsryuZ4T1WGIEP34fPaTTzphFDJe8GJz/k11oBW1MPnkcaucBMxLnObK9swCF85j5cp1Kj1oA==", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "version": "0.5.4" }, - "node_modules/@smithy/eventstream-serde-node": { - "dependencies": { - "@smithy/eventstream-serde-universal": "^2.0.5", - "@smithy/types": "^2.2.2", - "tslib": "^2.5.0" + "node_modules/cookiejar": { + "dev": true, + "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", + "version": "2.1.4" + }, + "node_modules/core-util-is": { + "dev": true, + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "version": "1.0.3" + }, + "node_modules/crc-32": { + "bin": { + "crc32": "bin/crc32.njs" }, "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.8" }, - "integrity": "sha512-/C8jb+k/vKUBIe80D30vzjvRXlJf76kG2AJY7/NwiqWuD2usRuuDFCDaswXdVsSh9P1+FeaxZ48chsK10yDryQ==", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "version": "1.2.2" }, - "node_modules/@smithy/eventstream-serde-universal": { + "node_modules/crc32-stream": { "dependencies": { - "@smithy/eventstream-codec": "^2.0.5", - "@smithy/types": "^2.2.2", - "tslib": "^2.5.0" + "crc-32": "^1.2.0", + "readable-stream": "^3.4.0" }, "dev": true, "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-+vHvbQtlSVYTQ/20tNpVaKi0EpTR7E8GoEUHJypRZIRgiT03b3h2MAWk+SNaqMrCJrYG9vKLkJFzDylRlUvDWg==", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-2.0.5.tgz", - "version": "2.0.5" - }, - "node_modules/@smithy/fetch-http-handler": { - "dependencies": { - "@smithy/protocol-http": "^3.0.9", - "@smithy/querystring-builder": "^2.0.13", - "@smithy/types": "^2.5.0", - "@smithy/util-base64": "^2.0.1", - "tslib": "^2.5.0" + "node": ">= 10" }, - "integrity": "sha512-PStY3XO1Ksjwn3wMKye5U6m6zxXpXrXZYqLy/IeCbh3nM9QB3Jgw/B0PUSLUWKdXg4U8qgEu300e3ZoBvZLsDg==", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-2.2.6.tgz", - "version": "2.2.6" + "integrity": "sha512-DxFZ/Hk473b/muq1VJ///PMNLj0ZMnzye9thBpmjpJKCc5eMgB95aK8zCGrGfQ90cWo561Te6HK9D+j4KPdM6w==", + "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.2.tgz", + "version": "4.0.2" }, - "node_modules/@smithy/fetch-http-handler/node_modules/@smithy/protocol-http": { + "node_modules/cross-spawn": { "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 8" }, - "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", - "version": "3.0.9" + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "version": "7.0.6" }, - "node_modules/@smithy/hash-blob-browser": { + "node_modules/d": { "dependencies": { - "@smithy/chunked-blob-reader": "^2.0.0", - "@smithy/chunked-blob-reader-native": "^2.0.0", - "@smithy/types": "^2.2.2", - "tslib": "^2.5.0" + "es5-ext": "^0.10.50", + "type": "^1.0.1" }, "dev": true, - "integrity": "sha512-ZVAUBtJXGf9bEko4/RwWcTK6d3b/ZmQMxJMrxOOcQhVDiqny9zI0mzgstO4Oxz3135R7S3V/bbGw3w3woCYpQg==", - "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", + "version": "1.0.1" }, - "node_modules/@smithy/hash-node": { + "node_modules/dayjs": { + "dev": true, + "integrity": "sha512-QvzAURSbQ0pKdIye2txOzNaHmxtUBXerpY0FJsFXUMKbIZeFm5ht1LS/jFsrncjnmtv8HsG0W2g6c0zUjZWmpA==", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.9.tgz", + "version": "1.11.9" + }, + "node_modules/debug": { "dependencies": { - "@smithy/types": "^2.5.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" + "ms": "2.1.2" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.0" }, - "integrity": "sha512-t/qjEJZu/G46A22PAk1k/IiJZT4ncRkG5GOCNWN9HPPy5rCcSZUbh7gwp7CGKgJJ7ATMMg+0Td7i9o1lQTwOfQ==", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-2.0.15.tgz", - "version": "2.0.15" - }, - "node_modules/@smithy/hash-stream-node": { - "dependencies": { - "@smithy/types": "^2.2.2", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } }, + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "version": "4.3.4" + }, + "node_modules/debug/node_modules/ms": { + "dev": true, + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "version": "2.1.2" + }, + "node_modules/decamelize": { "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.10.0" }, - "integrity": "sha512-XiR4Aoux5kXy8OWPLQisKy3GPmm0l6deHepvPvr4MUzIwa5XWazG3JdbZXy+mk93CvEZrOwKPHU5Kul6QybJiQ==", - "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "version": "1.2.0" }, - "node_modules/@smithy/invalid-dependency": { + "node_modules/decompress": { "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "integrity": "sha512-XsGYhVhvEikX1Yz0kyIoLssJf2Rs6E0U2w2YuKdT4jSra5A/g8V2oLROC1s56NldbgnpesTYB2z55KCHHbKyjw==", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-2.0.13.tgz", - "version": "2.0.13" - }, - "node_modules/@smithy/is-array-buffer": { - "dependencies": { - "tslib": "^2.5.0" + "decompress-tar": "^4.0.0", + "decompress-tarbz2": "^4.0.0", + "decompress-targz": "^4.0.0", + "decompress-unzip": "^4.0.1", + "graceful-fs": "^4.1.10", + "make-dir": "^1.0.0", + "pify": "^2.3.0", + "strip-dirs": "^2.0.0" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", + "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", + "version": "4.2.1" }, - "node_modules/@smithy/md5-js": { + "node_modules/decompress-response": { "dependencies": { - "@smithy/types": "^2.2.2", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "mimic-response": "^3.1.0" }, "dev": true, - "integrity": "sha512-k5EOte/Ye2r7XBVaXv2rhiehk6l3T4uRiPF+pnxKEc+G9Fwd1xAXBDZrtOq1syFPBKBmVfNszG4nevngST7NKg==", - "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-2.0.5.tgz", - "version": "2.0.5" - }, - "node_modules/@smithy/middleware-content-length": { - "dependencies": { - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, "engines": { - "node": ">=14.0.0" + "node": ">=10" }, - "integrity": "sha512-xH4kRBw01gJgWiU+/mNTrnyFXeozpZHw39gLb3JKGsFDVmSrJZ8/tRqu27tU/ki1gKkxr2wApu+dEYjI3QwV1Q==", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-2.0.15.tgz", - "version": "2.0.15" - }, - "node_modules/@smithy/middleware-content-length/node_modules/@smithy/protocol-http": { - "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "version": "6.0.0" + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=10" }, - "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", - "version": "3.0.9" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + }, + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "version": "3.1.0" }, - "node_modules/@smithy/middleware-endpoint": { + "node_modules/decompress-tar": { "dependencies": { - "@smithy/middleware-serde": "^2.0.13", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/shared-ini-file-loader": "^2.2.4", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-middleware": "^2.0.6", - "tslib": "^2.5.0" + "file-type": "^5.2.0", + "is-stream": "^1.1.0", + "tar-stream": "^1.5.2" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-tddRmaig5URk2106PVMiNX6mc5BnKIKajHHDxb7K0J5MLdcuQluHMGnjkv18iY9s9O0tF+gAcPd/pDXA5L9DZw==", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-2.2.0.tgz", - "version": "2.2.0" + "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==", + "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", + "version": "4.1.1" }, - "node_modules/@smithy/middleware-retry": { + "node_modules/decompress-tar/node_modules/bl": { "dependencies": { - "@smithy/node-config-provider": "^2.1.5", - "@smithy/protocol-http": "^3.0.9", - "@smithy/service-error-classification": "^2.0.6", - "@smithy/types": "^2.5.0", - "@smithy/util-middleware": "^2.0.6", - "@smithy/util-retry": "^2.0.6", - "tslib": "^2.5.0", - "uuid": "^8.3.2" + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" }, + "dev": true, + "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", + "version": "1.2.3" + }, + "node_modules/decompress-tar/node_modules/file-type": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-X2yrF/SHDk2WDd8LflRNS955rlzQ9daz9UWSp15wW8KtzoTXg3bhHM78HbK1cjr48/FWERSJKh9AvRUUGlIawg==", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-2.0.20.tgz", - "version": "2.0.20" + "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "version": "5.2.0" }, - "node_modules/@smithy/middleware-retry/node_modules/@smithy/protocol-http": { - "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/decompress-tar/node_modules/is-stream": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.10.0" }, - "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", - "version": "3.0.9" + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "version": "1.1.0" }, - "node_modules/@smithy/middleware-retry/node_modules/uuid": { - "bin": { - "uuid": "dist/bin/uuid" + "node_modules/decompress-tar/node_modules/readable-stream": { + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" }, - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "version": "8.3.2" + "dev": true, + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "version": "2.3.8" }, - "node_modules/@smithy/middleware-serde": { + "node_modules/decompress-tar/node_modules/safe-buffer": { + "dev": true, + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "version": "5.1.2" + }, + "node_modules/decompress-tar/node_modules/string_decoder": { "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "safe-buffer": "~5.1.0" }, - "integrity": "sha512-tBGbeXw+XsE6pPr4UaXOh+UIcXARZeiA8bKJWxk2IjJcD1icVLhBSUQH9myCIZLNNzJIH36SDjUX8Wqk4xJCJg==", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-2.0.13.tgz", - "version": "2.0.13" + "dev": true, + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "version": "1.1.1" }, - "node_modules/@smithy/middleware-stack": { + "node_modules/decompress-tar/node_modules/tar-stream": { "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 0.8.0" }, - "integrity": "sha512-L1KLAAWkXbGx1t2jjCI/mDJ2dDNq+rp4/ifr/HcC6FHngxho5O7A5bQLpKHGlkfATH6fUnOEx0VICEVFA4sUzw==", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-2.0.7.tgz", - "version": "2.0.7" + "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", + "version": "1.6.2" }, - "node_modules/@smithy/node-config-provider": { + "node_modules/decompress-tarbz2": { "dependencies": { - "@smithy/property-provider": "^2.0.14", - "@smithy/shared-ini-file-loader": "^2.2.4", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "decompress-tar": "^4.1.0", + "file-type": "^6.1.0", + "is-stream": "^1.1.0", + "seek-bzip": "^1.0.5", + "unbzip2-stream": "^1.0.9" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-3Omb5/h4tOCuKRx4p4pkYTvEYRCYoKk52bOYbKUyz/G/8gERbagsN8jFm4FjQubkrcIqQEghTpQaUw6uk+0edw==", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-2.1.5.tgz", - "version": "2.1.5" + "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==", + "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", + "version": "4.1.1" }, - "node_modules/@smithy/node-http-handler": { - "dependencies": { - "@smithy/abort-controller": "^2.0.13", - "@smithy/protocol-http": "^3.0.9", - "@smithy/querystring-builder": "^2.0.13", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/decompress-tarbz2/node_modules/file-type": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-+K0q3SlNcocmo9OZj+fz67gY4lwhOCvIJxVbo/xH+hfWObvaxrMTx7JEzzXcluK0thnnLz++K3Qe7Z/8MDUreA==", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-2.1.9.tgz", - "version": "2.1.9" + "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", + "version": "6.2.0" }, - "node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http": { - "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/decompress-tarbz2/node_modules/is-stream": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.10.0" }, - "integrity": "sha512-U1wl+FhYu4/BC+rjwh1lg2gcJChQhytiNQSggREgQ9G2FzmoK9sACBZvx7thyWMvRyHQTE22mO2d5UM8gMKDBg==", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.9.tgz", - "version": "3.0.9" + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "version": "1.1.0" }, - "node_modules/@smithy/property-provider": { + "node_modules/decompress-targz": { "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "decompress-tar": "^4.1.1", + "file-type": "^5.2.0", + "is-stream": "^1.1.0" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-k3D2qp9o6imTrLaXRj6GdLYEJr1sXqS99nLhzq8fYmJjSVOeMg/G+1KVAAc7Oxpu71rlZ2f8SSZxcSxkevuR0A==", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-2.0.14.tgz", - "version": "2.0.14" + "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==", + "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", + "version": "4.1.1" }, - "node_modules/@smithy/protocol-http": { - "dependencies": { - "@smithy/types": "^2.2.2", - "tslib": "^2.5.0" - }, + "node_modules/decompress-targz/node_modules/file-type": { "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-d2hhHj34mA2V86doiDfrsy2fNTnUOowGaf9hKb0hIPHqvcnShU4/OSc4Uf1FwHkAdYF3cFXTrj5VGUYbEuvMdw==", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "version": "5.2.0" }, - "node_modules/@smithy/querystring-builder": { - "dependencies": { - "@smithy/types": "^2.5.0", - "@smithy/util-uri-escape": "^2.0.0", - "tslib": "^2.5.0" - }, + "node_modules/decompress-targz/node_modules/is-stream": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.10.0" }, - "integrity": "sha512-JhXKwp3JtsFUe96XLHy/nUPEbaXqn6r7xE4sNaH8bxEyytE5q1fwt0ew/Ke6+vIC7gP87HCHgQpJHg1X1jN2Fw==", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-2.0.13.tgz", - "version": "2.0.13" + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "version": "1.1.0" }, - "node_modules/@smithy/querystring-parser": { + "node_modules/decompress-unzip": { "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "file-type": "^3.8.0", + "get-stream": "^2.2.0", + "pify": "^2.3.0", + "yauzl": "^2.4.2" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-TEiT6o8CPZVxJ44Rly/rrsATTQsE+b/nyBVzsYn2sa75xAaZcurNxsFd8z1haoUysONiyex24JMHoJY6iCfLdA==", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-2.0.13.tgz", - "version": "2.0.13" + "integrity": "sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw==", + "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", + "version": "4.0.1" }, - "node_modules/@smithy/service-error-classification": { - "dependencies": { - "@smithy/types": "^2.5.0" - }, + "node_modules/decompress-unzip/node_modules/file-type": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.10.0" }, - "integrity": "sha512-fCQ36frtYra2fqY2/DV8+3/z2d0VB/1D1hXbjRcM5wkxTToxq6xHbIY/NGGY6v4carskMyG8FHACxgxturJ9Pg==", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-2.0.6.tgz", - "version": "2.0.6" + "integrity": "sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA==", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", + "version": "3.9.0" }, - "node_modules/@smithy/shared-ini-file-loader": { + "node_modules/decompress-unzip/node_modules/get-stream": { "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "object-assign": "^4.0.1", + "pinkie-promise": "^2.0.0" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.10.0" }, - "integrity": "sha512-9dRknGgvYlRIsoTcmMJXuoR/3ekhGwhRq4un3ns2/byre4Ql5hyUN4iS0x8eITohjU90YOnUCsbRwZRvCkbRfw==", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-2.2.4.tgz", - "version": "2.2.4" + "integrity": "sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", + "version": "2.3.1" }, - "node_modules/@smithy/signature-v4": { + "node_modules/decompress/node_modules/make-dir": { "dependencies": { - "@smithy/eventstream-codec": "^2.0.5", - "@smithy/is-array-buffer": "^2.0.0", - "@smithy/types": "^2.2.2", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-middleware": "^2.0.0", - "@smithy/util-uri-escape": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "pify": "^3.0.0" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-ABIzXmUDXK4n2c9cXjQLELgH2RdtABpYKT+U131e2I6RbCypFZmxIHmIBufJzU2kdMCQ3+thBGDWorAITFW04A==", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-2.0.5.tgz", - "version": "2.0.5" + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "version": "1.3.0" }, - "node_modules/@smithy/smithy-client": { - "dependencies": { - "@smithy/middleware-stack": "^2.0.7", - "@smithy/types": "^2.5.0", - "@smithy/util-stream": "^2.0.20", - "tslib": "^2.5.0" - }, + "node_modules/decompress/node_modules/make-dir/node_modules/pify": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" }, - "integrity": "sha512-rngZcQu7Jvs9UbHihK1EI67RMPuzkc3CJmu4MBgB7D7yBnMGuFR86tq5rqHfL2gAkNnMelBN/8kzQVvZjNKefQ==", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-2.1.15.tgz", - "version": "2.1.15" + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "version": "3.0.0" }, - "node_modules/@smithy/types": { + "node_modules/defaults": { "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "clone": "^1.0.2" }, - "integrity": "sha512-/a31lYofrMBkJb3BuPlYJTMKDj0hUmKUP6JFZQu6YVuQVoAjubiY0A52U9S0Uysd33n/djexCUSNJ+G9bf3/aA==", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.5.0.tgz", - "version": "2.5.0" - }, - "node_modules/@smithy/url-parser": { - "dependencies": { - "@smithy/querystring-parser": "^2.0.13", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "dev": true, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-okWx2P/d9jcTsZWTVNnRMpFOE7fMkzloSFyM53fA7nLKJQObxM2T4JlZ5KitKKuXq7pxon9J6SF2kCwtdflIrA==", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-2.0.13.tgz", - "version": "2.0.13" + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "version": "1.0.4" }, - "node_modules/@smithy/util-base64": { - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, + "node_modules/defer-to-connect": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=10" }, - "integrity": "sha512-DlI6XFYDMsIVN+GH9JtcRp3j02JEVuWIn/QOZisVzpIAprdsxGveFed0bjbMRCqmIFe8uetn5rxzNrBtIGrPIQ==", - "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", "version": "2.0.1" }, - "node_modules/@smithy/util-body-length-browser": { + "node_modules/deferred": { "dependencies": { - "tslib": "^2.5.0" + "d": "^1.0.1", + "es5-ext": "^0.10.50", + "event-emitter": "^0.3.5", + "next-tick": "^1.0.0", + "timers-ext": "^0.1.7" }, - "integrity": "sha512-JdDuS4ircJt+FDnaQj88TzZY3+njZ6O+D3uakS32f2VNnDo3vyEuNdBOh/oFd8Df1zSZOuH1HEChk2AOYDezZg==", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-2.0.0.tgz", - "version": "2.0.0" + "dev": true, + "integrity": "sha512-8eluCl/Blx4YOGwMapBvXRKxHXhA8ejDXYzEaK8+/gtcm8hRMhSLmXSqDmNUKNc/C8HNSmuyyp/hflhqDAvK2A==", + "resolved": "https://registry.npmjs.org/deferred/-/deferred-0.7.11.tgz", + "version": "0.7.11" }, - "node_modules/@smithy/util-body-length-node": { - "dependencies": { - "tslib": "^2.5.0" - }, + "node_modules/define-lazy-prop": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" }, - "integrity": "sha512-/li0/kj/y3fQ3vyzn36NTLGmUwAICb7Jbe/CsWCktW363gh1MOcpEcSO3mJ344Gv2dqz8YJCLQpb6hju/0qOWw==", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-2.1.0.tgz", - "version": "2.1.0" + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@smithy/util-buffer-from": { - "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" - }, + "node_modules/delayed-stream": { + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.4.0" }, - "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/@smithy/util-config-provider": { + "node_modules/dezalgo": { "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "asap": "^2.0.0", + "wrappy": "1" }, - "integrity": "sha512-xCQ6UapcIWKxXHEU4Mcs2s7LcFQRiU3XEluM2WcCjjBtQkUN71Tb+ydGmJFPxMUrW/GWMgQEEGipLym4XG0jZg==", - "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-2.0.0.tgz", - "version": "2.0.0" + "dev": true, + "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", + "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", + "version": "1.0.4" }, - "node_modules/@smithy/util-defaults-mode-browser": { + "node_modules/dir-glob": { "dependencies": { - "@smithy/property-provider": "^2.0.14", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "bowser": "^2.11.0", - "tslib": "^2.5.0" + "path-type": "^4.0.0" }, + "dev": true, "engines": { - "node": ">= 10.0.0" + "node": ">=8" }, - "integrity": "sha512-VHP8xdFR7/orpiABJwgoTB0t8Zhhwpf93gXhNfUBiwAE9O0rvsv7LwpQYjgvbOUDDO8JfIYQB2GYJNkqqGWsXw==", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-2.0.19.tgz", - "version": "2.0.19" + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "version": "3.0.1" }, - "node_modules/@smithy/util-defaults-mode-node": { - "dependencies": { - "@smithy/config-resolver": "^2.0.18", - "@smithy/credential-provider-imds": "^2.1.1", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/property-provider": "^2.0.14", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, + "node_modules/dotenv": { + "dev": true, "engines": { - "node": ">= 10.0.0" + "node": ">=12" }, - "integrity": "sha512-jkmep6/JyWmn2ADw9VULDeGbugR4N/FJCKOt+gYyVswmN1BJOfzF2umaYxQ1HhQDvna3kzm1Dbo1qIfBW4iuHA==", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.0.25.tgz", - "version": "2.0.25" - }, - "node_modules/@smithy/util-endpoints": { - "dependencies": { - "@smithy/node-config-provider": "^2.1.5", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" + "funding": { + "url": "https://dotenvx.com" }, + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "version": "16.4.5" + }, + "node_modules/dotenv-expand": { "dev": true, "engines": { - "node": ">= 14.0.0" + "node": ">=12" }, - "integrity": "sha512-FPry8j1xye5yzrdnf4xKUXVnkQErxdN7bUIaqC0OFoGsv2NfD9b2UUMuZSSt+pr9a8XWAqj0HoyVNUfPiZ/PvQ==", - "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-1.0.4.tgz", - "version": "1.0.4" + "integrity": "sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz", + "version": "10.0.0" }, - "node_modules/@smithy/util-hex-encoding": { + "node_modules/duration": { "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "d": "1", + "es5-ext": "~0.10.46" }, - "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", - "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.0.0.tgz", - "version": "2.0.0" + "dev": true, + "integrity": "sha512-06kgtea+bGreF5eKYgI/36A6pLXggY7oR4p1pq4SmdFBn1ReOL5D8RhG64VrqfTTKNucqqtBAwEj8aB88mcqrg==", + "resolved": "https://registry.npmjs.org/duration/-/duration-0.2.2.tgz", + "version": "0.2.2" }, - "node_modules/@smithy/util-middleware": { - "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-7W4uuwBvSLgKoLC1x4LfeArCVcbuHdtVaC4g30kKsD1erfICyQ45+tFhhs/dZNeQg+w392fhunCm/+oCcb6BSA==", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-2.0.6.tgz", - "version": "2.0.6" + "node_modules/emoji-regex": { + "dev": true, + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "version": "8.0.0" }, - "node_modules/@smithy/util-retry": { + "node_modules/end-of-stream": { "dependencies": { - "@smithy/service-error-classification": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 14.0.0" + "once": "^1.4.0" }, - "integrity": "sha512-PSO41FofOBmyhPQJwBQJ6mVlaD7Sp9Uff9aBbnfBJ9eqXOE/obrqQjn0PNdkfdvViiPXl49BINfnGcFtSP4kYw==", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-2.0.6.tgz", - "version": "2.0.6" + "dev": true, + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "version": "1.4.4" }, - "node_modules/@smithy/util-stream": { + "node_modules/es5-ext": { "dependencies": { - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/types": "^2.5.0", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.10" }, - "integrity": "sha512-tT8VASuD8jJu0yjHEMTCPt1o5E3FVzgdsxK6FQLAjXKqVv5V8InCnc0EOsYrijgspbfDqdAJg7r0o2sySfcHVg==", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-2.0.20.tgz", - "version": "2.0.20" + "hasInstallScript": true, + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "version": "0.10.64" }, - "node_modules/@smithy/util-uri-escape": { + "node_modules/es5-ext/node_modules/esniff": { "dependencies": { - "tslib": "^2.5.0" + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" }, + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=0.10" }, - "integrity": "sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==", - "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/@smithy/util-utf8": { - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "integrity": "sha512-qOiVORSPm6Ce4/Yu6hbSgNHABLP2VMv8QOC3tTDNHHlWY19pPyc++fBTbZPtx6egPXi4HQxKDnMxVxpbtX2GoA==", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.0.2.tgz", - "version": "2.0.2" + "node_modules/es5-ext/node_modules/type": { + "dev": true, + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/@smithy/util-waiter": { + "node_modules/es6-iterator": { "dependencies": { - "@smithy/abort-controller": "^2.0.13", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" }, - "integrity": "sha512-YovIQatiuM7giEsRFotqJa2i3EbU2EE3PgtpXgtLgpx5rXiZMAwPxXYDFVFhuO0lbqvc/Zx4n+ZIisXOHPSqyg==", - "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-2.0.13.tgz", - "version": "2.0.13" - }, - "node_modules/@sqltools/formatter": { - "integrity": "sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==", - "resolved": "https://registry.npmjs.org/@sqltools/formatter/-/formatter-1.2.5.tgz", - "version": "1.2.5" + "dev": true, + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "version": "2.0.3" }, - "node_modules/@szmarczak/http-timer": { + "node_modules/es6-set": { "dependencies": { - "defer-to-connect": "^2.0.0" - }, - "engines": { - "node": ">=10" + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "es6-iterator": "~2.0.3", + "es6-symbol": "^3.1.3", + "event-emitter": "^0.3.5", + "type": "^2.7.2" }, - "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", - "version": "4.0.6" - }, - "node_modules/@thefaultvault/tfv-cpe-parser": { - "integrity": "sha512-7SJRoAT1MqUeFl4EL47SYLnt1NmDh8gNYvcm2axWp7CKD3QVEXCDgooCh28Cwo4g2BvPae1Y/09ZotAkLtJgZQ==", - "resolved": "https://registry.npmjs.org/@thefaultvault/tfv-cpe-parser/-/tfv-cpe-parser-1.3.0.tgz", - "version": "1.3.0" - }, - "node_modules/@tokenizer/token": { "dev": true, - "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", - "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", - "version": "0.3.0" - }, - "node_modules/@tootallnate/once": { "engines": { - "node": ">= 10" + "node": ">=0.12" }, - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/@tsconfig/node10": { - "dev": true, - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "version": "1.0.9" - }, - "node_modules/@tsconfig/node12": { - "dev": true, - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "version": "1.0.11" - }, - "node_modules/@tsconfig/node14": { - "dev": true, - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/@tsconfig/node16": { - "dev": true, - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "version": "1.0.4" + "integrity": "sha512-TE3LgGLDIBX332jq3ypv6bcOpkLO0AslAQo7p2VqX/1N46YNsvIWgvjojjSEnWEGWMhr1qUbYeTSir5J6mFHOw==", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.6.tgz", + "version": "0.1.6" }, - "node_modules/@types/aws-lambda": { + "node_modules/es6-set/node_modules/type": { "dev": true, - "integrity": "sha512-Vqm22aZrCvCd6I5g1SvpW151jfqwTzEZ7XJ3yZ6xaZG31nUEOEyzzVImjRcsN8Wi/QyPxId/x8GTtgIbsy8kEw==", - "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.119.tgz", - "version": "8.10.119" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/@types/babel__core": { + "node_modules/es6-symbol": { "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" + "d": "^1.0.1", + "ext": "^1.1.2" }, "dev": true, - "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", - "version": "7.20.1" + "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", + "version": "3.1.3" }, - "node_modules/@types/babel__generator": { + "node_modules/es6-weak-map": { "dependencies": { - "@babel/types": "^7.0.0" + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" }, "dev": true, - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "version": "7.6.4" + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "version": "2.0.3" }, - "node_modules/@types/babel__template": { + "node_modules/esniff": { "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" + "d": "1", + "es5-ext": "^0.10.12" }, "dev": true, - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "version": "7.4.1" + "integrity": "sha512-vmHXOeOt7FJLsqofvFk4WB3ejvcHizCd8toXXwADmYfd02p2QwHRgkUbhYDX54y08nqk818CUTWipgZGlyN07g==", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-1.1.0.tgz", + "version": "1.1.0" }, - "node_modules/@types/babel__traverse": { - "dependencies": { - "@babel/types": "^7.20.7" + "node_modules/esprima": { + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" }, "dev": true, - "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", - "version": "7.20.1" - }, - "node_modules/@types/body-parser": { - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - }, - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "version": "1.19.2" - }, - "node_modules/@types/cacheable-request": { - "dependencies": { - "@types/http-cache-semantics": "*", - "@types/keyv": "^3.1.4", - "@types/node": "*", - "@types/responselike": "^1.0.0" + "engines": { + "node": ">=4" }, - "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", - "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", - "version": "6.0.3" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "version": "4.0.1" }, - "node_modules/@types/connect": { + "node_modules/essentials": { "dependencies": { - "@types/node": "*" + "uni-global": "^1.0.0" }, - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "version": "3.4.35" - }, - "node_modules/@types/cookiejar": { "dev": true, - "integrity": "sha512-t73xJJrvdTjXrn4jLS9VSGRbz0nUY3cl2DMGDU48lKl+HR9dbbjW2A9r3g40VA++mQpy6uuHg33gy7du2BKpog==", - "resolved": "https://registry.npmjs.org/@types/cookiejar/-/cookiejar-2.1.2.tgz", - "version": "2.1.2" + "integrity": "sha512-kP/j7Iw7KeNE8b/o7+tr9uX2s1wegElGOoGZ2Xm35qBr4BbbEcH3/bxR2nfH9l9JANCq9AUrvKw+gRuHtZp0HQ==", + "resolved": "https://registry.npmjs.org/essentials/-/essentials-1.2.0.tgz", + "version": "1.2.0" }, - "node_modules/@types/cors": { + "node_modules/event-emitter": { "dependencies": { - "@types/node": "*" + "d": "1", + "es5-ext": "~0.10.14" }, "dev": true, - "integrity": "sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==", - "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.17.tgz", - "version": "2.8.17" + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "version": "0.3.5" }, - "node_modules/@types/docker-modem": { - "dependencies": { - "@types/node": "*", - "@types/ssh2": "*" + "node_modules/event-target-shim": { + "dev": true, + "engines": { + "node": ">=6" }, + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "version": "5.0.1" + }, + "node_modules/events": { "dev": true, - "integrity": "sha512-i1A2Etnav7uHizZ87vUf4EqwJehY3JOcTfBS0pGBlO+HQ0jg2lUMCaJRg9VQM8ldZkpYdIfsenxcTOCpwxPXEg==", - "resolved": "https://registry.npmjs.org/@types/docker-modem/-/docker-modem-3.0.3.tgz", - "version": "3.0.3" + "engines": { + "node": ">=0.4.x" + }, + "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==", + "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "version": "1.1.1" }, - "node_modules/@types/dockerode": { + "node_modules/ext": { "dependencies": { - "@types/docker-modem": "*", - "@types/node": "*" + "type": "^2.7.2" }, "dev": true, - "integrity": "sha512-7CC5yIpQi+bHXwDK43b/deYXteP3Lem9gdocVVHJPSRJJLMfbiOchQV3rDmAPkMw+n3GIVj7m1six3JW+VcwwA==", - "resolved": "https://registry.npmjs.org/@types/dockerode/-/dockerode-3.3.19.tgz", - "version": "3.3.19" + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "version": "1.7.0" }, - "node_modules/@types/eslint": { + "node_modules/ext-list": { "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" + "mime-db": "^1.28.0" }, "dev": true, - "integrity": "sha512-sdPRb9K6iL5XZOmBubg8yiFp5yS/JdUDQsq5e6h95km91MCYMuvp7mh1fjPEYUhvHepKpZOjnEaMBR4PxjWDzg==", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.2.tgz", - "version": "8.44.2" + "engines": { + "node": ">=0.10.0" + }, + "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==", + "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", + "version": "2.2.2" }, - "node_modules/@types/eslint-scope": { + "node_modules/ext-name": { "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" + "ext-list": "^2.0.0", + "sort-keys-length": "^1.0.0" }, "dev": true, - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "version": "3.7.4" + "engines": { + "node": ">=4" + }, + "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==", + "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", + "version": "5.0.0" }, - "node_modules/@types/estree": { - "dev": true, - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/@types/express": { - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - }, - "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", - "version": "4.17.17" - }, - "node_modules/@types/express-serve-static-core": { - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - }, - "integrity": "sha512-zbivROJ0ZqLAtMzgzIUC4oNqDG9iF0lSsAqpOD9kbs5xcIM3dTiyuHvBc7R8MtWBp3AAWGaovJa+wzWPjLYW7Q==", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.36.tgz", - "version": "4.17.36" - }, - "node_modules/@types/glob": { - "dependencies": { - "@types/minimatch": "*", - "@types/node": "*" - }, + "node_modules/ext/node_modules/type": { "dev": true, - "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", - "version": "7.2.0" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/@types/graceful-fs": { + "node_modules/external-editor": { "dependencies": { - "@types/node": "*" + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" }, "dev": true, - "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", - "version": "4.1.6" - }, - "node_modules/@types/http-cache-semantics": { - "integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/@types/http-errors": { - "integrity": "sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/@types/http-proxy": { - "dependencies": { - "@types/node": "*" + "engines": { + "node": ">=4" }, - "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", - "version": "1.17.11" + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "version": "3.1.0" }, - "node_modules/@types/istanbul-lib-coverage": { + "node_modules/fast-deep-equal": { "dev": true, - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "version": "2.0.4" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "version": "3.1.3" }, - "node_modules/@types/istanbul-lib-report": { + "node_modules/fast-glob": { "dependencies": { - "@types/istanbul-lib-coverage": "*" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" }, "dev": true, - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/@types/istanbul-reports": { - "dependencies": { - "@types/istanbul-lib-report": "*" + "engines": { + "node": ">=8.6.0" }, - "dev": true, - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "version": "3.0.1" + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "version": "3.3.1" }, - "node_modules/@types/jest": { + "node_modules/fast-glob/node_modules/glob-parent": { "dependencies": { - "jest-matcher-utils": "^27.0.0", - "pretty-format": "^27.0.0" + "is-glob": "^4.0.1" }, "dev": true, - "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", - "version": "27.5.2" + "engines": { + "node": ">= 6" + }, + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "version": "5.1.2" }, - "node_modules/@types/json-schema": { + "node_modules/fast-safe-stringify": { "dev": true, - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "version": "7.0.12" + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "version": "2.1.1" }, - "node_modules/@types/jsonwebtoken": { - "dependencies": { - "@types/node": "*" + "node_modules/fast-xml-parser": { + "bin": { + "fxparser": "src/cli/cli.js" }, - "integrity": "sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", - "version": "9.0.2" - }, - "node_modules/@types/keyv": { "dependencies": { - "@types/node": "*" + "strnum": "^1.0.5" }, - "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", - "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", - "version": "3.1.4" - }, - "node_modules/@types/lodash": { "dev": true, - "integrity": "sha512-BMVOiWs0uNxHVlHBgzTIqJYmj+PgCo4euloGF+5m4okL3rEYzM2EEv78mw8zWSMM57dM7kVIgJ2QDvwHSoCI5g==", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.197.tgz", - "version": "4.14.197" - }, - "node_modules/@types/mime": { - "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", - "version": "1.3.2" + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", + "version": "4.2.5" }, - "node_modules/@types/minimatch": { + "node_modules/fastest-levenshtein": { "dev": true, - "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", - "version": "5.1.2" - }, - "node_modules/@types/node": { - "integrity": "sha512-Y+/1vGBHV/cYk6OI1Na/LHzwnlNCAfU3ZNGrc1LdRe/LAIbdDPTTv/HU3M7yXN448aTVDq3eKRm2cg7iKLb8gw==", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.6.2.tgz", - "version": "20.6.2" - }, - "node_modules/@types/node-fetch": { - "dependencies": { - "@types/node": "*", - "form-data": "^3.0.0" + "engines": { + "node": ">= 4.9.1" }, - "dev": true, - "integrity": "sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.4.tgz", - "version": "2.6.4" + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "version": "1.0.16" }, - "node_modules/@types/nodemailer": { + "node_modules/fastq": { "dependencies": { - "@types/node": "*" + "reusify": "^1.0.4" }, "dev": true, - "integrity": "sha512-XYG8Gv+sHjaOtUpiuytahMy2mM3rectgroNbs6R3djZEKmPNiIJwe9KqOJBGzKKnNZNKvnuvmugBgpq3w/S0ig==", - "resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-6.4.9.tgz", - "version": "6.4.9" + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "version": "1.15.0" }, - "node_modules/@types/papaparse": { + "node_modules/fd-slicer": { "dependencies": { - "@types/node": "*" + "pend": "~1.2.0" }, "dev": true, - "integrity": "sha512-ArKIEOOWULbhi53wkAiRy1ze4wvrTfhpAj7Yfzva+EkmX2sV8PpFB+xqzJfzXNzK4me95FJH9QZt5NXFVGzOoQ==", - "resolved": "https://registry.npmjs.org/@types/papaparse/-/papaparse-5.3.8.tgz", - "version": "5.3.8" - }, - "node_modules/@types/prettier": { - "dev": true, - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "version": "2.7.3" - }, - "node_modules/@types/qs": { - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "version": "6.9.7" - }, - "node_modules/@types/range-parser": { - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "version": "1.2.4" + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "version": "1.1.0" }, - "node_modules/@types/responselike": { + "node_modules/figures": { "dependencies": { - "@types/node": "*" + "escape-string-regexp": "^1.0.5" }, - "integrity": "sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==", - "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/@types/retry": { - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "version": "0.12.0" - }, - "node_modules/@types/semver": { "dev": true, - "integrity": "sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.1.tgz", - "version": "7.5.1" - }, - "node_modules/@types/send": { - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - }, - "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", - "version": "0.17.1" - }, - "node_modules/@types/serve-static": { - "dependencies": { - "@types/http-errors": "*", - "@types/mime": "*", - "@types/node": "*" + "engines": { + "node": ">=8" }, - "integrity": "sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.2.tgz", - "version": "1.15.2" - }, - "node_modules/@types/ssh2": { - "dependencies": { - "@types/node": "^18.11.18" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "dev": true, - "integrity": "sha512-08WbG68HvQ2YVi74n2iSUnYHYpUdFc/s2IsI0BHBdJwaqYJpWlVv9elL0tYShTv60yr0ObdxJR5NrCRiGJ/0CQ==", - "resolved": "https://registry.npmjs.org/@types/ssh2/-/ssh2-1.11.13.tgz", - "version": "1.11.13" - }, - "node_modules/@types/ssh2/node_modules/@types/node": { - "dev": true, - "integrity": "sha512-cOxcXsQ2sxiwkykdJqvyFS+MLQPLvIdwh5l6gNg8qF6s+C7XSkEWOZjK+XhUZd+mYvHV/180g2cnCcIl4l06Pw==", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.17.tgz", - "version": "18.17.17" - }, - "node_modules/@types/stack-utils": { - "dev": true, - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/@types/strip-bom": { - "dev": true, - "integrity": "sha512-xevGOReSYGM7g/kUBZzPqCrR/KYAo+F0yiPc85WFTJa0MSLtyFTVTU6cJu/aV4mid7IffDIWqo69THF2o4JiEQ==", - "resolved": "https://registry.npmjs.org/@types/strip-bom/-/strip-bom-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "version": "3.2.0" }, - "node_modules/@types/strip-json-comments": { + "node_modules/figures/node_modules/escape-string-regexp": { "dev": true, - "integrity": "sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==", - "resolved": "https://registry.npmjs.org/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz", - "version": "0.0.30" - }, - "node_modules/@types/superagent": { - "dependencies": { - "@types/cookiejar": "*", - "@types/node": "*" + "engines": { + "node": ">=0.8.0" }, - "dev": true, - "integrity": "sha512-LOWgpacIV8GHhrsQU+QMZuomfqXiqzz3ILLkCtKx3Us6AmomFViuzKT9D693QTKgyut2oCytMG8/efOop+DB+w==", - "resolved": "https://registry.npmjs.org/@types/superagent/-/superagent-4.1.18.tgz", - "version": "4.1.18" + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "version": "1.0.5" }, - "node_modules/@types/supertest": { + "node_modules/file-type": { "dependencies": { - "@types/superagent": "*" + "readable-web-to-node-stream": "^3.0.0", + "strtok3": "^6.2.4", + "token-types": "^4.1.1" }, "dev": true, - "integrity": "sha512-X3HPWTwXRerBZS7Mo1k6vMVR1Z6zmJcDVn5O/31whe0tnjE4te6ZJSJGq1RiqHPjzPdMTfjCFogDJmwng9xHaQ==", - "resolved": "https://registry.npmjs.org/@types/supertest/-/supertest-2.0.12.tgz", - "version": "2.0.12" - }, - "node_modules/@types/uuid": { - "dev": true, - "integrity": "sha512-WUtIVRUZ9i5dYXefDEAI7sh9/O7jGvHg7Df/5O/gtH3Yabe5odI3UWopVR1qbPXQtvOxWu3mM4XxlYeZtMWF4g==", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.7.tgz", - "version": "9.0.7" - }, - "node_modules/@types/validator": { - "integrity": "sha512-d/MUkJYdOeKycmm75Arql4M5+UuXmf4cHdHKsyw1GcvnNgL6s77UkgSgJ8TE/rI5PYsnwYq5jkcWBLuN/MpQ1A==", - "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.11.1.tgz", - "version": "13.11.1" - }, - "node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" + "engines": { + "node": ">=10" }, - "dev": true, - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "version": "17.0.24" + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + }, + "integrity": "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw==", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.4.tgz", + "version": "16.5.4" }, - "node_modules/@types/yargs-parser": { + "node_modules/filename-reserved-regex": { "dev": true, - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "version": "21.0.0" - }, - "node_modules/@types/zen-observable": { - "integrity": "sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==", - "resolved": "https://registry.npmjs.org/@types/zen-observable/-/zen-observable-0.8.3.tgz", - "version": "0.8.3" + "engines": { + "node": ">=4" + }, + "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/@typescript-eslint/eslint-plugin": { + "node_modules/filenamify": { "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "filename-reserved-regex": "^2.0.0", + "strip-outer": "^1.0.1", + "trim-repeated": "^1.0.0" }, "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=8" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "url": "https://github.com/sponsors/sindresorhus" }, - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", - "version": "5.62.0" + "integrity": "sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==", + "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz", + "version": "4.3.0" }, - "node_modules/@typescript-eslint/parser": { - "dependencies": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "debug": "^4.3.4" - }, + "node_modules/filesize": { "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">= 10.4.0" }, - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", - "version": "5.62.0" + "integrity": "sha512-6RS9gDchbn+qWmtV2uSjo5vmKizgfCQeb5jKmqx8HyzA3MoLqqyQxN+QcjkGBJt7FjJ9qFce67Auyya5rRRbpw==", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.0.12.tgz", + "version": "10.0.12" }, - "node_modules/@typescript-eslint/scope-manager": { + "node_modules/fill-range": { "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" + "to-regex-range": "^5.0.1" }, "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=8" }, - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "version": "5.62.0" + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "version": "7.1.1" }, - "node_modules/@typescript-eslint/type-utils": { + "node_modules/find-requires": { + "bin": { + "find-requires": "bin/find-requires.js" + }, "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" + "es5-ext": "^0.10.49", + "esniff": "^1.1.0" }, "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", - "version": "5.62.0" + "integrity": "sha512-UME7hNwBfzeISSFQcBEDemEEskpOjI/shPrpJM5PI4DSdn6hX0dmz+2dL70blZER2z8tSnTRL+2rfzlYgtbBoQ==", + "resolved": "https://registry.npmjs.org/find-requires/-/find-requires-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/@typescript-eslint/types": { + "node_modules/find-up": { + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=8" }, - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "version": "5.62.0" + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "version": "4.1.0" }, - "node_modules/@typescript-eslint/typescript-estree": { - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "node_modules/flat": { + "bin": { + "flat": "cli.js" }, + "dev": true, + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "version": "5.0.2" + }, + "node_modules/follow-redirects": { "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=4.0" }, - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "peerDependenciesMeta": { - "typescript": { + "debug": { "optional": true } }, - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "version": "5.62.0" + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "version": "1.15.6" }, - "node_modules/@typescript-eslint/utils": { + "node_modules/for-each": { "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" + "is-callable": "^1.1.3" }, "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "version": "5.62.0" + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "version": "0.3.3" }, - "node_modules/@typescript-eslint/visitor-keys": { + "node_modules/form-data": { "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" }, "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">= 6" }, - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "version": "5.62.0" + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "version": "4.0.1" }, - "node_modules/@webassemblyjs/ast": { + "node_modules/formidable": { "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + "dezalgo": "^1.0.4", + "hexoid": "^1.0.0", + "once": "^1.4.0", + "qs": "^6.11.0" }, "dev": true, - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "version": "1.11.6" - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "dev": true, - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "version": "1.11.6" - }, - "node_modules/@webassemblyjs/helper-api-error": { - "dev": true, - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "version": "1.11.6" - }, - "node_modules/@webassemblyjs/helper-buffer": { - "dev": true, - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "version": "1.11.6" - }, - "node_modules/@webassemblyjs/helper-numbers": { - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" + "funding": { + "url": "https://ko-fi.com/tunnckoCore/commissions" }, - "dev": true, - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "version": "1.11.6" + "integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz", + "version": "2.1.2" }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "node_modules/fs-constants": { "dev": true, - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "version": "1.11.6" + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/@webassemblyjs/helper-wasm-section": { + "node_modules/fs-extra": { "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "dev": true, - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "version": "1.11.6" - }, - "node_modules/@webassemblyjs/ieee754": { - "dependencies": { - "@xtuc/ieee754": "^1.2.0" + "engines": { + "node": ">=12" }, - "dev": true, - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "version": "1.11.6" + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "version": "10.1.0" }, - "node_modules/@webassemblyjs/leb128": { + "node_modules/fs-minipass": { "dependencies": { - "@xtuc/long": "4.2.2" + "minipass": "^3.0.0" }, "dev": true, - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "version": "1.11.6" - }, - "node_modules/@webassemblyjs/utf8": { - "dev": true, - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "version": "1.11.6" + "engines": { + "node": ">= 8" + }, + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "version": "2.1.0" }, - "node_modules/@webassemblyjs/wasm-edit": { + "node_modules/fs-minipass/node_modules/minipass": { "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" + "yallist": "^4.0.0" }, "dev": true, - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "version": "1.11.6" - }, - "node_modules/@webassemblyjs/wasm-gen": { - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "engines": { + "node": ">=8" }, + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "version": "3.3.6" + }, + "node_modules/fs-minipass/node_modules/yallist": { "dev": true, - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "version": "1.11.6" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/@webassemblyjs/wasm-opt": { - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" - }, + "node_modules/fs.realpath": { "dev": true, - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "version": "1.11.6" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/@webassemblyjs/wasm-parser": { + "node_modules/fs2": { "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "d": "^1.0.1", + "deferred": "^0.7.11", + "es5-ext": "^0.10.53", + "event-emitter": "^0.3.5", + "ignore": "^5.1.8", + "memoizee": "^0.4.14", + "type": "^2.1.0" }, "dev": true, - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "version": "1.11.6" - }, - "node_modules/@webassemblyjs/wast-printer": { - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@xtuc/long": "4.2.2" + "engines": { + "node": ">=6" }, + "integrity": "sha512-WsOqncODWRlkjwll+73bAxVW3JPChDgaPX3DT4iTTm73UmG4VgALa7LaFblP232/DN60itkOrPZ8kaP1feksGQ==", + "resolved": "https://registry.npmjs.org/fs2/-/fs2-0.3.9.tgz", + "version": "0.3.9" + }, + "node_modules/fs2/node_modules/type": { "dev": true, - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "version": "1.11.6" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/@webpack-cli/configtest": { + "node_modules/fsevents": { "dev": true, "engines": { - "node": ">=14.15.0" - }, - "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" }, - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", - "version": "2.1.1" + "hasInstallScript": true, + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "optional": true, + "os": [ + "darwin" + ], + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "version": "2.3.3" }, - "node_modules/@webpack-cli/info": { + "node_modules/function-bind": { "dev": true, - "engines": { - "node": ">=14.15.0" - }, - "integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==", - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" + "funding": { + "url": "https://github.com/sponsors/ljharb" }, - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz", - "version": "2.0.2" + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "version": "1.1.2" }, - "node_modules/@webpack-cli/serve": { + "node_modules/get-caller-file": { "dev": true, "engines": { - "node": ">=14.15.0" - }, - "integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==", - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" - }, - "peerDependenciesMeta": { - "webpack-dev-server": { - "optional": true - } + "node": "6.* || 8.* || >= 10.*" }, - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "version": "2.0.5" }, - "node_modules/@xtuc/ieee754": { - "dev": true, - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/@xtuc/long": { + "node_modules/get-intrinsic": { + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, "dev": true, - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "version": "4.2.2" - }, - "node_modules/abab": { - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "version": "2.0.6" + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "version": "1.2.1" }, - "node_modules/abort-controller": { + "node_modules/get-stream": { "dependencies": { - "event-target-shim": "^5.0.0" + "pump": "^3.0.0" }, "dev": true, "engines": { - "node": ">=6.5" + "node": ">=8" }, - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "version": "3.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + }, + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "version": "5.2.0" }, - "node_modules/accepts": { + "node_modules/glob": { "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, + "dev": true, "engines": { - "node": ">= 0.6" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" }, - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "version": "1.3.8" + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "version": "7.2.3" }, - "node_modules/acorn": { + "node_modules/glob-all": { "bin": { - "acorn": "bin/acorn" + "glob-all": "bin/glob-all" }, - "dev": true, - "engines": { - "node": ">=0.4.0" + "dependencies": { + "glob": "^7.2.3", + "yargs": "^15.3.1" }, - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "version": "8.10.0" + "dev": true, + "integrity": "sha512-Y+ESjdI7ZgMwfzanHZYQ87C59jOO0i+Hd+QYtVt9PhLi6d8wlOpzQnfBxWUlaTuAoR3TkybLqqbIoWveU4Ji7Q==", + "resolved": "https://registry.npmjs.org/glob-all/-/glob-all-3.3.1.tgz", + "version": "3.3.1" }, - "node_modules/acorn-globals": { + "node_modules/glob-all/node_modules/cliui": { "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" }, "dev": true, - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", "version": "6.0.0" }, - "node_modules/acorn-globals/node_modules/acorn": { - "bin": { - "acorn": "bin/acorn" + "node_modules/glob-all/node_modules/y18n": { + "dev": true, + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "version": "4.0.3" + }, + "node_modules/glob-all/node_modules/yargs": { + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" }, "dev": true, "engines": { - "node": ">=0.4.0" + "node": ">=8" }, - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "version": "7.4.1" + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "version": "15.4.1" }, - "node_modules/acorn-globals/node_modules/acorn-walk": { + "node_modules/glob-all/node_modules/yargs-parser": { + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, "dev": true, "engines": { - "node": ">=0.4.0" + "node": ">=6" }, - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "version": "7.2.0" + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "version": "18.1.3" }, - "node_modules/acorn-import-assertions": { - "dev": true, - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "peerDependencies": { - "acorn": "^8" - }, - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "version": "1.9.0" - }, - "node_modules/acorn-jsx": { - "dev": true, - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "version": "5.3.2" - }, - "node_modules/acorn-walk": { - "dev": true, - "engines": { - "node": ">=0.4.0" + "node_modules/globby": { + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" }, - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "version": "8.2.0" - }, - "node_modules/adm-zip": { "dev": true, "engines": { - "node": ">=6.0" - }, - "integrity": "sha512-x0HvcHqVJNTPk/Bw8JbLWlWoo6Wwnsug0fnYYro1HBrjxZ3G7/AZk7Ahv8JwDe1uIcz8eBqvu86FuF1POiG7vQ==", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.10.tgz", - "version": "0.5.10" - }, - "node_modules/afinn-165": { - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "node": ">=10" }, - "integrity": "sha512-7+Wlx3BImrK0HiG6y3lU4xX7SpBPSSu8T9iguPMlaueRFxjbYwAQrp9lqZUuFikqKbd/en8lVREILvP2J80uJA==", - "resolved": "https://registry.npmjs.org/afinn-165/-/afinn-165-1.0.4.tgz", - "version": "1.0.4" - }, - "node_modules/afinn-165-financialmarketnews": { - "dev": true, "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - }, - "integrity": "sha512-0g9A1S3ZomFIGDTzZ0t6xmv4AuokBvBmpes8htiyHpH7N4xDmvSQL6UxL/Zcs2ypRb3VwgCscaD8Q3zEawKYhw==", - "resolved": "https://registry.npmjs.org/afinn-165-financialmarketnews/-/afinn-165-financialmarketnews-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/agent-base": { - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "version": "6.0.2" + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "version": "11.1.0" }, - "node_modules/ajv": { + "node_modules/gopd": { "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" + "get-intrinsic": "^1.1.3" }, "dev": true, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "url": "https://github.com/sponsors/ljharb" }, - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "version": "6.12.6" + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "version": "1.0.1" }, - "node_modules/ajv-formats": { + "node_modules/got": { "dependencies": { - "ajv": "^8.0.0" + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" }, "dev": true, - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "version": "2.1.1" - }, - "node_modules/ajv-formats/node_modules/ajv": { - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "engines": { + "node": ">=10.19.0" }, - "dev": true, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "url": "https://github.com/sindresorhus/got?sponsor=1" }, - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "version": "8.12.0" + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "version": "11.8.6" }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "node_modules/graceful-fs": { "dev": true, - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "version": "1.0.0" + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "version": "4.2.11" }, - "node_modules/ajv-keywords": { - "dev": true, - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" + "node_modules/graphlib": { + "dependencies": { + "lodash": "^4.17.15" }, - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "version": "3.5.2" + "dev": true, + "integrity": "sha512-jcLLfkpoVGmH7/InMC/1hIvOPSUh38oJtGhvrOFGzioE1DZ+0YW16RgmOJhHiuWTvGiJQ9Z1Ik43JvkRPRvE+A==", + "resolved": "https://registry.npmjs.org/graphlib/-/graphlib-2.1.8.tgz", + "version": "2.1.8" }, - "node_modules/amqplib": { + "node_modules/has": { "dependencies": { - "@acuminous/bitsyntax": "^0.1.2", - "buffer-more-ints": "~1.0.0", - "readable-stream": "1.x >=1.1.9", - "url-parse": "~1.5.10" + "function-bind": "^1.1.1" }, + "dev": true, "engines": { - "node": ">=10" - }, - "integrity": "sha512-UHmuSa7n8vVW/a5HGh2nFPqAEr8+cD4dEZ6u9GjP91nHfr1a54RyAKyra7Sb5NH7NBKOUlyQSMXIp0qAixKexw==", - "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.10.3.tgz", - "version": "0.10.3" - }, - "node_modules/amqplib/node_modules/isarray": { - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "version": "0.0.1" - }, - "node_modules/amqplib/node_modules/readable-stream": { - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" + "node": ">= 0.4.0" }, - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "version": "1.1.14" - }, - "node_modules/amqplib/node_modules/string_decoder": { - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "version": "0.10.31" + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "version": "1.0.3" }, - "node_modules/ansi-escapes": { - "dependencies": { - "type-fest": "^0.21.3" - }, + "node_modules/has-flag": { "dev": true, "engines": { "node": ">=8" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "version": "4.3.2" + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/ansi-escapes/node_modules/type-fest": { + "node_modules/has-proto": { "dev": true, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" }, - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "version": "0.21.3" + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "version": "1.0.1" }, - "node_modules/ansi-regex": { + "node_modules/has-symbols": { + "dev": true, "engines": { - "node": ">=8" + "node": ">= 0.4" }, - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "version": "5.0.1" + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "version": "1.0.3" }, - "node_modules/ansi-styles": { + "node_modules/has-tostringtag": { "dependencies": { - "color-convert": "^2.0.1" + "has-symbols": "^1.0.2" }, + "dev": true, "engines": { - "node": ">=8" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/ljharb" }, - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "version": "4.3.0" - }, - "node_modules/any-promise": { - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", - "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "version": "1.3.0" + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/anymatch": { - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, + "node_modules/hexoid": { "dev": true, "engines": { - "node": ">= 8" + "node": ">=8" }, - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "version": "3.1.3" + "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", + "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/app-root-path": { - "engines": { - "node": ">= 6.0.0" - }, - "integrity": "sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA==", - "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.1.0.tgz", - "version": "3.1.0" + "node_modules/http-cache-semantics": { + "dev": true, + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "version": "4.1.1" }, - "node_modules/apparatus": { + "node_modules/http2-wrapper": { "dependencies": { - "sylvester": ">= 0.0.8" + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" }, "dev": true, "engines": { - "node": ">=0.2.6" + "node": ">=10.19.0" }, - "integrity": "sha512-KLy/ugo33KZA7nugtQ7O0E1c8kQ52N3IvD/XgIh4w/Nr28ypfkwDfA67F1ev4N1m5D+BOk1+b2dEJDfpj/VvZg==", - "resolved": "https://registry.npmjs.org/apparatus/-/apparatus-0.0.10.tgz", - "version": "0.0.10" + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "version": "1.0.3" }, - "node_modules/archive-type": { + "node_modules/https-proxy-agent": { "dependencies": { - "file-type": "^4.2.0" + "agent-base": "6", + "debug": "4" }, "dev": true, "engines": { - "node": ">=4" + "node": ">= 6" }, - "integrity": "sha512-zV4Ky0v1F8dBrdYElwTvQhweQ0P7Kwc1aluqJsYtOBP01jXcWCyW2IEfI1YiqsG+Iy7ZR+o5LF1N+PGECBxHWA==", - "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-4.0.0.tgz", - "version": "4.0.0" + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "version": "5.0.1" }, - "node_modules/archiver": { + "node_modules/iconv-lite": { "dependencies": { - "archiver-utils": "^2.1.0", - "async": "^3.2.4", - "buffer-crc32": "^0.2.1", - "readable-stream": "^3.6.0", - "readdir-glob": "^1.1.2", - "tar-stream": "^2.2.0", - "zip-stream": "^4.1.0" + "safer-buffer": ">= 2.1.2 < 3" }, "dev": true, "engines": { - "node": ">= 10" + "node": ">=0.10.0" }, - "integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==", - "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz", - "version": "5.3.2" + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "version": "0.4.24" }, - "node_modules/archiver-utils": { - "dependencies": { - "glob": "^7.1.4", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^2.0.0" - }, + "node_modules/ieee754": { + "dev": true, + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", + "version": "1.1.13" + }, + "node_modules/ignore": { "dev": true, "engines": { - "node": ">= 6" + "node": ">= 4" }, - "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz", - "version": "2.1.0" + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "version": "5.2.4" }, - "node_modules/archiver-utils/node_modules/readable-stream": { - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, + "node_modules/immediate": { "dev": true, - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "version": "2.3.8" + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "version": "3.0.6" }, - "node_modules/archiver-utils/node_modules/safe-buffer": { + "node_modules/imurmurhash": { "dev": true, - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "version": "5.1.2" + "engines": { + "node": ">=0.8.19" + }, + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "version": "0.1.4" }, - "node_modules/archiver-utils/node_modules/string_decoder": { + "node_modules/inflight": { "dependencies": { - "safe-buffer": "~5.1.0" + "once": "^1.3.0", + "wrappy": "1" }, "dev": true, - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "version": "1.1.1" + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "version": "1.0.6" }, - "node_modules/archiver/node_modules/async": { + "node_modules/inherits": { "dev": true, - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "version": "3.2.4" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "version": "2.0.4" }, - "node_modules/archiver/node_modules/tar-stream": { + "node_modules/inquirer": { "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^6.0.1" }, "dev": true, "engines": { - "node": ">=6" + "node": ">=12.0.0" }, - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/arg": { - "dev": true, - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "version": "4.1.3" - }, - "node_modules/argparse": { - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/array-flatten": { - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "version": "1.1.1" + "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", + "version": "8.2.6" }, - "node_modules/array-union": { + "node_modules/is-arguments": { + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, "dev": true, "engines": { - "node": ">=8" + "node": ">= 0.4" }, - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/articles": { - "dev": true, - "integrity": "sha512-S3Y4MPp+LD/l0HHm/4yrr6MoXhUkKT98ZdsV2tkTuBNywqUXEtvJT+NBO3KTSQEttc5EOwEJe2Xw8cZ9TI5Hrw==", - "resolved": "https://registry.npmjs.org/articles/-/articles-0.2.2.tgz", - "version": "0.2.2" - }, - "node_modules/asap": { - "dev": true, - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "version": "2.0.6" - }, - "node_modules/asn1": { - "dependencies": { - "safer-buffer": "~2.1.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" }, - "dev": true, - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "version": "0.2.6" + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "version": "1.1.1" }, - "node_modules/async": { + "node_modules/is-binary-path": { "dependencies": { - "lodash": "^4.17.14" + "binary-extensions": "^2.0.0" }, - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "version": "2.6.4" - }, - "node_modules/asynckit": { - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "version": "0.4.0" - }, - "node_modules/at-least-node": { "dev": true, "engines": { - "node": ">= 4.0.0" + "node": ">=8" }, - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "version": "1.0.0" + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "version": "2.1.0" }, - "node_modules/available-typed-arrays": { + "node_modules/is-callable": { + "dev": true, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" }, - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "version": "1.0.5" + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "version": "1.2.7" }, - "node_modules/aws-sdk": { - "dependencies": { - "buffer": "4.9.2", - "events": "1.1.1", - "ieee754": "1.1.13", - "jmespath": "0.16.0", - "querystring": "0.2.0", - "sax": "1.2.1", - "url": "0.10.3", - "util": "^0.12.4", - "uuid": "8.0.0", - "xml2js": "0.6.2" + "node_modules/is-docker": { + "bin": { + "is-docker": "cli.js" }, + "dev": true, "engines": { - "node": ">= 10.0.0" - }, - "integrity": "sha512-nUaAzS7cheaKF8lV0AVJBqteuoYIgQ5UgpZaoRR44D7HA1f6iCYFISF6WH6d0hQvpxPDIXr5NlVt0cHyp/Sx1g==", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1551.0.tgz", - "version": "2.1551.0" - }, - "node_modules/aws-sdk/node_modules/uuid": { - "bin": { - "uuid": "dist/bin/uuid" + "node": ">=8" }, - "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", - "version": "8.0.0" - }, - "node_modules/axios": { - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", - "version": "1.6.2" + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "version": "2.2.1" }, - "node_modules/axios/node_modules/form-data": { - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, + "node_modules/is-extglob": { + "dev": true, "engines": { - "node": ">= 6" + "node": ">=0.10.0" }, - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "version": "4.0.0" + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "version": "2.1.1" }, - "node_modules/babel-jest": { - "dependencies": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, + "node_modules/is-fullwidth-code-point": { "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", - "peerDependencies": { - "@babel/core": "^7.8.0" + "node": ">=8" }, - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "version": "3.0.0" }, - "node_modules/babel-jest/node_modules/@jest/types": { + "node_modules/is-generator-function": { "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "has-tostringtag": "^1.0.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">= 0.4" }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/babel-jest/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" + "funding": { + "url": "https://github.com/sponsors/ljharb" }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "version": "1.0.10" }, - "node_modules/babel-plugin-istanbul": { + "node_modules/is-glob": { "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" + "is-extglob": "^2.1.1" }, "dev": true, "engines": { - "node": ">=8" + "node": ">=0.10.0" }, - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "version": "6.1.1" + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "version": "4.0.3" }, - "node_modules/babel-plugin-jest-hoist": { - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" - }, + "node_modules/is-interactive": { "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=8" }, - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/babel-preset-current-node-syntax": { - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, + "node_modules/is-natural-number": { "dev": true, - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "peerDependencies": { - "@babel/core": "^7.0.0" + "integrity": "sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==", + "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", + "version": "4.0.1" + }, + "node_modules/is-number": { + "dev": true, + "engines": { + "node": ">=0.12.0" }, - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "version": "1.0.1" + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "version": "7.0.0" }, - "node_modules/babel-preset-jest": { + "node_modules/is-plain-object": { "dependencies": { - "babel-plugin-jest-hoist": "^27.5.1", - "babel-preset-current-node-syntax": "^1.0.0" + "isobject": "^3.0.1" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", - "peerDependencies": { - "@babel/core": "^7.0.0" + "node": ">=0.10.0" }, - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "version": "2.0.4" }, - "node_modules/balanced-match": { - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "version": "1.0.2" + "node_modules/is-primitive": { + "dev": true, + "engines": { + "node": ">=0.10.0" + }, + "integrity": "sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-3.0.1.tgz", + "version": "3.0.1" }, - "node_modules/base64-js": { - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "version": "1.5.1" + "node_modules/is-promise": { + "dev": true, + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", + "version": "2.2.2" }, - "node_modules/bcrypt-pbkdf": { + "node_modules/is-typed-array": { "dependencies": { - "tweetnacl": "^0.14.3" + "which-typed-array": "^1.1.11" }, "dev": true, - "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "version": "1.0.2" + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "version": "1.1.12" }, - "node_modules/big-integer": { + "node_modules/is-unicode-supported": { "dev": true, "engines": { - "node": ">=0.6" + "node": ">=10" }, - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "version": "1.6.51" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + }, + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "version": "0.1.0" }, - "node_modules/binary-extensions": { + "node_modules/is-wsl": { + "dependencies": { + "is-docker": "^2.0.0" + }, "dev": true, "engines": { "node": ">=8" }, - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", "version": "2.2.0" }, - "node_modules/bl": { - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - }, + "node_modules/isarray": { "dev": true, - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "version": "4.1.0" + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/bl/node_modules/buffer": { - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - }, + "node_modules/isexe": { "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" - } - ], - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "version": "5.7.1" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/bluebird": { + "node_modules/isobject": { "dev": true, - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "version": "3.7.2" - }, - "node_modules/body-parser": { - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" + "node": ">=0.10.0" }, - "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", - "version": "1.20.2" + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "version": "3.0.1" }, - "node_modules/body-parser/node_modules/debug": { - "dependencies": { - "ms": "2.0.0" + "node_modules/isomorphic-ws": { + "dev": true, + "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==", + "peerDependencies": { + "ws": "*" }, - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "version": "2.6.9" - }, - "node_modules/body-parser/node_modules/ms": { - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/boolean": { - "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", - "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", - "version": "3.2.0" - }, - "node_modules/bowser": { - "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", - "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", - "version": "2.11.0" + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", + "version": "4.0.1" }, - "node_modules/bplist-parser": { - "dependencies": { - "big-integer": "^1.6.44" - }, + "node_modules/jmespath": { "dev": true, "engines": { - "node": ">= 5.10.0" + "node": ">= 0.6.0" }, - "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", - "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", - "version": "0.2.0" + "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==", + "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", + "version": "0.16.0" }, - "node_modules/brace-expansion": { - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "node_modules/js-yaml": { + "bin": { + "js-yaml": "bin/js-yaml.js" }, - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "version": "1.1.11" - }, - "node_modules/braces": { "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" + "argparse": "^2.0.1" }, - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "version": "3.0.3" + "dev": true, + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "version": "4.1.0" }, - "node_modules/browser-process-hrtime": { + "node_modules/json-buffer": { "dev": true, - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "version": "1.0.0" + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "version": "3.0.1" }, - "node_modules/browserslist": { - "bin": { - "browserslist": "cli.js" - }, + "node_modules/json-colorizer": { "dependencies": { - "caniuse-lite": "^1.0.30001517", - "electron-to-chromium": "^1.4.477", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.11" + "chalk": "^2.4.1", + "lodash.get": "^4.4.2" }, "dev": true, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - }, - "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" - } - ], - "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", - "version": "4.21.10" + "integrity": "sha512-56oZtwV1piXrQnRNTtJeqRv+B9Y/dXAYLqBBaYl/COcUdoZxgLBLAO88+CnkbT6MxNs0c5E9mPBIb2sFcNz3vw==", + "resolved": "https://registry.npmjs.org/json-colorizer/-/json-colorizer-2.2.2.tgz", + "version": "2.2.2" }, - "node_modules/bs-logger": { + "node_modules/json-colorizer/node_modules/ansi-styles": { "dependencies": { - "fast-json-stable-stringify": "2.x" + "color-convert": "^1.9.0" }, "dev": true, "engines": { - "node": ">= 6" + "node": ">=4" }, - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "version": "0.2.6" + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "version": "3.2.1" }, - "node_modules/bser": { + "node_modules/json-colorizer/node_modules/chalk": { "dependencies": { - "node-int64": "^0.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "dev": true, - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "version": "2.1.1" - }, - "node_modules/buffer": { - "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" + "engines": { + "node": ">=4" }, - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "version": "4.9.2" + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "version": "2.4.2" }, - "node_modules/buffer-alloc": { + "node_modules/json-colorizer/node_modules/color-convert": { "dependencies": { - "buffer-alloc-unsafe": "^1.1.0", - "buffer-fill": "^1.0.0" + "color-name": "1.1.3" }, "dev": true, - "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", - "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", - "version": "1.2.0" + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "version": "1.9.3" }, - "node_modules/buffer-alloc-unsafe": { + "node_modules/json-colorizer/node_modules/color-name": { "dev": true, - "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", - "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", - "version": "1.1.0" + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "version": "1.1.3" }, - "node_modules/buffer-crc32": { + "node_modules/json-colorizer/node_modules/escape-string-regexp": { "dev": true, "engines": { - "node": "*" + "node": ">=0.8.0" }, - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "version": "0.2.13" - }, - "node_modules/buffer-equal-constant-time": { - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/buffer-fill": { - "dev": true, - "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", - "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "version": "1.0.0" + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "version": "1.0.5" }, - "node_modules/buffer-from": { + "node_modules/json-colorizer/node_modules/has-flag": { "dev": true, - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "version": "1.1.2" - }, - "node_modules/buffer-more-ints": { - "integrity": "sha512-EMetuGFz5SLsT0QTnXzINh4Ksr+oo4i+UGTXEshiGCQWnsgSs7ZhJ8fzlwQ+OzEMs0MpDAMr1hxnblp5a4vcHg==", - "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/buffer-writer": { - "devOptional": true, "engines": { "node": ">=4" }, - "integrity": "sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw==", - "resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "version": "3.0.0" }, - "node_modules/bufferutil": { + "node_modules/json-colorizer/node_modules/supports-color": { "dependencies": { - "node-gyp-build": "^4.3.0" - }, - "engines": { - "node": ">=6.14.2" + "has-flag": "^3.0.0" }, - "hasInstallScript": true, - "integrity": "sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==", - "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.7.tgz", - "version": "4.0.7" - }, - "node_modules/buildcheck": { "dev": true, "engines": { - "node": ">=10.0.0" + "node": ">=4" }, - "integrity": "sha512-8f9ZJCUXyT1M35Jx7MkBgmBMo3oHTTBIPLiY9xyL0pl3T5RwcPEY8cUHr5LBNfu/fk6c2T4DJZuVM/8ZZT2D2A==", - "optional": true, - "resolved": "https://registry.npmjs.org/buildcheck/-/buildcheck-0.0.6.tgz", - "version": "0.0.6" + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "version": "5.5.0" }, - "node_modules/builtin-modules": { + "node_modules/json-cycle": { "dev": true, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 4" }, - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "version": "3.3.0" - }, - "node_modules/builtins": { - "dev": true, - "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", - "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", - "version": "1.0.3" + "integrity": "sha512-GOehvd5PO2FeZ5T4c+RxobeT5a1PiGpF4u9/3+UvrMU4bhnVqzJY7hm39wg8PDCqkU91fWGH8qjWR4bn+wgq9w==", + "resolved": "https://registry.npmjs.org/json-cycle/-/json-cycle-1.5.0.tgz", + "version": "1.5.0" }, - "node_modules/bundle-name": { + "node_modules/json-refs": { + "bin": { + "json-refs": "bin/json-refs" + }, "dependencies": { - "run-applescript": "^5.0.0" + "commander": "~4.1.1", + "graphlib": "^2.1.8", + "js-yaml": "^3.13.1", + "lodash": "^4.17.15", + "native-promise-only": "^0.8.1", + "path-loader": "^1.0.10", + "slash": "^3.0.0", + "uri-js": "^4.2.2" }, "dev": true, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.8" }, - "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-0vOQd9eLNBL18EGl5yYaO44GhixmImes2wiYn9Z3sag3QnehWrYWlB9AFtMxCL2Bj3fyxgDYkxGFEU/chlYssw==", + "resolved": "https://registry.npmjs.org/json-refs/-/json-refs-3.0.15.tgz", + "version": "3.0.15" }, - "node_modules/bytes": { - "engines": { - "node": ">= 0.8" + "node_modules/json-refs/node_modules/argparse": { + "dependencies": { + "sprintf-js": "~1.0.2" }, - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "version": "3.1.2" + "dev": true, + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "version": "1.0.10" }, - "node_modules/cacheable-lookup": { - "engines": { - "node": ">=10.6.0" + "node_modules/json-refs/node_modules/js-yaml": { + "bin": { + "js-yaml": "bin/js-yaml.js" }, - "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", - "version": "5.0.4" - }, - "node_modules/cacheable-request": { "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=8" + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, - "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", - "version": "7.0.4" - }, - "node_modules/cachedir": { "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-9EtFOZR8g22CL7BWjJ9BUx1+A/djkofnyW3aOXZORNW2kxoUpx2h+uN2cOqwPmFhnpVmxg+KW2OjOSgChTEvsQ==", - "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.4.0.tgz", - "version": "2.4.0" + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "version": "3.14.1" }, - "node_modules/call-bind": { + "node_modules/jsonfile": { "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "universalify": "^2.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "dev": true, + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" }, - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "version": "1.0.2" + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "version": "6.1.0" }, - "node_modules/call-me-maybe": { + "node_modules/jszip": { + "dependencies": { + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "setimmediate": "^1.0.5" + }, "dev": true, - "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==", - "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", - "version": "1.0.2" + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", + "version": "3.10.1" }, - "node_modules/callsites": { - "dev": true, - "engines": { - "node": ">=6" + "node_modules/jszip/node_modules/readable-stream": { + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" }, - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/camelcase": { "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "version": "5.3.1" + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "version": "2.3.8" }, - "node_modules/caniuse-lite": { + "node_modules/jszip/node_modules/safe-buffer": { "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" - } - ], - "integrity": "sha512-Jj917pJtYg9HSJBF95HVX3Cdr89JUyLT4IZ8SvM5aDRni95swKgYi3TgYLH5hnGfPE/U1dg6IfZ50UsIlLkwSA==", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001524.tgz", - "version": "1.0.30001524" + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "version": "5.1.2" }, - "node_modules/chalk": { + "node_modules/jszip/node_modules/string_decoder": { "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "safe-buffer": "~5.1.0" }, - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "version": "4.1.2" - }, - "node_modules/char-regex": { "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "version": "1.0.2" + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "version": "1.1.1" }, - "node_modules/chardet": { + "node_modules/jwt-decode": { "dev": true, - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "version": "0.7.0" + "integrity": "sha512-86GgN2vzfUu7m9Wcj63iUkuDzFNYFVmjeDm2GzWpUk+opB0pEpMsw6ePCMrhYkumz2C1ihqtZzOMAg7FiXcNoQ==", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-2.2.0.tgz", + "version": "2.2.0" }, - "node_modules/child-process-ext": { + "node_modules/keyv": { "dependencies": { - "cross-spawn": "^6.0.5", - "es5-ext": "^0.10.53", - "log": "^6.0.0", - "split2": "^3.1.1", - "stream-promise": "^3.2.0" + "json-buffer": "3.0.1" }, "dev": true, - "integrity": "sha512-0UQ55f51JBkOFa+fvR76ywRzxiPwQS3Xe8oe5bZRphpv+dIMeerW5Zn5e4cUy4COJwVtJyU0R79RMnw+aCqmGA==", - "resolved": "https://registry.npmjs.org/child-process-ext/-/child-process-ext-2.1.1.tgz", - "version": "2.1.1" + "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", + "version": "4.5.3" }, - "node_modules/child-process-ext/node_modules/cross-spawn": { + "node_modules/lazystream": { "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "readable-stream": "^2.0.5" }, "dev": true, "engines": { - "node": ">=4.8" + "node": ">= 0.6.3" }, - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "version": "6.0.5" + "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", + "version": "1.0.1" }, - "node_modules/child-process-ext/node_modules/path-key": { - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/child-process-ext/node_modules/shebang-command": { + "node_modules/lazystream/node_modules/readable-stream": { "dependencies": { - "shebang-regex": "^1.0.0" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" }, "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "version": "1.2.0" + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "version": "2.3.8" }, - "node_modules/child-process-ext/node_modules/shebang-regex": { + "node_modules/lazystream/node_modules/safe-buffer": { "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "version": "1.0.0" + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "version": "5.1.2" }, - "node_modules/child-process-ext/node_modules/split2": { + "node_modules/lazystream/node_modules/string_decoder": { "dependencies": { - "readable-stream": "^3.0.0" + "safe-buffer": "~5.1.0" }, "dev": true, - "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", - "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", - "version": "3.2.2" + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "version": "1.1.1" }, - "node_modules/child-process-ext/node_modules/which": { - "bin": { - "which": "bin/which" - }, + "node_modules/lie": { "dependencies": { - "isexe": "^2.0.0" + "immediate": "~3.0.5" }, "dev": true, - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "version": "1.3.1" + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "version": "3.3.0" }, - "node_modules/chokidar": { + "node_modules/locate-path": { "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" + "p-locate": "^4.1.0" }, "dev": true, "engines": { - "node": ">= 8.10.0" - }, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "optionalDependencies": { - "fsevents": "~2.3.2" + "node": ">=8" }, - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "version": "3.5.3" + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "version": "5.0.0" }, - "node_modules/chokidar/node_modules/glob-parent": { - "dependencies": { - "is-glob": "^4.0.1" - }, + "node_modules/lodash": { "dev": true, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "version": "5.1.2" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "version": "4.17.21" }, - "node_modules/chownr": { - "engines": { - "node": ">=18" - }, - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "version": "3.0.0" + "node_modules/lodash.defaults": { + "dev": true, + "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==", + "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", + "version": "4.2.0" }, - "node_modules/chrome-trace-event": { + "node_modules/lodash.difference": { "dev": true, - "engines": { - "node": ">=6.0" - }, - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "version": "1.0.3" + "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==", + "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", + "version": "4.5.0" }, - "node_modules/ci-info": { + "node_modules/lodash.flatten": { "dev": true, - "engines": { - "node": ">=8" - }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "version": "3.8.0" + "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==", + "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", + "version": "4.4.0" }, - "node_modules/cjs-module-lexer": { + "node_modules/lodash.get": { "dev": true, - "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", - "version": "1.2.3" + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "version": "4.4.2" }, - "node_modules/class-transformer": { - "integrity": "sha512-cKFwohpJbuMovS8xVLmn8N2AUbAuc8pVo4zEfsUVo8qgECOogns1WVk/FkOZoxhOPTyTYFckuoH+13FO+MQ8GA==", - "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.3.1.tgz", - "version": "0.3.1" + "node_modules/lodash.isplainobject": { + "dev": true, + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "version": "4.0.6" }, - "node_modules/class-validator": { - "dependencies": { - "@types/validator": "^13.7.10", - "libphonenumber-js": "^1.10.14", - "validator": "^13.7.0" - }, - "integrity": "sha512-ct3ltplN8I9fOwUd8GrP8UQixwff129BkEtuWDKL5W45cQuLd19xqmTLu5ge78YDm/fdje6FMt0hGOhl0lii3A==", - "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.14.0.tgz", - "version": "0.14.0" + "node_modules/lodash.union": { + "dev": true, + "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==", + "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", + "version": "4.6.0" }, - "node_modules/cli-color": { + "node_modules/lodash.uniqby": { + "dev": true, + "integrity": "sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==", + "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", + "version": "4.7.0" + }, + "node_modules/lodash.values": { + "dev": true, + "integrity": "sha512-r0RwvdCv8id9TUblb/O7rYPwVy6lerCbcawrfdo9iC/1t1wsNMJknO79WNBgwkH0hIeJ08jmvvESbFpNb4jH0Q==", + "resolved": "https://registry.npmjs.org/lodash.values/-/lodash.values-4.3.0.tgz", + "version": "4.3.0" + }, + "node_modules/log": { "dependencies": { "d": "^1.0.1", - "es5-ext": "^0.10.61", - "es6-iterator": "^2.0.3", - "memoizee": "^0.4.15", - "timers-ext": "^0.1.7" + "duration": "^0.2.2", + "es5-ext": "^0.10.53", + "event-emitter": "^0.3.5", + "sprintf-kit": "^2.0.1", + "type": "^2.5.0", + "uni-global": "^1.0.0" }, "dev": true, - "engines": { - "node": ">=0.10" - }, - "integrity": "sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==", - "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.3.tgz", - "version": "2.0.3" + "integrity": "sha512-McG47rJEWOkXTDioZzQNydAVvZNeEkSyLJ1VWkFwfW+o1knW+QSi8D1KjPn/TnctV+q99lkvJNe1f0E1IjfY2A==", + "resolved": "https://registry.npmjs.org/log/-/log-6.3.1.tgz", + "version": "6.3.1" }, - "node_modules/cli-cursor": { + "node_modules/log-node": { "dependencies": { - "restore-cursor": "^3.1.0" + "ansi-regex": "^5.0.1", + "cli-color": "^2.0.1", + "cli-sprintf-format": "^1.1.1", + "d": "^1.0.1", + "es5-ext": "^0.10.53", + "sprintf-kit": "^2.0.1", + "supports-color": "^8.1.1", + "type": "^2.5.0" }, "dev": true, "engines": { - "node": ">=8" + "node": ">=10.0" }, - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/cli-highlight": { - "bin": { - "highlight": "bin/highlight" + "integrity": "sha512-1UBwzgYiCIDFs8A0rM2QdBFo8Wd8UQ0HrSTu/MNI+/2zN3NoHRj2fhplurAyuxTYUXu3Oohugq1jAn5s05u1MQ==", + "peerDependencies": { + "log": "^6.0.0" }, + "resolved": "https://registry.npmjs.org/log-node/-/log-node-8.0.3.tgz", + "version": "8.0.3" + }, + "node_modules/log-node/node_modules/supports-color": { "dependencies": { - "chalk": "^4.0.0", - "highlight.js": "^10.7.1", - "mz": "^2.4.0", - "parse5": "^5.1.1", - "parse5-htmlparser2-tree-adapter": "^6.0.0", - "yargs": "^16.0.0" + "has-flag": "^4.0.0" }, + "dev": true, "engines": { - "node": ">=8.0.0", - "npm": ">=5.0.0" + "node": ">=10" }, - "integrity": "sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==", - "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz", - "version": "2.1.11" + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + }, + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "version": "8.1.1" }, - "node_modules/cli-highlight/node_modules/parse5": { - "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", - "version": "5.1.1" + "node_modules/log-node/node_modules/type": { + "dev": true, + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/cli-progress-footer": { + "node_modules/log-symbols": { "dependencies": { - "cli-color": "^2.0.2", - "d": "^1.0.1", - "es5-ext": "^0.10.61", - "mute-stream": "0.0.8", - "process-utils": "^4.0.0", - "timers-ext": "^0.1.7", - "type": "^2.6.0" + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" }, "dev": true, "engines": { - "node": ">=10.0" + "node": ">=10" }, - "integrity": "sha512-uzHGgkKdeA9Kr57eyH1W5HGiNShP8fV1ETq04HDNM1Un6ShXbHhwi/H8LNV9L1fQXKjEw0q5FUkEVNuZ+yZdSw==", - "resolved": "https://registry.npmjs.org/cli-progress-footer/-/cli-progress-footer-2.3.2.tgz", - "version": "2.3.2" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + }, + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "version": "4.1.0" }, - "node_modules/cli-progress-footer/node_modules/type": { + "node_modules/log/node_modules/type": { "dev": true, "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", "version": "2.7.2" }, - "node_modules/cli-spinners": { + "node_modules/lowercase-keys": { "dev": true, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" }, - "integrity": "sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.1.tgz", - "version": "2.9.1" + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/cli-sprintf-format": { + "node_modules/lru-queue": { "dependencies": { - "cli-color": "^2.0.1", - "es5-ext": "^0.10.53", - "sprintf-kit": "^2.0.1", - "supports-color": "^6.1.0" + "es5-ext": "~0.10.2" }, "dev": true, - "engines": { - "node": ">=6.0" - }, - "integrity": "sha512-BbEjY9BEdA6wagVwTqPvmAwGB24U93rQPBFZUT8lNCDxXzre5LFHQUTJc70czjgUomVg8u8R5kW8oY9DYRFNeg==", - "resolved": "https://registry.npmjs.org/cli-sprintf-format/-/cli-sprintf-format-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/cli-sprintf-format/node_modules/has-flag": { - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", + "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", + "version": "0.1.0" }, - "node_modules/cli-sprintf-format/node_modules/supports-color": { + "node_modules/make-dir": { "dependencies": { - "has-flag": "^3.0.0" + "semver": "^7.5.3" }, "dev": true, "engines": { - "node": ">=6" + "node": ">=10" }, - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "version": "6.1.0" - }, - "node_modules/cli-width": { - "dev": true, - "engines": { - "node": ">= 10" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/cliui": { + "node_modules/memoizee": { "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "d": "^1.0.1", + "es5-ext": "^0.10.53", + "es6-weak-map": "^2.0.3", + "event-emitter": "^0.3.5", + "is-promise": "^2.2.2", + "lru-queue": "^0.1.0", + "next-tick": "^1.1.0", + "timers-ext": "^0.1.7" }, - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "version": "7.0.4" + "dev": true, + "integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz", + "version": "0.4.15" }, - "node_modules/cliui/node_modules/wrap-ansi": { - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, + "node_modules/merge2": { + "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "node": ">= 8" }, - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "version": "7.0.0" + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "version": "1.4.1" }, - "node_modules/clone": { + "node_modules/methods": { "dev": true, "engines": { - "node": ">=0.8" + "node": ">= 0.6" }, - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "version": "1.0.4" + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "version": "1.1.2" }, - "node_modules/clone-deep": { + "node_modules/micromatch": { "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "dev": true, "engines": { - "node": ">=6" + "node": ">=8.6" }, - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "version": "4.0.1" + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "version": "4.0.8" }, - "node_modules/clone-response": { - "dependencies": { - "mimic-response": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node_modules/mime": { + "bin": { + "mime": "cli.js" }, - "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/co": { "dev": true, "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" + "node": ">=4.0.0" }, - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "version": "4.6.0" + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "version": "2.6.0" }, - "node_modules/collect-v8-coverage": { + "node_modules/mime-db": { "dev": true, - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "version": "1.0.2" - }, - "node_modules/color-convert": { - "dependencies": { - "color-name": "~1.1.4" - }, "engines": { - "node": ">=7.0.0" + "node": ">= 0.6" }, - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/color-name": { - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "version": "1.1.4" - }, - "node_modules/colorette": { - "dev": true, - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "version": "2.0.20" + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "version": "1.52.0" }, - "node_modules/combined-stream": { + "node_modules/mime-types": { "dependencies": { - "delayed-stream": "~1.0.0" + "mime-db": "1.52.0" }, + "dev": true, "engines": { - "node": ">= 0.8" + "node": ">= 0.6" }, - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "version": "1.0.8" + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "version": "2.1.35" }, - "node_modules/commander": { + "node_modules/mimic-fn": { "dev": true, "engines": { - "node": ">= 6" + "node": ">=6" }, - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "version": "4.1.1" - }, - "node_modules/component-emitter": { - "dev": true, - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "version": "1.3.0" + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "version": "2.1.0" }, - "node_modules/compress-commons": { - "dependencies": { - "buffer-crc32": "^0.2.13", - "crc32-stream": "^4.0.2", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" - }, + "node_modules/mimic-response": { "dev": true, "engines": { - "node": ">= 10" + "node": ">=4" }, - "integrity": "sha512-QLdDLCKNV2dtoTorqgxngQCMA+gWXkM/Nwu7FpeBhk/RdkzimqC3jueb/FDmaZeXh+uby1jkBqE3xArsLBE5wQ==", - "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.1.tgz", - "version": "4.1.1" - }, - "node_modules/concat-map": { - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "version": "0.0.1" + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "version": "1.0.1" }, - "node_modules/content-disposition": { + "node_modules/minimatch": { "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" + "brace-expansion": "^1.1.7" }, - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "version": "0.5.4" - }, - "node_modules/content-type": { + "dev": true, "engines": { - "node": ">= 0.6" + "node": "*" }, - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "version": "1.0.5" + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "version": "3.1.2" }, - "node_modules/convert-source-map": { + "node_modules/minipass": { "dev": true, - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "version": "1.9.0" - }, - "node_modules/cookie": { "engines": { - "node": ">= 0.6" + "node": ">=8" }, - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "version": "0.4.2" + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "version": "5.0.0" }, - "node_modules/cookie-parser": { - "dependencies": { - "cookie": "0.4.1", - "cookie-signature": "1.0.6" - }, - "engines": { - "node": ">= 0.8.0" + "node_modules/mkdirp": { + "bin": { + "mkdirp": "bin/cmd.js" }, - "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==", - "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.6.tgz", - "version": "1.4.6" - }, - "node_modules/cookie-parser/node_modules/cookie": { + "dev": true, "engines": { - "node": ">= 0.6" + "node": ">=10" }, - "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", - "version": "0.4.1" - }, - "node_modules/cookie-signature": { - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "version": "1.0.6" + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "version": "1.0.4" }, - "node_modules/cookiejar": { + "node_modules/ms": { "dev": true, - "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", - "version": "2.1.4" + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "version": "2.1.3" }, - "node_modules/core-js": { - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - }, - "hasInstallScript": true, - "integrity": "sha512-lqufgNn9NLnESg5mQeYsxQP5w7wrViSj0jr/kv6ECQiByzQkrn1MKvV0L3acttpDqfQrHLwr2KCMgX5b8X+lyQ==", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.32.1.tgz", - "version": "3.32.1" + "node_modules/mute-stream": { + "dev": true, + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "version": "0.0.8" }, - "node_modules/core-util-is": { - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "version": "1.0.3" + "node_modules/native-promise-only": { + "dev": true, + "integrity": "sha512-zkVhZUA3y8mbz652WrL5x0fB0ehrBkulWT3TomAQ9iDtyXZvzKeEA6GPxAItBYeNYl5yngKRX612qHOhvMkDeg==", + "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", + "version": "0.8.1" }, - "node_modules/cors": { + "node_modules/ncjsm": { "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - }, - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "version": "2.8.5" - }, - "node_modules/cpu-features": { - "dependencies": { - "buildcheck": "~0.0.6", - "nan": "^2.17.0" - }, - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "hasInstallScript": true, - "integrity": "sha512-AKjgn2rP2yJyfbepsmLfiYcmtNn/2eUvocUyM/09yB0YDiz39HteK/5/T4Onf0pmdYDMgkBoGvRLvEguzyL7wQ==", - "optional": true, - "resolved": "https://registry.npmjs.org/cpu-features/-/cpu-features-0.0.9.tgz", - "version": "0.0.9" - }, - "node_modules/crc-32": { - "bin": { - "crc32": "bin/crc32.njs" - }, - "dev": true, - "engines": { - "node": ">=0.8" - }, - "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", - "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", - "version": "1.2.2" - }, - "node_modules/crc32-stream": { - "dependencies": { - "crc-32": "^1.2.0", - "readable-stream": "^3.4.0" - }, - "dev": true, - "engines": { - "node": ">= 10" - }, - "integrity": "sha512-DxFZ/Hk473b/muq1VJ///PMNLj0ZMnzye9thBpmjpJKCc5eMgB95aK8zCGrGfQ90cWo561Te6HK9D+j4KPdM6w==", - "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.2.tgz", - "version": "4.0.2" - }, - "node_modules/create-require": { - "dev": true, - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/cross-spawn": { - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - }, - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "version": "7.0.3" - }, - "node_modules/cssom": { - "dev": true, - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "version": "0.4.4" - }, - "node_modules/cssstyle": { - "dependencies": { - "rrweb-cssom": "^0.6.0" - }, - "engines": { - "node": ">=14" - }, - "integrity": "sha512-N4u2ABATi3Qplzf0hWbVCdjenim8F3ojEXpBDF5hBpjzW182MjNGLqfmQ0SkSPeQ+V86ZXgeH8aXj6kayd4jgg==", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/d": { - "dependencies": { - "es5-ext": "^0.10.50", - "type": "^1.0.1" - }, - "dev": true, - "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/data-urls": { - "dependencies": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^12.0.0" - }, - "engines": { - "node": ">=14" - }, - "integrity": "sha512-/mMTei/JXPqvFqQtfyTowxmJVwr2PVAeCcDxyFf6LhoOu/09TX2OX3kb2wzi4DMXcfj4OItwDOnhl5oziPnT6g==", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/date-fns": { - "funding": { - "type": "github", - "url": "https://github.com/sponsors/kossnocorp" - }, - "integrity": "sha512-y8e109LYGgoQDveiEBD3DYXKba1jWf5BA8YU1FL5Tvm0BTdEfy54WLCwnuYWZNnzzvALy/QQ4Hov+Q9RVRv+Zw==", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.3.1.tgz", - "version": "3.3.1" - }, - "node_modules/dayjs": { - "dev": true, - "integrity": "sha512-QvzAURSbQ0pKdIye2txOzNaHmxtUBXerpY0FJsFXUMKbIZeFm5ht1LS/jFsrncjnmtv8HsG0W2g6c0zUjZWmpA==", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.9.tgz", - "version": "1.11.9" - }, - "node_modules/debug": { - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "version": "4.3.4" - }, - "node_modules/debug/node_modules/ms": { - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "version": "2.1.2" - }, - "node_modules/decimal.js": { - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "version": "10.4.3" - }, - "node_modules/decompress": { - "dependencies": { - "decompress-tar": "^4.0.0", - "decompress-tarbz2": "^4.0.0", - "decompress-targz": "^4.0.0", - "decompress-unzip": "^4.0.1", - "graceful-fs": "^4.1.10", - "make-dir": "^1.0.0", - "pify": "^2.3.0", - "strip-dirs": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", - "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", - "version": "4.2.1" - }, - "node_modules/decompress-response": { - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "version": "6.0.0" - }, - "node_modules/decompress-response/node_modules/mimic-response": { - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/decompress-tar": { - "dependencies": { - "file-type": "^5.2.0", - "is-stream": "^1.1.0", - "tar-stream": "^1.5.2" + "builtin-modules": "^3.3.0", + "deferred": "^0.7.11", + "es5-ext": "^0.10.62", + "es6-set": "^0.1.6", + "ext": "^1.7.0", + "find-requires": "^1.0.0", + "fs2": "^0.3.9", + "type": "^2.7.2" }, "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==", - "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", - "version": "4.1.1" + "integrity": "sha512-6d1VWA7FY31CpI4Ki97Fpm36jfURkVbpktizp8aoVViTZRQgr/0ddmlKerALSSlzfwQRBeSq1qwwVcBJK4Sk7Q==", + "resolved": "https://registry.npmjs.org/ncjsm/-/ncjsm-4.3.2.tgz", + "version": "4.3.2" }, - "node_modules/decompress-tar/node_modules/bl": { - "dependencies": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - }, + "node_modules/ncjsm/node_modules/type": { "dev": true, - "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", - "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", - "version": "1.2.3" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/decompress-tar/node_modules/is-stream": { + "node_modules/next-tick": { "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", "version": "1.1.0" }, - "node_modules/decompress-tar/node_modules/readable-stream": { - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dev": true, - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "version": "2.3.8" - }, - "node_modules/decompress-tar/node_modules/safe-buffer": { - "dev": true, - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "version": "5.1.2" - }, - "node_modules/decompress-tar/node_modules/string_decoder": { - "dependencies": { - "safe-buffer": "~5.1.0" - }, - "dev": true, - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/decompress-tar/node_modules/tar-stream": { - "dependencies": { - "bl": "^1.0.0", - "buffer-alloc": "^1.2.0", - "end-of-stream": "^1.0.0", - "fs-constants": "^1.0.0", - "readable-stream": "^2.3.0", - "to-buffer": "^1.1.1", - "xtend": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">= 0.8.0" - }, - "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", - "version": "1.6.2" - }, - "node_modules/decompress-tarbz2": { - "dependencies": { - "decompress-tar": "^4.1.0", - "file-type": "^6.1.0", - "is-stream": "^1.1.0", - "seek-bzip": "^1.0.5", - "unbzip2-stream": "^1.0.9" - }, + "node_modules/nice-try": { "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==", - "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", - "version": "4.1.1" + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "version": "1.0.5" }, - "node_modules/decompress-tarbz2/node_modules/is-stream": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "version": "1.1.0" - }, - "node_modules/decompress-targz": { - "dependencies": { - "decompress-tar": "^4.1.1", - "file-type": "^5.2.0", - "is-stream": "^1.1.0" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==", - "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", - "version": "4.1.1" - }, - "node_modules/decompress-targz/node_modules/is-stream": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "version": "1.1.0" - }, - "node_modules/decompress-unzip": { - "dependencies": { - "file-type": "^3.8.0", - "get-stream": "^2.2.0", - "pify": "^2.3.0", - "yauzl": "^2.4.2" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw==", - "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/decompress-unzip/node_modules/get-stream": { - "dependencies": { - "object-assign": "^4.0.1", - "pinkie-promise": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", - "version": "2.3.1" - }, - "node_modules/decompress/node_modules/make-dir": { - "dependencies": { - "pify": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", - "version": "1.3.0" - }, - "node_modules/decompress/node_modules/make-dir/node_modules/pify": { - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/dedent": { - "dev": true, - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "version": "0.7.0" - }, - "node_modules/deep-is": { - "dev": true, - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "version": "0.1.4" - }, - "node_modules/deepmerge": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "version": "4.3.1" - }, - "node_modules/default-browser": { - "dependencies": { - "bundle-name": "^3.0.0", - "default-browser-id": "^3.0.0", - "execa": "^7.1.1", - "titleize": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/default-browser-id": { - "dependencies": { - "bplist-parser": "^0.2.0", - "untildify": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/defaults": { - "dependencies": { - "clone": "^1.0.2" - }, - "dev": true, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", - "version": "1.0.4" - }, - "node_modules/defer-to-connect": { - "engines": { - "node": ">=10" - }, - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/deferred": { - "dependencies": { - "d": "^1.0.1", - "es5-ext": "^0.10.50", - "event-emitter": "^0.3.5", - "next-tick": "^1.0.0", - "timers-ext": "^0.1.7" - }, - "dev": true, - "integrity": "sha512-8eluCl/Blx4YOGwMapBvXRKxHXhA8ejDXYzEaK8+/gtcm8hRMhSLmXSqDmNUKNc/C8HNSmuyyp/hflhqDAvK2A==", - "resolved": "https://registry.npmjs.org/deferred/-/deferred-0.7.11.tgz", - "version": "0.7.11" - }, - "node_modules/define-lazy-prop": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/define-properties": { - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/delayed-stream": { - "engines": { - "node": ">=0.4.0" - }, - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/depd": { - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/destroy": { - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - }, - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/detect-newline": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/detect-node": { - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/dezalgo": { - "dependencies": { - "asap": "^2.0.0", - "wrappy": "1" - }, - "dev": true, - "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", - "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", - "version": "1.0.4" - }, - "node_modules/diff": { - "dev": true, - "engines": { - "node": ">=0.3.1" - }, - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "version": "4.0.2" - }, - "node_modules/diff-sequences": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/dir-glob": { - "dependencies": { - "path-type": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/docker-modem": { - "dependencies": { - "debug": "^4.1.1", - "readable-stream": "^3.5.0", - "split-ca": "^1.0.1", - "ssh2": "^1.11.0" - }, - "dev": true, - "engines": { - "node": ">= 8.0" - }, - "integrity": "sha512-f0ReSURdM3pcKPNS30mxOHSbaFLcknGmQjwSfmbcdOw1XWKXVhukM3NJHhr7NpY9BIyyWQb0EBo3KQvvuU5egQ==", - "resolved": "https://registry.npmjs.org/docker-modem/-/docker-modem-3.0.8.tgz", - "version": "3.0.8" - }, - "node_modules/dockerode": { - "dependencies": { - "@balena/dockerignore": "^1.0.2", - "docker-modem": "^3.0.0", - "tar-fs": "~2.0.1" - }, - "dev": true, - "engines": { - "node": ">= 8.0" - }, - "integrity": "sha512-/0YNa3ZDNeLr/tSckmD69+Gq+qVNhvKfAHNeZJBnp7EOP6RGKV8ORrJHkUn20So5wU+xxT7+1n5u8PjHbfjbSA==", - "resolved": "https://registry.npmjs.org/dockerode/-/dockerode-3.3.5.tgz", - "version": "3.3.5" - }, - "node_modules/doctrine": { - "dependencies": { - "esutils": "^2.0.2" - }, - "dev": true, - "engines": { - "node": ">=6.0.0" - }, - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/domexception": { - "dependencies": { - "webidl-conversions": "^7.0.0" - }, - "deprecated": "Use your platform's native DOMException instead", - "engines": { - "node": ">=12" - }, - "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/dotenv": { - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/motdotla/dotenv?sponsor=1" - }, - "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", - "version": "16.3.1" - }, - "node_modules/dotenv-expand": { - "dev": true, - "engines": { - "node": ">=12" - }, - "integrity": "sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz", - "version": "10.0.0" - }, - "node_modules/duration": { - "dependencies": { - "d": "1", - "es5-ext": "~0.10.46" - }, - "dev": true, - "integrity": "sha512-06kgtea+bGreF5eKYgI/36A6pLXggY7oR4p1pq4SmdFBn1ReOL5D8RhG64VrqfTTKNucqqtBAwEj8aB88mcqrg==", - "resolved": "https://registry.npmjs.org/duration/-/duration-0.2.2.tgz", - "version": "0.2.2" - }, - "node_modules/dynamic-dedupe": { - "dependencies": { - "xtend": "^4.0.0" - }, - "dev": true, - "integrity": "sha512-ssuANeD+z97meYOqd50e04Ze5qp4bPqo8cCkI4TRjZkzAUgIDTrXV1R8QCdINpiI+hw14+rYazvTRdQrz0/rFQ==", - "resolved": "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz", - "version": "0.3.0" - }, - "node_modules/eastasianwidth": { - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "version": "0.2.0" - }, - "node_modules/ecdsa-sig-formatter": { - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "version": "1.0.11" - }, - "node_modules/ee-first": { - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/electron-to-chromium": { - "dev": true, - "integrity": "sha512-LF2IQit4B0VrUHFeQkWhZm97KuJSGF2WJqq1InpY+ECpFRkXd8yTIaTtJxsO0OKDmiBYwWqcrNaXOurn2T2wiA==", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.503.tgz", - "version": "1.4.503" - }, - "node_modules/emittery": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - }, - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "version": "0.8.1" - }, - "node_modules/emoji-regex": { - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "version": "8.0.0" - }, - "node_modules/encodeurl": { - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "version": "1.0.2" - }, - "node_modules/end-of-stream": { - "dependencies": { - "once": "^1.4.0" - }, - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "version": "1.4.4" - }, - "node_modules/enhanced-resolve": { - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "dev": true, - "engines": { - "node": ">=10.13.0" - }, - "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", - "version": "5.15.0" - }, - "node_modules/entities": { - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - }, - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "version": "4.5.0" - }, - "node_modules/envinfo": { - "bin": { - "envinfo": "dist/cli.js" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-ZtUjZO6l5mwTHvc1L9+1q5p/R3wTopcfqMW8r5t8SJSKqeVI/LtajORwRFEKpEFuekjD0VBjwu1HMxL4UalIRw==", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.10.0.tgz", - "version": "7.10.0" - }, - "node_modules/error-ex": { - "dependencies": { - "is-arrayish": "^0.2.1" - }, - "dev": true, - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "version": "1.3.2" - }, - "node_modules/es-module-lexer": { - "dev": true, - "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", - "version": "1.3.0" - }, - "node_modules/es5-ext": { - "dependencies": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "esniff": "^2.0.1", - "next-tick": "^1.1.0" - }, - "dev": true, - "engines": { - "node": ">=0.10" - }, - "hasInstallScript": true, - "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", - "version": "0.10.64" - }, - "node_modules/es5-ext/node_modules/esniff": { - "dependencies": { - "d": "^1.0.1", - "es5-ext": "^0.10.62", - "event-emitter": "^0.3.5", - "type": "^2.7.2" - }, - "dev": true, - "engines": { - "node": ">=0.10" - }, - "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", - "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/es5-ext/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/es6-error": { - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "version": "4.1.1" - }, - "node_modules/es6-iterator": { - "dependencies": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - }, - "dev": true, - "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "version": "2.0.3" - }, - "node_modules/es6-set": { - "dependencies": { - "d": "^1.0.1", - "es5-ext": "^0.10.62", - "es6-iterator": "~2.0.3", - "es6-symbol": "^3.1.3", - "event-emitter": "^0.3.5", - "type": "^2.7.2" - }, - "dev": true, - "engines": { - "node": ">=0.12" - }, - "integrity": "sha512-TE3LgGLDIBX332jq3ypv6bcOpkLO0AslAQo7p2VqX/1N46YNsvIWgvjojjSEnWEGWMhr1qUbYeTSir5J6mFHOw==", - "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.6.tgz", - "version": "0.1.6" - }, - "node_modules/es6-set/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/es6-symbol": { - "dependencies": { - "d": "^1.0.1", - "ext": "^1.1.2" - }, - "dev": true, - "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", - "version": "3.1.3" - }, - "node_modules/es6-weak-map": { - "dependencies": { - "d": "1", - "es5-ext": "^0.10.46", - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.1" - }, - "dev": true, - "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", - "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", - "version": "2.0.3" - }, - "node_modules/escalade": { - "engines": { - "node": ">=6" - }, - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "version": "3.1.1" - }, - "node_modules/escape-html": { - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/escape-string-regexp": { - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/escodegen": { - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "dev": true, - "engines": { - "node": ">=6.0" - }, - "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", - "optionalDependencies": { - "source-map": "~0.6.1" - }, - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/escodegen/node_modules/estraverse": { - "dev": true, - "engines": { - "node": ">=4.0" - }, - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "version": "5.3.0" - }, - "node_modules/eslint": { - "bin": { - "eslint": "bin/eslint.js" - }, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.48.0", - "@humanwhocodes/config-array": "^0.11.10", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "integrity": "sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.48.0.tgz", - "version": "8.48.0" - }, - "node_modules/eslint-config-prettier": { - "bin": { - "eslint-config-prettier-check": "bin/cli.js" - }, - "dependencies": { - "get-stdin": "^6.0.0" - }, - "dev": true, - "integrity": "sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw==", - "peerDependencies": { - "eslint": ">=3.14.1" - }, - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz", - "version": "6.15.0" - }, - "node_modules/eslint-plugin-prettier": { - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.8.5" - }, - "dev": true, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/prettier" - }, - "integrity": "sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==", - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/eslint-scope": { - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "dev": true, - "engines": { - "node": ">=8.0.0" - }, - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "version": "5.1.1" - }, - "node_modules/eslint-visitor-keys": { - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "version": "3.4.3" - }, - "node_modules/eslint/node_modules/eslint-scope": { - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "version": "7.2.2" - }, - "node_modules/eslint/node_modules/estraverse": { - "dev": true, - "engines": { - "node": ">=4.0" - }, - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "version": "5.3.0" - }, - "node_modules/esniff": { - "dependencies": { - "d": "1", - "es5-ext": "^0.10.12" - }, - "dev": true, - "integrity": "sha512-vmHXOeOt7FJLsqofvFk4WB3ejvcHizCd8toXXwADmYfd02p2QwHRgkUbhYDX54y08nqk818CUTWipgZGlyN07g==", - "resolved": "https://registry.npmjs.org/esniff/-/esniff-1.1.0.tgz", - "version": "1.1.0" - }, - "node_modules/espree": { - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "version": "9.6.1" - }, - "node_modules/esprima": { - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/esquery": { - "dependencies": { - "estraverse": "^5.1.0" - }, - "dev": true, - "engines": { - "node": ">=0.10" - }, - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "version": "1.5.0" - }, - "node_modules/esquery/node_modules/estraverse": { - "dev": true, - "engines": { - "node": ">=4.0" - }, - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "version": "5.3.0" - }, - "node_modules/esrecurse": { - "dependencies": { - "estraverse": "^5.2.0" - }, - "dev": true, - "engines": { - "node": ">=4.0" - }, - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "version": "4.3.0" - }, - "node_modules/esrecurse/node_modules/estraverse": { - "dev": true, - "engines": { - "node": ">=4.0" - }, - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "version": "5.3.0" - }, - "node_modules/essentials": { - "dependencies": { - "uni-global": "^1.0.0" - }, - "dev": true, - "integrity": "sha512-kP/j7Iw7KeNE8b/o7+tr9uX2s1wegElGOoGZ2Xm35qBr4BbbEcH3/bxR2nfH9l9JANCq9AUrvKw+gRuHtZp0HQ==", - "resolved": "https://registry.npmjs.org/essentials/-/essentials-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/estraverse": { - "dev": true, - "engines": { - "node": ">=4.0" - }, - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "version": "4.3.0" - }, - "node_modules/esutils": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "version": "2.0.3" - }, - "node_modules/etag": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "version": "1.8.1" - }, - "node_modules/event-emitter": { - "dependencies": { - "d": "1", - "es5-ext": "~0.10.14" - }, - "dev": true, - "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", - "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", - "version": "0.3.5" - }, - "node_modules/event-target-shim": { - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "version": "5.0.1" - }, - "node_modules/eventemitter3": { - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "version": "4.0.7" - }, - "node_modules/events": { - "engines": { - "node": ">=0.4.x" - }, - "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==", - "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/execa": { - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - }, - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "version": "5.1.1" - }, - "node_modules/execa/node_modules/get-stream": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "version": "6.0.1" - }, - "node_modules/exit": { - "dev": true, - "engines": { - "node": ">= 0.8.0" - }, - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "version": "0.1.2" - }, - "node_modules/expect": { - "dependencies": { - "@jest/expect-utils": "^29.6.4", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.6.4", - "jest-message-util": "^29.6.3", - "jest-util": "^29.6.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-F2W2UyQ8XYyftHT57dtfg8Ue3X5qLgm2sSug0ivvLRH/VKNRL/pDxg/TH7zVzbQB0tu80clNFy6LU7OS/VSEKA==", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/expect/node_modules/ansi-styles": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - }, - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "version": "5.2.0" - }, - "node_modules/expect/node_modules/diff-sequences": { - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/expect/node_modules/jest-diff": { - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.6.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-9F48UxR9e4XOEZvoUXEHSWY4qC4zERJaOfrbBg9JpbJOO43R1vN76REt/aMGZoY6GD5g84nnJiBIVlscegefpw==", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/expect/node_modules/jest-matcher-utils": { - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.6.4", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.6.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-KSzwyzGvK4HcfnserYqJHYi7sZVqdREJ9DMPAKVbS98JsIAvumihaNUbjrWw0St7p9IY7A9UskCW5MYlGmBQFQ==", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/expect/node_modules/pretty-format": { - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-ZsBgjVhFAj5KeK+nHfF1305/By3lechHQSMWCTl8iHSbfOm2TN5nHEtFc/+W7fAyUeCs2n5iow72gld4gW0xDw==", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/expect/node_modules/react-is": { - "dev": true, - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "version": "18.2.0" - }, - "node_modules/express": { - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.2", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.6.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", - "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", - "version": "4.19.2" - }, - "node_modules/express-rate-limit": { - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/express-rate-limit" - }, - "integrity": "sha512-T7nul1t4TNyfZMJ7pKRKkdeVJWa2CqB8NA1P8BwYaoDI5QSBZARv5oMS43J7b7I5P+4asjVXjb7ONuwDKucahg==", - "peerDependencies": { - "express": "4 || 5 || ^5.0.0-beta.1" - }, - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.2.0.tgz", - "version": "7.2.0" - }, - "node_modules/express/node_modules/cookie": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", - "version": "0.6.0" - }, - "node_modules/express/node_modules/debug": { - "dependencies": { - "ms": "2.0.0" - }, - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "version": "2.6.9" - }, - "node_modules/express/node_modules/ms": { - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/ext": { - "dependencies": { - "type": "^2.7.2" - }, - "dev": true, - "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", - "version": "1.7.0" - }, - "node_modules/ext-list": { - "dependencies": { - "mime-db": "^1.28.0" - }, - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==", - "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", - "version": "2.2.2" - }, - "node_modules/ext-name": { - "dependencies": { - "ext-list": "^2.0.0", - "sort-keys-length": "^1.0.0" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==", - "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/ext/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/external-editor": { - "dependencies": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/fast-deep-equal": { - "dev": true, - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "version": "3.1.3" - }, - "node_modules/fast-diff": { - "dev": true, - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "version": "1.3.0" - }, - "node_modules/fast-glob": { - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "dev": true, - "engines": { - "node": ">=8.6.0" - }, - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "version": "3.3.1" - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "dependencies": { - "is-glob": "^4.0.1" - }, - "dev": true, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "version": "5.1.2" - }, - "node_modules/fast-json-stable-stringify": { - "dev": true, - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/fast-levenshtein": { - "dev": true, - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "version": "2.0.6" - }, - "node_modules/fast-safe-stringify": { - "dev": true, - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "version": "2.1.1" - }, - "node_modules/fast-xml-parser": { - "bin": { - "fxparser": "src/cli/cli.js" - }, - "dependencies": { - "strnum": "^1.0.5" - }, - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", - "version": "4.2.5" - }, - "node_modules/fastest-levenshtein": { - "dev": true, - "engines": { - "node": ">= 4.9.1" - }, - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "version": "1.0.16" - }, - "node_modules/fastq": { - "dependencies": { - "reusify": "^1.0.4" - }, - "dev": true, - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "version": "1.15.0" - }, - "node_modules/fb-watchman": { - "dependencies": { - "bser": "2.1.1" - }, - "dev": true, - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "version": "2.0.2" - }, - "node_modules/fd-slicer": { - "dependencies": { - "pend": "~1.2.0" - }, - "dev": true, - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "version": "1.1.0" - }, - "node_modules/figures": { - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "version": "3.2.0" - }, - "node_modules/figures/node_modules/escape-string-regexp": { - "dev": true, - "engines": { - "node": ">=0.8.0" - }, - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/file-entry-cache": { - "dependencies": { - "flat-cache": "^3.0.4" - }, - "dev": true, - "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "version": "6.0.1" - }, - "node_modules/file-type": { - "dependencies": { - "readable-web-to-node-stream": "^3.0.0", - "strtok3": "^6.2.4", - "token-types": "^4.1.1" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/file-type?sponsor=1" - }, - "integrity": "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw==", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.4.tgz", - "version": "16.5.4" - }, - "node_modules/filename-reserved-regex": { - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==", - "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/filenamify": { - "dependencies": { - "filename-reserved-regex": "^2.0.0", - "strip-outer": "^1.0.1", - "trim-repeated": "^1.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==", - "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz", - "version": "4.3.0" - }, - "node_modules/filesize": { - "dev": true, - "engines": { - "node": ">= 10.4.0" - }, - "integrity": "sha512-6RS9gDchbn+qWmtV2uSjo5vmKizgfCQeb5jKmqx8HyzA3MoLqqyQxN+QcjkGBJt7FjJ9qFce67Auyya5rRRbpw==", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.0.12.tgz", - "version": "10.0.12" - }, - "node_modules/fill-range": { - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "version": "7.1.1" - }, - "node_modules/finalhandler": { - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/finalhandler/node_modules/debug": { - "dependencies": { - "ms": "2.0.0" - }, - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "version": "2.6.9" - }, - "node_modules/finalhandler/node_modules/ms": { - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/find-requires": { - "bin": { - "find-requires": "bin/find-requires.js" - }, - "dependencies": { - "es5-ext": "^0.10.49", - "esniff": "^1.1.0" - }, - "dev": true, - "integrity": "sha512-UME7hNwBfzeISSFQcBEDemEEskpOjI/shPrpJM5PI4DSdn6hX0dmz+2dL70blZER2z8tSnTRL+2rfzlYgtbBoQ==", - "resolved": "https://registry.npmjs.org/find-requires/-/find-requires-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/find-up": { - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/find-yarn-workspace-root": { - "dependencies": { - "micromatch": "^4.0.2" - }, - "dev": true, - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/flat": { - "bin": { - "flat": "cli.js" - }, - "dev": true, - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "version": "5.0.2" - }, - "node_modules/flat-cache": { - "dependencies": { - "flatted": "^3.2.7", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "dev": true, - "engines": { - "node": ">=12.0.0" - }, - "integrity": "sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/flatted": { - "dev": true, - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "version": "3.2.7" - }, - "node_modules/follow-redirects": { - "engines": { - "node": ">=4.0" - }, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", - "peerDependenciesMeta": { - "debug": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", - "version": "1.15.6" - }, - "node_modules/for-each": { - "dependencies": { - "is-callable": "^1.1.3" - }, - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "version": "0.3.3" - }, - "node_modules/foreground-child": { - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "version": "3.1.1" - }, - "node_modules/foreground-child/node_modules/signal-exit": { - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "version": "4.1.0" - }, - "node_modules/form-data": { - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "dev": true, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/formidable": { - "dependencies": { - "dezalgo": "^1.0.4", - "hexoid": "^1.0.0", - "once": "^1.4.0", - "qs": "^6.11.0" - }, - "dev": true, - "funding": { - "url": "https://ko-fi.com/tunnckoCore/commissions" - }, - "integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz", - "version": "2.1.2" - }, - "node_modules/forwarded": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "version": "0.2.0" - }, - "node_modules/fresh": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "version": "0.5.2" - }, - "node_modules/fs-constants": { - "dev": true, - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/fs-extra": { - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=12" - }, - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "version": "10.1.0" - }, - "node_modules/fs-minipass": { - "dependencies": { - "minipass": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">= 8" - }, - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/fs-minipass/node_modules/minipass": { - "dependencies": { - "yallist": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "version": "3.3.6" - }, - "node_modules/fs-minipass/node_modules/yallist": { - "dev": true, - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/fs.realpath": { - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/fs2": { - "dependencies": { - "d": "^1.0.1", - "deferred": "^0.7.11", - "es5-ext": "^0.10.53", - "event-emitter": "^0.3.5", - "ignore": "^5.1.8", - "memoizee": "^0.4.14", - "type": "^2.1.0" - }, - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-WsOqncODWRlkjwll+73bAxVW3JPChDgaPX3DT4iTTm73UmG4VgALa7LaFblP232/DN60itkOrPZ8kaP1feksGQ==", - "resolved": "https://registry.npmjs.org/fs2/-/fs2-0.3.9.tgz", - "version": "0.3.9" - }, - "node_modules/fs2/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/fsevents": { - "dev": true, - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - }, - "hasInstallScript": true, - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "optional": true, - "os": [ - "darwin" - ], - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "version": "2.3.3" - }, - "node_modules/function-bind": { - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/gensync": { - "dev": true, - "engines": { - "node": ">=6.9.0" - }, - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "version": "1.0.0-beta.2" - }, - "node_modules/get-caller-file": { - "engines": { - "node": "6.* || 8.* || >= 10.*" - }, - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "version": "2.0.5" - }, - "node_modules/get-intrinsic": { - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "version": "1.2.1" - }, - "node_modules/get-package-type": { - "dev": true, - "engines": { - "node": ">=8.0.0" - }, - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "version": "0.1.0" - }, - "node_modules/get-stdin": { - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz", - "version": "6.0.0" - }, - "node_modules/get-stream": { - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "version": "5.2.0" - }, - "node_modules/glob": { - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "version": "7.2.3" - }, - "node_modules/glob-parent": { - "dependencies": { - "is-glob": "^4.0.3" - }, - "dev": true, - "engines": { - "node": ">=10.13.0" - }, - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "version": "6.0.2" - }, - "node_modules/glob-promise": { - "dependencies": { - "@types/glob": "^7.1.3" - }, - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "type": "individual", - "url": "https://github.com/sponsors/ahmadnassri" - }, - "integrity": "sha512-xcUzJ8NWN5bktoTIX7eOclO1Npxd/dyVqUJxlLIDasT4C7KZyqlPIwkdJ0Ypiy3p2ZKahTjK4M9uC3sNSfNMzw==", - "peerDependencies": { - "glob": "^7.1.6" - }, - "resolved": "https://registry.npmjs.org/glob-promise/-/glob-promise-4.2.2.tgz", - "version": "4.2.2" - }, - "node_modules/glob-to-regexp": { - "dev": true, - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "version": "0.4.1" - }, - "node_modules/global-agent": { - "dependencies": { - "boolean": "^3.0.1", - "core-js": "^3.6.5", - "es6-error": "^4.1.1", - "matcher": "^3.0.0", - "roarr": "^2.15.3", - "semver": "^7.3.2", - "serialize-error": "^7.0.1" - }, - "engines": { - "node": ">=10.0" - }, - "integrity": "sha512-+20KpaW6DDLqhG7JDiJpD1JvNvb8ts+TNl7BPOYcURqCrXqnN1Vf+XVOrkKJAFPqfX+oEhsdzOj1hLWkBTdNJg==", - "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/globals": { - "dependencies": { - "type-fest": "^0.20.2" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", - "version": "13.21.0" - }, - "node_modules/globalthis": { - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/globby": { - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "version": "11.1.0" - }, - "node_modules/gopd": { - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/got": { - "dependencies": { - "@sindresorhus/is": "^4.0.0", - "@szmarczak/http-timer": "^4.0.5", - "@types/cacheable-request": "^6.0.1", - "@types/responselike": "^1.0.0", - "cacheable-lookup": "^5.0.3", - "cacheable-request": "^7.0.2", - "decompress-response": "^6.0.0", - "http2-wrapper": "^1.0.0-beta.5.2", - "lowercase-keys": "^2.0.0", - "p-cancelable": "^2.0.0", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=10.19.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - }, - "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", - "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", - "version": "11.8.6" - }, - "node_modules/graceful-fs": { - "dev": true, - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "version": "4.2.11" - }, - "node_modules/graphemer": { - "dev": true, - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "version": "1.4.0" - }, - "node_modules/graphlib": { - "dependencies": { - "lodash": "^4.17.15" - }, - "dev": true, - "integrity": "sha512-jcLLfkpoVGmH7/InMC/1hIvOPSUh38oJtGhvrOFGzioE1DZ+0YW16RgmOJhHiuWTvGiJQ9Z1Ik43JvkRPRvE+A==", - "resolved": "https://registry.npmjs.org/graphlib/-/graphlib-2.1.8.tgz", - "version": "2.1.8" - }, - "node_modules/handlebars": { - "bin": { - "handlebars": "bin/handlebars" - }, - "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "engines": { - "node": ">=0.4.7" - }, - "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", - "optionalDependencies": { - "uglify-js": "^3.1.4" - }, - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", - "version": "4.7.8" - }, - "node_modules/has": { - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - }, - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/has-flag": { - "engines": { - "node": ">=8" - }, - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/has-property-descriptors": { - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/has-proto": { - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/has-symbols": { - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/has-tostringtag": { - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/helmet": { - "engines": { - "node": ">=10.0.0" - }, - "integrity": "sha512-HVqALKZlR95ROkrnesdhbbZJFi/rIVSoNq6f3jA/9u6MIbTsPh3xZwihjeI5+DO/2sOV6HMHooXcEOuwskHpTg==", - "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.6.0.tgz", - "version": "4.6.0" - }, - "node_modules/hexoid": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", - "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/highlight.js": { - "engines": { - "node": "*" - }, - "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", - "version": "10.7.3" - }, - "node_modules/hpagent": { - "integrity": "sha512-ePqFXHtSQWAFXYmj+JtOTHr84iNrII4/QRlAAPPE+zqnKy4xJo7Ie1Y4kC7AdB+LxLxSTTzBMASsEcy0q8YyvQ==", - "resolved": "https://registry.npmjs.org/hpagent/-/hpagent-0.1.2.tgz", - "version": "0.1.2" - }, - "node_modules/html-encoding-sniffer": { - "dependencies": { - "whatwg-encoding": "^2.0.0" - }, - "engines": { - "node": ">=12" - }, - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/html-escaper": { - "dev": true, - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "version": "2.0.2" - }, - "node_modules/http-cache-semantics": { - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "version": "4.1.1" - }, - "node_modules/http-errors": { - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/http-proxy": { - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - }, - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "version": "1.18.1" - }, - "node_modules/http-proxy-agent": { - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/http-proxy-middleware": { - "dependencies": { - "@types/http-proxy": "^1.17.8", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", - "peerDependencies": { - "@types/express": "^4.17.13" - }, - "peerDependenciesMeta": { - "@types/express": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "version": "2.0.6" - }, - "node_modules/http2-wrapper": { - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.0.0" - }, - "engines": { - "node": ">=10.19.0" - }, - "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/https-proxy-agent": { - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "version": "5.0.1" - }, - "node_modules/human-signals": { - "dev": true, - "engines": { - "node": ">=10.17.0" - }, - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/iconv-lite": { - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "version": "0.4.24" - }, - "node_modules/ieee754": { - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "version": "1.1.13" - }, - "node_modules/ignore": { - "dev": true, - "engines": { - "node": ">= 4" - }, - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "version": "5.2.4" - }, - "node_modules/immediate": { - "dev": true, - "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "version": "3.0.6" - }, - "node_modules/import-fresh": { - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "version": "3.3.0" - }, - "node_modules/import-local": { - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/imurmurhash": { - "dev": true, - "engines": { - "node": ">=0.8.19" - }, - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "version": "0.1.4" - }, - "node_modules/inflight": { - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - }, - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "version": "1.0.6" - }, - "node_modules/inherits": { - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "version": "2.0.4" - }, - "node_modules/inquirer": { - "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.1", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.21", - "mute-stream": "0.0.8", - "ora": "^5.4.1", - "run-async": "^2.4.0", - "rxjs": "^7.5.5", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6", - "wrap-ansi": "^6.0.1" - }, - "dev": true, - "engines": { - "node": ">=12.0.0" - }, - "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", - "version": "8.2.6" - }, - "node_modules/interpret": { - "dev": true, - "engines": { - "node": ">=10.13.0" - }, - "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", - "version": "3.1.1" - }, - "node_modules/ip-address": { - "dependencies": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" - }, - "engines": { - "node": ">= 12" - }, - "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", - "version": "9.0.5" - }, - "node_modules/ipaddr.js": { - "engines": { - "node": ">= 0.10" - }, - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "version": "1.9.1" - }, - "node_modules/is-arguments": { - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/is-arrayish": { - "dev": true, - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "version": "0.2.1" - }, - "node_modules/is-binary-path": { - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/is-builtin-module": { - "dependencies": { - "builtin-modules": "^3.3.0" - }, - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", - "version": "3.2.1" - }, - "node_modules/is-callable": { - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "version": "1.2.7" - }, - "node_modules/is-core-module": { - "dependencies": { - "has": "^1.0.3" - }, - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "version": "2.13.0" - }, - "node_modules/is-docker": { - "bin": { - "is-docker": "cli.js" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "version": "2.2.1" - }, - "node_modules/is-extglob": { - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "version": "2.1.1" - }, - "node_modules/is-fullwidth-code-point": { - "engines": { - "node": ">=8" - }, - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/is-generator-fn": { - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/is-generator-function": { - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "version": "1.0.10" - }, - "node_modules/is-glob": { - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "version": "4.0.3" - }, - "node_modules/is-inside-container": { - "bin": { - "is-inside-container": "cli.js" - }, - "dependencies": { - "is-docker": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/is-inside-container/node_modules/is-docker": { - "bin": { - "is-docker": "cli.js" - }, - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/is-interactive": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/is-natural-number": { - "dev": true, - "integrity": "sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==", - "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/is-number": { - "engines": { - "node": ">=0.12.0" - }, - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "version": "7.0.0" - }, - "node_modules/is-number-like": { - "dependencies": { - "lodash.isfinite": "^3.3.2" - }, - "integrity": "sha512-6rZi3ezCyFcn5L71ywzz2bS5b2Igl1En3eTlZlvKjpz1n3IZLAYMbKYAIQgFmEu0GENg92ziU/faEOA/aixjbA==", - "resolved": "https://registry.npmjs.org/is-number-like/-/is-number-like-1.0.8.tgz", - "version": "1.0.8" - }, - "node_modules/is-path-inside": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "version": "3.0.3" - }, - "node_modules/is-plain-obj": { - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/is-plain-object": { - "dependencies": { - "isobject": "^3.0.1" - }, - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "version": "2.0.4" - }, - "node_modules/is-potential-custom-element-name": { - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/is-promise": { - "dev": true, - "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", - "version": "2.2.2" - }, - "node_modules/is-stream": { - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/is-typed-array": { - "dependencies": { - "which-typed-array": "^1.1.11" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "version": "1.1.12" - }, - "node_modules/is-typedarray": { - "dev": true, - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/is-unicode-supported": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "version": "0.1.0" - }, - "node_modules/is-wsl": { - "dependencies": { - "is-docker": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/isarray": { - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/isexe": { - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/isobject": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/isomorphic-ws": { - "dev": true, - "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==", - "peerDependencies": { - "ws": "*" - }, - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/istanbul-lib-coverage": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "version": "3.2.0" - }, - "node_modules/istanbul-lib-instrument": { - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "version": "5.2.1" - }, - "node_modules/istanbul-lib-report": { - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/istanbul-lib-source-maps": { - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/istanbul-reports": { - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", - "version": "3.1.6" - }, - "node_modules/jackspeak": { - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - }, - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "version": "2.3.6" - }, - "node_modules/jest": { - "bin": { - "jest": "bin/jest.js" - }, - "dependencies": { - "@jest/core": "^27.5.1", - "import-local": "^3.0.2", - "jest-cli": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-changed-files": { - "dependencies": { - "@jest/types": "^27.5.1", - "execa": "^5.0.0", - "throat": "^6.0.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-changed-files/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-changed-files/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-circus": { - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/@jest/environment": { - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/@jest/fake-timers": { - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/@sinonjs/commons": { - "dependencies": { - "type-detect": "4.0.8" - }, - "dev": true, - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "version": "1.8.6" - }, - "node_modules/jest-circus/node_modules/@sinonjs/fake-timers": { - "dependencies": { - "@sinonjs/commons": "^1.7.0" - }, - "dev": true, - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "version": "8.1.0" - }, - "node_modules/jest-circus/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-circus/node_modules/expect": { - "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/jest-message-util": { - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/jest-mock": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/jest-snapshot": { - "dependencies": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-circus/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-cli": { - "bin": { - "jest": "bin/jest.js" - }, - "dependencies": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "prompts": "^2.0.1", - "yargs": "^16.2.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-cli/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-cli/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-cli/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-config": { - "dependencies": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", - "peerDependencies": { - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "ts-node": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-config/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-config/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-config/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-config/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-diff": { - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-diff/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-docblock": { - "dependencies": { - "detect-newline": "^3.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-each": { - "dependencies": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-each/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-each/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-each/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-each/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-jsdom": { - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-jsdom/node_modules/@jest/environment": { - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-jsdom/node_modules/@jest/fake-timers": { - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-jsdom/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-jsdom/node_modules/@sinonjs/commons": { - "dependencies": { - "type-detect": "4.0.8" - }, - "dev": true, - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "version": "1.8.6" - }, - "node_modules/jest-environment-jsdom/node_modules/@sinonjs/fake-timers": { - "dependencies": { - "@sinonjs/commons": "^1.7.0" - }, - "dev": true, - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "version": "8.1.0" - }, - "node_modules/jest-environment-jsdom/node_modules/@tootallnate/once": { - "dev": true, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "version": "1.1.2" - }, - "node_modules/jest-environment-jsdom/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-environment-jsdom/node_modules/cssstyle": { - "dependencies": { - "cssom": "~0.3.6" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "version": "2.3.0" - }, - "node_modules/jest-environment-jsdom/node_modules/cssstyle/node_modules/cssom": { - "dev": true, - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "version": "0.3.8" - }, - "node_modules/jest-environment-jsdom/node_modules/data-urls": { - "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/jest-environment-jsdom/node_modules/domexception": { - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/jest-environment-jsdom/node_modules/domexception/node_modules/webidl-conversions": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/jest-environment-jsdom/node_modules/html-encoding-sniffer": { - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/jest-environment-jsdom/node_modules/http-proxy-agent": { - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "dev": true, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/jest-environment-jsdom/node_modules/jest-message-util": { - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-jsdom/node_modules/jest-mock": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-jsdom/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-jsdom/node_modules/jsdom": { - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "version": "16.7.0" - }, - "node_modules/jest-environment-jsdom/node_modules/parse5": { - "dev": true, - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "version": "6.0.1" - }, - "node_modules/jest-environment-jsdom/node_modules/saxes": { - "dependencies": { - "xmlchars": "^2.2.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "version": "5.0.1" - }, - "node_modules/jest-environment-jsdom/node_modules/tr46": { - "dependencies": { - "punycode": "^2.1.1" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/jest-environment-jsdom/node_modules/utf-8-validate": { - "dependencies": { - "node-gyp-build": "^4.3.0" - }, - "dev": true, - "engines": { - "node": ">=6.14.2" - }, - "hasInstallScript": true, - "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", - "optional": true, - "peer": true, - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", - "version": "5.0.10" - }, - "node_modules/jest-environment-jsdom/node_modules/w3c-xmlserializer": { - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/jest-environment-jsdom/node_modules/webidl-conversions": { - "dev": true, - "engines": { - "node": ">=10.4" - }, - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "version": "6.1.0" - }, - "node_modules/jest-environment-jsdom/node_modules/whatwg-encoding": { - "dependencies": { - "iconv-lite": "0.4.24" - }, - "dev": true, - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/jest-environment-jsdom/node_modules/whatwg-mimetype": { - "dev": true, - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "version": "2.3.0" - }, - "node_modules/jest-environment-jsdom/node_modules/whatwg-url": { - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "version": "8.7.0" - }, - "node_modules/jest-environment-jsdom/node_modules/ws": { - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", - "version": "7.5.10" - }, - "node_modules/jest-environment-jsdom/node_modules/xml-name-validator": { - "dev": true, - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/jest-environment-node": { - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-node/node_modules/@jest/environment": { - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-node/node_modules/@jest/fake-timers": { - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-node/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-node/node_modules/@sinonjs/commons": { - "dependencies": { - "type-detect": "4.0.8" - }, - "dev": true, - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "version": "1.8.6" - }, - "node_modules/jest-environment-node/node_modules/@sinonjs/fake-timers": { - "dependencies": { - "@sinonjs/commons": "^1.7.0" - }, - "dev": true, - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "version": "8.1.0" - }, - "node_modules/jest-environment-node/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-environment-node/node_modules/jest-message-util": { - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-node/node_modules/jest-mock": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-environment-node/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/jest-haste-map": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "micromatch": "^4.0.4", - "walker": "^1.0.7" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", - "optionalDependencies": { - "fsevents": "^2.3.2" - }, - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-haste-map/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-haste-map/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-haste-map/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2": { - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/@jest/environment": { - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/@jest/fake-timers": { - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/@sinonjs/commons": { - "dependencies": { - "type-detect": "4.0.8" - }, - "dev": true, - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "version": "1.8.6" - }, - "node_modules/jest-jasmine2/node_modules/@sinonjs/fake-timers": { - "dependencies": { - "@sinonjs/commons": "^1.7.0" - }, - "dev": true, - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "version": "8.1.0" - }, - "node_modules/jest-jasmine2/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-jasmine2/node_modules/expect": { - "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/jest-message-util": { - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/jest-mock": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/jest-snapshot": { - "dependencies": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-jasmine2/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-leak-detector": { - "dependencies": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-leak-detector/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-matcher-utils": { - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-matcher-utils/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-message-util": { - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.6.3", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-FtzaEEHzjDpQp51HX4UMkPZjy46ati4T5pEMyM6Ik48ztu4T9LQplZ6OsimHx7EuM9dfEh5HJa6D3trEftu3dA==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/jest-message-util/node_modules/ansi-styles": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - }, - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "version": "5.2.0" - }, - "node_modules/jest-message-util/node_modules/pretty-format": { - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-ZsBgjVhFAj5KeK+nHfF1305/By3lechHQSMWCTl8iHSbfOm2TN5nHEtFc/+W7fAyUeCs2n5iow72gld4gW0xDw==", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/jest-message-util/node_modules/react-is": { - "dev": true, - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "version": "18.2.0" - }, - "node_modules/jest-mock": { - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.6.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-Z7Gs/mOyTSR4yPsaZ72a/MtuK6RnC3JYqWONe48oLaoEcYwEDxqvbXz85G4SJrm2Z5Ar9zp6MiHF4AlFlRM4Pg==", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/jest-pnp-resolver": { - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "version": "1.2.3" - }, - "node_modules/jest-regex-util": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve": { - "dependencies": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", - "slash": "^3.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve-dependencies": { - "dependencies": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve-dependencies/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve-dependencies/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-resolve-dependencies/node_modules/expect": { - "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve-dependencies/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve-dependencies/node_modules/jest-message-util": { - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve-dependencies/node_modules/jest-snapshot": { - "dependencies": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve-dependencies/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-resolve/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-resolve/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runner": { - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runner/node_modules/@jest/environment": { - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runner/node_modules/@jest/fake-timers": { - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runner/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runner/node_modules/@sinonjs/commons": { - "dependencies": { - "type-detect": "4.0.8" - }, - "dev": true, - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "version": "1.8.6" - }, - "node_modules/jest-runner/node_modules/@sinonjs/fake-timers": { - "dependencies": { - "@sinonjs/commons": "^1.7.0" - }, - "dev": true, - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "version": "8.1.0" - }, - "node_modules/jest-runner/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-runner/node_modules/jest-message-util": { - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runner/node_modules/jest-mock": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runner/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime": { - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/@jest/environment": { - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/@jest/fake-timers": { - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/@jest/globals": { - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/@sinonjs/commons": { - "dependencies": { - "type-detect": "4.0.8" - }, - "dev": true, - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "version": "1.8.6" - }, - "node_modules/jest-runtime/node_modules/@sinonjs/fake-timers": { - "dependencies": { - "@sinonjs/commons": "^1.7.0" - }, - "dev": true, - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "version": "8.1.0" - }, - "node_modules/jest-runtime/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-runtime/node_modules/expect": { - "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/jest-message-util": { - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/jest-mock": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/jest-snapshot": { - "dependencies": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-runtime/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-serializer": { - "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.9" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-snapshot": { - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.6.4", - "@jest/transform": "^29.6.4", - "@jest/types": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.6.4", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.6.4", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.6.4", - "jest-message-util": "^29.6.3", - "jest-util": "^29.6.3", - "natural-compare": "^1.4.0", - "pretty-format": "^29.6.3", - "semver": "^7.5.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-VC1N8ED7+4uboUKGIDsbvNAZb6LakgIPgAF4RSpF13dN6YaMokfRqO+BaqK4zIh6X3JffgwbzuGqDEjHm/MrvA==", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/jest-snapshot/node_modules/@jest/transform": { - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.4", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.6.3", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-8thgRSiXUqtr/pPGY/OsyHuMjGyhVnWrFAwoxmIemlBuiMyU1WFs0tXoNxzcr4A4uErs/ABre76SGmrr5ab/AA==", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/jest-snapshot/node_modules/ansi-styles": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - }, - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "version": "5.2.0" - }, - "node_modules/jest-snapshot/node_modules/convert-source-map": { - "dev": true, - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/jest-snapshot/node_modules/diff-sequences": { - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/jest-snapshot/node_modules/jest-diff": { - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.6.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-9F48UxR9e4XOEZvoUXEHSWY4qC4zERJaOfrbBg9JpbJOO43R1vN76REt/aMGZoY6GD5g84nnJiBIVlscegefpw==", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/jest-snapshot/node_modules/jest-haste-map": { - "dependencies": { - "@jest/types": "^29.6.3", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.6.3", - "jest-worker": "^29.6.4", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-12Ad+VNTDHxKf7k+M65sviyynRoZYuL1/GTuhEVb8RYsNSNln71nANRb/faSyWvx0j+gHcivChXHIoMJrGYjog==", - "optionalDependencies": { - "fsevents": "^2.3.2" - }, - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/jest-snapshot/node_modules/jest-matcher-utils": { - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.6.4", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.6.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-KSzwyzGvK4HcfnserYqJHYi7sZVqdREJ9DMPAKVbS98JsIAvumihaNUbjrWw0St7p9IY7A9UskCW5MYlGmBQFQ==", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/jest-snapshot/node_modules/jest-regex-util": { - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/jest-snapshot/node_modules/jest-worker": { - "dependencies": { - "@types/node": "*", - "jest-util": "^29.6.3", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-6dpvFV4WjcWbDVGgHTWo/aupl8/LbBx2NSKfiwqf79xC/yeJjKHT1+StcKy/2KTmW16hE68ccKVOtXf+WZGz7Q==", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.4.tgz", - "version": "29.6.4" - }, - "node_modules/jest-snapshot/node_modules/pretty-format": { - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-ZsBgjVhFAj5KeK+nHfF1305/By3lechHQSMWCTl8iHSbfOm2TN5nHEtFc/+W7fAyUeCs2n5iow72gld4gW0xDw==", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/jest-snapshot/node_modules/react-is": { - "dev": true, - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "version": "18.2.0" - }, - "node_modules/jest-snapshot/node_modules/supports-color": { - "dependencies": { - "has-flag": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - }, - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "version": "8.1.1" - }, - "node_modules/jest-snapshot/node_modules/write-file-atomic": { - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "dev": true, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - }, - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "version": "4.0.2" - }, - "node_modules/jest-util": { - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "integrity": "sha512-QUjna/xSy4B32fzcKTSz1w7YYzgiHrjjJjevdRf61HYk998R5vVMMNmrHESYZVDS5DSWs+1srPLPKxXPkeSDOA==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.6.3.tgz", - "version": "29.6.3" - }, - "node_modules/jest-validate": { - "dependencies": { - "@jest/types": "^27.5.1", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "leven": "^3.1.0", - "pretty-format": "^27.5.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-validate/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-validate/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-validate/node_modules/camelcase": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "version": "6.3.0" - }, - "node_modules/jest-validate/node_modules/jest-get-type": { - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-watcher": { - "dependencies": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "jest-util": "^27.5.1", - "string-length": "^4.0.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-watcher/node_modules/@jest/types": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-watcher/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, - "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" - }, - "node_modules/jest-watcher/node_modules/jest-util": { - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-worker": { - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dev": true, - "engines": { - "node": ">= 10.13.0" - }, - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/jest-worker/node_modules/supports-color": { - "dependencies": { - "has-flag": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - }, - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "version": "8.1.1" - }, - "node_modules/jmespath": { - "engines": { - "node": ">= 0.6.0" - }, - "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==", - "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", - "version": "0.16.0" - }, - "node_modules/jose": { - "funding": { - "url": "https://github.com/sponsors/panva" - }, - "integrity": "sha512-jc7BFxgKPKi94uOvEmzlSWFFe2+vASyXaKUpdQKatWAESU2MWjDfFf0fdfc83CDKcA5QecabZeNLyfhe3yKNkg==", - "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.5.tgz", - "version": "4.15.5" - }, - "node_modules/js-tokens": { - "dev": true, - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/js-yaml": { - "bin": { - "js-yaml": "bin/js-yaml.js" - }, - "dependencies": { - "argparse": "^2.0.1" - }, - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "version": "4.1.0" - }, - "node_modules/jsbn": { - "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", - "version": "1.1.0" - }, - "node_modules/jsdom": { - "dependencies": { - "abab": "^2.0.6", - "cssstyle": "^3.0.0", - "data-urls": "^4.0.0", - "decimal.js": "^10.4.3", - "domexception": "^4.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.4", - "parse5": "^7.1.2", - "rrweb-cssom": "^0.6.0", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^4.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^12.0.1", - "ws": "^8.13.0", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=16" - }, - "integrity": "sha512-/9AVW7xNbsBv6GfWho4TTNjEo9fe6Zhf9O7s0Fhhr3u+awPwAJMKwAMXnkk5vBxflqLW9hTHX/0cs+P3gW+cQw==", - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-22.1.0.tgz", - "version": "22.1.0" - }, - "node_modules/jsdom/node_modules/form-data": { - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/jsesc": { - "bin": { - "jsesc": "bin/jsesc" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "version": "2.5.2" - }, - "node_modules/json-buffer": { - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/json-colorizer": { - "dependencies": { - "chalk": "^2.4.1", - "lodash.get": "^4.4.2" - }, - "dev": true, - "integrity": "sha512-56oZtwV1piXrQnRNTtJeqRv+B9Y/dXAYLqBBaYl/COcUdoZxgLBLAO88+CnkbT6MxNs0c5E9mPBIb2sFcNz3vw==", - "resolved": "https://registry.npmjs.org/json-colorizer/-/json-colorizer-2.2.2.tgz", - "version": "2.2.2" - }, - "node_modules/json-colorizer/node_modules/ansi-styles": { - "dependencies": { - "color-convert": "^1.9.0" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "version": "3.2.1" - }, - "node_modules/json-colorizer/node_modules/chalk": { - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "version": "2.4.2" - }, - "node_modules/json-colorizer/node_modules/color-convert": { - "dependencies": { - "color-name": "1.1.3" - }, - "dev": true, - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "version": "1.9.3" - }, - "node_modules/json-colorizer/node_modules/color-name": { - "dev": true, - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "version": "1.1.3" - }, - "node_modules/json-colorizer/node_modules/escape-string-regexp": { - "dev": true, - "engines": { - "node": ">=0.8.0" - }, - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/json-colorizer/node_modules/has-flag": { - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/json-colorizer/node_modules/supports-color": { - "dependencies": { - "has-flag": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "version": "5.5.0" - }, - "node_modules/json-cycle": { - "dev": true, - "engines": { - "node": ">= 4" - }, - "integrity": "sha512-GOehvd5PO2FeZ5T4c+RxobeT5a1PiGpF4u9/3+UvrMU4bhnVqzJY7hm39wg8PDCqkU91fWGH8qjWR4bn+wgq9w==", - "resolved": "https://registry.npmjs.org/json-cycle/-/json-cycle-1.5.0.tgz", - "version": "1.5.0" - }, - "node_modules/json-parse-even-better-errors": { - "dev": true, - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "version": "2.3.1" - }, - "node_modules/json-refs": { - "bin": { - "json-refs": "bin/json-refs" - }, - "dependencies": { - "commander": "~4.1.1", - "graphlib": "^2.1.8", - "js-yaml": "^3.13.1", - "lodash": "^4.17.15", - "native-promise-only": "^0.8.1", - "path-loader": "^1.0.10", - "slash": "^3.0.0", - "uri-js": "^4.2.2" - }, - "dev": true, - "engines": { - "node": ">=0.8" - }, - "integrity": "sha512-0vOQd9eLNBL18EGl5yYaO44GhixmImes2wiYn9Z3sag3QnehWrYWlB9AFtMxCL2Bj3fyxgDYkxGFEU/chlYssw==", - "resolved": "https://registry.npmjs.org/json-refs/-/json-refs-3.0.15.tgz", - "version": "3.0.15" - }, - "node_modules/json-refs/node_modules/argparse": { - "dependencies": { - "sprintf-js": "~1.0.2" - }, - "dev": true, - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "version": "1.0.10" - }, - "node_modules/json-refs/node_modules/js-yaml": { - "bin": { - "js-yaml": "bin/js-yaml.js" - }, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "dev": true, - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "version": "3.14.1" - }, - "node_modules/json-refs/node_modules/sprintf-js": { - "dev": true, - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/json-schema-to-typescript": { - "bin": { - "json2ts": "dist/src/cli.js" - }, - "dependencies": { - "@bcherny/json-schema-ref-parser": "10.0.5-fork", - "@types/json-schema": "^7.0.11", - "@types/lodash": "^4.14.182", - "@types/prettier": "^2.6.1", - "cli-color": "^2.0.2", - "get-stdin": "^8.0.0", - "glob": "^7.1.6", - "glob-promise": "^4.2.2", - "is-glob": "^4.0.3", - "lodash": "^4.17.21", - "minimist": "^1.2.6", - "mkdirp": "^1.0.4", - "mz": "^2.7.0", - "prettier": "^2.6.2" - }, - "dev": true, - "engines": { - "node": ">=12.0.0" - }, - "integrity": "sha512-DB6JGDgpszucGYAl5JXuIU84/b9KaPa0Iq09g+JqGEYGG2RzUvaef4nb4B680KT8eR6R5xKC+xBHsPDjc2UPAQ==", - "resolved": "https://registry.npmjs.org/json-schema-to-typescript/-/json-schema-to-typescript-13.1.0.tgz", - "version": "13.1.0" - }, - "node_modules/json-schema-to-typescript/node_modules/get-stdin": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz", - "version": "8.0.0" - }, - "node_modules/json-schema-to-typescript/node_modules/prettier": { - "bin": { - "prettier": "bin-prettier.js" - }, - "dev": true, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - }, - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "version": "2.8.8" - }, - "node_modules/json-schema-traverse": { - "dev": true, - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "version": "0.4.1" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "dev": true, - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/json-stringify-safe": { - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "version": "5.0.1" - }, - "node_modules/json5": { - "bin": { - "json5": "lib/cli.js" - }, - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "version": "2.2.3" - }, - "node_modules/jsonfile": { - "dependencies": { - "universalify": "^2.0.0" - }, - "dev": true, - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "optionalDependencies": { - "graceful-fs": "^4.1.6" - }, - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "version": "6.1.0" - }, - "node_modules/jsonwebtoken": { - "dependencies": { - "jws": "^3.2.2", - "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" - }, - "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", - "version": "9.0.2" - }, - "node_modules/jszip": { - "dependencies": { - "lie": "~3.3.0", - "pako": "~1.0.2", - "readable-stream": "~2.3.6", - "setimmediate": "^1.0.5" - }, - "dev": true, - "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", - "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", - "version": "3.10.1" - }, - "node_modules/jszip/node_modules/readable-stream": { - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dev": true, - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "version": "2.3.8" - }, - "node_modules/jszip/node_modules/safe-buffer": { - "dev": true, - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "version": "5.1.2" - }, - "node_modules/jszip/node_modules/string_decoder": { - "dependencies": { - "safe-buffer": "~5.1.0" - }, - "dev": true, - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/jwa": { - "dependencies": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - }, - "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", - "version": "1.4.1" - }, - "node_modules/jwks-rsa": { - "dependencies": { - "@types/express": "^4.17.14", - "@types/jsonwebtoken": "^9.0.0", - "debug": "^4.3.4", - "jose": "^4.10.4", - "limiter": "^1.1.5", - "lru-memoizer": "^2.1.4" - }, - "engines": { - "node": ">=14" - }, - "integrity": "sha512-UUOZ0CVReK1QVU3rbi9bC7N5/le8ziUj0A2ef1Q0M7OPD2KvjEYizptqIxGIo6fSLYDkqBrazILS18tYuRc8gw==", - "resolved": "https://registry.npmjs.org/jwks-rsa/-/jwks-rsa-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/jws": { - "dependencies": { - "jwa": "^1.4.1", - "safe-buffer": "^5.0.1" - }, - "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", - "version": "3.2.2" - }, - "node_modules/jwt-decode": { - "dev": true, - "integrity": "sha512-86GgN2vzfUu7m9Wcj63iUkuDzFNYFVmjeDm2GzWpUk+opB0pEpMsw6ePCMrhYkumz2C1ihqtZzOMAg7FiXcNoQ==", - "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/keyv": { - "dependencies": { - "json-buffer": "3.0.1" - }, - "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", - "version": "4.5.3" - }, - "node_modules/kind-of": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "version": "6.0.3" - }, - "node_modules/kleur": { - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "version": "3.0.3" - }, - "node_modules/lazystream": { - "dependencies": { - "readable-stream": "^2.0.5" - }, - "dev": true, - "engines": { - "node": ">= 0.6.3" - }, - "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/lazystream/node_modules/readable-stream": { - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dev": true, - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "version": "2.3.8" - }, - "node_modules/lazystream/node_modules/safe-buffer": { - "dev": true, - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "version": "5.1.2" - }, - "node_modules/lazystream/node_modules/string_decoder": { - "dependencies": { - "safe-buffer": "~5.1.0" - }, - "dev": true, - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/leven": { - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/levn": { - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "dev": true, - "engines": { - "node": ">= 0.8.0" - }, - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "version": "0.4.1" - }, - "node_modules/libphonenumber-js": { - "integrity": "sha512-M/iPACJGsTvEy8QmUY4K0SoIFB71X2j7y2JvUMYzUXUxCNmiU+NTfHdz7gt+dC48BVfBzZi2oO6s9TDGllCfxA==", - "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.10.43.tgz", - "version": "1.10.43" - }, - "node_modules/lie": { - "dependencies": { - "immediate": "~3.0.5" - }, - "dev": true, - "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", - "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", - "version": "3.3.0" - }, - "node_modules/limiter": { - "integrity": "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA==", - "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.5.tgz", - "version": "1.1.5" - }, - "node_modules/lines-and-columns": { - "dev": true, - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "version": "1.2.4" - }, - "node_modules/loader-runner": { - "dev": true, - "engines": { - "node": ">=6.11.5" - }, - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "version": "4.3.0" - }, - "node_modules/locate-path": { - "dependencies": { - "p-locate": "^5.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "version": "6.0.0" - }, - "node_modules/lodash": { - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "version": "4.17.21" - }, - "node_modules/lodash.clonedeep": { - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "version": "4.5.0" - }, - "node_modules/lodash.defaults": { - "dev": true, - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "version": "4.2.0" - }, - "node_modules/lodash.difference": { - "dev": true, - "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==", - "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", - "version": "4.5.0" - }, - "node_modules/lodash.flatten": { - "dev": true, - "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "version": "4.4.0" - }, - "node_modules/lodash.get": { - "dev": true, - "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "version": "4.4.2" - }, - "node_modules/lodash.includes": { - "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", - "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", - "version": "4.3.0" - }, - "node_modules/lodash.isboolean": { - "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", - "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", - "version": "3.0.3" - }, - "node_modules/lodash.isfinite": { - "integrity": "sha512-7FGG40uhC8Mm633uKW1r58aElFlBlxCrg9JfSi3P6aYiWmfiWF0PgMd86ZUsxE5GwWPdHoS2+48bwTh2VPkIQA==", - "resolved": "https://registry.npmjs.org/lodash.isfinite/-/lodash.isfinite-3.3.2.tgz", - "version": "3.3.2" - }, - "node_modules/lodash.isinteger": { - "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", - "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", - "version": "4.0.4" - }, - "node_modules/lodash.isnumber": { - "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", - "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", - "version": "3.0.3" - }, - "node_modules/lodash.isplainobject": { - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "version": "4.0.6" - }, - "node_modules/lodash.isstring": { - "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/lodash.memoize": { - "dev": true, - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "version": "4.1.2" - }, - "node_modules/lodash.merge": { - "dev": true, - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "version": "4.6.2" - }, - "node_modules/lodash.once": { - "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", - "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", - "version": "4.1.1" - }, - "node_modules/lodash.union": { - "dev": true, - "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==", - "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", - "version": "4.6.0" - }, - "node_modules/log": { - "dependencies": { - "d": "^1.0.1", - "duration": "^0.2.2", - "es5-ext": "^0.10.53", - "event-emitter": "^0.3.5", - "sprintf-kit": "^2.0.1", - "type": "^2.5.0", - "uni-global": "^1.0.0" - }, - "dev": true, - "integrity": "sha512-McG47rJEWOkXTDioZzQNydAVvZNeEkSyLJ1VWkFwfW+o1knW+QSi8D1KjPn/TnctV+q99lkvJNe1f0E1IjfY2A==", - "resolved": "https://registry.npmjs.org/log/-/log-6.3.1.tgz", - "version": "6.3.1" - }, - "node_modules/log-node": { - "dependencies": { - "ansi-regex": "^5.0.1", - "cli-color": "^2.0.1", - "cli-sprintf-format": "^1.1.1", - "d": "^1.0.1", - "es5-ext": "^0.10.53", - "sprintf-kit": "^2.0.1", - "supports-color": "^8.1.1", - "type": "^2.5.0" - }, - "dev": true, - "engines": { - "node": ">=10.0" - }, - "integrity": "sha512-1UBwzgYiCIDFs8A0rM2QdBFo8Wd8UQ0HrSTu/MNI+/2zN3NoHRj2fhplurAyuxTYUXu3Oohugq1jAn5s05u1MQ==", - "peerDependencies": { - "log": "^6.0.0" - }, - "resolved": "https://registry.npmjs.org/log-node/-/log-node-8.0.3.tgz", - "version": "8.0.3" - }, - "node_modules/log-node/node_modules/supports-color": { - "dependencies": { - "has-flag": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - }, - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "version": "8.1.1" - }, - "node_modules/log-node/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/log-symbols": { - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "version": "4.1.0" - }, - "node_modules/log/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/lowercase-keys": { - "engines": { - "node": ">=8" - }, - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/lru-cache": { - "dependencies": { - "yallist": "^3.0.2" - }, - "dev": true, - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "version": "5.1.1" - }, - "node_modules/lru-memoizer": { - "dependencies": { - "lodash.clonedeep": "^4.5.0", - "lru-cache": "~4.0.0" - }, - "integrity": "sha512-QfOZ6jNkxCcM/BkIPnFsqDhtrazLRsghi9mBwFAzol5GCvj4EkFT899Za3+QwikCg5sRX8JstioBDwOxEyzaNw==", - "resolved": "https://registry.npmjs.org/lru-memoizer/-/lru-memoizer-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/lru-memoizer/node_modules/lru-cache": { - "dependencies": { - "pseudomap": "^1.0.1", - "yallist": "^2.0.0" - }, - "integrity": "sha512-uQw9OqphAGiZhkuPlpFGmdTU2tEuhxTourM/19qGJrxBPHAr/f8BT1a0i/lOclESnGatdJG/UCkP9kZB/Lh1iw==", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.2.tgz", - "version": "4.0.2" - }, - "node_modules/lru-memoizer/node_modules/yallist": { - "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "version": "2.1.2" - }, - "node_modules/lru-queue": { - "dependencies": { - "es5-ext": "~0.10.2" - }, - "dev": true, - "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", - "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", - "version": "0.1.0" - }, - "node_modules/make-dir": { - "dependencies": { - "semver": "^7.5.3" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/make-error": { - "dev": true, - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "version": "1.3.6" - }, - "node_modules/makeerror": { - "dependencies": { - "tmpl": "1.0.5" - }, - "dev": true, - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "version": "1.0.12" - }, - "node_modules/matcher": { - "dependencies": { - "escape-string-regexp": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/media-typer": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "version": "0.3.0" - }, - "node_modules/memoizee": { - "dependencies": { - "d": "^1.0.1", - "es5-ext": "^0.10.53", - "es6-weak-map": "^2.0.3", - "event-emitter": "^0.3.5", - "is-promise": "^2.2.2", - "lru-queue": "^0.1.0", - "next-tick": "^1.1.0", - "timers-ext": "^0.1.7" - }, - "dev": true, - "integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==", - "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz", - "version": "0.4.15" - }, - "node_modules/merge-descriptors": { - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/merge-stream": { - "dev": true, - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/merge2": { - "dev": true, - "engines": { - "node": ">= 8" - }, - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "version": "1.4.1" - }, - "node_modules/methods": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "version": "1.1.2" - }, - "node_modules/micromatch": { - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - }, - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "version": "4.0.5" - }, - "node_modules/mime": { - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "version": "1.6.0" - }, - "node_modules/mime-db": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "version": "1.52.0" - }, - "node_modules/mime-types": { - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "version": "2.1.35" - }, - "node_modules/mimic-fn": { - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/mimic-response": { - "engines": { - "node": ">=4" - }, - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/minimatch": { - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - }, - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "version": "3.1.2" - }, - "node_modules/minimist": { - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "version": "1.2.8" - }, - "node_modules/minipass": { - "engines": { - "node": ">=8" - }, - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/minizlib": { - "dependencies": { - "minipass": "^7.0.4", - "rimraf": "^5.0.5" - }, - "engines": { - "node": ">= 18" - }, - "integrity": "sha512-umcy022ILvb5/3Djuu8LWeqUa8D68JaBzlttKeMWen48SjabqS3iY5w/vzeMzMUNhLDifyhbOwKDSznB1vvrwg==", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/minizlib/node_modules/brace-expansion": { - "dependencies": { - "balanced-match": "^1.0.0" - }, - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/minizlib/node_modules/glob": { - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", - "minimatch": "^9.0.1", - "minipass": "^7.0.4", - "path-scurry": "^1.10.2" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", - "version": "10.3.12" - }, - "node_modules/minizlib/node_modules/minimatch": { - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "version": "9.0.4" - }, - "node_modules/minizlib/node_modules/minipass": { - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", - "version": "7.0.4" - }, - "node_modules/minizlib/node_modules/rimraf": { - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "dependencies": { - "glob": "^10.3.7" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", - "version": "5.0.5" - }, - "node_modules/mkdirp": { - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "version": "1.0.4" - }, - "node_modules/mkdirp-classic": { - "dev": true, - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "version": "0.5.3" - }, - "node_modules/ms": { - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "version": "2.1.3" - }, - "node_modules/mute-stream": { - "dev": true, - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "version": "0.0.8" - }, - "node_modules/mz": { - "dependencies": { - "any-promise": "^1.0.0", - "object-assign": "^4.0.1", - "thenify-all": "^1.0.0" - }, - "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", - "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", - "version": "2.7.0" - }, - "node_modules/nan": { - "dev": true, - "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==", - "optional": true, - "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", - "version": "2.17.0" - }, - "node_modules/native-promise-only": { - "dev": true, - "integrity": "sha512-zkVhZUA3y8mbz652WrL5x0fB0ehrBkulWT3TomAQ9iDtyXZvzKeEA6GPxAItBYeNYl5yngKRX612qHOhvMkDeg==", - "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", - "version": "0.8.1" - }, - "node_modules/natural": { - "dependencies": { - "afinn-165": "^1.0.2", - "afinn-165-financialmarketnews": "^3.0.0", - "apparatus": "^0.0.10", - "safe-stable-stringify": "^2.2.0", - "stopwords-iso": "^1.1.0", - "sylvester": "^0.0.12", - "underscore": "^1.9.1", - "wordnet-db": "^3.1.11" - }, - "dev": true, - "engines": { - "node": ">=0.4.10" - }, - "integrity": "sha512-Z5gvSnDEDF9IMSi8K70GY5cnIg0h4f1p/oIcrN9BPqcn22reexJSEsakDPpEJvs2Qv38PHjICExL0UHvvl7oig==", - "resolved": "https://registry.npmjs.org/natural/-/natural-6.7.0.tgz", - "version": "6.7.0" - }, - "node_modules/natural-compare": { - "dev": true, - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "version": "1.4.0" - }, - "node_modules/natural-compare-lite": { - "dev": true, - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "version": "1.4.0" - }, - "node_modules/ncjsm": { - "dependencies": { - "builtin-modules": "^3.3.0", - "deferred": "^0.7.11", - "es5-ext": "^0.10.62", - "es6-set": "^0.1.6", - "ext": "^1.7.0", - "find-requires": "^1.0.0", - "fs2": "^0.3.9", - "type": "^2.7.2" - }, - "dev": true, - "integrity": "sha512-6d1VWA7FY31CpI4Ki97Fpm36jfURkVbpktizp8aoVViTZRQgr/0ddmlKerALSSlzfwQRBeSq1qwwVcBJK4Sk7Q==", - "resolved": "https://registry.npmjs.org/ncjsm/-/ncjsm-4.3.2.tgz", - "version": "4.3.2" - }, - "node_modules/ncjsm/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/negotiator": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "version": "0.6.3" - }, - "node_modules/neo-async": { - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "version": "2.6.2" - }, - "node_modules/next-tick": { - "dev": true, - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", - "version": "1.1.0" - }, - "node_modules/nice-try": { - "dev": true, - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/nock": { - "dependencies": { - "debug": "^4.1.0", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", - "propagate": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">= 10.13" - }, - "integrity": "sha512-z+KUlILy9SK/RjpeXDiDUEAq4T94ADPHE3qaRkf66mpEhzc/ytOMm3Bwdrbq6k1tMWkbdujiKim3G2tfQARuJw==", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.3.tgz", - "version": "13.3.3" - }, - "node_modules/node-dir": { - "dependencies": { - "minimatch": "^3.0.2" - }, - "dev": true, - "engines": { - "node": ">= 0.10.5" - }, - "integrity": "sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==", - "resolved": "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz", - "version": "0.1.17" - }, - "node_modules/node-fetch": { - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "dev": true, - "engines": { - "node": "4.x || >=6.0.0" - }, - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "version": "2.7.0" - }, - "node_modules/node-fetch/node_modules/tr46": { - "dev": true, - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "version": "0.0.3" - }, - "node_modules/node-fetch/node_modules/webidl-conversions": { - "dev": true, - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/node-fetch/node_modules/whatwg-url": { - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - }, - "dev": true, - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/node-gyp-build": { - "bin": { - "node-gyp-build": "bin.js", - "node-gyp-build-optional": "optional.js", - "node-gyp-build-test": "build-test.js" - }, - "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz", - "version": "4.6.1" - }, - "node_modules/node-int64": { - "dev": true, - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "version": "0.4.0" - }, - "node_modules/node-releases": { - "dev": true, - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "version": "2.0.13" - }, - "node_modules/nodemailer": { - "engines": { - "node": ">=6.0.0" - }, - "integrity": "sha512-dexTll8zqQoVJEZPwQAKzxxtFn0qTnjdQTchoU6Re9BUUGBJiOy3YMn/0ShTW6J5M0dfQ1NeDeRTTl4oIWgQMA==", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.9.tgz", - "version": "6.9.9" - }, - "node_modules/normalize-path": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/normalize-url": { - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "version": "6.1.0" - }, - "node_modules/npm-registry-utilities": { - "dependencies": { - "ext": "^1.6.0", - "fs2": "^0.3.9", - "memoizee": "^0.4.15", - "node-fetch": "^2.6.7", - "semver": "^7.3.5", - "type": "^2.6.0", - "validate-npm-package-name": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=12.0" - }, - "integrity": "sha512-9xYfSJy2IFQw1i6462EJzjChL9e65EfSo2Cw6kl0EFeDp05VvU+anrQk3Fc0d1MbVCq7rWIxeer89O9SUQ/uOg==", - "resolved": "https://registry.npmjs.org/npm-registry-utilities/-/npm-registry-utilities-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/npm-registry-utilities/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/npm-run-path": { - "dependencies": { - "path-key": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "version": "4.0.1" - }, - "node_modules/nwsapi": { - "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", - "version": "2.2.7" - }, - "node_modules/object-assign": { - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "version": "4.1.1" - }, - "node_modules/object-hash": { - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/object-inspect": { - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "version": "1.12.3" - }, - "node_modules/object-keys": { - "engines": { - "node": ">= 0.4" - }, - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/oidc-token-hash": { - "engines": { - "node": "^10.13.0 || >=12.0.0" - }, - "integrity": "sha512-IF4PcGgzAr6XXSff26Sk/+P4KZFJVuHAJZj3wgO3vX2bMdNVp/QXTP3P7CEm9V1IdG8lDLY3HhiqpsE/nOwpPw==", - "resolved": "https://registry.npmjs.org/oidc-token-hash/-/oidc-token-hash-5.0.3.tgz", - "version": "5.0.3" - }, - "node_modules/on-finished": { - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "version": "2.4.1" - }, - "node_modules/once": { - "dependencies": { - "wrappy": "1" - }, - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "version": "1.4.0" - }, - "node_modules/onetime": { - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "version": "5.1.2" - }, - "node_modules/open": { - "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - }, - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "version": "8.4.2" - }, - "node_modules/openid-client": { - "dependencies": { - "jose": "^4.14.4", - "lru-cache": "^6.0.0", - "object-hash": "^2.2.0", - "oidc-token-hash": "^5.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/panva" - }, - "integrity": "sha512-sVQOvjsT/sbSfYsQI/9liWQGVZH/Pp3rrtlGEwgk/bbHfrUDZ24DN57lAagIwFtuEu+FM9Ev7r85s8S/yPjimQ==", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.4.3.tgz", - "version": "5.4.3" - }, - "node_modules/openid-client/node_modules/lru-cache": { - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "version": "6.0.0" - }, - "node_modules/openid-client/node_modules/yallist": { - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/optionator": { - "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - }, - "dev": true, - "engines": { - "node": ">= 0.8.0" - }, - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "version": "0.9.3" - }, - "node_modules/ora": { - "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" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", - "version": "5.4.1" - }, - "node_modules/os-tmpdir": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "version": "1.0.2" - }, - "node_modules/p-cancelable": { - "engines": { - "node": ">=8" - }, - "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", - "version": "2.1.1" - }, - "node_modules/p-event": { - "dependencies": { - "p-timeout": "^3.1.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", - "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", - "version": "4.2.0" - }, - "node_modules/p-finally": { - "engines": { - "node": ">=4" - }, - "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/p-limit": { - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/p-locate": { - "dependencies": { - "p-limit": "^3.0.2" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/p-queue": { - "dependencies": { - "eventemitter3": "^4.0.4", - "p-timeout": "^3.2.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==", - "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz", - "version": "6.6.2" - }, - "node_modules/p-retry": { - "dependencies": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" - }, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "version": "4.6.2" - }, - "node_modules/p-timeout": { - "dependencies": { - "p-finally": "^1.0.0" - }, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", - "version": "3.2.0" - }, - "node_modules/p-try": { - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/packet-reader": { - "devOptional": true, - "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==", - "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/pako": { - "dev": true, - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "version": "1.0.11" - }, - "node_modules/papaparse": { - "integrity": "sha512-HipMsgJkZu8br23pW15uvo6sib6wne/4woLZPlFf3rpDyMe9ywEXUsuD7+6K9PRkJlVT51j/sCOYDKGGS3ZJrw==", - "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.4.1.tgz", - "version": "5.4.1" - }, - "node_modules/parent-module": { - "dependencies": { - "callsites": "^3.0.0" - }, - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/parse-json": { - "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" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "version": "5.2.0" - }, - "node_modules/parse5": { - "dependencies": { - "entities": "^4.4.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - }, - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "version": "7.1.2" - }, - "node_modules/parse5-htmlparser2-tree-adapter": { - "dependencies": { - "parse5": "^6.0.1" - }, - "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", - "version": "6.0.1" - }, - "node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5": { - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "version": "6.0.1" - }, - "node_modules/parseurl": { - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "version": "1.3.3" - }, - "node_modules/path-exists": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/path-is-absolute": { - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/path-key": { - "engines": { - "node": ">=8" - }, - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "version": "3.1.1" - }, - "node_modules/path-loader": { - "dependencies": { - "native-promise-only": "^0.8.1", - "superagent": "^7.1.6" - }, - "dev": true, - "integrity": "sha512-n7oDG8B+k/p818uweWrOixY9/Dsr89o2TkCm6tOTex3fpdo2+BFDgR+KpB37mGKBRsBAlR8CIJMFN0OEy/7hIQ==", - "resolved": "https://registry.npmjs.org/path-loader/-/path-loader-1.0.12.tgz", - "version": "1.0.12" - }, - "node_modules/path-parse": { - "dev": true, - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "version": "1.0.7" - }, - "node_modules/path-scurry": { - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz", - "version": "1.10.2" - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "engines": { - "node": "14 || >=16.14" - }, - "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", - "version": "10.2.0" - }, - "node_modules/path-to-regexp": { - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "version": "0.1.7" - }, - "node_modules/path-type": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/path2": { - "dev": true, - "integrity": "sha512-TX+cz8Jk+ta7IvRy2FAej8rdlbrP0+uBIkP/5DTODez/AuL/vSb30KuAdDxGVREXzn8QfAiu5mJYJ1XjbOhEPA==", - "resolved": "https://registry.npmjs.org/path2/-/path2-0.1.0.tgz", - "version": "0.1.0" - }, - "node_modules/peek-readable": { - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - }, - "integrity": "sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg==", - "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-4.1.0.tgz", - "version": "4.1.0" - }, - "node_modules/pend": { - "dev": true, - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/pg": { - "dependencies": { - "buffer-writer": "2.0.0", - "packet-reader": "1.0.0", - "pg-connection-string": "^2.6.2", - "pg-pool": "^3.6.1", - "pg-protocol": "^1.6.0", - "pg-types": "^2.1.0", - "pgpass": "1.x" - }, - "devOptional": true, - "engines": { - "node": ">= 8.0.0" - }, - "integrity": "sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g==", - "optionalDependencies": { - "pg-cloudflare": "^1.1.1" - }, - "peerDependencies": { - "pg-native": ">=3.0.1" - }, - "peerDependenciesMeta": { - "pg-native": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz", - "version": "8.11.3" - }, - "node_modules/pg-cloudflare": { - "dev": true, - "integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==", - "optional": true, - "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/pg-connection-string": { - "devOptional": true, - "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==", - "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.2.tgz", - "version": "2.6.2" - }, - "node_modules/pg-int8": { - "devOptional": true, - "engines": { - "node": ">=4.0.0" - }, - "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", - "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/pg-pool": { - "devOptional": true, - "integrity": "sha512-jizsIzhkIitxCGfPRzJn1ZdcosIt3pz9Sh3V01fm1vZnbnCMgmGl5wvGGdNN2EL9Rmb0EcFoCkixH4Pu+sP9Og==", - "peerDependencies": { - "pg": ">=8.0" - }, - "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.1.tgz", - "version": "3.6.1" - }, - "node_modules/pg-protocol": { - "devOptional": true, - "integrity": "sha512-M+PDm637OY5WM307051+bsDia5Xej6d9IR4GwJse1qA1DIhiKlksvrneZOYQq42OM+spubpcNYEo2FcKQrDk+Q==", - "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.0.tgz", - "version": "1.6.0" - }, - "node_modules/pg-types": { - "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" - }, - "devOptional": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", - "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/pgpass": { - "dependencies": { - "split2": "^4.1.0" - }, - "devOptional": true, - "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", - "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/picocolors": { - "dev": true, - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/picomatch": { - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - }, - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "version": "2.3.1" - }, - "node_modules/pify": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "version": "2.3.0" - }, - "node_modules/pinkie": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "version": "2.0.4" - }, - "node_modules/pinkie-promise": { - "dependencies": { - "pinkie": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/pirates": { - "dev": true, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "version": "4.0.6" - }, - "node_modules/pkg-dir": { - "dependencies": { - "find-up": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "version": "4.2.0" - }, - "node_modules/pkg-dir/node_modules/find-up": { - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "version": "4.1.0" - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "dependencies": { - "p-locate": "^4.1.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "dependencies": { - "p-try": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "version": "2.3.0" - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "dependencies": { - "p-limit": "^2.2.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "version": "4.1.0" - }, - "node_modules/portscanner": { - "dependencies": { - "async": "^2.6.0", - "is-number-like": "^1.0.3" - }, - "engines": { - "node": ">=0.4", - "npm": ">=1.0.0" - }, - "integrity": "sha512-IFroCz/59Lqa2uBvzK3bKDbDDIEaAY8XJ1jFxcLWTqosrsc32//P4VuSB2vZXoHiHqOmx8B5L5hnKOxL/7FlPw==", - "resolved": "https://registry.npmjs.org/portscanner/-/portscanner-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/postgres-array": { - "devOptional": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", - "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/postgres-bytea": { - "devOptional": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==", - "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/postgres-date": { - "devOptional": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", - "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", - "version": "1.0.7" - }, - "node_modules/postgres-interval": { - "dependencies": { - "xtend": "^4.0.0" - }, - "devOptional": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", - "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/prelude-ls": { - "dev": true, - "engines": { - "node": ">= 0.8.0" - }, - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "version": "1.2.1" - }, - "node_modules/prettier": { - "bin": { - "prettier": "bin/prettier.cjs" - }, - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - }, - "integrity": "sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.2.tgz", - "version": "3.0.2" - }, - "node_modules/prettier-linter-helpers": { - "dependencies": { - "fast-diff": "^1.1.2" - }, - "dev": true, - "engines": { - "node": ">=6.0.0" - }, - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/pretty-format": { - "dependencies": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "version": "27.5.1" - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - }, - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "version": "5.2.0" - }, - "node_modules/prng-well1024a": { - "dev": true, - "integrity": "sha512-lBXfAW5Vgpej/QVHNYhTSsiz1IIlgo7kv8zzQL7v5crD8jgA4Fk3axwb9aCrDHUqJ4zKXsb3U3m6sw21165Trg==", - "resolved": "https://registry.npmjs.org/prng-well1024a/-/prng-well1024a-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/process-nextick-args": { - "dev": true, - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/process-utils": { - "dependencies": { - "ext": "^1.4.0", - "fs2": "^0.3.9", - "memoizee": "^0.4.14", - "type": "^2.1.0" - }, - "dev": true, - "engines": { - "node": ">=10.0" - }, - "integrity": "sha512-fMyMQbKCxX51YxR7YGCzPjLsU3yDzXFkP4oi1/Mt5Ixnk7GO/7uUTj8mrCHUwuvozWzI+V7QSJR9cZYnwNOZPg==", - "resolved": "https://registry.npmjs.org/process-utils/-/process-utils-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/process-utils/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" - }, - "node_modules/promise-queue": { - "dev": true, - "engines": { - "node": ">= 0.8.0" - }, - "integrity": "sha512-p/iXrPSVfnqPft24ZdNNLECw/UrtLTpT3jpAAMzl/o5/rDsGCPo3/CQS2611flL6LkoEJ3oQZw7C8Q80ZISXRQ==", - "resolved": "https://registry.npmjs.org/promise-queue/-/promise-queue-2.2.5.tgz", - "version": "2.2.5" - }, - "node_modules/prompts": { - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "dev": true, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "version": "2.4.2" - }, - "node_modules/propagate": { - "dev": true, - "engines": { - "node": ">= 8" - }, - "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", - "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/proxy-addr": { - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - }, - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "version": "2.0.7" - }, - "node_modules/proxy-from-env": { - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "version": "1.1.0" - }, - "node_modules/pseudomap": { - "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "version": "1.0.2" - }, - "node_modules/psl": { - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "version": "1.9.0" - }, - "node_modules/pump": { - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - }, - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/punycode": { - "engines": { - "node": ">=6" - }, - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "version": "2.3.1" - }, - "node_modules/qs": { - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "version": "6.11.0" - }, - "node_modules/querystring": { - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", - "engines": { - "node": ">=0.4.x" - }, - "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "version": "0.2.0" - }, - "node_modules/querystringify": { - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/queue-microtask": { - "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" - } - ], - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "version": "1.2.3" - }, - "node_modules/quick-lru": { - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "version": "5.1.1" - }, - "node_modules/randombytes": { - "dependencies": { - "safe-buffer": "^5.1.0" - }, - "dev": true, - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/randy": { - "dependencies": { - "prng-well1024a": "~1.0.0" - }, - "dev": true, - "integrity": "sha512-xCxHBrX08xQo8KoyZgOlM9fQbHK0oDvBl/k4+kPVGBDqfbL4c7N6uxiWTJnkJRkkg4hRrf/3CH8Vt1HiaQ2IVQ==", - "resolved": "https://registry.npmjs.org/randy/-/randy-1.5.1.tgz", - "version": "1.5.1" - }, - "node_modules/range-parser": { - "engines": { - "node": ">= 0.6" - }, - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "version": "1.2.1" - }, - "node_modules/raw-body": { - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "version": "2.5.2" - }, - "node_modules/react-is": { - "dev": true, - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "version": "17.0.2" - }, - "node_modules/readable-stream": { - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "dev": true, - "engines": { - "node": ">= 6" - }, - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "version": "3.6.2" - }, - "node_modules/readable-web-to-node-stream": { - "dependencies": { - "readable-stream": "^3.6.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - }, - "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", - "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", - "version": "3.0.2" - }, - "node_modules/readdir-glob": { - "dependencies": { - "minimatch": "^5.1.0" - }, - "dev": true, - "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", - "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", - "version": "1.1.3" - }, - "node_modules/readdir-glob/node_modules/brace-expansion": { - "dependencies": { - "balanced-match": "^1.0.0" - }, - "dev": true, - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/readdir-glob/node_modules/minimatch": { - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "version": "5.1.6" - }, - "node_modules/readdirp": { - "dependencies": { - "picomatch": "^2.2.1" - }, - "dev": true, - "engines": { - "node": ">=8.10.0" - }, - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "version": "3.6.0" - }, - "node_modules/rechoir": { - "dependencies": { - "resolve": "^1.20.0" - }, - "dev": true, - "engines": { - "node": ">= 10.13.0" - }, - "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", - "version": "0.8.0" - }, - "node_modules/reflect-metadata": { - "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", - "version": "0.1.13" - }, - "node_modules/require-directory": { - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "version": "2.1.1" - }, - "node_modules/require-from-string": { - "dev": true, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "version": "2.0.2" - }, - "node_modules/requires-port": { - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/resolve": { - "bin": { - "resolve": "bin/resolve" - }, - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz", - "version": "1.22.4" - }, - "node_modules/resolve-alpn": { - "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", - "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", - "version": "1.2.1" - }, - "node_modules/resolve-cwd": { - "dependencies": { - "resolve-from": "^5.0.0" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/resolve-cwd/node_modules/resolve-from": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/resolve-from": { - "dev": true, - "engines": { - "node": ">=4" - }, - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/resolve.exports": { - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", - "version": "1.1.1" - }, - "node_modules/responselike": { - "dependencies": { - "lowercase-keys": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/restore-cursor": { - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "version": "3.1.0" - }, - "node_modules/retry": { - "engines": { - "node": ">= 4" - }, - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "version": "0.13.1" - }, - "node_modules/reusify": { - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - }, - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "version": "1.0.4" - }, - "node_modules/rimraf": { - "bin": { - "rimraf": "bin.js" - }, - "dependencies": { - "glob": "^7.1.3" - }, - "dev": true, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "version": "3.0.2" - }, - "node_modules/roarr": { - "dependencies": { - "boolean": "^3.0.1", - "detect-node": "^2.0.4", - "globalthis": "^1.0.1", - "json-stringify-safe": "^5.0.1", - "semver-compare": "^1.0.0", - "sprintf-js": "^1.1.2" - }, - "engines": { - "node": ">=8.0" - }, - "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", - "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", - "version": "2.15.4" - }, - "node_modules/rrweb-cssom": { - "integrity": "sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==", - "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz", - "version": "0.6.0" - }, - "node_modules/run-applescript": { - "dependencies": { - "execa": "^5.0.0" - }, - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", - "version": "5.0.0" - }, - "node_modules/run-async": { - "dev": true, - "engines": { - "node": ">=0.12.0" - }, - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "version": "2.4.1" - }, - "node_modules/run-parallel": { - "dependencies": { - "queue-microtask": "^1.2.2" - }, - "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" - } - ], - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/run-parallel-limit": { - "dependencies": { - "queue-microtask": "^1.2.2" - }, - "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" - } - ], - "integrity": "sha512-jJA7irRNM91jaKc3Hcl1npHsFLOXOoTkPCUL1JEa1R82O2miplXXRaGdjW/KM/98YQWDhJLiSs793CnXfblJUw==", - "resolved": "https://registry.npmjs.org/run-parallel-limit/-/run-parallel-limit-1.1.0.tgz", - "version": "1.1.0" - }, - "node_modules/rxjs": { - "dependencies": { - "tslib": "^2.1.0" - }, - "dev": true, - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "version": "7.8.1" - }, - "node_modules/safe-buffer": { - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "version": "5.2.1" - }, - "node_modules/safe-stable-stringify": { - "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", - "version": "2.4.3" - }, - "node_modules/safer-buffer": { - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "version": "2.1.2" - }, - "node_modules/sanitizer": { - "integrity": "sha512-j05vL56tR90rsYqm9ZD05v6K4HI7t4yMDEvvU0x4f+IADXM9Jx1x9mzatxOs5drJq6dGhugxDW99mcPvXVLl+Q==", - "resolved": "https://registry.npmjs.org/sanitizer/-/sanitizer-0.1.3.tgz", - "version": "0.1.3" - }, - "node_modules/sax": { - "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", - "version": "1.2.1" - }, - "node_modules/saxes": { - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=v12.22.7" - }, - "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", - "version": "6.0.0" - }, - "node_modules/schema-utils": { - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "dev": true, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "version": "3.3.0" - }, - "node_modules/secure-json-parse": { - "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==", - "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", - "version": "2.7.0" - }, - "node_modules/seek-bzip": { - "bin": { - "seek-bunzip": "bin/seek-bunzip", - "seek-table": "bin/seek-bzip-table" - }, - "dependencies": { - "commander": "^2.8.1" - }, - "dev": true, - "integrity": "sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==", - "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.6.tgz", - "version": "1.0.6" - }, - "node_modules/seek-bzip/node_modules/commander": { - "dev": true, - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "version": "2.20.3" - }, - "node_modules/semver": { - "bin": { - "semver": "bin/semver.js" - }, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "version": "7.5.4" - }, - "node_modules/semver-compare": { - "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/semver/node_modules/lru-cache": { - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "version": "6.0.0" - }, - "node_modules/semver/node_modules/yallist": { - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/send": { - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - }, - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "version": "0.18.0" - }, - "node_modules/send/node_modules/debug": { - "dependencies": { - "ms": "2.0.0" - }, - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "version": "2.6.9" - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/sentencer": { - "dependencies": { - "articles": "~0.2.1", - "lodash": "^4.17.11", - "natural": "~0.1.28", - "randy": "~1.5.1" - }, - "dev": true, - "integrity": "sha512-hDLHIc7DTdZASPJhL2IZChmUq9tTUsOaAlK2kNPYI9KSdrPeqNZfjJfTCEoqcR/IlLlIfngi7Wkx/KLPqqNtyQ==", - "resolved": "https://registry.npmjs.org/sentencer/-/sentencer-0.2.1.tgz", - "version": "0.2.1" - }, - "node_modules/serialize-error": { - "dependencies": { - "type-fest": "^0.13.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", - "version": "7.0.1" - }, - "node_modules/serialize-error/node_modules/type-fest": { - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", - "version": "0.13.1" - }, - "node_modules/serialize-javascript": { - "dependencies": { - "randombytes": "^2.1.0" - }, - "dev": true, - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "version": "6.0.1" - }, - "node_modules/serve-static": { - "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - }, - "engines": { - "node": ">= 0.8.0" - }, - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "version": "1.15.0" - }, - "node_modules/serverless": { - "bin": { - "serverless": "bin/serverless.js", - "sls": "bin/serverless.js" - }, - "dependencies": { - "@serverless/dashboard-plugin": "^7.1.0", - "@serverless/platform-client": "^4.4.0", - "@serverless/utils": "^6.13.1", - "abort-controller": "^3.0.0", - "ajv": "^8.12.0", - "ajv-formats": "^2.1.1", - "archiver": "^5.3.1", - "aws-sdk": "^2.1404.0", - "bluebird": "^3.7.2", - "cachedir": "^2.3.0", - "chalk": "^4.1.2", - "child-process-ext": "^2.1.1", - "ci-info": "^3.8.0", - "cli-progress-footer": "^2.3.2", - "d": "^1.0.1", - "dayjs": "^1.11.8", - "decompress": "^4.2.1", - "dotenv": "^16.3.1", - "dotenv-expand": "^10.0.0", - "essentials": "^1.2.0", - "ext": "^1.7.0", - "fastest-levenshtein": "^1.0.16", - "filesize": "^10.0.7", - "fs-extra": "^10.1.0", - "get-stdin": "^8.0.0", - "globby": "^11.1.0", - "graceful-fs": "^4.2.11", - "https-proxy-agent": "^5.0.1", - "is-docker": "^2.2.1", - "js-yaml": "^4.1.0", - "json-colorizer": "^2.2.2", - "json-cycle": "^1.5.0", - "json-refs": "^3.0.15", - "lodash": "^4.17.21", - "memoizee": "^0.4.15", - "micromatch": "^4.0.5", - "node-fetch": "^2.6.11", - "npm-registry-utilities": "^1.0.0", - "object-hash": "^3.0.0", - "open": "^8.4.2", - "path2": "^0.1.0", - "process-utils": "^4.0.0", - "promise-queue": "^2.2.5", - "require-from-string": "^2.0.2", - "semver": "^7.5.3", - "signal-exit": "^3.0.7", - "stream-buffers": "^3.0.2", - "strip-ansi": "^6.0.1", - "supports-color": "^8.1.1", - "tar": "^6.1.15", - "timers-ext": "^0.1.7", - "type": "^2.7.2", - "untildify": "^4.0.0", - "uuid": "^9.0.0", - "ws": "^7.5.9", - "yaml-ast-parser": "0.0.43" - }, - "dev": true, - "engines": { - "node": ">=12.0" - }, - "hasInstallScript": true, - "integrity": "sha512-VY7UzP4u1/yuTNpF2Wssrru16qhhReLCjgL2oeHCvhujxPyTFv9TQGSlLhaT0ZUCXhRBphwVwITTRopo6NSUgA==", - "resolved": "https://registry.npmjs.org/serverless/-/serverless-3.36.0.tgz", - "version": "3.36.0" - }, - "node_modules/serverless-domain-manager": { - "dependencies": { - "@aws-sdk/client-acm": "^3.370.0", - "@aws-sdk/client-api-gateway": "^3.370.0", - "@aws-sdk/client-apigatewayv2": "^3.370.0", - "@aws-sdk/client-cloudformation": "^3.370.0", - "@aws-sdk/client-route-53": "^3.370.0", - "@aws-sdk/client-s3": "^3.370.0", - "@aws-sdk/config-resolver": "^3.370.0", - "@aws-sdk/credential-providers": "^3.370.0", - "@aws-sdk/node-config-provider": "^3.370.0", - "@aws-sdk/smithy-client": "^3.370.0", - "@aws-sdk/util-retry": "^3.370.0" - }, - "dev": true, - "engines": { - "node": ">=14" - }, - "integrity": "sha512-KuDqDmr2sC4o+7/PAWEo6m2Ox4HLSWMVgO6nncJIeWeaV7iaffAMVgg2GtOwYL7p93rS3eLGO2ra2ce4QYaTkg==", - "peerDependencies": { - "serverless": "^2.60 || ^3.0.0" - }, - "resolved": "https://registry.npmjs.org/serverless-domain-manager/-/serverless-domain-manager-7.1.2.tgz", - "version": "7.1.2" - }, - "node_modules/serverless-dotenv-plugin": { - "dependencies": { - "chalk": "^4.1.2", - "dotenv": "^16.0.3", - "dotenv-expand": "^10.0.0" + "node_modules/node-dir": { + "dependencies": { + "minimatch": "^3.0.2" }, "dev": true, - "integrity": "sha512-8tLVNwHfDO0sBz6+m+DLTZquRk0AZq9rzqk3kphm1iIWKfan9R7RKt4hdq3eQ0kmDoqzudjPYBEXAJ5bUNKeGQ==", - "peerDependencies": { - "serverless": "1 || 2 || pre-3 || 3" - }, - "resolved": "https://registry.npmjs.org/serverless-dotenv-plugin/-/serverless-dotenv-plugin-6.0.0.tgz", - "version": "6.0.0" - }, - "node_modules/serverless-http": { "engines": { - "node": ">=12.0" + "node": ">= 0.10.5" }, - "integrity": "sha512-QvSyZXljRLIGqwcJ4xsKJXwkZnAVkse1OajepxfjkBXV0BMvRS5R546Z4kCBI8IygDzkQY0foNPC/rnipaE9pQ==", - "resolved": "https://registry.npmjs.org/serverless-http/-/serverless-http-3.2.0.tgz", - "version": "3.2.0" + "integrity": "sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==", + "resolved": "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz", + "version": "0.1.17" }, - "node_modules/serverless-webpack": { + "node_modules/node-fetch": { "dependencies": { - "archiver": "^5.3.1", - "bluebird": "^3.7.2", - "find-yarn-workspace-root": "^2.0.0", - "fs-extra": "^11.1.1", - "glob": "^8.1.0", - "is-builtin-module": "^3.2.1", - "lodash": "^4.17.21", - "semver": "^7.3.8" + "whatwg-url": "^5.0.0" }, "dev": true, "engines": { - "node": ">= 14" - }, - "integrity": "sha512-isMEbXbAK1F8YZJfeKgYA5uNuXPFzdHwZyRA9SuMGXVY2L8t1JIzPvRDLZiT4F3uQm16woyal+uaoDyxQo13vg==", - "optionalDependencies": { - "ts-node": ">= 8.3.0" + "node": "4.x || >=6.0.0" }, + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "peerDependencies": { - "@types/node": "*", - "serverless": "1 || 2 || 3", - "typescript": ">=2.0", - "webpack": ">= 3.0.0 < 6" + "encoding": "^0.1.0" }, "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "typescript": { + "encoding": { "optional": true } }, - "resolved": "https://registry.npmjs.org/serverless-webpack/-/serverless-webpack-5.13.0.tgz", - "version": "5.13.0" + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "version": "2.7.0" + }, + "node_modules/node-fetch/node_modules/tr46": { + "dev": true, + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "version": "0.0.3" + }, + "node_modules/node-fetch/node_modules/webidl-conversions": { + "dev": true, + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "version": "3.0.1" }, - "node_modules/serverless-webpack/node_modules/brace-expansion": { + "node_modules/node-fetch/node_modules/whatwg-url": { "dependencies": { - "balanced-match": "^1.0.0" + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" }, "dev": true, - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "version": "2.0.1" + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "version": "5.0.0" }, - "node_modules/serverless-webpack/node_modules/fs-extra": { - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "node_modules/node-gyp-build": { + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" }, + "dev": true, + "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==", + "optional": true, + "peer": true, + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz", + "version": "4.6.1" + }, + "node_modules/normalize-path": { "dev": true, "engines": { - "node": ">=14.14" + "node": ">=0.10.0" }, - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "version": "11.1.1" + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "version": "3.0.0" }, - "node_modules/serverless-webpack/node_modules/glob": { - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, + "node_modules/normalize-url": { "dev": true, "engines": { - "node": ">=12" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "version": "8.1.0" + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "version": "6.1.0" }, - "node_modules/serverless-webpack/node_modules/minimatch": { + "node_modules/npm-registry-utilities": { "dependencies": { - "brace-expansion": "^2.0.1" + "ext": "^1.6.0", + "fs2": "^0.3.9", + "memoizee": "^0.4.15", + "node-fetch": "^2.6.7", + "semver": "^7.3.5", + "type": "^2.6.0", + "validate-npm-package-name": "^3.0.0" }, "dev": true, "engines": { - "node": ">=10" + "node": ">=12.0" }, - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "version": "5.1.6" + "integrity": "sha512-9xYfSJy2IFQw1i6462EJzjChL9e65EfSo2Cw6kl0EFeDp05VvU+anrQk3Fc0d1MbVCq7rWIxeer89O9SUQ/uOg==", + "resolved": "https://registry.npmjs.org/npm-registry-utilities/-/npm-registry-utilities-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/serverless/node_modules/ajv": { + "node_modules/npm-registry-utilities/node_modules/type": { + "dev": true, + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" + }, + "node_modules/object-assign": { + "dev": true, + "engines": { + "node": ">=0.10.0" + }, + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "version": "4.1.1" + }, + "node_modules/object-inspect": { + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "version": "1.12.3" + }, + "node_modules/once": { "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "wrappy": "1" + }, + "dev": true, + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "version": "1.4.0" + }, + "node_modules/onetime": { + "dependencies": { + "mimic-fn": "^2.1.0" }, "dev": true, + "engines": { + "node": ">=6" + }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "version": "8.12.0" + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "version": "5.1.2" }, - "node_modules/serverless/node_modules/chownr": { + "node_modules/open": { + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, "dev": true, "engines": { - "node": ">=10" + "node": ">=12" }, - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "version": "2.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + }, + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "version": "8.4.2" }, - "node_modules/serverless/node_modules/get-stdin": { + "node_modules/ora": { + "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" + }, "dev": true, "engines": { "node": ">=10" @@ -17493,1526 +7051,1352 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz", - "version": "8.0.0" + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "version": "5.4.1" }, - "node_modules/serverless/node_modules/json-schema-traverse": { + "node_modules/os-tmpdir": { "dev": true, - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/serverless/node_modules/minizlib": { - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" + "engines": { + "node": ">=0.10.0" }, + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "version": "1.0.2" + }, + "node_modules/p-cancelable": { "dev": true, "engines": { - "node": ">= 8" + "node": ">=8" }, - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "version": "2.1.2" + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "version": "2.1.1" }, - "node_modules/serverless/node_modules/minizlib/node_modules/minipass": { + "node_modules/p-event": { "dependencies": { - "yallist": "^4.0.0" + "p-timeout": "^3.1.0" }, "dev": true, "engines": { "node": ">=8" }, - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "version": "3.3.6" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + }, + "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", + "version": "4.2.0" }, - "node_modules/serverless/node_modules/object-hash": { + "node_modules/p-finally": { "dev": true, "engines": { - "node": ">= 6" + "node": ">=4" }, - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/serverless/node_modules/supports-color": { + "node_modules/p-limit": { "dependencies": { - "has-flag": "^4.0.0" + "p-try": "^2.0.0" }, "dev": true, "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "version": "8.1.1" + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "version": "2.3.0" }, - "node_modules/serverless/node_modules/tar": { + "node_modules/p-locate": { "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" + "p-limit": "^2.2.0" }, "dev": true, "engines": { - "node": ">=10" + "node": ">=8" }, - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "version": "6.2.1" - }, - "node_modules/serverless/node_modules/type": { - "dev": true, - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "version": "2.7.2" + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "version": "4.1.0" }, - "node_modules/serverless/node_modules/utf-8-validate": { + "node_modules/p-timeout": { "dependencies": { - "node-gyp-build": "^4.3.0" + "p-finally": "^1.0.0" }, "dev": true, "engines": { - "node": ">=6.14.2" + "node": ">=8" }, - "hasInstallScript": true, - "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", - "optional": true, - "peer": true, - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", - "version": "5.0.10" + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "version": "3.2.0" }, - "node_modules/serverless/node_modules/ws": { + "node_modules/p-try": { "dev": true, "engines": { - "node": ">=8.3.0" - }, - "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "node": ">=6" }, - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", - "version": "7.5.10" + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "version": "2.2.0" }, - "node_modules/serverless/node_modules/yallist": { + "node_modules/pako": { "dev": true, - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "version": "4.0.0" + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "version": "1.0.11" }, - "node_modules/setimmediate": { + "node_modules/path-exists": { "dev": true, - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/setprototypeof": { - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "version": "1.2.0" - }, - "node_modules/sha.js": { - "bin": { - "sha.js": "bin.js" - }, - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "engines": { + "node": ">=8" }, - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "version": "2.4.11" + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/shallow-clone": { - "dependencies": { - "kind-of": "^6.0.2" + "node_modules/path-is-absolute": { + "dev": true, + "engines": { + "node": ">=0.10.0" }, + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "version": "1.0.1" + }, + "node_modules/path-key": { "dev": true, "engines": { "node": ">=8" }, - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "version": "3.0.1" + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "version": "3.1.1" }, - "node_modules/shebang-command": { + "node_modules/path-loader": { "dependencies": { - "shebang-regex": "^3.0.0" + "native-promise-only": "^0.8.1", + "superagent": "^7.1.6" + }, + "dev": true, + "integrity": "sha512-n7oDG8B+k/p818uweWrOixY9/Dsr89o2TkCm6tOTex3fpdo2+BFDgR+KpB37mGKBRsBAlR8CIJMFN0OEy/7hIQ==", + "resolved": "https://registry.npmjs.org/path-loader/-/path-loader-1.0.12.tgz", + "version": "1.0.12" + }, + "node_modules/path-loader/node_modules/superagent": { + "dependencies": { + "component-emitter": "^1.3.0", + "cookiejar": "^2.1.3", + "debug": "^4.3.4", + "fast-safe-stringify": "^2.1.1", + "form-data": "^4.0.0", + "formidable": "^2.0.1", + "methods": "^1.1.2", + "mime": "2.6.0", + "qs": "^6.10.3", + "readable-stream": "^3.6.0", + "semver": "^7.3.7" }, + "deprecated": "Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net", + "dev": true, "engines": { - "node": ">=8" + "node": ">=6.4.0 <13 || >=14" }, - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-7.1.6.tgz", + "version": "7.1.6" }, - "node_modules/shebang-regex": { + "node_modules/path-type": { + "dev": true, "engines": { "node": ">=8" }, - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/side-channel": { - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "version": "1.0.4" + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/signal-exit": { + "node_modules/path2": { "dev": true, - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "version": "3.0.7" + "integrity": "sha512-TX+cz8Jk+ta7IvRy2FAej8rdlbrP0+uBIkP/5DTODez/AuL/vSb30KuAdDxGVREXzn8QfAiu5mJYJ1XjbOhEPA==", + "resolved": "https://registry.npmjs.org/path2/-/path2-0.1.0.tgz", + "version": "0.1.0" }, - "node_modules/simple-git": { - "dependencies": { - "@kwsites/file-exists": "^1.1.1", - "@kwsites/promise-deferred": "^1.1.1", - "debug": "^4.3.4" - }, + "node_modules/peek-readable": { "dev": true, + "engines": { + "node": ">=8" + }, "funding": { "type": "github", - "url": "https://github.com/steveukx/git-js?sponsor=1" + "url": "https://github.com/sponsors/Borewit" }, - "integrity": "sha512-ozK8tl2hvLts8ijTs18iFruE+RoqmC/mqZhjs/+V7gS5W68JpJ3+FCTmLVqmR59MaUQ52MfGQuWsIqfsTbbJ0Q==", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.20.0.tgz", - "version": "3.20.0" + "integrity": "sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg==", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-4.1.0.tgz", + "version": "4.1.0" }, - "node_modules/sisteransi": { + "node_modules/pend": { "dev": true, - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "version": "1.0.5" + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "version": "1.2.0" }, - "node_modules/slash": { + "node_modules/picomatch": { "dev": true, "engines": { - "node": ">=8" + "node": ">=8.6" }, - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/sort-keys": { - "dependencies": { - "is-plain-obj": "^1.0.0" + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" }, + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "version": "2.3.1" + }, + "node_modules/pify": { "dev": true, "engines": { "node": ">=0.10.0" }, - "integrity": "sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg==", - "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", - "version": "1.1.2" + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "version": "2.3.0" }, - "node_modules/sort-keys-length": { - "dependencies": { - "sort-keys": "^1.0.0" - }, + "node_modules/pinkie": { "dev": true, "engines": { "node": ">=0.10.0" }, - "integrity": "sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw==", - "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", - "version": "1.0.1" + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "version": "2.0.4" }, - "node_modules/sort-keys/node_modules/is-plain-obj": { + "node_modules/pinkie-promise": { + "dependencies": { + "pinkie": "^2.0.0" + }, "dev": true, "engines": { "node": ">=0.10.0" }, - "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "version": "1.1.0" + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/source-map": { - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "version": "0.6.1" + "node_modules/process-nextick-args": { + "dev": true, + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/source-map-support": { + "node_modules/process-utils": { "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "ext": "^1.4.0", + "fs2": "^0.3.9", + "memoizee": "^0.4.14", + "type": "^2.1.0" }, "dev": true, - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "version": "0.5.21" - }, - "node_modules/split-ca": { - "dev": true, - "integrity": "sha512-Q5thBSxp5t8WPTTJQS59LrGqOZqOsrhDGDVm8azCqIBjSBd7nd9o2PM+mDulQQkh8h//4U6hFZnc/mul8t5pWQ==", - "resolved": "https://registry.npmjs.org/split-ca/-/split-ca-1.0.1.tgz", - "version": "1.0.1" - }, - "node_modules/split2": { - "devOptional": true, "engines": { - "node": ">= 10.x" + "node": ">=10.0" }, - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "version": "4.2.0" - }, - "node_modules/sprintf-js": { - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "version": "1.1.3" + "integrity": "sha512-fMyMQbKCxX51YxR7YGCzPjLsU3yDzXFkP4oi1/Mt5Ixnk7GO/7uUTj8mrCHUwuvozWzI+V7QSJR9cZYnwNOZPg==", + "resolved": "https://registry.npmjs.org/process-utils/-/process-utils-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/sprintf-kit": { - "dependencies": { - "es5-ext": "^0.10.53" - }, + "node_modules/process-utils/node_modules/type": { "dev": true, - "integrity": "sha512-2PNlcs3j5JflQKcg4wpdqpZ+AjhQJ2OZEo34NXDtlB0tIPG84xaaXhpA8XFacFiwjKA4m49UOYG83y3hbMn/gQ==", - "resolved": "https://registry.npmjs.org/sprintf-kit/-/sprintf-kit-2.0.1.tgz", - "version": "2.0.1" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/ssh2": { - "dependencies": { - "asn1": "^0.2.6", - "bcrypt-pbkdf": "^1.0.2" - }, + "node_modules/promise-queue": { "dev": true, "engines": { - "node": ">=10.16.0" - }, - "hasInstallScript": true, - "integrity": "sha512-AqzD1UCqit8tbOKoj6ztDDi1ffJZ2rV2SwlgrVVrHPkV5vWqGJOVp5pmtj18PunkPJAuKQsnInyKV+/Nb2bUnA==", - "optionalDependencies": { - "cpu-features": "~0.0.8", - "nan": "^2.17.0" + "node": ">= 0.8.0" }, - "resolved": "https://registry.npmjs.org/ssh2/-/ssh2-1.14.0.tgz", - "version": "1.14.0" + "integrity": "sha512-p/iXrPSVfnqPft24ZdNNLECw/UrtLTpT3jpAAMzl/o5/rDsGCPo3/CQS2611flL6LkoEJ3oQZw7C8Q80ZISXRQ==", + "resolved": "https://registry.npmjs.org/promise-queue/-/promise-queue-2.2.5.tgz", + "version": "2.2.5" }, - "node_modules/ssl-checker": { - "integrity": "sha512-pIDGxablZowKR/elbm72Wk7T3lEdrcAKT4ltPsdQrpm7N6EIIvuFQpIcMNG+A/wmiymcRwFDzTd83bW6Yy5LKQ==", - "resolved": "https://registry.npmjs.org/ssl-checker/-/ssl-checker-2.0.8.tgz", - "version": "2.0.8" + "node_modules/proxy-from-env": { + "dev": true, + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "version": "1.1.0" }, - "node_modules/stack-utils": { + "node_modules/pump": { "dependencies": { - "escape-string-regexp": "^2.0.0" + "end-of-stream": "^1.1.0", + "once": "^1.3.1" }, "dev": true, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "version": "2.0.6" + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "version": "3.0.0" }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { + "node_modules/punycode": { "dev": true, "engines": { - "node": ">=8" + "node": ">=6" }, - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "version": "2.3.1" }, - "node_modules/statuses": { - "engines": { - "node": ">= 0.8" + "node_modules/qs": { + "dependencies": { + "side-channel": "^1.0.4" }, - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/stopwords-iso": { "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=0.6" }, - "integrity": "sha512-I6GPS/E0zyieHehMRPQcqkiBMJKGgLta+1hREixhoLPqEA0AlVFiC43dl8uPpmkkeRdDMzYRWFWk5/l9x7nmNg==", - "resolved": "https://registry.npmjs.org/stopwords-iso/-/stopwords-iso-1.1.0.tgz", - "version": "1.1.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "version": "6.11.0" }, - "node_modules/stream-buffers": { + "node_modules/querystring": { + "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", "dev": true, "engines": { - "node": ">= 0.10.0" + "node": ">=0.4.x" }, - "integrity": "sha512-DQi1h8VEBA/lURbSwFtEHnSTb9s2/pwLEaFuNhXwy1Dx3Sa0lOuYT2yNUr4/j2fs8oCAMANtrZ5OrPZtyVs3MQ==", - "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.2.tgz", - "version": "3.0.2" + "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "version": "0.2.0" }, - "node_modules/stream-promise": { - "dependencies": { - "2-thenable": "^1.0.0", - "es5-ext": "^0.10.49", - "is-stream": "^1.1.0" - }, + "node_modules/queue-microtask": { "dev": true, - "integrity": "sha512-P+7muTGs2C8yRcgJw/PPt61q7O517tDHiwYEzMWo1GSBCcZedUMT/clz7vUNsSxFphIlJ6QUL4GexQKlfJoVtA==", - "resolved": "https://registry.npmjs.org/stream-promise/-/stream-promise-3.2.0.tgz", - "version": "3.2.0" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "version": "1.2.3" }, - "node_modules/stream-promise/node_modules/is-stream": { + "node_modules/quick-lru": { "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=10" }, - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "version": "1.1.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + }, + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "version": "5.1.1" }, - "node_modules/string-length": { + "node_modules/readable-stream": { "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "dev": true, "engines": { - "node": ">=10" + "node": ">= 6" }, - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "version": "4.0.2" + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "version": "3.6.2" }, - "node_modules/string-width": { + "node_modules/readable-web-to-node-stream": { "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "readable-stream": "^3.6.0" }, + "dev": true, "engines": { "node": ">=8" }, - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "version": "4.2.3" - }, - "node_modules/string-width-cjs": { - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" }, - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "name": "string-width", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "version": "4.2.3" + "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", + "version": "3.0.2" }, - "node_modules/string_decoder": { + "node_modules/readdir-glob": { "dependencies": { - "safe-buffer": "~5.2.0" + "minimatch": "^5.1.0" }, "dev": true, - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "version": "1.3.0" + "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", + "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", + "version": "1.1.3" }, - "node_modules/strip-ansi": { + "node_modules/readdir-glob/node_modules/brace-expansion": { "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" + "balanced-match": "^1.0.0" }, - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "version": "6.0.1" + "dev": true, + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/strip-ansi-cjs": { + "node_modules/readdir-glob/node_modules/minimatch": { "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" + "brace-expansion": "^2.0.1" }, - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "name": "strip-ansi", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "version": "6.0.1" - }, - "node_modules/strip-bom": { "dev": true, "engines": { - "node": ">=8" + "node": ">=10" }, - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "version": "4.0.0" + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "version": "5.1.6" }, - "node_modules/strip-dirs": { + "node_modules/readdirp": { "dependencies": { - "is-natural-number": "^4.0.1" + "picomatch": "^2.2.1" }, - "dev": true, - "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==", - "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", - "version": "2.1.0" - }, - "node_modules/strip-final-newline": { "dev": true, "engines": { - "node": ">=6" + "node": ">=8.10.0" }, - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "version": "3.6.0" }, - "node_modules/strip-json-comments": { + "node_modules/require-directory": { "dev": true, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" }, - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "version": "3.1.1" + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "version": "2.1.1" }, - "node_modules/strip-outer": { - "dependencies": { - "escape-string-regexp": "^1.0.2" - }, + "node_modules/require-from-string": { "dev": true, "engines": { "node": ">=0.10.0" }, - "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", - "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", - "version": "1.0.1" + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "version": "2.0.2" }, - "node_modules/strip-outer/node_modules/escape-string-regexp": { + "node_modules/require-main-filename": { "dev": true, - "engines": { - "node": ">=0.8.0" - }, - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "version": "1.0.5" - }, - "node_modules/strnum": { - "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", - "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", - "version": "1.0.5" + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/strtok3": { - "dependencies": { - "@tokenizer/token": "^0.3.0", - "peek-readable": "^4.1.0" - }, + "node_modules/resolve-alpn": { "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - }, - "integrity": "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw==", - "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-6.3.0.tgz", - "version": "6.3.0" + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "version": "1.2.1" }, - "node_modules/superagent": { + "node_modules/responselike": { "dependencies": { - "component-emitter": "^1.3.0", - "cookiejar": "^2.1.4", - "debug": "^4.3.4", - "fast-safe-stringify": "^2.1.1", - "form-data": "^4.0.0", - "formidable": "^2.1.2", - "methods": "^1.1.2", - "mime": "2.6.0", - "qs": "^6.11.0", - "semver": "^7.3.8" + "lowercase-keys": "^2.0.0" }, "dev": true, - "engines": { - "node": ">=6.4.0 <13 || >=14" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-6WTxW1EB6yCxV5VFOIPQruWGHqc3yI7hEmZK6h+pyk69Lk/Ut7rLUY6W/ONF2MjBuGjvmMiIpsrVJ2vjrHlslA==", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-8.1.2.tgz", - "version": "8.1.2" + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/superagent/node_modules/form-data": { + "node_modules/restore-cursor": { "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" }, "dev": true, "engines": { - "node": ">= 6" + "node": ">=8" }, - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "version": "4.0.0" + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "version": "3.1.0" }, - "node_modules/superagent/node_modules/mime": { - "bin": { - "mime": "cli.js" - }, + "node_modules/reusify": { "dev": true, "engines": { - "node": ">=4.0.0" + "iojs": ">=1.0.0", + "node": ">=0.10.0" }, - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "version": "2.6.0" + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "version": "1.0.4" }, - "node_modules/supertest": { + "node_modules/rimraf": { + "bin": { + "rimraf": "bin.js" + }, "dependencies": { - "methods": "^1.1.2", - "superagent": "^8.0.5" + "glob": "^7.1.3" + }, + "dev": true, + "funding": { + "url": "https://github.com/sponsors/isaacs" }, + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "version": "3.0.2" + }, + "node_modules/run-async": { "dev": true, "engines": { - "node": ">=6.4.0" + "node": ">=0.12.0" }, - "integrity": "sha512-EMCG6G8gDu5qEqRQ3JjjPs6+FYT1a7Hv5ApHvtSghmOFJYtsU5S+pSb6Y2EUeCEY3CmEL3mmQ8YWlPOzQomabA==", - "resolved": "https://registry.npmjs.org/supertest/-/supertest-6.3.3.tgz", - "version": "6.3.3" + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "version": "2.4.1" }, - "node_modules/supports-color": { + "node_modules/run-parallel": { "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "queue-microtask": "^1.2.2" }, - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "version": "7.2.0" + "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" + } + ], + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "version": "1.2.0" }, - "node_modules/supports-hyperlinks": { + "node_modules/run-parallel-limit": { "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" + "queue-microtask": "^1.2.2" }, "dev": true, - "engines": { - "node": ">=8" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "integrity": "sha512-jJA7irRNM91jaKc3Hcl1npHsFLOXOoTkPCUL1JEa1R82O2miplXXRaGdjW/KM/98YQWDhJLiSs793CnXfblJUw==", + "resolved": "https://registry.npmjs.org/run-parallel-limit/-/run-parallel-limit-1.1.0.tgz", + "version": "1.1.0" + }, + "node_modules/rxjs": { + "dependencies": { + "tslib": "^2.1.0" }, - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "version": "2.3.0" + "dev": true, + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "version": "7.8.1" }, - "node_modules/supports-preserve-symlinks-flag": { + "node_modules/safe-buffer": { "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "version": "1.0.0" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "version": "5.2.1" }, - "node_modules/sylvester": { + "node_modules/safer-buffer": { "dev": true, - "engines": { - "node": ">=0.2.6" - }, - "integrity": "sha512-SzRP5LQ6Ts2G5NyAa/jg16s8e3R7rfdFjizy1zeoecYWw+nGL+YA1xZvW/+iJmidBGSdLkuvdwTYEyJEb+EiUw==", - "resolved": "https://registry.npmjs.org/sylvester/-/sylvester-0.0.12.tgz", - "version": "0.0.12" + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "version": "2.1.2" }, - "node_modules/symbol-tree": { - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "version": "3.2.4" + "node_modules/sax": { + "dev": true, + "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", + "version": "1.2.1" }, - "node_modules/synckit": { + "node_modules/seek-bzip": { + "bin": { + "seek-bunzip": "bin/seek-bunzip", + "seek-table": "bin/seek-bzip-table" + }, "dependencies": { - "@pkgr/utils": "^2.3.1", - "tslib": "^2.5.0" + "commander": "^2.8.1" }, "dev": true, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - }, - "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", - "version": "0.8.5" + "integrity": "sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==", + "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.6.tgz", + "version": "1.0.6" }, - "node_modules/tapable": { + "node_modules/seek-bzip/node_modules/commander": { "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "version": "2.2.1" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "version": "2.20.3" }, - "node_modules/tar": { + "node_modules/semver": { + "bin": { + "semver": "bin/semver.js" + }, "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^5.0.0", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", - "yallist": "^5.0.0" + "lru-cache": "^6.0.0" }, + "dev": true, "engines": { - "node": ">=18" + "node": ">=10" }, - "integrity": "sha512-spRiR+tDOVD01YeeWBUbNa6HoQErjztT2BXxZWmxJDgaCVgZMO1RAoeKpybiUbr8FxKsUm/svtiEyIRZeWYhAw==", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.0.0.tgz", - "version": "7.0.0" + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "version": "7.5.4" }, - "node_modules/tar-fs": { + "node_modules/semver/node_modules/lru-cache": { "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.0.0" + "yallist": "^4.0.0" }, "dev": true, - "integrity": "sha512-6tzWDMeroL87uF/+lin46k+Q+46rAJ0SyPGz7OW7wTgblI273hsBqk2C1j0/xNadNLKDTUL9BukSjB7cwgmlPA==", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.0.1.tgz", - "version": "2.0.1" + "engines": { + "node": ">=10" + }, + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "version": "6.0.0" }, - "node_modules/tar-fs/node_modules/chownr": { + "node_modules/semver/node_modules/yallist": { "dev": true, - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "version": "1.1.4" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/tar-fs/node_modules/tar-stream": { + "node_modules/serverless": { + "bin": { + "serverless": "bin/serverless.js", + "sls": "bin/serverless.js" + }, "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" + "@serverless/dashboard-plugin": "^7.1.0", + "@serverless/platform-client": "^4.4.0", + "@serverless/utils": "^6.13.1", + "abort-controller": "^3.0.0", + "ajv": "^8.12.0", + "ajv-formats": "^2.1.1", + "archiver": "^5.3.1", + "aws-sdk": "^2.1404.0", + "bluebird": "^3.7.2", + "cachedir": "^2.3.0", + "chalk": "^4.1.2", + "child-process-ext": "^2.1.1", + "ci-info": "^3.8.0", + "cli-progress-footer": "^2.3.2", + "d": "^1.0.1", + "dayjs": "^1.11.8", + "decompress": "^4.2.1", + "dotenv": "^16.3.1", + "dotenv-expand": "^10.0.0", + "essentials": "^1.2.0", + "ext": "^1.7.0", + "fastest-levenshtein": "^1.0.16", + "filesize": "^10.0.7", + "fs-extra": "^10.1.0", + "get-stdin": "^8.0.0", + "globby": "^11.1.0", + "graceful-fs": "^4.2.11", + "https-proxy-agent": "^5.0.1", + "is-docker": "^2.2.1", + "js-yaml": "^4.1.0", + "json-colorizer": "^2.2.2", + "json-cycle": "^1.5.0", + "json-refs": "^3.0.15", + "lodash": "^4.17.21", + "memoizee": "^0.4.15", + "micromatch": "^4.0.5", + "node-fetch": "^2.6.11", + "npm-registry-utilities": "^1.0.0", + "object-hash": "^3.0.0", + "open": "^8.4.2", + "path2": "^0.1.0", + "process-utils": "^4.0.0", + "promise-queue": "^2.2.5", + "require-from-string": "^2.0.2", + "semver": "^7.5.3", + "signal-exit": "^3.0.7", + "stream-buffers": "^3.0.2", + "strip-ansi": "^6.0.1", + "supports-color": "^8.1.1", + "tar": "^6.1.15", + "timers-ext": "^0.1.7", + "type": "^2.7.2", + "untildify": "^4.0.0", + "uuid": "^9.0.0", + "ws": "^7.5.9", + "yaml-ast-parser": "0.0.43" }, "dev": true, "engines": { - "node": ">=6" - }, - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "version": "2.2.0" - }, - "node_modules/tar/node_modules/mkdirp": { - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/tar/node_modules/yallist": { - "engines": { - "node": ">=18" + "node": ">=12.0" }, - "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", - "version": "5.0.0" + "hasInstallScript": true, + "integrity": "sha512-VY7UzP4u1/yuTNpF2Wssrru16qhhReLCjgL2oeHCvhujxPyTFv9TQGSlLhaT0ZUCXhRBphwVwITTRopo6NSUgA==", + "resolved": "https://registry.npmjs.org/serverless/-/serverless-3.36.0.tgz", + "version": "3.36.0" }, - "node_modules/terminal-link": { + "node_modules/serverless-better-credentials": { "dependencies": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" + "open": "^8.4.2" }, "dev": true, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "version": "2.1.1" - }, - "node_modules/terser": { - "bin": { - "terser": "bin/terser" - }, - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" + "node": ">=12" }, - "dev": true, - "engines": { - "node": ">=10" + "integrity": "sha512-CscjdWPmK58M/X6l/nOgSvlP8U2fQUt1tmlFDp5+/aRMYrLrcZk9JtcYUmnJBTcwk92JYXPjsKei3jk3e///pg==", + "peerDependencies": { + "@serverless/utils": "^6.0.2", + "aws-sdk": "^2.567.0", + "serverless": "^2 || ^3" }, - "integrity": "sha512-qC5+dmecKJA4cpYxRa5aVkKehYsQKc+AHeKl0Oe62aYjBL8ZA33tTljktDHJSaxxMnbI5ZYw+o/S2DxxLu8OfA==", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.2.tgz", - "version": "5.19.2" + "resolved": "https://registry.npmjs.org/serverless-better-credentials/-/serverless-better-credentials-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/terser-webpack-plugin": { + "node_modules/serverless-domain-manager": { "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" + "@aws-sdk/client-acm": "^3.370.0", + "@aws-sdk/client-api-gateway": "^3.370.0", + "@aws-sdk/client-apigatewayv2": "^3.370.0", + "@aws-sdk/client-cloudformation": "^3.370.0", + "@aws-sdk/client-route-53": "^3.370.0", + "@aws-sdk/client-s3": "^3.370.0", + "@aws-sdk/config-resolver": "^3.370.0", + "@aws-sdk/credential-providers": "^3.370.0", + "@aws-sdk/node-config-provider": "^3.370.0", + "@aws-sdk/smithy-client": "^3.370.0", + "@aws-sdk/util-retry": "^3.370.0" }, "dev": true, "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "node": ">=14" }, - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "integrity": "sha512-KuDqDmr2sC4o+7/PAWEo6m2Ox4HLSWMVgO6nncJIeWeaV7iaffAMVgg2GtOwYL7p93rS3eLGO2ra2ce4QYaTkg==", "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } + "serverless": "^2.60 || ^3.0.0" }, - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "version": "5.3.9" - }, - "node_modules/terser/node_modules/commander": { - "dev": true, - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "version": "2.20.3" + "resolved": "https://registry.npmjs.org/serverless-domain-manager/-/serverless-domain-manager-7.1.2.tgz", + "version": "7.1.2" }, - "node_modules/test-exclude": { + "node_modules/serverless-dotenv-plugin": { "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" + "chalk": "^4.1.2", + "dotenv": "^16.0.3", + "dotenv-expand": "^10.0.0" }, "dev": true, - "engines": { - "node": ">=8" + "integrity": "sha512-8tLVNwHfDO0sBz6+m+DLTZquRk0AZq9rzqk3kphm1iIWKfan9R7RKt4hdq3eQ0kmDoqzudjPYBEXAJ5bUNKeGQ==", + "peerDependencies": { + "serverless": "1 || 2 || pre-3 || 3" }, - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "resolved": "https://registry.npmjs.org/serverless-dotenv-plugin/-/serverless-dotenv-plugin-6.0.0.tgz", "version": "6.0.0" }, - "node_modules/text-table": { - "dev": true, - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "version": "0.2.0" - }, - "node_modules/thenify": { - "dependencies": { - "any-promise": "^1.0.0" - }, - "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", - "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", - "version": "3.3.1" - }, - "node_modules/thenify-all": { - "dependencies": { - "thenify": ">= 3.1.0 < 4" - }, - "engines": { - "node": ">=0.8" - }, - "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", - "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", - "version": "1.6.0" - }, - "node_modules/throat": { + "node_modules/serverless-plugin-ifelse": { "dev": true, - "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", - "version": "6.0.2" + "integrity": "sha512-9OzcpsKOT50dO6WsGM0AiDbsN9TjH8zg/pLVOJlDjliSulWpP6Q5ceqp5zTM3eY/aAlYTq1/UBElKby6V+vZiQ==", + "resolved": "https://registry.npmjs.org/serverless-plugin-ifelse/-/serverless-plugin-ifelse-1.0.7.tgz", + "version": "1.0.7" }, - "node_modules/through": { + "node_modules/serverless-prune-versions": { "dev": true, - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "version": "2.3.8" + "integrity": "sha512-LfnVToDJ+QB1udO16aaoaiGSNYy5Wlj8jfG/7IdT6nMnszQnic9PoeWv9RGWRPIfCq4zMmVLykWUnDGesWqUHg==", + "resolved": "https://registry.npmjs.org/serverless-prune-versions/-/serverless-prune-versions-1.0.4.tgz", + "version": "1.0.4" }, - "node_modules/timers-ext": { + "node_modules/serverless-python-requirements": { "dependencies": { - "es5-ext": "~0.10.46", - "next-tick": "1" + "@iarna/toml": "^2.2.5", + "appdirectory": "^0.1.0", + "bluebird": "^3.7.2", + "child-process-ext": "^2.1.1", + "fs-extra": "^10.1.0", + "glob-all": "^3.3.1", + "is-wsl": "^2.2.0", + "jszip": "^3.10.1", + "lodash.get": "^4.4.2", + "lodash.uniqby": "^4.7.0", + "lodash.values": "^4.3.0", + "rimraf": "^3.0.2", + "semver": "^7.6.0", + "set-value": "^4.1.0", + "sha256-file": "1.0.0", + "shell-quote": "^1.8.1" }, - "dev": true, - "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", - "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", - "version": "0.1.7" - }, - "node_modules/titleize": { "dev": true, "engines": { - "node": ">=12" + "node": ">=12.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "integrity": "sha512-SQsDKjoZXWvRJNsKL7NvHiMM+B6kG0a4RkVexhPCxId/rVMLVyz0UHg7v34kzaklfsXTQIkez+9x7HP3FwdRVQ==", + "peerDependencies": { + "serverless": ">=2.32" }, - "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", - "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", - "version": "3.0.0" + "resolved": "https://registry.npmjs.org/serverless-python-requirements/-/serverless-python-requirements-6.1.1.tgz", + "version": "6.1.1" }, - "node_modules/tmp": { - "dependencies": { - "os-tmpdir": "~1.0.2" + "node_modules/serverless-python-requirements/node_modules/semver": { + "bin": { + "semver": "bin/semver.js" }, "dev": true, "engines": { - "node": ">=0.6.0" + "node": ">=10" }, - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "version": "0.0.33" - }, - "node_modules/tmpl": { - "dev": true, - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "version": "1.0.5" + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "version": "7.6.3" }, - "node_modules/to-buffer": { + "node_modules/serverless/node_modules/ajv": { + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, "dev": true, - "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", - "version": "1.1.1" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + }, + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "version": "8.12.0" }, - "node_modules/to-fast-properties": { + "node_modules/serverless/node_modules/chownr": { "dev": true, "engines": { - "node": ">=4" + "node": ">=10" }, - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", "version": "2.0.0" }, - "node_modules/to-regex-range": { - "dependencies": { - "is-number": "^7.0.0" - }, + "node_modules/serverless/node_modules/get-stdin": { + "dev": true, "engines": { - "node": ">=8.0" + "node": ">=10" }, - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "version": "5.0.1" - }, - "node_modules/toidentifier": { - "engines": { - "node": ">=0.6" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" }, - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "version": "1.0.1" + "integrity": "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz", + "version": "8.0.0" }, - "node_modules/token-types": { + "node_modules/serverless/node_modules/json-schema-traverse": { + "dev": true, + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "version": "1.0.0" + }, + "node_modules/serverless/node_modules/minizlib": { "dependencies": { - "@tokenizer/token": "^0.3.0", - "ieee754": "^1.2.1" + "minipass": "^3.0.0", + "yallist": "^4.0.0" }, "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" + "node": ">= 8" }, - "integrity": "sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ==", - "resolved": "https://registry.npmjs.org/token-types/-/token-types-4.2.1.tgz", - "version": "4.2.1" - }, - "node_modules/token-types/node_modules/ieee754": { - "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" - } - ], - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "version": "1.2.1" + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "version": "2.1.2" }, - "node_modules/tough-cookie": { + "node_modules/serverless/node_modules/minizlib/node_modules/minipass": { "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" + "yallist": "^4.0.0" }, + "dev": true, "engines": { - "node": ">=6" + "node": ">=8" }, - "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", - "version": "4.1.3" + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "version": "3.3.6" }, - "node_modules/tough-cookie/node_modules/universalify": { + "node_modules/serverless/node_modules/object-hash": { + "dev": true, "engines": { - "node": ">= 4.0.0" + "node": ">= 6" }, - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "version": "0.2.0" + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "version": "3.0.0" }, - "node_modules/tr46": { + "node_modules/serverless/node_modules/supports-color": { "dependencies": { - "punycode": "^2.3.0" + "has-flag": "^4.0.0" }, + "dev": true, "engines": { - "node": ">=14" + "node": ">=10" }, - "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", - "version": "4.1.1" - }, - "node_modules/traverse": { - "dev": true, "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "integrity": "sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg==", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.7.tgz", - "version": "0.6.7" - }, - "node_modules/tree-kill": { - "bin": { - "tree-kill": "cli.js" + "url": "https://github.com/chalk/supports-color?sponsor=1" }, - "dev": true, - "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", - "version": "1.2.2" + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "version": "8.1.1" }, - "node_modules/trim-repeated": { + "node_modules/serverless/node_modules/tar": { "dependencies": { - "escape-string-regexp": "^1.0.2" + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" }, "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=10" }, - "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==", - "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", - "version": "1.0.0" + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "version": "6.2.1" }, - "node_modules/trim-repeated/node_modules/escape-string-regexp": { + "node_modules/serverless/node_modules/type": { "dev": true, - "engines": { - "node": ">=0.8.0" - }, - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "version": "1.0.5" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "version": "2.7.2" }, - "node_modules/ts-jest": { - "bin": { - "ts-jest": "cli.js" - }, - "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^27.0.0", - "json5": "2.x", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "7.x", - "yargs-parser": "20.x" - }, + "node_modules/serverless/node_modules/ws": { "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=8.3.0" }, - "integrity": "sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA==", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@types/jest": "^27.0.0", - "babel-jest": ">=27.0.0 <28", - "jest": "^27.0.0", - "typescript": ">=3.8 <5.0" + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" }, "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "@types/jest": { - "optional": true - }, - "babel-jest": { + "bufferutil": { "optional": true }, - "esbuild": { + "utf-8-validate": { "optional": true } }, - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.5.tgz", - "version": "27.1.5" + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "version": "7.5.10" + }, + "node_modules/serverless/node_modules/yallist": { + "dev": true, + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "version": "4.0.0" }, - "node_modules/ts-jest/node_modules/@jest/types": { + "node_modules/set-blocking": { + "dev": true, + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "version": "2.0.0" + }, + "node_modules/set-value": { "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "is-plain-object": "^2.0.4", + "is-primitive": "^3.0.1" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=11.0" }, - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "version": "27.5.1" + "funding": [ + "https://github.com/sponsors/jonschlinkert", + "https://paypal.me/jonathanschlinkert", + "https://jonschlinkert.dev/sponsor" + ], + "integrity": "sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-4.1.0.tgz", + "version": "4.1.0" }, - "node_modules/ts-jest/node_modules/@types/yargs": { - "dependencies": { - "@types/yargs-parser": "*" - }, + "node_modules/setimmediate": { + "dev": true, + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "version": "1.0.5" + }, + "node_modules/sha256-file": { "dev": true, - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "version": "16.0.5" + "integrity": "sha512-nqf+g0veqgQAkDx0U2y2Tn2KWyADuuludZTw9A7J3D+61rKlIIl9V5TS4mfnwKuXZOH9B7fQyjYJ9pKRHIsAyg==", + "resolved": "https://registry.npmjs.org/sha256-file/-/sha256-file-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/ts-jest/node_modules/jest-util": { + "node_modules/shebang-command": { "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" + "shebang-regex": "^3.0.0" }, "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=8" }, - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "version": "27.5.1" + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "version": "2.0.0" }, - "node_modules/ts-loader": { - "dependencies": { - "chalk": "^4.1.0", - "enhanced-resolve": "^5.0.0", - "micromatch": "^4.0.0", - "semver": "^7.3.4" - }, + "node_modules/shebang-regex": { "dev": true, "engines": { - "node": ">=12.0.0" + "node": ">=8" }, - "integrity": "sha512-MLukxDHBl8OJ5Dk3y69IsKVFRA/6MwzEqBgh+OXMPB/OD01KQuWPFd1WAQP8a5PeSCAxfnkhiuWqfmFJzJQt9w==", - "peerDependencies": { - "typescript": "*", - "webpack": "^5.0.0" + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "version": "3.0.0" + }, + "node_modules/shell-quote": { + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" }, - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.4.tgz", - "version": "9.4.4" + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "version": "1.8.1" }, - "node_modules/ts-node": { - "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" - }, - "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" - }, - "dev": true, - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" + "node_modules/side-channel": { + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" }, - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "version": "10.9.1" + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "version": "1.0.4" }, - "node_modules/ts-node-dev": { - "bin": { - "ts-node-dev": "lib/bin.js", - "tsnd": "lib/bin.js" - }, + "node_modules/signal-exit": { + "dev": true, + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "version": "3.0.7" + }, + "node_modules/simple-git": { "dependencies": { - "chokidar": "^3.5.1", - "dynamic-dedupe": "^0.3.0", - "minimist": "^1.2.6", - "mkdirp": "^1.0.4", - "resolve": "^1.0.0", - "rimraf": "^2.6.1", - "source-map-support": "^0.5.12", - "tree-kill": "^1.2.2", - "ts-node": "^10.4.0", - "tsconfig": "^7.0.0" + "@kwsites/file-exists": "^1.1.1", + "@kwsites/promise-deferred": "^1.1.1", + "debug": "^4.3.4" + }, + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/steveukx/git-js?sponsor=1" }, + "integrity": "sha512-ozK8tl2hvLts8ijTs18iFruE+RoqmC/mqZhjs/+V7gS5W68JpJ3+FCTmLVqmR59MaUQ52MfGQuWsIqfsTbbJ0Q==", + "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.20.0.tgz", + "version": "3.20.0" + }, + "node_modules/slash": { "dev": true, "engines": { - "node": ">=0.8.0" + "node": ">=8" }, - "integrity": "sha512-ywMrhCfH6M75yftYvrvNarLEY+SUXtUvU8/0Z6llrHQVBx12GiFk5sStF8UdfE/yfzk9IAq7O5EEbTQsxlBI8w==", - "peerDependencies": { - "node-notifier": "*", - "typescript": "*" + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "version": "3.0.0" + }, + "node_modules/sort-keys": { + "dependencies": { + "is-plain-obj": "^1.0.0" }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "dev": true, + "engines": { + "node": ">=0.10.0" }, - "resolved": "https://registry.npmjs.org/ts-node-dev/-/ts-node-dev-2.0.0.tgz", - "version": "2.0.0" + "integrity": "sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg==", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", + "version": "1.1.2" }, - "node_modules/ts-node-dev/node_modules/rimraf": { - "bin": { - "rimraf": "bin.js" - }, + "node_modules/sort-keys-length": { "dependencies": { - "glob": "^7.1.3" + "sort-keys": "^1.0.0" + }, + "dev": true, + "engines": { + "node": ">=0.10.0" + }, + "integrity": "sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw==", + "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", + "version": "1.0.1" + }, + "node_modules/sort-keys/node_modules/is-plain-obj": { + "dev": true, + "engines": { + "node": ">=0.10.0" }, + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "version": "1.1.0" + }, + "node_modules/sprintf-js": { "dev": true, - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "version": "2.7.1" + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "version": "1.0.3" }, - "node_modules/tsconfig": { + "node_modules/sprintf-kit": { "dependencies": { - "@types/strip-bom": "^3.0.0", - "@types/strip-json-comments": "0.0.30", - "strip-bom": "^3.0.0", - "strip-json-comments": "^2.0.0" + "es5-ext": "^0.10.53" }, "dev": true, - "integrity": "sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==", - "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-7.0.0.tgz", - "version": "7.0.0" + "integrity": "sha512-2PNlcs3j5JflQKcg4wpdqpZ+AjhQJ2OZEo34NXDtlB0tIPG84xaaXhpA8XFacFiwjKA4m49UOYG83y3hbMn/gQ==", + "resolved": "https://registry.npmjs.org/sprintf-kit/-/sprintf-kit-2.0.1.tgz", + "version": "2.0.1" }, - "node_modules/tsconfig/node_modules/strip-bom": { + "node_modules/stream-buffers": { "dev": true, "engines": { - "node": ">=4" + "node": ">= 0.10.0" }, - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "version": "3.0.0" + "integrity": "sha512-DQi1h8VEBA/lURbSwFtEHnSTb9s2/pwLEaFuNhXwy1Dx3Sa0lOuYT2yNUr4/j2fs8oCAMANtrZ5OrPZtyVs3MQ==", + "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.2.tgz", + "version": "3.0.2" + }, + "node_modules/stream-promise": { + "dependencies": { + "2-thenable": "^1.0.0", + "es5-ext": "^0.10.49", + "is-stream": "^1.1.0" + }, + "dev": true, + "integrity": "sha512-P+7muTGs2C8yRcgJw/PPt61q7O517tDHiwYEzMWo1GSBCcZedUMT/clz7vUNsSxFphIlJ6QUL4GexQKlfJoVtA==", + "resolved": "https://registry.npmjs.org/stream-promise/-/stream-promise-3.2.0.tgz", + "version": "3.2.0" }, - "node_modules/tsconfig/node_modules/strip-json-comments": { + "node_modules/stream-promise/node_modules/is-stream": { "dev": true, "engines": { "node": ">=0.10.0" }, - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/tslib": { - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "version": "2.6.2" + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "version": "1.1.0" }, - "node_modules/tsutils": { + "node_modules/string-width": { "dependencies": { - "tslib": "^1.8.1" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "dev": true, "engines": { - "node": ">= 6" - }, - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + "node": ">=8" }, - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "version": "3.21.0" + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "version": "4.2.3" }, - "node_modules/tsutils/node_modules/tslib": { + "node_modules/string_decoder": { + "dependencies": { + "safe-buffer": "~5.2.0" + }, "dev": true, - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "version": "1.14.1" + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "version": "1.3.0" }, - "node_modules/tweetnacl": { + "node_modules/strip-ansi": { + "dependencies": { + "ansi-regex": "^5.0.1" + }, "dev": true, - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "version": "0.14.5" + "engines": { + "node": ">=8" + }, + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "version": "6.0.1" }, - "node_modules/type": { - "dev": true, - "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", - "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", - "version": "1.2.0" + "node_modules/strip-dirs": { + "dependencies": { + "is-natural-number": "^4.0.1" + }, + "dev": true, + "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==", + "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", + "version": "2.1.0" }, - "node_modules/type-check": { + "node_modules/strip-outer": { "dependencies": { - "prelude-ls": "^1.2.1" + "escape-string-regexp": "^1.0.2" }, "dev": true, "engines": { - "node": ">= 0.8.0" + "node": ">=0.10.0" }, - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "version": "0.4.0" + "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", + "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", + "version": "1.0.1" }, - "node_modules/type-detect": { + "node_modules/strip-outer/node_modules/escape-string-regexp": { "dev": true, "engines": { - "node": ">=4" + "node": ">=0.8.0" }, - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "version": "4.0.8" + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "version": "1.0.5" + }, + "node_modules/strnum": { + "dev": true, + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "version": "1.0.5" }, - "node_modules/type-fest": { + "node_modules/strtok3": { + "dependencies": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^4.1.0" + }, "dev": true, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "github", + "url": "https://github.com/sponsors/Borewit" }, - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "version": "0.20.2" + "integrity": "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw==", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-6.3.0.tgz", + "version": "6.3.0" }, - "node_modules/type-is": { + "node_modules/supports-color": { "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" + "has-flag": "^4.0.0" }, + "dev": true, "engines": { - "node": ">= 0.6" + "node": ">=8" }, - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "version": "1.6.18" + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "version": "7.2.0" }, - "node_modules/typedarray-to-buffer": { + "node_modules/tar-stream": { "dependencies": { - "is-typedarray": "^1.0.0" + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" }, "dev": true, - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "version": "3.1.5" - }, - "node_modules/typeorm": { - "bin": { - "typeorm": "cli.js" + "engines": { + "node": ">=6" }, + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "version": "2.2.0" + }, + "node_modules/through": { + "dev": true, + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "version": "2.3.8" + }, + "node_modules/timers-ext": { "dependencies": { - "@sqltools/formatter": "^1.2.2", - "app-root-path": "^3.0.0", - "buffer": "^6.0.3", - "chalk": "^4.1.0", - "cli-highlight": "^2.1.11", - "debug": "^4.3.1", - "dotenv": "^8.2.0", - "glob": "^7.1.6", - "js-yaml": "^4.0.0", - "mkdirp": "^1.0.4", - "reflect-metadata": "^0.1.13", - "sha.js": "^2.4.11", - "tslib": "^2.1.0", - "uuid": "^8.3.2", - "xml2js": "^0.4.23", - "yargs": "^17.0.1", - "zen-observable-ts": "^1.0.0" - }, - "funding": { - "url": "https://opencollective.com/typeorm" - }, - "integrity": "sha512-c0rCO8VMJ3ER7JQ73xfk0zDnVv0WDjpsP6Q1m6CVKul7DB9iVdWLRjPzc8v2eaeBuomsbZ2+gTaYr8k1gm3bYA==", - "peerDependencies": { - "@sap/hana-client": "^2.11.14", - "better-sqlite3": "^7.1.2", - "hdb-pool": "^0.1.6", - "ioredis": "^4.28.3", - "mongodb": "^3.6.0", - "mssql": "^6.3.1", - "mysql2": "^2.2.5", - "oracledb": "^5.1.0", - "pg": "^8.5.1", - "pg-native": "^3.0.0", - "pg-query-stream": "^4.0.0", - "redis": "^3.1.1", - "sql.js": "^1.4.0", - "sqlite3": "^5.0.2", - "typeorm-aurora-data-api-driver": "^2.0.0" - }, - "peerDependenciesMeta": { - "@sap/hana-client": { - "optional": true - }, - "better-sqlite3": { - "optional": true - }, - "hdb-pool": { - "optional": true - }, - "ioredis": { - "optional": true - }, - "mongodb": { - "optional": true - }, - "mssql": { - "optional": true - }, - "mysql2": { - "optional": true - }, - "oracledb": { - "optional": true - }, - "pg": { - "optional": true - }, - "pg-native": { - "optional": true - }, - "pg-query-stream": { - "optional": true - }, - "redis": { - "optional": true - }, - "sql.js": { - "optional": true - }, - "sqlite3": { - "optional": true - }, - "typeorm-aurora-data-api-driver": { - "optional": true - } + "es5-ext": "~0.10.46", + "next-tick": "1" }, - "resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.2.45.tgz", - "version": "0.2.45" + "dev": true, + "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", + "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", + "version": "0.1.7" }, - "node_modules/typeorm/node_modules/buffer": { + "node_modules/tmp": { "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" + "os-tmpdir": "~1.0.2" }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "version": "6.0.3" + "dev": true, + "engines": { + "node": ">=0.6.0" + }, + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "version": "0.0.33" + }, + "node_modules/to-buffer": { + "dev": true, + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", + "version": "1.1.1" }, - "node_modules/typeorm/node_modules/cliui": { + "node_modules/to-regex-range": { "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" + "is-number": "^7.0.0" }, + "dev": true, "engines": { - "node": ">=12" + "node": ">=8.0" }, - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "version": "8.0.1" + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "version": "5.0.1" }, - "node_modules/typeorm/node_modules/dotenv": { + "node_modules/token-types": { + "dependencies": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "dev": true, "engines": { "node": ">=10" }, - "integrity": "sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.6.0.tgz", - "version": "8.6.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + }, + "integrity": "sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ==", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-4.2.1.tgz", + "version": "4.2.1" }, - "node_modules/typeorm/node_modules/ieee754": { + "node_modules/token-types/node_modules/ieee754": { + "dev": true, "funding": [ { "type": "github", @@ -19031,79 +8415,47 @@ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "version": "1.2.1" }, - "node_modules/typeorm/node_modules/uuid": { - "bin": { - "uuid": "dist/bin/uuid" - }, - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "version": "8.3.2" - }, - "node_modules/typeorm/node_modules/wrap-ansi": { - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, + "node_modules/traverse": { + "dev": true, "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "url": "https://github.com/sponsors/ljharb" }, - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "version": "7.0.0" + "integrity": "sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg==", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.7.tgz", + "version": "0.6.7" }, - "node_modules/typeorm/node_modules/yargs": { + "node_modules/trim-repeated": { "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" + "escape-string-regexp": "^1.0.2" }, + "dev": true, "engines": { - "node": ">=12" + "node": ">=0.10.0" }, - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "version": "17.7.2" + "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==", + "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", + "version": "1.0.0" }, - "node_modules/typeorm/node_modules/yargs-parser": { + "node_modules/trim-repeated/node_modules/escape-string-regexp": { + "dev": true, "engines": { - "node": ">=12" + "node": ">=0.8.0" }, - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "version": "21.1.1" + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "version": "1.0.5" }, - "node_modules/typescript": { - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, + "node_modules/tslib": { "dev": true, - "engines": { - "node": ">=4.2.0" - }, - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "version": "4.9.5" + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "version": "2.6.2" }, - "node_modules/uglify-js": { - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - }, - "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", - "optional": true, - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", - "version": "3.17.4" + "node_modules/type": { + "dev": true, + "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", + "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", + "version": "1.2.0" }, "node_modules/unbzip2-stream": { "dependencies": { @@ -19139,12 +8491,6 @@ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "version": "5.7.1" }, - "node_modules/underscore": { - "dev": true, - "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", - "version": "1.13.6" - }, "node_modules/uni-global": { "dependencies": { "type": "^2.5.0" @@ -19167,54 +8513,16 @@ }, "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/unpipe": { - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "version": "1.0.0" - }, - "node_modules/untildify": { - "dev": true, - "engines": { - "node": ">=8" - }, - "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", - "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/update-browserslist-db": { - "bin": { - "update-browserslist-db": "cli.js" - }, - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "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" - } - ], - "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", - "peerDependencies": { - "browserslist": ">= 4.21.0" + "version": "2.0.0" + }, + "node_modules/untildify": { + "dev": true, + "engines": { + "node": ">=8" }, - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", - "version": "1.0.11" + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "version": "4.0.0" }, "node_modules/uri-js": { "dependencies": { @@ -19230,20 +8538,13 @@ "punycode": "1.3.2", "querystring": "0.2.0" }, + "dev": true, "integrity": "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==", "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", "version": "0.10.3" }, - "node_modules/url-parse": { - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - }, - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "version": "1.5.10" - }, "node_modules/url/node_modules/punycode": { + "dev": true, "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", "version": "1.3.2" @@ -19252,13 +8553,16 @@ "dependencies": { "node-gyp-build": "^4.3.0" }, + "dev": true, "engines": { "node": ">=6.14.2" }, "hasInstallScript": true, - "integrity": "sha512-uIuGf9TWQ/y+0Lp+KGZCMuJWc3N9BHA+l/UmHd/oUHwJJDeysyTRxNQVkbzsIWfGFbRe3OcgML/i0mvVRPOyDA==", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-6.0.3.tgz", - "version": "6.0.3" + "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", + "optional": true, + "peer": true, + "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", + "version": "5.0.10" }, "node_modules/util": { "dependencies": { @@ -19268,6 +8572,7 @@ "is-typed-array": "^1.1.3", "which-typed-array": "^1.1.2" }, + "dev": true, "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", "version": "0.12.5" @@ -19278,18 +8583,11 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "version": "1.0.2" }, - "node_modules/utils-merge": { - "engines": { - "node": ">= 0.4.0" - }, - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "version": "1.0.1" - }, "node_modules/uuid": { "bin": { "uuid": "dist/bin/uuid" }, + "dev": true, "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" @@ -19298,35 +8596,6 @@ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", "version": "9.0.1" }, - "node_modules/v8-compile-cache-lib": { - "dev": true, - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "version": "3.0.1" - }, - "node_modules/v8-to-istanbul": { - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" - }, - "dev": true, - "engines": { - "node": ">=10.12.0" - }, - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "version": "8.1.1" - }, - "node_modules/v8-to-istanbul/node_modules/source-map": { - "dev": true, - "engines": { - "node": ">= 8" - }, - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "version": "0.7.4" - }, "node_modules/validate-npm-package-name": { "dependencies": { "builtins": "^1.0.3" @@ -19336,71 +8605,6 @@ "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz", "version": "3.0.0" }, - "node_modules/validator": { - "engines": { - "node": ">= 0.10" - }, - "integrity": "sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==", - "resolved": "https://registry.npmjs.org/validator/-/validator-13.11.0.tgz", - "version": "13.11.0" - }, - "node_modules/vary": { - "engines": { - "node": ">= 0.8" - }, - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "version": "1.1.2" - }, - "node_modules/w3c-hr-time": { - "dependencies": { - "browser-process-hrtime": "^1.0.0" - }, - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", - "dev": true, - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "version": "1.0.2" - }, - "node_modules/w3c-xmlserializer": { - "dependencies": { - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/wait-for-expect": { - "dev": true, - "integrity": "sha512-cfS1+DZxuav1aBYbaO/kE06EOS8yRw7qOFoD3XtjTkYvCvh3zUvNST8DXK/nPaeqIzIv3P3kL3lRJn8iwOiSag==", - "resolved": "https://registry.npmjs.org/wait-for-expect/-/wait-for-expect-3.0.2.tgz", - "version": "3.0.2" - }, - "node_modules/walker": { - "dependencies": { - "makeerror": "1.0.12" - }, - "dev": true, - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "version": "1.0.8" - }, - "node_modules/watchpack": { - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "dev": true, - "engines": { - "node": ">=10.13.0" - }, - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "version": "2.4.0" - }, "node_modules/wcwidth": { "dependencies": { "defaults": "^1.0.3" @@ -19410,188 +8614,6 @@ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", "version": "1.0.1" }, - "node_modules/webidl-conversions": { - "engines": { - "node": ">=12" - }, - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "version": "7.0.0" - }, - "node_modules/webpack": { - "bin": { - "webpack": "bin/webpack.js" - }, - "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.15.0", - "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.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.2.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "dev": true, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "integrity": "sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==", - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.2.tgz", - "version": "5.88.2" - }, - "node_modules/webpack-cli": { - "bin": { - "webpack-cli": "bin/cli.js" - }, - "dependencies": { - "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^2.1.1", - "@webpack-cli/info": "^2.0.2", - "@webpack-cli/serve": "^2.0.5", - "colorette": "^2.0.14", - "commander": "^10.0.1", - "cross-spawn": "^7.0.3", - "envinfo": "^7.7.3", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^3.1.1", - "rechoir": "^0.8.0", - "webpack-merge": "^5.7.3" - }, - "dev": true, - "engines": { - "node": ">=14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==", - "peerDependencies": { - "webpack": "5.x.x" - }, - "peerDependenciesMeta": { - "@webpack-cli/generators": { - "optional": true - }, - "webpack-bundle-analyzer": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - } - }, - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.1.4.tgz", - "version": "5.1.4" - }, - "node_modules/webpack-cli/node_modules/commander": { - "dev": true, - "engines": { - "node": ">=14" - }, - "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", - "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", - "version": "10.0.1" - }, - "node_modules/webpack-merge": { - "dependencies": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" - }, - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", - "version": "5.9.0" - }, - "node_modules/webpack-sources": { - "dev": true, - "engines": { - "node": ">=10.13.0" - }, - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "version": "3.2.3" - }, - "node_modules/webpack/node_modules/events": { - "dev": true, - "engines": { - "node": ">=0.8.x" - }, - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "version": "3.3.0" - }, - "node_modules/whatwg-encoding": { - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=12" - }, - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "version": "2.0.0" - }, - "node_modules/whatwg-encoding/node_modules/iconv-lite": { - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "version": "0.6.3" - }, - "node_modules/whatwg-mimetype": { - "engines": { - "node": ">=12" - }, - "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", - "version": "3.0.0" - }, - "node_modules/whatwg-url": { - "dependencies": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=14" - }, - "integrity": "sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-12.0.1.tgz", - "version": "12.0.1" - }, "node_modules/which": { "bin": { "node-which": "bin/node-which" @@ -19599,6 +8621,7 @@ "dependencies": { "isexe": "^2.0.0" }, + "dev": true, "engines": { "node": ">= 8" }, @@ -19606,6 +8629,12 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "version": "2.0.2" }, + "node_modules/which-module": { + "dev": true, + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "version": "2.0.1" + }, "node_modules/which-typed-array": { "dependencies": { "available-typed-arrays": "^1.0.5", @@ -19614,6 +8643,7 @@ "gopd": "^1.0.1", "has-tostringtag": "^1.0.0" }, + "dev": true, "engines": { "node": ">= 0.4" }, @@ -19624,26 +8654,6 @@ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", "version": "1.1.11" }, - "node_modules/wildcard": { - "dev": true, - "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", - "version": "2.0.1" - }, - "node_modules/wordnet-db": { - "dev": true, - "engines": { - "node": ">=0.6.0" - }, - "integrity": "sha512-zVyFsvE+mq9MCmwXUWHIcpfbrHHClZWZiVOzKSxNJruIcFn2RbY55zkhiAMMxM8zCVSmtNiViq8FsAZSFpMYag==", - "resolved": "https://registry.npmjs.org/wordnet-db/-/wordnet-db-3.1.14.tgz", - "version": "3.1.14" - }, - "node_modules/wordwrap": { - "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "version": "1.0.0" - }, "node_modules/wrap-ansi": { "dependencies": { "ansi-styles": "^4.0.0", @@ -19658,45 +8668,19 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", "version": "6.2.0" }, - "node_modules/wrap-ansi-cjs": { - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - }, - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "name": "wrap-ansi", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "version": "7.0.0" - }, "node_modules/wrappy": { + "dev": true, "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "version": "1.0.2" }, - "node_modules/write-file-atomic": { - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - }, - "dev": true, - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "version": "3.0.3" - }, "node_modules/ws": { + "dev": true, "engines": { "node": ">=10.0.0" }, "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "peer": true, "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" @@ -19712,27 +8696,8 @@ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", "version": "8.18.0" }, - "node_modules/xml-name-validator": { - "engines": { - "node": ">=12" - }, - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "version": "4.0.0" - }, - "node_modules/xml2js": { - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - }, - "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", - "version": "0.5.0" - }, "node_modules/xmlbuilder": { + "dev": true, "engines": { "node": ">=4.0" }, @@ -19740,13 +8705,8 @@ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", "version": "11.0.1" }, - "node_modules/xmlchars": { - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "version": "2.2.0" - }, "node_modules/xtend": { - "devOptional": true, + "dev": true, "engines": { "node": ">=0.4" }, @@ -19754,20 +8714,6 @@ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "version": "4.0.2" }, - "node_modules/y18n": { - "engines": { - "node": ">=10" - }, - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "version": "5.0.8" - }, - "node_modules/yallist": { - "dev": true, - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "version": "3.1.1" - }, "node_modules/yaml-ast-parser": { "dev": true, "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==", @@ -19797,37 +8743,6 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "version": "1.0.10" }, - "node_modules/yamljs/node_modules/sprintf-js": { - "dev": true, - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "version": "1.0.3" - }, - "node_modules/yargs": { - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - }, - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "version": "16.2.0" - }, - "node_modules/yargs-parser": { - "engines": { - "node": ">=10" - }, - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "version": "20.2.9" - }, "node_modules/yauzl": { "dependencies": { "buffer-crc32": "~0.2.3", @@ -19838,41 +8753,6 @@ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "version": "2.10.0" }, - "node_modules/yn": { - "dev": true, - "engines": { - "node": ">=6" - }, - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "version": "3.1.1" - }, - "node_modules/yocto-queue": { - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "version": "0.1.0" - }, - "node_modules/zen-observable": { - "integrity": "sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==", - "resolved": "https://registry.npmjs.org/zen-observable/-/zen-observable-0.8.15.tgz", - "version": "0.8.15" - }, - "node_modules/zen-observable-ts": { - "dependencies": { - "@types/zen-observable": "0.8.3", - "zen-observable": "0.8.15" - }, - "integrity": "sha512-1h4zlLSqI2cRLPJUHJFL8bCWHhkpuXkF+dbGkRaWjgDIG26DmzyshUMrdV/rL3UnR+mhaX4fRq8LPouq0MYYIA==", - "resolved": "https://registry.npmjs.org/zen-observable-ts/-/zen-observable-ts-1.1.0.tgz", - "version": "1.1.0" - }, "node_modules/zip-stream": { "dependencies": { "archiver-utils": "^2.1.0", diff --git a/backend/package.json b/backend/package.json index 1dee3e69..6a0a53b2 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,113 +1,22 @@ { "author": "", - "dependencies": { - "@aws-sdk/client-cloudwatch-logs": "^3.417.0", - "@aws-sdk/client-ssm": "^3.414.0", - "@elastic/elasticsearch": "~7.10.0", - "@thefaultvault/tfv-cpe-parser": "^1.3.0", - "@types/dockerode": "^3.3.19", - "amqplib": "^0.10.3", - "aws-sdk": "^2.1551.0", - "axios": "^1.6", - "body-parser": "^1.19.0", - "bufferutil": "^4.0.7", - "class-transformer": "^0.3.1", - "class-validator": "^0.14.0", - "cookie": "^0.4.1", - "cookie-parser": "^1.4.6", - "cors": "^2.8.5", - "date-fns": "^3.3.1", - "express": "^4.18.1", - "express-rate-limit": "^7.2.0", - "global-agent": "^2.2.0", - "got": "^11.8.5", - "handlebars": "^4.7.8", - "helmet": "^4.1.1", - "http-proxy-middleware": "^2.0.6", - "ip-address": "^9.0.5", - "jsdom": "^22.1", - "jsonwebtoken": "^9.0.2", - "jwks-rsa": "^3.0", - "lodash": "^4.17.21", - "nodemailer": "^6.7.2", - "openid-client": "^5.4", - "p-queue": "^6.6.2", - "p-retry": "^4.6.1", - "papaparse": "^5.3.1", - "pg": "^8.11", - "portscanner": "^2.2.0", - "reflect-metadata": "^0.1.13", - "sanitizer": "^0.1.3", - "serverless-http": "^3.2.0", - "ssl-checker": "^2.0.7", - "tar": "^7.0.0", - "tough-cookie": "^4.1.3", - "typeorm": "^0.2.45", - "utf-8-validate": "^6.0.3", - "uuid": "^9.0.1", - "ws": "^8.18.0" - }, "description": "", "devDependencies": { - "@jest/globals": "^29", - "@types/aws-lambda": "^8.10.62", - "@types/cors": "^2.8.17", - "@types/dockerode": "^3.3.19", - "@types/jest": "^27", - "@types/node": "^20.6", - "@types/node-fetch": "^2.6.4", - "@types/nodemailer": "^6.4.0", - "@types/papaparse": "^5.3.0", - "@types/supertest": "^2.0", - "@types/uuid": "^9.0.7", - "@typescript-eslint/eslint-plugin": "^5.59", - "@typescript-eslint/parser": "^5.59", - "debug": "^4.3.4", - "dockerode": "^3.3.1", - "dotenv": "^16.0", - "eslint": "^8.46.0", - "eslint-config-prettier": "^6.12.0", - "eslint-plugin-prettier": "^5.0.0", - "jest": "^27", - "json-schema-to-typescript": "^13.0", - "nock": "^13.0.4", - "pg": "^8.11", - "prettier": "^3.0.0", - "sentencer": "^0.2.1", "serverless": "^3.30", + "serverless-better-credentials": "^2.0.0", "serverless-domain-manager": "^7.0", "serverless-dotenv-plugin": "^6.0.0", - "serverless-webpack": "^5.11.0", - "supertest": "^6.3", - "ts-jest": "^27", - "ts-loader": "^9.4.1", - "ts-node": "^10.9", - "ts-node-dev": "^2.0.0", - "typescript": "^4.9", - "wait-for-expect": "^3.0.2", - "webpack": "^5.88", - "webpack-cli": "^5.1" - }, - "engineStrict": true, - "engines": { - "node": ">=18.0.0" + "serverless-plugin-ifelse": "^1.0.7", + "serverless-prune-versions": "^1.0.4", + "serverless-python-requirements": "^6.1.1" }, "license": "ISC", "name": "crossfeed-backend", - "overrides": { - "execa": "^5.1.1", - "file-type": "^16.5.4", - "kind-of": "^6.0.3", - "natural": "^6.5.0", - "semver": "^7.5.3", - "superagent": "^8.0.5", - "xml2js": "0.5.0" - }, "scripts": { "build-worker": "sh ./tools/build-worker.sh", "codegen": "ts-node src/tools/generate-types.ts", "control-queue": "docker compose exec -T backend npx ts-node src/tools/consumeControlQueue.ts", - "deploy-worker-prod": "./tools/deploy-worker.sh crossfeed-prod-worker", + "deploy-worker-integration": "./tools/deploy-worker.sh crossfeed-integration-worker", "deploy-worker-staging": "./tools/deploy-worker.sh", "lint": "eslint '**/*.{ts,tsx,js,jsx}'", "lint:fix": "eslint '**/*.{ts,tsx,js,jsx}' --fix", diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 00000000..fae843e5 --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,91 @@ +aiohappyeyeballs==2.4.4 +aiohttp==3.11.9 +aiosignal==1.3.1 +annotated-types==0.7.0 +anyio==4.7.0 +argon2-cffi==23.1.0 +argon2-cffi-bindings==21.2.0 +asgiref==3.8.1 +astroid==3.3.5 +attrs==24.2.0 +boto3==1.35.76 +botocore==1.35.76 +certifi==2024.8.30 +cffi==1.17.1 +charset-normalizer==3.4.0 +click==8.1.7 +cryptography==38.0.0 +dill==0.3.9 +Django==5.1.4 +dnspython==2.7.0 +docker==7.1.0 +elasticsearch==7.9.0 +email_validator==2.2.0 +fastapi==0.111.0 +fastapi-cli==0.0.6 +frozenlist==1.5.0 +h11==0.14.0 +httpcore==1.0.7 +httptools==0.6.4 +httpx==0.28.0 +idna==3.10 +iniconfig==2.0.0 +isort==5.13.2 +Jinja2==3.1.4 +jmespath==1.0.1 +mangum==0.17.0 +markdown-it-py==3.0.0 +MarkupSafe==3.0.2 +mccabe==0.7.0 +mdurl==0.1.2 +minio==7.2.12 +multidict==6.1.0 +mypy==1.13.0 +mypy-extensions==1.0.0 +orjson==3.10.12 +packaging==24.2 +pika==1.3.2 +pipdeptree==2.24.0 +platformdirs==4.3.6 +pluggy==1.5.0 +propcache==0.2.1 +psycopg2-binary==2.9.10 +pycparser==2.22 +pycryptodome==3.21.0 +pydantic==2.10.3 +pydantic_core==2.27.1 +Pygments==2.18.0 +PyJWT==2.10.1 +pylint==3.3.2 +pytest==8.3.4 +pytest-django==4.9.0 +pytest-env==1.1.5 +python-dateutil==2.9.0.post0 +python-dotenv==1.0.1 +python-json-logger==2.0.7 +python-multipart==0.0.19 +PyYAML==6.0.2 +redis==5.2.0 +requests==2.32.3 +rich==13.9.4 +rich-toolkit==0.12.0 +s3transfer==0.10.4 +shellingham==1.5.4 +six==1.17.0 +sniffio==1.3.1 +sqlparse==0.5.2 +starlette==0.37.2 +tomlkit==0.13.2 +typer==0.15.1 +types-cffi==1.16.0.20240331 +types-pyOpenSSL==24.1.0.20240722 +types-redis==4.6.0.20241004 +types-setuptools==75.6.0.20241126 +typing_extensions==4.12.2 +ujson==5.10.0 +urllib3==2.2.3 +uvicorn==0.30.1 +uvloop==0.21.0 +watchfiles==1.0.0 +websockets==14.1 +yarl==1.18.3 diff --git a/backend/serverless.yml b/backend/serverless.yml index 7ff67f77..d7f578c0 100644 --- a/backend/serverless.yml +++ b/backend/serverless.yml @@ -6,24 +6,87 @@ useDotenv: true configValidationMode: error custom: - webpack: - webpackConfig: webpack.backend.config.js customDomain: domainName: ${file(env.yml):${self:provider.stage}.DOMAIN, ''} basePath: '' - certificateName: ${file(env.yml):${self:provider.stage}.DOMAIN, ''} + certificateName: ${file(env.yml):${self:provider.stage}.CERT_DOMAIN, ''} stage: ${self:provider.stage} createRoute53Record: false + prune: + automatic: true + includeLayers: true + number: 3 + pythonRequirements: + dockerizePip: true + noDeploy: + - boto3 + - botocore + - docker + - pytest + - pytest-django + - pytest-env + - pylint + - mypy + - mypy-extensions + - python-dotenv + - pika + - isort + - black + - pipdeptree + - Jinja2 + - MarkupSafe + - uvloop + + # Resource policies for GovCloud (Private) vs Non-GovCloud (Regional) + privateResourcePolicy: + - Effect: Deny + Principal: '*' + Action: 'execute-api:Invoke' + Resource: execute-api:/${self:provider.stage}/*/* + Condition: + StringNotEquals: + 'aws:sourceVpce': ${file(env.yml):${self:provider.stage}.VPC_ENDPOINT, ''} + - Effect: Allow + Principal: '*' + Action: execute-api:Invoke + Resource: execute-api:/${self:provider.stage}/*/* + + regionalResourcePolicy: + - Effect: Allow + Principal: '*' + Action: execute-api:Invoke + Resource: execute-api:/${self:provider.stage}/*/* + Condition: + IpAddress: + aws:SourceIp: + - ${file(env.yml):${self:provider.stage}.DMZ_CIDR, ''} + + # Conditional logic for GovCloud vs + # non-GovCloud (Private endpoints require a VPC Endpoint) + serverlessIfElse: + - If: '"${file(env.yml):${self:provider.stage}.ENDPOINT_TYPE}" == "PRIVATE"' + Set: + provider.vpcEndpointIds: + - ${file(env.yml):${self:provider.stage}.VPC_ENDPOINT, ''} + provider.apiGateway.resourcePolicy: ${self:custom.privateResourcePolicy} + ElseSet: + provider.apiGateway.resourcePolicy: ${self:custom.regionalResourcePolicy} + ElseExclude: + - provider.vpcEndpointIds provider: name: aws - region: us-east-1 - endpointType: REGIONAL - runtime: nodejs16.x + region: ${file(env.yml):${self:provider.stage}.REGION, ''} + endpointType: ${file(env.yml):${self:provider.stage}.ENDPOINT_TYPE, ''} + runtime: python3.11 timeout: 30 stage: ${opt:stage, 'dev'} environment: ${file(env.yml):${self:provider.stage}, ''} vpc: ${file(env.yml):${self:provider.stage}-vpc, ''} + logs: + restApi: true + deploymentBucket: + serverSideEncryption: AES256 apiGateway: binaryMediaTypes: - image/* @@ -33,14 +96,7 @@ provider: Principal: '*' Action: execute-api:Invoke Resource: execute-api:/${self:provider.stage}/*/* - Condition: - IpAddress: - aws:SourceIp: - - ${file(env.yml):${self:provider.stage}.DMZ_CIDR, ''} - logs: - restApi: true - deploymentBucket: - serverSideEncryption: AES256 + iam: role: statements: @@ -61,10 +117,12 @@ provider: - ecs:DescribeServices - ecs:UpdateService - iam:PassRole + - logs:GetLogEvents Resource: '*' - Effect: Allow Action: - ses:SendRawEmail + - ses:SendEmail Resource: '*' - Effect: Allow Action: @@ -111,9 +169,19 @@ provider: Resource: '*' resources: + Conditions: + IsDMZ: + Fn::Or: + - Fn::Equals: + - ${self:provider.stage} + - staging-cd + - Fn::Equals: + - ${self:provider.stage} + - integration Resources: ShodanQueue: Type: AWS::SQS::Queue + Condition: IsDMZ Properties: QueueName: ${self:provider.stage}-shodan-queue VisibilityTimeout: 18000 # 5 hours @@ -121,6 +189,7 @@ resources: MessageRetentionPeriod: 604800 # 7 days DnstwistQueue: Type: AWS::SQS::Queue + Condition: IsDMZ Properties: QueueName: ${self:provider.stage}-dnstwist-queue VisibilityTimeout: 18000 # 5 hours @@ -128,6 +197,7 @@ resources: MessageRetentionPeriod: 604800 # 7 days IntelxQueue: Type: AWS::SQS::Queue + Condition: IsDMZ Properties: QueueName: ${self:provider.stage}-intelx-queue VisibilityTimeout: 18000 # 5 hours @@ -135,6 +205,7 @@ resources: MessageRetentionPeriod: 604800 # 7 days CybersixgillQueue: Type: AWS::SQS::Queue + Condition: IsDMZ Properties: QueueName: ${self:provider.stage}-cybersixgill-queue VisibilityTimeout: 18000 # 5 hours @@ -167,6 +238,9 @@ functions: - ${file(./src/api/functions.yml)} plugins: + - serverless-better-credentials - serverless-domain-manager - - serverless-webpack - serverless-dotenv-plugin + - serverless-python-requirements + - serverless-plugin-ifelse + - serverless-prune-versions diff --git a/backend/src/api/app.ts b/backend/src/api/app.ts index 7fb1344c..e7499e72 100644 --- a/backend/src/api/app.ts +++ b/backend/src/api/app.ts @@ -487,6 +487,19 @@ app.use( peProxy ); +if (process.env.IS_LOCAL) { + app.use( + '/v3', + createProxyMiddleware({ + target: 'http://python-backend:8000', + changeOrigin: true, + pathRewrite: { + '^/v3': '' + } + }) + ); +} + const checkGlobalAdminOrRegionAdmin = async ( req: Request, res: Response, diff --git a/backend/src/api/functions.yml b/backend/src/api/functions.yml index 10d6fbb8..bfd3efe0 100644 --- a/backend/src/api/functions.yml +++ b/backend/src/api/functions.yml @@ -1,6 +1,6 @@ --- api: - handler: src/api.handler + handler: src.xfd_django.xfd_django.asgi.handler events: - http: path: / # this matches the base path diff --git a/backend/src/models/cve.ts b/backend/src/models/cve.ts index 4eda5fd2..1a6a9ac7 100644 --- a/backend/src/models/cve.ts +++ b/backend/src/models/cve.ts @@ -112,6 +112,16 @@ export class Cve extends BaseEntity { @ManyToMany(() => Cpe, (cpe) => cpe.cves, { cascade: true }) - @JoinTable() + @JoinTable({ + name: 'cve_cpes_cpe', + joinColumn: { + name: 'cve_id', + referencedColumnName: 'id' + }, + inverseJoinColumn: { + name: 'cpe_id', + referencedColumnName: 'id' + } + }) cpes: Cpe[]; } diff --git a/backend/src/models/organization-tag.ts b/backend/src/models/organization-tag.ts index 19ce0721..a6831918 100644 --- a/backend/src/models/organization-tag.ts +++ b/backend/src/models/organization-tag.ts @@ -33,7 +33,17 @@ export class OrganizationTag extends BaseEntity { onDelete: 'CASCADE', onUpdate: 'CASCADE' }) - @JoinTable() + @JoinTable({ + name: 'organization_tag_organizations_organization', + joinColumn: { + name: 'organizationtag_id', + referencedColumnName: 'id' + }, + inverseJoinColumn: { + name: 'organization_id', + referencedColumnName: 'id' + } + }) organizations: Organization[]; /** diff --git a/backend/src/models/scan-task.ts b/backend/src/models/scan-task.ts index 82b7896d..59c90619 100644 --- a/backend/src/models/scan-task.ts +++ b/backend/src/models/scan-task.ts @@ -44,7 +44,17 @@ export class ScanTask extends BaseEntity { onUpdate: 'CASCADE' } ) - @JoinTable() + @JoinTable({ + name: 'scan_task_organizations_organization', + joinColumn: { + name: 'scantask_id', + referencedColumnName: 'id' + }, + inverseJoinColumn: { + name: 'organization_id', + referencedColumnName: 'id' + } + }) organizations: Organization[]; @ManyToOne((type) => Scan, (scan) => scan.scanTasks, { diff --git a/backend/src/models/scan.ts b/backend/src/models/scan.ts index 4a098acf..0f71bd53 100644 --- a/backend/src/models/scan.ts +++ b/backend/src/models/scan.ts @@ -79,7 +79,17 @@ export class Scan extends BaseEntity { onUpdate: 'CASCADE' } ) - @JoinTable() + @JoinTable({ + name: 'scan_organizations_organization', + joinColumn: { + name: 'scan_id', + referencedColumnName: 'id' + }, + inverseJoinColumn: { + name: 'organization_id', + referencedColumnName: 'id' + } + }) organizations: Organization[]; /** @@ -90,7 +100,17 @@ export class Scan extends BaseEntity { onDelete: 'CASCADE', onUpdate: 'CASCADE' }) - @JoinTable() + @JoinTable({ + name: 'scan_tags_organization_tag', + joinColumn: { + name: 'scan_id', + referencedColumnName: 'id' + }, + inverseJoinColumn: { + name: 'organizationtag_id', + referencedColumnName: 'id' + } + }) tags: OrganizationTag[]; @ManyToOne((type) => User, { diff --git a/backend/src/tasks/functions.yml b/backend/src/tasks/functions.yml index bd5ee23b..53d73955 100644 --- a/backend/src/tasks/functions.yml +++ b/backend/src/tasks/functions.yml @@ -1,14 +1,7 @@ --- -cloudwatchToS3: - handler: src/tasks/cloudwatchToS3.handler - timeout: 900 - events: - - schedule: rate(4 hours) - reservedConcurrency: 1 - memorySize: 4096 scheduler: - handler: src/tasks/scheduler.handler + handler: src/xfd_django/xfd_api/tasks/scheduler.handler timeout: 900 events: - schedule: rate(5 minutes) @@ -17,36 +10,25 @@ scheduler: syncdb: timeout: 900 - handler: src/tasks/syncdb.handler - -pesyncdb: - timeout: 900 - handler: src/tasks/pesyncdb.handler - -syncmdl: - timeout: 900 - handler: src/tasks/syncmdl.handler + handler: src/xfd_django/xfd_api/tasks/run_syncdb.handler bastion: timeout: 900 - handler: src/tasks/bastion.handler - -makeGlobalAdmin: - handler: src/tasks/makeGlobalAdmin.handler + handler: src/xfd_django/xfd_api/tasks/bastion.handler checkUserExpiration: timeout: 300 - handler: src/tasks/checkUserExpiration.handler + handler: src/xfd_django/xfd_api/tasks/checkUserExpiration.handler events: - schedule: cron(0 0 * * ? *) # Runs every day at midnight scanExecution: timeout: 900 # 15 minutes - handler: src/tasks/scanExecution.handler + handler: src/xfd_django/xfd_api/tasks/scanExecution.handler memorySize: 4096 updateScanTaskStatus: - handler: src/tasks/updateScanTaskStatus.handler + handler: src/xfd_django/xfd_api/tasks/updateScanTaskStatus.handler events: - eventBridge: name: ${self:provider.stage}-updateScanTaskStatus @@ -58,3 +40,45 @@ updateScanTaskStatus: detail: clusterArn: - ${file(env.yml):${self:provider.stage}-ecs-cluster, ''} + +serviceStatsCache: + handler: src/xfd_django/xfd_api/tasks/elasticache_tasks.populate_services_cache + events: + - schedule: + rate: cron(0 0 * * ? *) # This triggers the function every day it midnight + +portStatsCache: + handler: src/xfd_django/xfd_api/tasks/elasticache_tasks.populate_ports_cache + events: + - schedule: + rate: cron(0 0 * * ? *) # This triggers the function every day it midnight + +numVulnsCache: + handler: src/xfd_django/xfd_api/tasks/elasticache_tasks.populate_num_vulns_cache + events: + - schedule: + rate: cron(0 0 * * ? *) # This triggers the function every day it midnight + +latestVulnsCache: + handler: src/xfd_django/xfd_api/tasks/elasticache_tasks.populate_latest_vulns_cache + events: + - schedule: + rate: cron(0 0 * * ? *) # This triggers the function every day it midnight + +mostCommonVulnsCache: + handler: src/xfd_django/xfd_api/tasks/elasticache_tasks.populate_most_common_vulns_cache + events: + - schedule: + rate: cron(0 0 * * ? *) # This triggers the function every day it midnight + +severityCache: + handler: src/xfd_django/xfd_api/tasks/elasticache_tasks.populate_severity_cache + events: + - schedule: + rate: cron(0 0 * * ? *) # This triggers the function every day it midnight + +byOrgCache: + handler: src/xfd_django/xfd_api/tasks/elasticache_tasks.populate_by_org_cache + events: + - schedule: + rate: cron(0 0 * * ? *) # This triggers the function every day it midnight diff --git a/backend/src/xfd_django/__init__.py b/backend/src/xfd_django/__init__.py new file mode 100644 index 00000000..d8eee0e1 --- /dev/null +++ b/backend/src/xfd_django/__init__.py @@ -0,0 +1 @@ +"""This package contains the XFD Django project.""" diff --git a/backend/src/xfd_django/manage.py b/backend/src/xfd_django/manage.py new file mode 100755 index 00000000..1f417b9e --- /dev/null +++ b/backend/src/xfd_django/manage.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +# Standard Python Libraries +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") + try: + # Third-Party Libraries + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == "__main__": + main() diff --git a/backend/src/xfd_django/xfd_api/__init__.py b/backend/src/xfd_django/xfd_api/__init__.py new file mode 100644 index 00000000..68b50d54 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/__init__.py @@ -0,0 +1,12 @@ +""" +This package contains the FastAPI application modules for the xfd_django project. + +Modules included: +- `auth`: Provides authentication utilities. +- `views`: Defines the API endpoints. +- `apps`: Configures the Django application. +- `admin`: Registers models with the Django admin site. +- `jwt_utils`: Provides JWT token creation and decoding utilities. +- `models`: Defines the database models. +- `tests`: Contains the test cases for the application. +""" diff --git a/backend/src/xfd_django/xfd_api/api_methods/__init__.py b/backend/src/xfd_django/xfd_api/api_methods/__init__.py new file mode 100644 index 00000000..ec8d2c55 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/__init__.py @@ -0,0 +1 @@ +"""API Methods.""" diff --git a/backend/src/xfd_django/xfd_api/api_methods/api_key.py b/backend/src/xfd_django/xfd_api/api_methods/api_key.py new file mode 100644 index 00000000..2f781811 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/api_key.py @@ -0,0 +1,123 @@ +"""/api-keys API logic.""" + +# Standard Python Libraries +from datetime import datetime +import hashlib +import secrets +import uuid + +# Third-Party Libraries +from fastapi import HTTPException, status +from xfd_api.models import ApiKey +from xfd_api.schema_models.api_key import ApiKey as ApiKeySchema + +from ..auth import is_global_view_admin + + +def post(current_user): + """POST API logic for creating a new API key.""" + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Generate a random 16-byte API key + key = secrets.token_hex(16) + + # Hash the API key + hashed_key = hashlib.sha256(key.encode()).hexdigest() + + # Create ApiKey instance in the database + api_key_instance = ApiKey.objects.create( + id=uuid.uuid4(), + hashedKey=hashed_key, + lastFour=key[-4:], + user=current_user, + createdAt=datetime.utcnow(), + updatedAt=datetime.utcnow(), + ) + + # Convert the Django model instance to Pydantic, excluding fields like hashedKey and user + validated_data = ApiKeySchema.model_validate(api_key_instance).model_dump( + exclude={"hashedKey", "user"} + ) + + # Add the actual API key to the response for initial display to the user + validated_data["api_key"] = key + + return validated_data + + +def delete(api_key_id, current_user): + """DELETE API LOGIC.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Confirm id is a valid UUID + uuid.UUID(api_key_id) + + # Delete by id + api_key = ApiKey.objects.get(id=api_key_id) + api_key.delete() + + # Delete Response TODO: confirm output + return {"status": "success", "message": "API Key deleted successfully"} + + except ApiKey.DoesNotExist: + raise HTTPException( + status_code=status.HTTP_404_NOT_FOUND, detail="API Key not found" + ) + except ValueError: + raise HTTPException( + status_code=status.HTTP_404_NOT_FOUND, detail="Invalid API Key ID" + ) + + +def get_all(current_user): + """GET All API LOGIC.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Get all ApiKey objects from the database + api_keys = ApiKey.objects.all() + + # Return schema validated response + validated_response = [ + ApiKeySchema.model_validate(item).model_dump( + exclude={"hashedKey", "userId"} + ) + for item in api_keys + ] + + return validated_response + + except Exception as error: + raise HTTPException(status_code=500, detail=str(error)) + + +def get_by_id(api_key_id, current_user): + """GET API KEY by id.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Confirm id is a valid UUID + uuid.UUID(api_key_id) + + # Find the ApiKey by its ID + api_key = ApiKey.objects.get(id=api_key_id) + + # Return validated output + return ApiKeySchema.model_validate(obj=api_key).model_dump( + exclude={"hashedKey", "userId"} + ) + + except ApiKey.DoesNotExist: + raise HTTPException(status_code=404, detail="API Key not found") + + except Exception as error: + raise HTTPException(status_code=500, detail=str(error)) diff --git a/backend/src/xfd_django/xfd_api/api_methods/auth.py b/backend/src/xfd_django/xfd_api/api_methods/auth.py new file mode 100644 index 00000000..d8ea4c88 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/auth.py @@ -0,0 +1,52 @@ +"""Auth API logic.""" + +# Third-Party Libraries +from fastapi import HTTPException, status +from fastapi.responses import JSONResponse +from xfd_api.auth import get_jwt_from_code, process_user + + +async def handle_okta_callback(request): + """POST API LOGIC.""" + print(f"Request from /auth/okta-callback: {str(request)}") + body = await request.json() + print(f"Request json from callback: {str(request)}") + print(f"Request json from callback: {body}") + print(f"Body type: {type(body)}") + code = body.get("code") + print(f"Code: {code}") + if not code: + return HTTPException( + status_code=status.HTTP_400_BAD_REQUEST, + detail="Code not found in request body", + ) + jwt_data = await get_jwt_from_code(code) + print(f"JWT Data: {jwt_data}") + if jwt_data is None: + raise HTTPException( + status_code=status.HTTP_400_BAD_REQUEST, + detail="Invalid authorization code or failed to retrieve tokens", + ) + + decoded_token = jwt_data.get("decoded_token") + + resp = await process_user(decoded_token) + token = resp.get("token") + + # Create a JSONResponse object to return the response and set the cookie + response = JSONResponse( + content={"message": "User authenticated", "data": resp, "token": token} + ) + # response.body = resp + # response.body = resp + response.set_cookie(key="token", value=token) + + # Set the 'crossfeed-token' cookie + response.set_cookie( + key="crossfeed-token", + value=token, + # httponly=True, # This makes the cookie inaccessible to JavaScript + # secure=True, # Ensures the cookie is only sent over HTTPS + # samesite="Lax" # Restricts when cookies are sent + ) + return response diff --git a/backend/src/xfd_django/xfd_api/api_methods/cpe.py b/backend/src/xfd_django/xfd_api/api_methods/cpe.py new file mode 100644 index 00000000..0cdfb870 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/cpe.py @@ -0,0 +1,20 @@ +"""Cpe API.""" + +# Third-Party Libraries +from fastapi import HTTPException + +from ..models import Cpe + + +def get_cpes_by_id(cpe_id): + """ + Get Cpe by id. + + Returns: + object: a single Cpe object. + """ + try: + cpe = Cpe.objects.get(id=cpe_id) + return cpe + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) diff --git a/backend/src/xfd_django/xfd_api/api_methods/cve.py b/backend/src/xfd_django/xfd_api/api_methods/cve.py new file mode 100644 index 00000000..c4f7628a --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/cve.py @@ -0,0 +1,34 @@ +"""Cve API.""" + +# Third-Party Libraries +from fastapi import HTTPException + +from ..models import Cve + + +def get_cves_by_id(cve_id): + """ + Get Cve by id. + + Returns: + object: a single Cve object. + """ + try: + cve = Cve.objects.get(id=cve_id) + return cve + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +def get_cves_by_name(cve_name): + """ + Get Cve by name. + + Returns: + object: a single Cpe object. + """ + try: + cve = Cve.objects.get(name=cve_name) + return cve + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) diff --git a/backend/src/xfd_django/xfd_api/api_methods/domain.py b/backend/src/xfd_django/xfd_api/api_methods/domain.py new file mode 100644 index 00000000..ff8f5d51 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/domain.py @@ -0,0 +1,225 @@ +"""Domain API.""" + +# Standard Python Libraries +import csv +import io + +# Third-Party Libraries +from django.core.paginator import Paginator +from django.db.models import Prefetch, Q +from fastapi import HTTPException + +from ..auth import get_org_memberships, is_global_view_admin +from ..helpers.filter_helpers import apply_domain_filters, sort_direction +from ..helpers.s3_client import S3Client +from ..models import Domain, Service +from ..schema_models.domain import DomainSearch + + +def get_domain_by_id(domain_id: str): + """ + Get domain by id. + + Returns: + object: a single Domain object. + """ + try: + domain = ( + Domain.objects.select_related("organization") + .prefetch_related( + "vulnerabilities", + Prefetch( + "services", + queryset=Service.objects.only( + "id", "port", "service", "lastSeen", "products" + ), + ), + ) + .filter(id=domain_id) + .first() + ) + except Exception as e: + print(e) + raise HTTPException(status_code=404, detail="Domain not found.") + + try: + # The Domain model includes related fields (e.g., organization, vulnerabilities, services) + # which are Django ORM objects themselves and cannot be directly serialized into JSON. + # Serialize domain object and its relations + domain_data = { + "id": domain.id, + "name": domain.name, + "ip": domain.ip, + "createdAt": domain.createdAt, + "updatedAt": domain.updatedAt, + "country": domain.country, + "cloudHosted": domain.cloudHosted, + "organization": { + "id": domain.organization.id, + "name": domain.organization.name, + } + if domain.organization + else None, + "vulnerabilities": [ + { + "id": vulnerability.id, + "title": vulnerability.title, + "severity": vulnerability.severity, + "description": vulnerability.description, + "state": vulnerability.state, + "createdAt": vulnerability.createdAt, + } + for vulnerability in domain.vulnerabilities.all() + ], + "services": [ + { + "id": service.id, + "port": service.port, + "lastSeen": service.lastSeen, + "products": service.products, + } + for service in domain.services.all() + ], + "webpages": [ + { + "url": webpage.url, + "status": webpage.status, + "responseSize": webpage.responseSize, + } + for webpage in domain.webpages.all() + ], + } + return domain_data + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +def search_domains(domain_search: DomainSearch, current_user): + """List domains by search filter.""" + try: + domains = ( + Domain.objects.select_related("organization") + .prefetch_related("services", "vulnerabilities") + .order_by(sort_direction(domain_search.sort, domain_search.order)) + ) + + # Apply global user permission filters + if not is_global_view_admin(current_user): + orgs = get_org_memberships(current_user) + if not orgs: + # No organization memberships, return empty result + return [], 0 + domains = domains.filter(organization__id__in=orgs) + + # Apply the isFceb/fromCidr condition: + domains = domains.filter(Q(isFceb=True) | Q(isFceb=False, fromCidr=True)) + + # Apply filters if provided + if domain_search.filters: + domains = apply_domain_filters(domains, domain_search.filters) + + # Handle pagination + page_size = domain_search.pageSize + # If pageSize == -1, return all results without pagination + if page_size == -1: + result = list(domains) + return result, len(result) + + page_size = page_size or 15 # default page size if none provided + paginator = Paginator(domains, page_size) + page_obj = paginator.get_page(domain_search.page) + return list(page_obj), paginator.count + + except Domain.DoesNotExist as e: + raise HTTPException(status_code=404, detail=str(e)) + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +def export_domains(domain_search: DomainSearch, current_user): + """Export domains into a CSV and upload to S3.""" + try: + # Set pageSize to -1 to fetch all domains without pagination + domain_search.pageSize = -1 + + # Fetch domains using search_domains function + domains, count = search_domains(domain_search, current_user) + + # If no domains, generate empty CSV + if not domains: + csv_content = "name,ip,id,ports,products,createdAt,updatedAt,organization\n" + else: + # Process domains to flatten organization name, + # ports as string, products as unique string + processed_domains = [] + for domain in domains: + organization_name = ( + domain.organization.name if domain.organization else "" + ) + ports = ", ".join( + [str(service.port) for service in domain.services.all()] + ) + + # Collect unique products + products_set = set() + for service in domain.services.all(): + for product in service.products.all(): + if product.name: + product_entry = ( + f"{product.name} {product.version}" + if product.version + else product.name + ) + products_set.add(product_entry) + products = ", ".join(sorted(products_set)) + + processed_domains.append( + { + "name": domain.name, + "ip": domain.ip, + "id": str(domain.id), + "ports": ports, + "products": products, + "createdAt": domain.createdAt.isoformat() + if domain.createdAt + else "", + "updatedAt": domain.updatedAt.isoformat() + if domain.updatedAt + else "", + "organization": organization_name, + } + ) + + # Define CSV fields + csv_fields = [ + "name", + "ip", + "id", + "ports", + "products", + "createdAt", + "updatedAt", + "organization", + ] + + # Generate CSV content using csv module + output = io.StringIO() + writer = csv.DictWriter(output, fieldnames=csv_fields) + writer.writeheader() + for domain in processed_domains: + writer.writerow(domain) + csv_content = output.getvalue() + + # Initialize S3 client + client = S3Client() + + # Save CSV to S3 + url = client.save_csv(csv_content, "domains") + + return {"url": url} + + except Exception as e: + # Log the exception for debugging (optional) + print(f"Error exporting domains: {e}") + raise HTTPException(status_code=500, detail=str(e)) diff --git a/backend/src/xfd_django/xfd_api/api_methods/notification.py b/backend/src/xfd_django/xfd_api/api_methods/notification.py new file mode 100644 index 00000000..eec0265e --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/notification.py @@ -0,0 +1,100 @@ +"""/api-keys API logic.""" + +# Standard Python Libraries +import uuid + +# Third-Party Libraries +from fastapi import HTTPException, status +from xfd_api.models import Notification +from xfd_api.schema_models.notification import Notification as NotificationSchema + +from ..auth import get_org_memberships, is_global_view_admin + + +def post(data, current_user): + """POST LOGIC.""" + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user) and not get_org_memberships(current_user): + raise HTTPException(status_code=403, detail="Unauthorized") + data.extend(id=uuid.uuid4()) + # Create the record in the database + result = Notification.objects.create(data) + + # Return Serialized data from Schema + return NotificationSchema.from_orm(result).dict() + + +def delete(notification_id, current_user): + """DELETE LOGIC.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user) and not get_org_memberships( + current_user + ): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Validate that key_id is a valid UUID + uuid.UUID(notification_id) + result = Notification.objects.get(id=notification_id, userId=current_user) + + # Delete the Item + result.delete() + return {"status": "success", "message": "Item deleted successfully"} + except ValueError: + raise HTTPException( + status_code=status.HTTP_404_NOT_FOUND, detail="Invalid id value" + ) + except Notification.DoesNotExist: + raise HTTPException( + status_code=status.HTTP_404_NOT_FOUND, detail="Item not found" + ) + + +def get_all(): + """GET All LOGIC.""" + try: + # Get all objects from the database + result = Notification.objects.all() + + # Convert each object to Schema using from_orm + return [NotificationSchema.from_orm(item) for item in result] + + except Exception as error: + raise HTTPException(status_code=500, detail=str(error)) + + +def get_by_id(notification_id, current_user): + """GET by id.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user) and not get_org_memberships( + current_user + ): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Find the item by its id + result = Notification.objects.get(id=notification_id) + + # Convert the result to Schema using from_orm + return NotificationSchema.from_orm(result) + + except Notification.DoesNotExist: + raise HTTPException(status_code=404, detail="Item not found") + except Exception as error: + raise HTTPException(status_code=500, detail=str(error)) + + +# TODO: Adding placeholder until we determine if we still need this. +# def get_508_banner(current_user): +# """GET 508 banner.""" + +# # Remove logic if no longer needed or update to actual return object. +# try: +# # Get the 508 banner from the DB +# result = "" + +# # Format/Return Banner +# return result + +# except Exception as error: +# raise HTTPException(status_code=500, detail=str(error)) diff --git a/backend/src/xfd_django/xfd_api/api_methods/organization.py b/backend/src/xfd_django/xfd_api/api_methods/organization.py new file mode 100644 index 00000000..96a48675 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/organization.py @@ -0,0 +1,1090 @@ +"""API methods to support Organization endpoints.""" + +# Standard Python Libraries +import json +from typing import Any, Dict, List +import uuid + +# Third-Party Libraries +from django.db.models import Q +from fastapi import HTTPException + +from ..auth import ( + get_org_memberships, + is_global_view_admin, + is_global_write_admin, + is_org_admin, + is_regional_admin, + is_regional_admin_for_organization, + matches_user_region, +) +from ..helpers.regionStateMap import REGION_STATE_MAP +from ..models import Organization, OrganizationTag, Role, Scan, ScanTask, User +from ..schema_models import organization_schema +from ..tasks.es_client import ESClient + + +def is_valid_uuid(val: str) -> bool: + """Check if the given string is a valid UUID.""" + try: + uuid_obj = uuid.UUID(val, version=4) + except ValueError: + return False + return str(uuid_obj) == val + + +# GET: /organizations +def list_organizations(current_user): + """List organizations that the user is a member of or has access to.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user) and not get_org_memberships( + current_user + ): + return [] + + # Define filter for organizations based on admin status + org_filter = {} + if not is_global_view_admin(current_user): + org_filter["id__in"] = get_org_memberships(current_user) + org_filter["parent"] = None + + # Fetch organizations with related userRoles and tags + organizations = ( + Organization.objects.prefetch_related("tags", "userRoles") + .filter(**org_filter) + .order_by("name") + ) + + # Serialize organizations using list comprehension + organization_list = [ + { + "id": str(org.id), + "createdAt": org.createdAt.isoformat(), + "updatedAt": org.updatedAt.isoformat(), + "acronym": org.acronym, + "name": org.name, + "rootDomains": org.rootDomains, + "ipBlocks": org.ipBlocks, + "isPassive": org.isPassive, + "pendingDomains": org.pendingDomains, + "country": org.country, + "state": org.state, + "regionId": org.regionId, + "stateFips": org.stateFips, + "stateName": org.stateName, + "county": org.county, + "countyFips": org.countyFips, + "type": org.type, + "userRoles": [ + {"id": str(role.id), "role": role.role, "approved": role.approved} + for role in org.userRoles.all() + ], + "tags": [ + { + "id": str(tag.id), + "createdAt": tag.createdAt.isoformat(), + "updatedAt": tag.updatedAt.isoformat(), + "name": tag.name, + } + for tag in org.tags.all() + ], + } + for org in organizations + ] + + return organization_list + + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /organizations/tags +def get_tags(current_user): + """Fetch all possible organization tags.""" + try: + # Check if user is a global admin + if not is_global_view_admin(current_user): + return [] + + # Fetch organization tags + tags = OrganizationTag.objects.all().values("id", "name") + + # Return the list of tags + return list(tags) + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /organizations/{organization_id} +def get_organization(organization_id, current_user): + """Get information about a particular organization.""" + try: + # Authorization checks + if not ( + is_org_admin(current_user, organization_id) + or is_global_write_admin(current_user) + or is_regional_admin_for_organization(current_user, organization_id) + ): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Fetch organization with relations + organization = ( + Organization.objects.select_related("parent") + .prefetch_related("userRoles__user", "granularScans", "tags", "children") + .filter(id=organization_id) + .first() + ) + + if not organization: + raise HTTPException(status_code=404, detail="Organization not found") + + # Fetch scan tasks related to the organization, limited to 10 most recent + scan_tasks = ( + ScanTask.objects.filter(organizations__id=organization_id) + .select_related("scan") + .order_by("-createdAt")[:10] + ) + + if isinstance(organization.pendingDomains, str): + pending_domains = json.loads(organization.pendingDomains) + elif isinstance(organization.pendingDomains, list): + pending_domains = organization.pendingDomains + else: + pending_domains = [] + + # Serialize organization details along with scan tasks + org_data = { + "id": str(organization.id), + "createdAt": organization.createdAt.isoformat(), + "updatedAt": organization.updatedAt.isoformat(), + "acronym": organization.acronym, + "name": organization.name, + "rootDomains": organization.rootDomains, + "ipBlocks": organization.ipBlocks, + "isPassive": organization.isPassive, + "pendingDomains": pending_domains, + "country": organization.country, + "state": organization.state, + "regionId": organization.regionId, + "stateFips": organization.stateFips, + "stateName": organization.stateName, + "county": organization.county, + "countyFips": organization.countyFips, + "type": organization.type, + "createdBy": { + "id": str(organization.createdBy.id), + "firstName": organization.createdBy.firstName, + "lastName": organization.createdBy.lastName, + "email": organization.createdBy.email, + } + if organization.createdBy + else None, + "userRoles": [ + { + "id": str(role.id), + "role": role.role, + "approved": role.approved, + "user": { + "id": str(role.user.id), + "email": role.user.email, + "firstName": role.user.firstName, + "lastName": role.user.lastName, + "fullName": role.user.fullName, + }, + } + for role in organization.userRoles.all() + ], + "granularScans": [ + { + "id": str(scan.id), + "createdAt": scan.createdAt.isoformat(), + "updatedAt": scan.updatedAt.isoformat(), + "name": scan.name, + "arguments": scan.arguments, + "frequency": scan.frequency, + "lastRun": scan.lastRun.isoformat() if scan.lastRun else None, + "isGranular": scan.isGranular, + "isUserModifiable": scan.isUserModifiable, + "isSingleScan": scan.isSingleScan, + "manualRunPending": scan.manualRunPending, + } + for scan in organization.granularScans.all() + ], + "tags": [ + { + "id": str(tag.id), + "createdAt": tag.createdAt.isoformat(), + "updatedAt": tag.updatedAt.isoformat(), + "name": tag.name, + } + for tag in organization.tags.all() + ], + "parent": { + "id": str(organization.parent.id), + "name": organization.parent.name, + } + if organization.parent + else None, + "children": [ + {"id": str(child.id), "name": child.name} + for child in organization.children.all() + ], + "scanTasks": [ + { + "id": str(task.id), + "createdAt": task.createdAt.isoformat(), + "scan": {"id": str(task.scan.id), "name": task.scan.name} + if task.scan + else None, + } + for task in scan_tasks + ], + } + + return org_data + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + print(f"An error occurred: {e}") + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /organizations/state/{state} +def get_by_state(state, current_user): + """List organizations with specific state.""" + # Check if the current user is a regional admin + if not is_regional_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Fetch organizations based on the provided state + organizations = Organization.objects.filter(state=state).values( + "id", + "createdAt", + "updatedAt", + "acronym", + "name", + "rootDomains", + "ipBlocks", + "isPassive", + "pendingDomains", + "country", + "state", + "regionId", + "stateFips", + "stateName", + "county", + "countyFips", + "type", + ) + + if not organizations: + raise HTTPException( + status_code=404, detail="No organizations found for the given state" + ) + + # Return the serialized list of organizations + return list(organizations) + + +# GET: /organizations/regionId/{region_id} +def get_by_region(regionId, current_user): + """List organizations with specific regionId.""" + # Check if the current user is a regional admin + if not is_regional_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Fetch organizations based on the provided state + organizations = Organization.objects.filter(regionId=regionId).values( + "id", + "createdAt", + "updatedAt", + "acronym", + "name", + "rootDomains", + "ipBlocks", + "isPassive", + "pendingDomains", + "country", + "state", + "regionId", + "stateFips", + "stateName", + "county", + "countyFips", + "type", + ) + + if not organizations: + raise HTTPException( + status_code=404, detail="No organizations found for the given region" + ) + + # Return the serialized list of organizations + return list(organizations) + + +# GET: /regions +def get_all_regions(current_user): + """Get all regions.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized") + + # Fetch distinct regionId values + regions = ( + Organization.objects.exclude(regionId__isnull=True) + .values("regionId") + .distinct() + ) + + # Convert to a list and return the regions + return list(regions) + + except HTTPException as http_exc: + raise http_exc + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +def find_or_create_tags( + tags: List[organization_schema.TagSchema], +) -> List[OrganizationTag]: + """Find or create organization tags.""" + final_tags = [] + + for tag_data in tags: + tag_name = tag_data.name + + # Check if a tag with the given name exists + existing_tag = OrganizationTag.objects.filter(name=tag_name).first() + if existing_tag: + final_tags.append(existing_tag) + else: + # If not found, create a new tag + created_tag = OrganizationTag.objects.create(name=tag_name) + final_tags.append(created_tag) + + return final_tags + + +# POST: /organizations +def create_organization(organization_data, current_user): + """Create a new organization.""" + try: + # Check if the user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Prepare the organization data for creation + organization_data_dict = organization_data.dict( + exclude_unset=True, exclude={"tags", "parent"} + ) + organization_data_dict["createdBy"] = current_user + + # Set regionId based on stateName if available + organization_data_dict["regionId"] = REGION_STATE_MAP.get( + organization_data.stateName, None + ) + + # Create the organization object + organization = Organization.objects.create(**organization_data_dict) + + # Link parent organization if provided + if organization_data.parent: + organization.parent_id = organization_data.parent + organization.save() + + # Link tags (using the find_or_create_tags function) + if organization_data.tags: + tags = find_or_create_tags(organization_data.tags) + organization.tags.add(*tags) + + if isinstance(organization.pendingDomains, str): + pending_domains = json.loads(organization.pendingDomains) + elif isinstance(organization.pendingDomains, list): + pending_domains = organization.pendingDomains + else: + pending_domains = [] + + # Return the organization details in response + return { + "id": str(organization.id), + "createdAt": organization.createdAt.isoformat(), + "updatedAt": organization.updatedAt.isoformat(), + "acronym": organization.acronym, + "name": organization.name, + "rootDomains": organization.rootDomains, + "ipBlocks": organization.ipBlocks, + "isPassive": organization.isPassive, + "pendingDomains": pending_domains, + "country": organization.country, + "state": organization.state, + "regionId": organization.regionId, + "stateFips": organization.stateFips, + "stateName": organization.stateName, + "county": organization.county, + "countyFips": organization.countyFips, + "type": organization.type, + "createdBy": { + "id": str(current_user.id), # Simplify to just the user ID + }, + "tags": [ + { + "id": str(tag.id), + "createdAt": tag.createdAt.isoformat(), + "updatedAt": tag.updatedAt.isoformat(), + "name": tag.name, + } + for tag in organization.tags.all() + ], + "parent": { + "id": str(organization.parent.id), + "name": organization.parent.name, + } + if organization.parent + else {}, + } + + except HTTPException as http_exc: + raise http_exc + except Organization.DoesNotExist: + raise HTTPException(status_code=404, detail="Parent organization not found") + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /organizations_upsert +def upsert_organization(organization_data, current_user): + """Create a new organization or update it if it already exists.""" + try: + # Check if the user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException( + status_code=403, detail="Unauthorized access. View logs for details." + ) + + # Prepare the organization data for creation + organization_data_dict = organization_data.dict( + exclude_unset=True, exclude={"tags", "parent"} + ) + organization_data_dict["createdBy"] = current_user + + # Set regionId based on stateName if available + organization_data_dict["regionId"] = REGION_STATE_MAP.get( + organization_data.stateName, None + ) + + # Try to update or create a new organization + organization, created = Organization.objects.update_or_create( + acronym=organization_data.acronym, # Conflict target is the acronym + defaults=organization_data_dict, # Fields to update if organization exists + ) + + # Link parent organization if provided + if organization_data.parent: + organization.parent_id = organization_data.parent + organization.save() + + # Link tags (using the find_or_create_tags function) + if organization_data.tags: + tags = find_or_create_tags(organization_data.tags) + organization.tags.add(*tags) + + if isinstance(organization.pendingDomains, str): + pending_domains = json.loads(organization.pendingDomains) + elif isinstance(organization.pendingDomains, list): + pending_domains = organization.pendingDomains + else: + pending_domains = [] + + # Return the organization details in response + return { + "id": str(organization.id), + "createdAt": organization.createdAt.isoformat(), + "updatedAt": organization.updatedAt.isoformat(), + "acronym": organization.acronym, + "name": organization.name, + "rootDomains": organization.rootDomains, + "ipBlocks": organization.ipBlocks, + "isPassive": organization.isPassive, + "pendingDomains": pending_domains, + "country": organization.country, + "state": organization.state, + "regionId": organization.regionId, + "stateFips": organization.stateFips, + "stateName": organization.stateName, + "county": organization.county, + "countyFips": organization.countyFips, + "type": organization.type, + "createdBy": { + "id": str(organization.createdBy.id), + "firstName": organization.createdBy.firstName, + "lastName": organization.createdBy.lastName, + "email": organization.createdBy.email, + } + if organization.createdBy + else None, + "tags": [ + { + "id": str(tag.id), + "createdAt": tag.createdAt.isoformat(), + "updatedAt": tag.updatedAt.isoformat(), + "name": tag.name, + } + for tag in organization.tags.all() + ], + "parent": { + "id": str(organization.parent.id), + "name": organization.parent.name, + } + if organization.parent + else {}, + } + + except HTTPException as http_exc: + raise http_exc + except Organization.DoesNotExist: + raise HTTPException(status_code=404, detail="Parent organization not found") + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# PUT: /organizations/{organization_id} +def update_organization(organization_id: str, organization_data, current_user): + """Update an organization by its ID.""" + try: + # Validate the organization ID and ensure it's a valid UUID + if not organization_id or not is_valid_uuid(organization_id): + raise HTTPException(status_code=404, detail="Organization not found") + + # Ensure the current user has permission to update the organization + if not is_org_admin(current_user, organization_id): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Fetch the existing organization with userRoles and granularScans relations + try: + organization = Organization.objects.prefetch_related( + "userRoles", "granularScans" + ).get(id=organization_id) + except Organization.DoesNotExist: + raise HTTPException(status_code=404, detail="Organization not found") + + # Update only the fields that are provided + if organization_data.name is not None: + organization.name = organization_data.name + if organization_data.acronym is not None: + organization.acronym = organization_data.acronym + if organization_data.rootDomains is not None: + organization.rootDomains = organization_data.rootDomains + if organization_data.ipBlocks is not None: + organization.ipBlocks = organization_data.ipBlocks + if organization_data.stateName is not None: + organization.stateName = organization_data.stateName + if organization_data.state is not None: + organization.state = organization_data.state + if organization_data.isPassive is not None: + organization.isPassive = organization_data.isPassive + + # Handle parent organization if provided + if organization_data.parent: + organization.parent_id = organization_data.parent + + # Handle tags (using the find_or_create_tags function) + if organization_data.tags: + tags = find_or_create_tags(organization_data.tags) + organization.tags.set(tags) + + # Save the updated organization object + organization.save() + + if isinstance(organization.pendingDomains, str): + pending_domains = json.loads(organization.pendingDomains) + elif isinstance(organization.pendingDomains, list): + pending_domains = organization.pendingDomains + else: + pending_domains = [] + + # Return the updated organization details in response + return { + "id": str(organization.id), + "createdAt": organization.createdAt.isoformat(), + "updatedAt": organization.updatedAt.isoformat(), + "acronym": organization.acronym, + "name": organization.name, + "rootDomains": organization.rootDomains, + "ipBlocks": organization.ipBlocks, + "isPassive": organization.isPassive, + "pendingDomains": pending_domains, + "country": organization.country, + "state": organization.state, + "regionId": organization.regionId, + "stateFips": organization.stateFips, + "stateName": organization.stateName, + "county": organization.county, + "countyFips": organization.countyFips, + "type": organization.type, + "createdBy": { + "id": str(organization.createdBy.id), + "firstName": organization.createdBy.firstName, + "lastName": organization.createdBy.lastName, + "email": organization.createdBy.email, + } + if organization.createdBy + else None, + "tags": [ + { + "id": str(tag.id), + "createdAt": tag.createdAt.isoformat(), + "updatedAt": tag.updatedAt.isoformat(), + "name": tag.name, + } + for tag in organization.tags.all() + ], + "userRoles": [ + { + "id": str(role.id), + "role": role.role, + "approved": role.approved, + "user": { + "id": str(role.user.id), + "email": role.user.email, + "firstName": role.user.firstName, + "lastName": role.user.lastName, + "fullName": role.user.fullName, + }, + } + for role in organization.userRoles.all() + ], + "granularScans": [ + { + "id": str(scan.id), + "createdAt": scan.createdAt.isoformat(), + "updatedAt": scan.updatedAt.isoformat(), + "name": scan.name, + "arguments": scan.arguments, + "frequency": scan.frequency, + "lastRun": scan.lastRun.isoformat() if scan.lastRun else None, + "isGranular": scan.isGranular, + "isUserModifiable": scan.isUserModifiable, + "isSingleScan": scan.isSingleScan, + "manualRunPending": scan.manualRunPending, + } + for scan in organization.granularScans.all() + ], + } + + except HTTPException as http_exc: + raise http_exc + + except Organization.DoesNotExist: + raise HTTPException(status_code=404, detail="Organization not found") + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# DELETE: /organizations/{organization_id} +def delete_organization(org_id: str, current_user): + """Delete a particular organization.""" + try: + # Validate the organization ID format (UUID) + if not is_valid_uuid(org_id): + raise HTTPException(status_code=404, detail="Invalid organization ID.") + + # Check if the current user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Fetch the organization by ID to ensure it exists + try: + organization = Organization.objects.get(id=org_id) + except Organization.DoesNotExist: + raise HTTPException(status_code=404, detail="Organization not found.") + + # Delete the organization + organization.delete() + + # Return success response + return { + "status": "success", + "message": f"Organization {org_id} has been deleted successfully.", + } + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /v2/organizations/{organization_id}/users +def add_user_to_org_v2(organization_id: str, user_data, current_user): + """Add a user to a particular organization.""" + try: + # Check if the current user has regional admin permissions + if not is_regional_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Validate the organization ID format (UUID) + if not is_valid_uuid(organization_id): + raise HTTPException(status_code=404, detail="Invalid organization ID.") + + # Fetch the organization by ID + try: + organization = Organization.objects.get(id=organization_id) + except Organization.DoesNotExist: + raise HTTPException(status_code=404, detail="Organization not found.") + + # Validate the user ID in the body + user_id = user_data.userId + if not is_valid_uuid(user_id): + raise HTTPException(status_code=404, detail="Invalid user ID.") + + # Fetch the user by ID + try: + user = User.objects.get(id=user_id) + except User.DoesNotExist: + raise HTTPException(status_code=404, detail="User not found.") + + # Check if the current user's region matches the user's region + if not matches_user_region(current_user, user.regionId): + raise HTTPException( + status_code=403, detail="Unauthorized access due to region mismatch." + ) + + # Prepare the new role data + new_role_data = { + "user": user, + "organization": organization, + "approved": True, + "role": user_data.role, + "approvedBy": current_user, + "createdBy": current_user, + } + + # Create the new role object + new_role = Role.objects.create(**new_role_data) + + # Return the created role in the response + return { + "id": str(new_role.id), + "user": { + "id": str(new_role.user.id), + "email": new_role.user.email, + "firstName": new_role.user.firstName, + "lastName": new_role.user.lastName, + }, + "organization": { + "id": str(new_role.organization.id), + "name": new_role.organization.name, + }, + "role": new_role.role, + "approved": new_role.approved, + "approvedBy": { + "id": str(new_role.approvedBy.id), + "email": new_role.approvedBy.email, + }, + "createdBy": { + "id": str(new_role.createdBy.id), + "email": new_role.createdBy.email, + }, + } + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /organizations/{organization_id}/roles/{role_id}/approve +def approve_role(organization_id: str, role_id, current_user): + """Approve a role within an organization.""" + # Check if the current user is an org admin for the organization + if not is_org_admin(current_user, organization_id): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Validate that the role_id is a valid UUID + if not is_valid_uuid(role_id): + raise HTTPException(status_code=404, detail="Role not found") + + # Validate that the organization_id is a valid UUID + if not is_valid_uuid(organization_id): + raise HTTPException(status_code=404, detail="Organization not found") + + try: + # Fetch the role within the organization + role = Role.objects.filter(organization_id=organization_id, id=role_id).first() + + if role: + # Approve the role and set the approvedBy field to the current user + role.approved = True + role.approvedBy = current_user + role.save() + + return {"status": "success", "message": "Role approved successfully"} + + raise HTTPException(status_code=404, detail="Role not found") + + except HTTPException as http_exc: + raise http_exc + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /organizations/{organization_id}/roles/{role_id}/remove +def remove_role(organization_id: str, role_id, current_user): + """Remove a role within an organization.""" + # Check if the current user is an org admin for the organization + if not is_org_admin(current_user, organization_id): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Validate that the role_id is a valid UUID + if not is_valid_uuid(role_id): + raise HTTPException(status_code=404, detail="Role not found") + + # Validate that the organization_id is a valid UUID + if not is_valid_uuid(organization_id): + raise HTTPException(status_code=404, detail="Organization not found") + + try: + # Attempt to delete the role within the organization + result = Role.objects.filter( + organization_id=organization_id, id=role_id + ).delete() + + # If no role was deleted, raise a 404 + if result[0] == 0: + raise HTTPException(status_code=404, detail="Role not found") + + return {"status": "success", "message": "Role removed successfully"} + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /organizations/{organization_id}/granularScans/{scan_id}/update +def update_org_scan(organization_id: str, scan_id, scan_data, current_user): + """Enable or disable a scan for a particular organization.""" + # Validate organization_id is a valid UUID + if not is_valid_uuid(organization_id): + raise HTTPException(status_code=404, detail="Organization not found") + + # Check if the current user is either an org admin or a global write admin + if not ( + is_org_admin(current_user, organization_id) + or is_global_write_admin(current_user) + ): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Validate scan_id is a valid UUID + if not is_valid_uuid(scan_id): + raise HTTPException(status_code=404, detail="Scan not found") + + try: + # Fetch the scan that is granular and user-modifiable + scan = Scan.objects.filter( + id=scan_id, isGranular=True, isUserModifiable=True + ).first() + if not scan: + raise HTTPException( + status_code=404, detail="Scan not found or not modifiable" + ) + + # Fetch the organization and its related granular scans + organization = ( + Organization.objects.prefetch_related("granularScans") + .filter(id=organization_id) + .first() + ) + if not organization: + raise HTTPException(status_code=404, detail="Organization not found") + + # Check the "enabled" field in the request body + if not scan_data.enabled: + enabled = False + else: + enabled = scan_data.enabled + + # Add the scan to the organization's granular scans if enabled and not already present + if enabled: + if not organization.granularScans.filter(id=scan_id).exists(): + organization.granularScans.add(scan) + # Remove the scan from the organization's granular scans if disabled and present + else: + if organization.granularScans.filter(id=scan_id).exists(): + organization.granularScans.remove(scan) + + # Save the updated organization + organization.save() + + if isinstance(organization.pendingDomains, str): + pending_domains = json.loads(organization.pendingDomains) + elif isinstance(organization.pendingDomains, list): + pending_domains = organization.pendingDomains + else: + pending_domains = [] + + # Return a success response + return { + "id": str(organization.id), + "createdAt": organization.createdAt.isoformat(), + "updatedAt": organization.updatedAt.isoformat(), + "acronym": organization.acronym, + "name": organization.name, + "rootDomains": organization.rootDomains, + "ipBlocks": organization.ipBlocks, + "isPassive": organization.isPassive, + "pendingDomains": pending_domains, + "country": organization.country, + "state": organization.state, + "regionId": organization.regionId, + "stateFips": organization.stateFips, + "stateName": organization.stateName, + "county": organization.county, + "countyFips": organization.countyFips, + "type": organization.type, + "granularScans": [ + { + "id": str(scan.id), + "createdAt": scan.createdAt.isoformat(), + "updatedAt": scan.updatedAt.isoformat(), + "name": scan.name, + "arguments": scan.arguments, + "frequency": scan.frequency, + "lastRun": scan.lastRun.isoformat() if scan.lastRun else None, + "isGranular": scan.isGranular, + "isUserModifiable": scan.isUserModifiable, + "isSingleScan": scan.isSingleScan, + "manualRunPending": scan.manualRunPending, + } + for scan in organization.granularScans.all() + ], + } + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /v2/organizations +def list_organizations_v2(state, regionId, current_user): + """List organizations that the user is a member of or has access to.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user) and not get_org_memberships( + current_user + ): + return [] + + # Prepare the filter criteria + filter_criteria = Q() + + if not is_global_view_admin(current_user): + filter_criteria &= Q(id__in=get_org_memberships(current_user)) + + if state: + filter_criteria &= Q(state__in=state) + + if regionId: + filter_criteria &= Q(regionId__in=regionId) + + # Fetch organizations with related userRoles and tags + organizations = ( + Organization.objects.filter(filter_criteria) + if filter_criteria + else Organization.objects.all() + ) + + # Serialize organizations using list comprehension + organization_list = [ + { + "id": str(org.id), + "createdAt": org.createdAt.isoformat(), + "updatedAt": org.updatedAt.isoformat(), + "acronym": org.acronym, + "name": org.name, + "rootDomains": org.rootDomains, + "ipBlocks": org.ipBlocks, + "isPassive": org.isPassive, + "pendingDomains": org.pendingDomains, + "country": org.country, + "state": org.state, + "regionId": org.regionId, + "stateFips": org.stateFips, + "stateName": org.stateName, + "county": org.county, + "countyFips": org.countyFips, + "type": org.type, + } + for org in organizations + ] + + return organization_list + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /search/organizations +def search_organizations_task(search_body, current_user: User): + """Handle the logic for searching organizations in Elasticsearch.""" + try: + # Check if user is GlobalViewAdmin or has memberships + if not is_global_view_admin(current_user) and not get_org_memberships( + current_user + ): + return [] + + # Initialize Elasticsearch client + client = ESClient() + + # Construct the Elasticsearch query + + query_body: Dict[str, Any] = {"query": {"bool": {"must": [], "filter": []}}} + + # Use match_all if searchTerm is empty + if search_body.searchTerm.strip(): + query_body["query"]["bool"]["must"].append( + {"wildcard": {"name": f"*{search_body.searchTerm}*"}} + ) + else: + query_body["query"]["bool"]["must"].append({"match_all": {}}) + + # Add region filters if provided + if search_body.regions: + query_body["query"]["bool"]["filter"].append( + {"terms": {"regionId": search_body.regions}} + ) + + # Log the query for debugging + print(f"Query body: {query_body}") + + # Execute the search + search_results = client.search_organizations(query_body) + + return {"body": search_results} + + except Exception as e: + print(e) + raise HTTPException( + status_code=500, detail="An error occurred while searching organizations." + ) diff --git a/backend/src/xfd_django/xfd_api/api_methods/proxy.py b/backend/src/xfd_django/xfd_api/api_methods/proxy.py new file mode 100644 index 00000000..467924f2 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/proxy.py @@ -0,0 +1,55 @@ +"""API methods to support Proxy endpoints.""" + +# Standard Python Libraries +from typing import Optional + +# Third-Party Libraries +from fastapi import Request +from fastapi.responses import Response +import httpx + + +# Helper function to handle cookie manipulation +def manipulate_cookie(request: Request, cookie_name: str): + """Manipulate cookie.""" + cookies = request.cookies.get(cookie_name) + if cookies: + return {cookie_name: cookies} + return {} + + +# Helper function to proxy requests +async def proxy_request( + request: Request, + target_url: str, + path: Optional[str] = None, + cookie_name: Optional[str] = None, +): + """Proxy the request to the target URL.""" + headers = dict(request.headers) + + # Cookie manipulation for specific cookie names + if cookie_name: + cookies = manipulate_cookie(request, cookie_name) + if cookies: + headers["Cookie"] = f"{cookie_name}={cookies[cookie_name]}" + + # Make the request to the target URL + async with httpx.AsyncClient() as client: + proxy_response = await client.request( + method=request.method, + url=f"{target_url}/{path}", + headers=headers, + params=request.query_params, + content=await request.body(), + ) + + # Remove chunked encoding for API Gateway compatibility + proxy_response_headers = dict(proxy_response.headers) + proxy_response_headers.pop("transfer-encoding", None) + + return Response( + content=proxy_response.content, + status_code=proxy_response.status_code, + headers=proxy_response_headers, + ) diff --git a/backend/src/xfd_django/xfd_api/api_methods/saved_search.py b/backend/src/xfd_django/xfd_api/api_methods/saved_search.py new file mode 100644 index 00000000..caae0428 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/saved_search.py @@ -0,0 +1,246 @@ +"""Saved Search API.""" + + +# Standard Python Libraries +from datetime import datetime, timezone +import uuid + +# Third-Party Libraries +from django.http import JsonResponse +from fastapi import HTTPException + +from ..models import SavedSearch, User + + +def validate_name(value: str): + """Validate name.""" + name = value.strip() + if name == "": + raise HTTPException(status_code=400, detail="Name cannot be empty") + + all_saved_searches = SavedSearch.objects.all() + for search in all_saved_searches: + if search.name.strip() == name: + raise HTTPException(status_code=400, detail="Name already exists") + + +def create_saved_search(request): + """Create saved search.""" + validate_name(request.get("name")) + try: + # Process filter values when selecting organizations + def process_filter_values(values): + processed_values = [] + for value in values: + if isinstance(value, dict): + # Include only the required fields + processed_values.append( + { + "id": value.get("id"), + "name": value.get("name"), + "regionId": value.get("regionId"), + "rootDomains": value.get("rootDomains", []), + } + ) + else: + processed_values.append(value) + return processed_values + + filters = [ + { + "type": f.type, + "field": f.field, + "values": process_filter_values(f.values), + } + for f in request.get("filters", []) + ] + + search = SavedSearch.objects.create( + name=request.get("name"), + count=request.get("count", 0), # Default to 0 if count does not exist + sortDirection=request.get("sortDirection", ""), + sortField=request.get("sortField", ""), + searchTerm=request.get("searchTerm", ""), + searchPath=request.get("searchPath", ""), + filters=filters, + createdById=request.get("createdById"), + ) + + response = { + "id": str(search.id), + "createdAt": search.createdAt, + "updatedAt": search.updatedAt, + "name": search.name, + "searchTerm": search.searchTerm, + "sortDirection": search.sortDirection, + "sortField": search.sortField, + "count": search.count, + "filters": search.filters, + "searchPath": search.searchPath, + "createdById": search.createdById.id, + } + + search.save() + return response + + except User.DoesNotExist: + raise HTTPException(status_code=404, detail="User not found") + + except Exception as e: + raise HTTPException(status_code=404, detail=str(e)) + + +def list_saved_searches(user): + """List all saved searches.""" + try: + all_saved_searches = SavedSearch.objects.all() + saved_search_list = [] + for search in all_saved_searches: + if search.createdById != user: + continue + response = { + "id": str(search.id), + "createdAt": search.createdAt, + "updatedAt": search.updatedAt, + "name": search.name, + "searchTerm": search.searchTerm, + "sortDirection": search.sortDirection, + "sortField": search.sortField, + "count": search.count, + "filters": search.filters, + "searchPath": search.searchPath, + "createdById": search.createdById.id, + } + saved_search_list.append(response) + return { + "result": list(saved_search_list), + "count": len(list(saved_search_list)), + } + except User.DoesNotExist: + raise HTTPException(status_code=404, detail="User not found") + + except Exception as e: + raise HTTPException(status_code=404, detail=str(e)) + + +def get_saved_search(saved_search_id, user): + """Get saved search.""" + if user.userType == "globalView": + raise HTTPException( + status_code=404, detail="Global View users cannot retrieve saved searches." + ) + if not uuid.UUID(saved_search_id): + raise HTTPException({"error": "Invalid UUID"}) + + try: + saved_search = SavedSearch.objects.get(id=saved_search_id) + + if saved_search.createdById.id != user.id: + raise HTTPException(status_code=404, detail="Saved search not found") + + response = { + "id": str(saved_search.id), + "createdAt": saved_search.createdAt, + "updatedAt": saved_search.updatedAt, + "name": saved_search.name, + "searchTerm": saved_search.searchTerm, + "sortDirection": saved_search.sortDirection, + "sortField": saved_search.sortField, + "count": saved_search.count, + "filters": saved_search.filters, + "searchPath": saved_search.searchPath, + "createdById": saved_search.createdById.id, + } + return response + except SavedSearch.DoesNotExist as dne: + raise HTTPException(status_code=404, detail=str(dne)) + except User.DoesNotExist: + raise HTTPException(status_code=404, detail="User not found") + except Exception as e: + raise HTTPException(status_code=404, detail=str(e)) + + +def update_saved_search(request, user): + """Update saved search.""" + if not uuid.UUID(request["saved_search_id"]): + raise HTTPException(status_code=404, detail={"error": "Invalid UUID"}) + try: + # Process filter values when selecting organizations + def process_filter_values(values): + processed_values = [] + for value in values: + if isinstance(value, dict): + # Include only the required fields + processed_values.append( + { + "id": value.get("id"), + "name": value.get("name"), + "regionId": value.get("regionId"), + "rootDomains": value.get("rootDomains", []), + } + ) + else: + processed_values.append(value) + return processed_values + + filters = [ + { + "type": f.type, + "field": f.field, + "values": process_filter_values(f.values), + } + for f in request.get("filters", []) + ] + + saved_search = SavedSearch.objects.get(id=request["saved_search_id"]) + if saved_search.createdById.id != user.id: + raise HTTPException(status_code=404, detail="Saved search not found") + + name = request["name"].strip() + if name == "": + raise HTTPException(status_code=400, detail="Name cannot be empty") + + saved_search.name = request["name"] + saved_search.updatedAt = datetime.now(timezone.utc) + saved_search.searchTerm = request["searchTerm"] + saved_search.save() + response = { + "name": saved_search.name, + "searchTerm": saved_search.searchTerm, + "sortDirection": saved_search.sortDirection, + "sortField": saved_search.sortField, + "count": saved_search.count, + "filters": filters, + "searchPath": saved_search.searchPath, + } + except User.DoesNotExist: + raise HTTPException(status_code=404, detail="User not found") + except SavedSearch.DoesNotExist as dne: + raise HTTPException(status_code=404, detail=str(dne)) + except Exception as e: + raise HTTPException(status_code=404, detail=str(e)) + + return response + + +def delete_saved_search(saved_search_id, user): + """Delete saved search by id.""" + if not uuid.UUID(saved_search_id): + raise HTTPException(status_code=404, detail={"error": "Invalid UUID"}) + try: + search = SavedSearch.objects.get(id=saved_search_id) + if search.createdById.id != user.id: + raise HTTPException(status_code=404, detail="Saved search not found") + search.delete() + return JsonResponse( + { + "status": "success", + "message": f"Saved search id:{saved_search_id} deleted.", + } + ) + except User.DoesNotExist: + raise HTTPException(status_code=404, detail="User not found") + except SavedSearch.DoesNotExist as dne: + raise HTTPException(status_code=404, detail=str(dne)) + except Exception as e: + raise HTTPException(status_code=404, detail=str(e)) diff --git a/backend/src/xfd_django/xfd_api/api_methods/scan.py b/backend/src/xfd_django/xfd_api/api_methods/scan.py new file mode 100644 index 00000000..5241f824 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/scan.py @@ -0,0 +1,335 @@ +"""API methods to support Scan endpoints.""" + +# Standard Python Libraries +import os + +# Third-Party Libraries +from fastapi import HTTPException + +from ..auth import is_global_view_admin, is_global_write_admin +from ..models import Organization, OrganizationTag, Scan +from ..schema_models.scan import SCAN_SCHEMA, NewScan +from ..tasks.lambda_client import LambdaClient + + +# GET: /scans +def list_scans(current_user): + """List scans.""" + try: + # Check if the user is a GlobalViewAdmin + if not is_global_view_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Fetch scans and prefetch related tags + scans = Scan.objects.prefetch_related("tags").all() + + # Fetch all organizations + organizations = Organization.objects.values("id", "name") + + # Convert to list of dicts with related tags + scan_list = [] + for scan in scans: + scan_data = { + "id": scan.id, + "createdAt": scan.createdAt, + "updatedAt": scan.updatedAt, + "name": scan.name, + "arguments": scan.arguments, + "frequency": scan.frequency, + "lastRun": scan.lastRun, + "isGranular": scan.isGranular, + "isUserModifiable": scan.isUserModifiable, + "isSingleScan": scan.isSingleScan, + "manualRunPending": scan.manualRunPending, + "tags": [ + { + "id": tag.id, + "createdAt": tag.createdAt, + "updatedAt": tag.updatedAt, + "name": tag.name, + } + for tag in scan.tags.all() + ], + } + scan_list.append(scan_data) + + # Return response with scans, schema, and organizations + response = { + "scans": scan_list, + "schema": SCAN_SCHEMA, + "organizations": list(organizations), + } + + return response + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /granularScans +def list_granular_scans(current_user): + """List granular scans.""" + try: + # Check if the user is a GlobalViewAdmin + if not is_global_view_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Fetch scans that match the criteria (isGranular, isUserModifiable, isSingleScan) + scans = Scan.objects.filter( + isGranular=True, isUserModifiable=True, isSingleScan=False + ).values("id", "name", "isUserModifiable") + + response = {"scans": list(scans), "schema": SCAN_SCHEMA} + + return response + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /scans +def create_scan(scan_data: NewScan, current_user): + """Create a new scan.""" + try: + # Check if the user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Check if scan name is valid + if scan_data.name not in SCAN_SCHEMA: + raise HTTPException(status_code=400, detail="Invalid scan name") + + # Create the scan instance + scan_data_dict = scan_data.dict( + exclude_unset=True, exclude={"organizations", "tags"} + ) + scan_data_dict["createdBy"] = current_user + + # Create the scan object + scan = Scan.objects.create(**scan_data_dict) + + # Link organizations + if scan_data.organizations: + scan.organizations.set(scan_data.organizations) + + # Link tags + if scan_data.tags: + tag_ids = [tag.id for tag in scan_data.tags] + scan.tags.set(tag_ids) + + return { + "id": scan.id, + "name": scan.name, + "arguments": scan.arguments, + "frequency": scan.frequency, + "isGranular": scan.isGranular, + "isUserModifiable": scan.isUserModifiable, + "isSingleScan": scan.isSingleScan, + "createdBy": {"id": current_user.id, "name": current_user.fullName}, + "tags": list(scan.tags.values("id")), + "organizations": list(scan.organizations.values("id")), + } + + except HTTPException as http_exc: + raise http_exc + + except Organization.DoesNotExist: + raise HTTPException(status_code=404, detail="Organization not found") + except OrganizationTag.DoesNotExist: + raise HTTPException(status_code=404, detail="Tag not found") + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /scans/{scan_id} +def get_scan(scan_id: str, current_user): + """Get a scan by its ID.""" + # Check if the user is a GlobalViewAdmin + if not is_global_view_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + try: + # Fetch the scan with its related organizations and tags + scan = Scan.objects.prefetch_related("organizations", "tags").get(id=scan_id) + + # Fetch all organizations + all_organizations = Organization.objects.values("id", "name") + except Scan.DoesNotExist: + raise HTTPException(status_code=404, detail="Scan not found") + + # Get related organizations with all fields and remove unwanted fields + related_organizations = list(scan.organizations.values()) + for org in related_organizations: + org.pop("parent_id", None) + org.pop("createdBy_id", None) + + # Serialize scan data + scan_data = { + "id": str(scan.id), + "createdAt": scan.createdAt, + "updatedAt": scan.updatedAt, + "name": scan.name, + "arguments": scan.arguments, + "lastRun": scan.lastRun, + "frequency": scan.frequency, + "isGranular": scan.isGranular, + "isUserModifiable": scan.isUserModifiable, + "isSingleScan": scan.isSingleScan, + "manualRunPending": scan.manualRunPending, + "organizations": related_organizations, + "tags": list(scan.tags.values()), + } + + # Return the scan details along with its related data + return { + "scan": scan_data, + "schema": dict(SCAN_SCHEMA[scan.name]), + "organizations": list(all_organizations), + } + + +# PUT: /scans/{scan_id} +def update_scan(scan_id: str, scan_data: NewScan, current_user): + """Update a scan by its ID.""" + try: + # Check if the user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Validate scan ID + try: + scan = Scan.objects.get(id=scan_id) + except Scan.DoesNotExist: + raise HTTPException(status_code=404, detail="Scan not found") + + # Only update the fields that are provided in the request (non-null) + if scan_data.name is not None: + scan.name = scan_data.name + if scan_data.arguments is not None: + scan.arguments = scan_data.arguments + if scan_data.frequency is not None: + scan.frequency = scan_data.frequency + if scan_data.isGranular is not None: + scan.isGranular = scan_data.isGranular + if scan_data.isUserModifiable is not None: + scan.isUserModifiable = scan_data.isUserModifiable + if scan_data.isSingleScan is not None: + scan.isSingleScan = scan_data.isSingleScan + + # Update ManyToMany relationships + if scan_data.organizations: + scan.organizations.set(scan_data.organizations) + + if scan_data.tags: + tag_ids = [tag.id for tag in scan_data.tags] + scan.tags.set(tag_ids) + + # Save the updated scan + scan.save() + + return { + "id": scan.id, + "name": scan.name, + "arguments": scan.arguments, + "frequency": scan.frequency, + "isGranular": scan.isGranular, + "isUserModifiable": scan.isUserModifiable, + "isSingleScan": scan.isSingleScan, + "createdBy": {"id": current_user.id, "name": current_user.fullName}, + "tags": list(scan.tags.values("id")), + "organizations": list(scan.organizations.values("id")), + } + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# DELETE: /scans/{scan_id} +def delete_scan(scan_id: str, current_user): + """Delete a scan by its ID.""" + try: + # Check if the user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Validate scan ID + try: + scan = Scan.objects.get(id=scan_id) + except Scan.DoesNotExist: + raise HTTPException(status_code=404, detail="Scan not found") + + scan.delete() + + return {"status": "success", "message": f"Scan {scan_id} deleted successfully."} + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /scans/{scan_id}/run +def run_scan(scan_id: str, current_user): + """Mark a scan as manually triggered to run.""" + try: + # Check if the user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Validate the scan ID and check if it exists + try: + scan = Scan.objects.get(id=scan_id) + except Scan.DoesNotExist: + raise HTTPException(status_code=404, detail="Scan not found") + + scan.manualRunPending = True + scan.save() + return { + "status": "success", + "message": f"Scan {scan_id} set to manualRunPending.", + } + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /scheduler/invoke +async def invoke_scheduler(current_user): + """Manually invoke the scan scheduler.""" + try: + # TODO: RUN THIS ON A SCHEDULE LOCALLY LIKE DEFINED IN APP.TS + # Check if the user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Initialize the Lambda client + lambda_client = LambdaClient() + + # Form the lambda function name using environment variable + lambda_function_name = f"{os.getenv('SLS_LAMBDA_PREFIX')}-scheduler" + print(lambda_function_name) + + # Run the Lambda command + response = lambda_client.run_command(name=lambda_function_name) + + return response + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) diff --git a/backend/src/xfd_django/xfd_api/api_methods/scan_tasks.py b/backend/src/xfd_django/xfd_api/api_methods/scan_tasks.py new file mode 100644 index 00000000..9a251139 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/scan_tasks.py @@ -0,0 +1,228 @@ +"""API methods to support scan task endpoints.""" + +# Standard Python Libraries +from datetime import datetime, timezone +from typing import Optional + +# Third-Party Libraries +from fastapi import HTTPException, Response, status + +from ..auth import get_tag_organizations, is_global_view_admin, is_global_write_admin +from ..models import ScanTask +from ..schema_models.scan_tasks import ScanTaskSearch +from ..tasks.ecs_client import ECSClient + +PAGE_SIZE = 15 + + +# POST: /scan-tasks/search +def list_scan_tasks(search_data: Optional[ScanTaskSearch], current_user): + """List scans tasks based on search filter.""" + try: + # Check if the user is a GlobalViewAdmin + if not is_global_view_admin(current_user): + raise HTTPException( + status_code=403, detail="Unauthorized access. View logs for details." + ) + + # Ensure that search_data is not None, and set default values if it is + if search_data is None: + search_data = ScanTaskSearch( + pageSize=PAGE_SIZE, page=1, sort="createdAt", order="DESC", filters={} + ) + + # Validate and parse the request body + pageSize = search_data.pageSize or PAGE_SIZE + page = search_data.page or 1 + + # Determine the correct ordering based on the 'order' field + ordering_field = ( + f"-{search_data.sort}" + if search_data.order and search_data.order.upper() == "DESC" + else search_data.sort + ) + + # Construct query based on filters + qs = ( + ScanTask.objects.select_related("scan") + .prefetch_related("organizations") + .order_by(ordering_field) + ) + + # Apply filters to queryset safely + filters = search_data.filters + if filters: + if filters.get("name"): + qs = qs.filter(scan__name__icontains=filters["name"]) + if filters.get("status"): + qs = qs.filter(status__icontains=filters["status"]) + if filters.get("organization"): + qs = qs.filter(organizations__id=filters["organization"]) + if filters.get("tag"): + orgs = get_tag_organizations(current_user, filters["tag"]) + qs = qs.filter(organizations__id__in=orgs) + + # Paginate results + if pageSize != -1: + qs = qs[(page - 1) * pageSize : page * pageSize] + + # Convert queryset into a serialized response + results = [] + for task in qs: + # Ensure scan is not None before accessing its properties + if task.scan is None: + print(f"Warning: ScanTask {task.id} has no scan associated.") + scan_data = None + else: + scan_data = { + "id": str(task.scan.id), + "createdAt": task.scan.createdAt.isoformat(), + "updatedAt": task.scan.updatedAt.isoformat(), + "name": task.scan.name, + "arguments": task.scan.arguments, + "frequency": task.scan.frequency, + "lastRun": task.scan.lastRun.isoformat() + if task.scan.lastRun + else None, + "isGranular": task.scan.isGranular, + "isUserModifiable": task.scan.isUserModifiable, + "isSingleScan": task.scan.isSingleScan, + "manualRunPending": task.scan.manualRunPending, + } + results.append( + { + "id": str(task.id), + "createdAt": task.createdAt.isoformat(), + "updatedAt": task.updatedAt.isoformat(), + "status": task.status, + "type": task.type, + "fargateTaskArn": task.fargateTaskArn, + "input": ( + task.input.replace("None", "null") + .replace("True", "true") + .replace("False", "false") + .replace("'", '"') + if task.input is not None + else "null" # Default to "null" if task.input is None + ), + "output": task.output, + "requestedAt": task.requestedAt.isoformat() + if task.requestedAt + else None, + "startedAt": task.startedAt.isoformat() if task.startedAt else None, + "finishedAt": task.finishedAt.isoformat() + if task.finishedAt + else None, + "queuedAt": task.queuedAt.isoformat() if task.queuedAt else None, + "scan": scan_data, + "organizations": [ + { + "id": str(org.id), + "createdAt": org.createdAt.isoformat(), + "updatedAt": org.updatedAt.isoformat(), + "acronym": org.acronym, + "name": org.name, + "rootDomains": org.rootDomains, + "ipBlocks": org.ipBlocks, + "isPassive": org.isPassive, + "pendingDomains": org.pendingDomains, + "country": org.country, + "state": org.state, + "regionId": org.regionId, + "stateFips": org.stateFips, + "stateName": org.stateName, + "county": org.county, + "countyFips": org.countyFips, + "type": org.type, + } + for org in task.organizations.all() + ], + } + ) + + count = qs.count() + response = {"result": results, "count": count} + return response + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /scan-tasks/{scan_task_id}/kill +def kill_scan_task(scan_task_id, current_user): + """Kill a particular scan task.""" + try: + # Check if the user is a GlobalWriteAdmin + if not is_global_write_admin(current_user): + raise HTTPException( + status_code=403, detail="Unauthorized access. View logs for details." + ) + # Check if scan_task_id is valid + try: + scan_task = ScanTask.objects.get(id=scan_task_id) + except ScanTask.DoesNotExist: + raise HTTPException(status_code=404, detail="ScanTask not found.") + + # Check if scan task is already finished or failed + if scan_task.status in ["failed", "finished"]: + raise HTTPException( + status_code=400, detail="ScanTask has already finished." + ) + + # Update scan task status to 'failed' + utc_now = datetime.now(timezone.utc) + scan_task.status = "failed" + scan_task.finishedAt = utc_now + scan_task.output = f"Manually stopped at {utc_now.isoformat()}" + scan_task.save() + + return {"statusCode": 200, "message": "ScanTask successfully marked as failed."} + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /scan-tasks/{scan_task_id}/logs +def get_scan_task_logs(scan_task_id, current_user): + """Get scan task logs.""" + try: + # Check if the user is a GlobalViewAdmin + if not is_global_view_admin(current_user): + raise HTTPException( + status_code=403, detail="Unauthorized access. View logs for details." + ) + + # Check if scan_task_id is valid + try: + scan_task = ScanTask.objects.get(id=scan_task_id) + except ScanTask.DoesNotExist: + raise HTTPException(status_code=404, detail="ScanTask not found.") + + # Ensure fargateTaskArn exists + if not scan_task.fargateTaskArn: + raise HTTPException( + status_code=404, detail="No logs available for this ScanTask." + ) + + # Retrieve logs from the ECSClient + ecs_client = ECSClient() + logs = ecs_client.get_logs(scan_task.fargateTaskArn) + + return Response( + content=logs or "", media_type="text/plain", status_code=status.HTTP_200_OK + ) + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) diff --git a/backend/src/xfd_django/xfd_api/api_methods/search.py b/backend/src/xfd_django/xfd_api/api_methods/search.py new file mode 100644 index 00000000..94b3e460 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/search.py @@ -0,0 +1,210 @@ +"""Search methods.""" +# Standard Python Libraries +import csv +import io +from typing import Any, Dict, List + +# Third-Party Libraries +from fastapi import HTTPException +from xfd_api.auth import ( + get_org_memberships, + get_tag_organizations, + is_global_view_admin, +) +from xfd_api.helpers.elastic_search import build_request +from xfd_api.helpers.s3_client import S3Client +from xfd_api.tasks.es_client import ESClient + +from ..schema_models.search import DomainSearchBody + + +async def get_options(search_body, user) -> Dict[str, Any]: + """Get Elastic Search options.""" + if search_body.organization_id and ( + search_body.organization_id in get_org_memberships(user) + or is_global_view_admin(user) + ): + return { + "organization_ids": [search_body.organization_id], + "match_all_organizations": False, + } + if search_body.tag_id: + return { + "organization_ids": get_tag_organizations(user, search_body.tag_id), + "match_all_organizations": False, + } + + return { + "organization_ids": get_org_memberships(user), + "match_all_organizations": is_global_view_admin(user), + } + + +async def fetch_all_results( + search_body: DomainSearchBody, + options: Dict[str, Any], + client: ESClient, +) -> List[Dict[str, Any]]: + """Fetch all results from Elasticsearch.""" + results: List[Any] = [] + current = 1 + RESULTS_PER_PAGE = 1000 + + while True: + request = build_request( + DomainSearchBody( + **{ + "current": current, + "resultsPerPage": RESULTS_PER_PAGE, + "filters": search_body.filters, + "searchTerm": search_body.searchTerm, + "sortDirection": search_body.sortDirection, + "sortField": search_body.sortField, + } + ), + options, + ) + try: + response = client.search_domains(request) + except Exception as e: + print(f"Elasticsearch error: {e}") + raise HTTPException(status_code=500, detail="Error querying Elasticsearch.") + + hits = response.get("hits", {}).get("hits", []) + if not hits: + break + + results.extend(hit["_source"] for hit in hits) + current += 1 + + return results + + +def process_results(results: List[Dict[str, Any]]) -> List[Dict[str, Any]]: + """Process Elasticsearch results into the desired format.""" + processed_results = [] + for res in results: + res["organization"] = ( + res["organization"]["name"] if "organization" in res else None + ) + res["ports"] = ", ".join( + str(service["port"]) for service in res.get("services", []) + ) + + products = {} + for service in res.get("services", []): + for product in service.get("products", []): + if "name" in product: + product_name = product["name"].lower() + product_version = product.get("version", "") + products[ + product_name + ] = f"{product['name']} {product_version}".strip() + + res["products"] = ", ".join(products.values()) + processed_results.append(res) + + return processed_results + + +def generate_csv(results: List[Dict[str, Any]], fields: List[str]) -> str: + """Generate a CSV from the processed results.""" + output = io.StringIO() + writer = csv.DictWriter(output, fieldnames=fields) + writer.writeheader() + writer.writerows(results) + return output.getvalue() + + +# POST: /search +async def search_post(search_body: DomainSearchBody, current_user): + """Handle Elastic Search request.""" + options = await get_options(search_body, current_user) + es_query = build_request(search_body, options) + + client = ESClient() + + # Perform search in Elasticsearch + response = client.search_domains(body=es_query) + + # Format response to match the required structure + result = { + "took": response["took"], + "timed_out": response["timed_out"], + "_shards": response["_shards"], + "hits": { + "total": response["hits"]["total"], + "max_score": response["hits"].get("max_score", None), + "hits": [ + { + "_index": hit["_index"], + "_type": hit["_type"], + "_id": hit["_id"], + "_score": hit["_score"], + "_source": hit["_source"], + "sort": hit.get("sort", []), + "inner_hits": hit.get("inner_hits", {}), + } + for hit in response["hits"]["hits"] + ], + }, + } + + return result + + +# POST: /search/export +async def search_export(search_body: DomainSearchBody, current_user) -> Dict[str, Any]: + """Export the search results into a CSV and upload to S3.""" + # Get Elasticsearch options + options = await get_options(search_body, current_user) + + # Fetch results from Elasticsearch + client = ESClient() + results = await fetch_all_results(search_body, options, client) + + # Process results for CSV + processed_results = process_results(results) + + # Define CSV fields + csv_fields = [ + "name", + "ip", + "id", + "ports", + "products", + "createdAt", + "updatedAt", + "organization", + "screenshot", + "censysCertificatesResults", + "ipOnly", + "vulnerabilities", + "cloudHosted", + "reverseName", + "subdomainSource", + "country", + "ssl", + "parent_join", + "discoveredBy", + "fromCidr", + "fromRootDomain", + "trustymailResults", + "asn", + "syncedAt", + "isFceb", + "services", + "suggest", + ] + # Generate CSV content + csv_content = generate_csv(processed_results, csv_fields) + + # Upload CSV to S3 + s3_client = S3Client() + try: + csv_url = s3_client.save_csv(csv_content, "domains") + except Exception as e: + print(f"S3 upload error: {e}") + raise HTTPException(status_code=500, detail="Error uploading CSV to S3.") + + return {"url": csv_url} diff --git a/backend/src/xfd_django/xfd_api/api_methods/stats.py b/backend/src/xfd_django/xfd_api/api_methods/stats.py new file mode 100644 index 00000000..3828a5a6 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/stats.py @@ -0,0 +1,401 @@ +"""Stats methods.""" +# Standard Python Libraries +import json + +# Third-Party Libraries +from fastapi import HTTPException, Request +from redis import asyncio as aioredis +from xfd_api.auth import get_stats_org_ids +from xfd_api.helpers.stats_helpers import ( + get_stats_count_from_cache, + get_total_count, + safe_redis_mget, +) + + +# GET: /stats +async def get_stats(filter_data, current_user, redis_client, request: Request): + """Compile all stats.""" + + async def safe_fetch(fetch_fn, *args, **kwargs): + """Safely fetch stats, returning an empty list on failure.""" + try: + return await fetch_fn(*args, **kwargs) + except Exception as e: + print(f"Error fetching stats with {fetch_fn.__name__}: {e}") + return [] + + filtered_org_ids = get_stats_org_ids(current_user, filter_data) + + # Ensure organization_ids is not empty + if not filtered_org_ids: + raise HTTPException( + status_code=404, + detail="No organizations found for the user with the specified filters.", + ) + + # Fetch + try: + return { + "result": { + "domains": { + "services": await safe_fetch( + get_user_services_count, + filter_data, + current_user, + redis_client, + filtered_org_ids=filtered_org_ids, + ), + "ports": await safe_fetch( + get_user_ports_count, + filter_data, + current_user, + redis_client, + filtered_org_ids=filtered_org_ids, + ), + "numVulnerabilities": await safe_fetch( + get_num_vulns, + filter_data, + current_user, + redis_client, + filtered_org_ids=filtered_org_ids, + ), + "total": await safe_fetch(get_total_count, filtered_org_ids), + }, + "vulnerabilities": { + "severity": await safe_fetch( + get_severity_stats, + filter_data, + current_user, + redis_client, + filtered_org_ids=filtered_org_ids, + ), + "latestVulnerabilities": await safe_fetch( + stats_latest_vulns, + filter_data, + current_user, + redis_client, + request, + filtered_org_ids=filtered_org_ids, + ), + "mostCommonVulnerabilities": await safe_fetch( + stats_most_common_vulns, + filter_data, + current_user, + redis_client, + request, + filtered_org_ids=filtered_org_ids, + ), + "byOrg": await safe_fetch( + get_by_org_stats, + filter_data, + current_user, + redis_client, + filtered_org_ids=filtered_org_ids, + ), + }, + } + } + except Exception as e: + raise HTTPException( + status_code=500, detail=f"An unexpected error occurred: {e}" + ) + + +async def get_user_services_count( + filter_data, current_user, redis_client, filtered_org_ids=None +): + """Retrieve services from Elasticache filtered by user.""" + try: + if not filtered_org_ids: + filtered_org_ids = get_stats_org_ids(current_user, filter_data) + + # Ensure organization_ids is not empty + if not filtered_org_ids: + raise HTTPException( + status_code=404, + detail="No organizations found for the user with the specified filters.", + ) + + services_data = await get_stats_count_from_cache( + redis_client, "services_stats", filtered_org_ids + ) + + if not services_data: + raise HTTPException( + status_code=404, + detail="No service data found for the user's organizations in cache.", + ) + + return services_data + + except aioredis.RedisError as redis_error: + raise HTTPException(status_code=500, detail=f"Redis error: {redis_error}") + + except Exception as e: + raise HTTPException( + status_code=500, detail=f"An unexpected error occurred: {e}" + ) + + +async def get_user_ports_count( + filter_data, current_user, redis_client, filtered_org_ids=None +): + """Retrieve ports from Elasticache filtered by user.""" + try: + if not filtered_org_ids: + filtered_org_ids = get_stats_org_ids(current_user, filter_data) + + # Ensure organization_ids is not empty + if not filtered_org_ids: + raise HTTPException( + status_code=404, + detail="No organizations found for the user with the specified filters.", + ) + + ports_data = await get_stats_count_from_cache( + redis_client, "ports_stats", filtered_org_ids + ) + + if not ports_data: + raise HTTPException( + status_code=404, + detail="No port data found for the user's organizations in cache.", + ) + + return ports_data + + except aioredis.RedisError as redis_error: + raise HTTPException(status_code=500, detail=f"Redis error: {redis_error}") + + except Exception as e: + raise HTTPException( + status_code=500, detail=f"An unexpected error occurred: {e}" + ) + + +async def get_num_vulns(filter_data, current_user, redis_client, filtered_org_ids=None): + """Retrieve ports from Elasticache filtered by user.""" + try: + if not filtered_org_ids: + filtered_org_ids = get_stats_org_ids(current_user, filter_data) + + # Ensure organization_ids is not empty + if not filtered_org_ids: + raise HTTPException( + status_code=404, + detail="No organizations found for the user with the specified filters.", + ) + + num_vulns_data = await get_stats_count_from_cache( + redis_client, "vulnerabilities_stats", filtered_org_ids + ) + + if not num_vulns_data: + raise HTTPException( + status_code=404, + detail="No port data found for the user's organizations in cache.", + ) + + return num_vulns_data + + except aioredis.RedisError as redis_error: + raise HTTPException(status_code=500, detail=f"Redis error: {redis_error}") + + except Exception as e: + raise HTTPException( + status_code=500, detail=f"An unexpected error occurred: {e}" + ) + + +async def get_severity_stats( + filter_data, current_user, redis_client, filtered_org_ids=None +): + """Retrieve ports from Elasticache filtered by user.""" + try: + if not filtered_org_ids: + filtered_org_ids = get_stats_org_ids(current_user, filter_data) + + # Ensure organization_ids is not empty + if not filtered_org_ids: + raise HTTPException( + status_code=404, + detail="No organizations found for the user with the specified filters.", + ) + + severity_data = await get_stats_count_from_cache( + redis_client, "severity_stats", filtered_org_ids + ) + + if not severity_data: + raise HTTPException( + status_code=404, + detail="No severity data found for the user's organizations in cache.", + ) + + return severity_data + + except aioredis.RedisError as redis_error: + raise HTTPException(status_code=500, detail=f"Redis error: {redis_error}") + + except Exception as e: + raise HTTPException( + status_code=500, detail=f"An unexpected error occurred: {e}" + ) + + +async def stats_latest_vulns( + filter_data, + current_user, + redis_client, + request: Request, + max_results=50, + filtered_org_ids=None, +): + """Retrieve the latest vulnerabilities from Elasticache filtered by user.""" + try: + if not filtered_org_ids: + filtered_org_ids = get_stats_org_ids(current_user, filter_data) + + # Ensure organization_ids is not empty + if not filtered_org_ids: + raise HTTPException( + status_code=404, + detail="No organizations found for the user with the specified filters.", + ) + + # Generate all Redis keys at once + redis_keys = [f"latest_vulnerabilities:{org_id}" for org_id in filtered_org_ids] + + # Use MGET to fetch all keys in a single operation + results = await safe_redis_mget( + redis_client, redis_keys, request.app.state.redis_semaphore + ) + + vulnerabilities = [] + + # Process the results, skip None values + for data in results: + if data: + vulnerabilities.extend(json.loads(data)) + + # Limit the results to the maximum specified + vulnerabilities = sorted(vulnerabilities, key=lambda x: x["createdAt"])[ + :max_results + ] + + if not vulnerabilities: + raise HTTPException( + status_code=404, + detail="No vulnerabilities found for the user's organizations in cache.", + ) + + return vulnerabilities + + except aioredis.RedisError as redis_error: + raise HTTPException(status_code=500, detail=f"Redis error: {redis_error}") + + except Exception as e: + raise HTTPException( + status_code=500, + detail=f"An unexpected error occurred: {e}", + ) + + +async def stats_most_common_vulns( + filter_data, + current_user, + redis_client, + request: Request, + max_results=10, + filtered_org_ids=None, +): + """Retrieve the most common vulnerabilities from Elasticache filtered by user.""" + try: + if not filtered_org_ids: + filtered_org_ids = get_stats_org_ids(current_user, filter_data) + + # Ensure organization_ids is not empty + if not filtered_org_ids: + raise HTTPException( + status_code=404, + detail="No organizations found for the user with the specified filters.", + ) + + # Generate all Redis keys at once + redis_keys = [ + f"most_common_vulnerabilities:{org_id}" for org_id in filtered_org_ids + ] + + # Use MGET to fetch all keys in a single operation + results = await safe_redis_mget( + redis_client, redis_keys, request.app.state.redis_semaphore + ) + + vulnerabilities = [] + + # Process the results, skip None values + for data in results: + if data: + vulnerabilities.extend(json.loads(data)) + + # Limit the results to the maximum specified + vulnerabilities = sorted(vulnerabilities, key=lambda x: x["count"])[ + :max_results + ] + + return vulnerabilities + + except aioredis.RedisError as redis_error: + raise HTTPException(status_code=500, detail=f"Redis error: {redis_error}") + + except Exception as e: + raise HTTPException( + status_code=500, + detail=f"An unexpected error occurred: {e}", + ) + + +async def get_by_org_stats( + filter_data, current_user, redis_client, filtered_org_ids=None +): + """Fetch the count of open vulnerabilities grouped by organization from Redis.""" + try: + if not filtered_org_ids: + filtered_org_ids = get_stats_org_ids(current_user, filter_data) + + # Ensure organization_ids is not empty + if not filtered_org_ids: + raise HTTPException( + status_code=404, + detail="No organizations found for the user with the specified filters.", + ) + + # Initialize the results list + by_org_data = [] + + # Fetch data from Redis for each organization ID + for org_id in filtered_org_ids: + redis_key = f"by_org_stats:{org_id}" + org_stats = await redis_client.get(redis_key) + if org_stats: + by_org_data.append( + json.loads(org_stats) + ) # Directly append the Redis data + + if not by_org_data: + raise HTTPException( + status_code=404, + detail="No organization data found in cache.", + ) + + return by_org_data + + except aioredis.RedisError as redis_error: + raise HTTPException(status_code=500, detail=f"Redis error: {redis_error}") + + except Exception as e: + raise HTTPException( + status_code=500, + detail=f"An unexpected error occurred: {e}", + ) diff --git a/backend/src/xfd_django/xfd_api/api_methods/user.py b/backend/src/xfd_django/xfd_api/api_methods/user.py new file mode 100644 index 00000000..507501d6 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/user.py @@ -0,0 +1,631 @@ +"""User API.""" +# Standard Python Libraries +from datetime import datetime +import os +import uuid + +# Third-Party Libraries +from django.core.exceptions import ObjectDoesNotExist +from django.db.models import Prefetch +from django.forms import model_to_dict +from fastapi import HTTPException +from fastapi.responses import JSONResponse + +from ..auth import ( + can_access_user, + is_global_view_admin, + is_global_write_admin, + is_org_admin, + is_regional_admin, + matches_user_region, +) +from ..helpers.email import ( + send_invite_email, + send_registration_approved_email, + send_registration_denied_email, +) +from ..helpers.regionStateMap import REGION_STATE_MAP +from ..models import Organization, Role, User +from ..schema_models.user import NewUser as NewUserSchema +from ..schema_models.user import User as UserSchema + + +def is_valid_uuid(val: str) -> bool: + """Check if the given string is a valid UUID.""" + try: + uuid_obj = uuid.UUID(val, version=4) + except ValueError: + return False + return str(uuid_obj) == val + + +# GET: /users/me +def get_me(current_user): + """Get current user.""" + try: + # Fetch the user and related objects from the database + user = User.objects.prefetch_related( + Prefetch("roles", queryset=Role.objects.select_related("organization")), + Prefetch("apiKeys"), + ).get(id=str(current_user.id)) + + # Convert the user object to a dictionary + user_dict = model_to_dict(user) + + # Add id: model_to_dict does not automatically include + user_dict["id"] = str(user.id) + + # Include roles with their related organization + user_dict["roles"] = [ + { + "id": role.id, + "role": role.role, + "approved": role.approved, + "organization": { + **model_to_dict( + role.organization, + fields=[ + "acronym", + "name", + "rootDomains", + "ipBlocks", + "isPassive", + "pendingDomains", + "country", + "state", + "regionId", + "stateFips", + "stateName", + "county", + "countyFips", + "type", + "parent", + "createdBy", + ], + ), + "id": str(role.organization.id), # Explicitly add the ID + } + if role.organization + else None, + } + for role in user.roles.all() + ] + + # Include API keys + user_dict["apiKeys"] = list( + user.apiKeys.values( + "id", "createdAt", "updatedAt", "lastUsed", "hashedKey", "lastFour" + ) + ) + + return user_dict + + except User.DoesNotExist: + raise HTTPException(status_code=404, detail="User not found") + + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail="Unknown error") + + +# POST: /users/me/acceptTerms +def accept_terms(version_data, current_user): + """Accept the latest terms of service.""" + try: + version = version_data.version + if not version: + raise HTTPException( + status_code=400, detail="Missing version in request body." + ) + + current_user.dateAcceptedTerms = datetime.now() + current_user.acceptedTermsVersion = version + current_user.save() + + return { + "id": str(current_user.id), + "cognitoId": current_user.cognitoId, + "oktaId": current_user.oktaId, + "loginGovId": current_user.loginGovId, + "createdAt": current_user.createdAt.isoformat() + if current_user.createdAt + else None, + "updatedAt": current_user.updatedAt.isoformat() + if current_user.updatedAt + else None, + "firstName": current_user.firstName, + "lastName": current_user.lastName, + "fullName": current_user.fullName, + "email": current_user.email, + "invitePending": current_user.invitePending, + "loginBlockedByMaintenance": current_user.loginBlockedByMaintenance, + "dateAcceptedTerms": current_user.dateAcceptedTerms.isoformat() + if current_user.dateAcceptedTerms + else None, + "acceptedTermsVersion": current_user.acceptedTermsVersion, + "lastLoggedIn": current_user.lastLoggedIn.isoformat() + if current_user.lastLoggedIn + else None, + "userType": current_user.userType, + "regionId": current_user.regionId, + "state": current_user.state, + } + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# DELETE: /users/{userId} +def delete_user(target_user_id, current_user): + """Delete a user by ID.""" + # Validate that the user ID is a valid UUID + if not target_user_id: + raise HTTPException(status_code=404, detail="User not found") + + # Check if the current user has permission to access/update this user + if not can_access_user(current_user, target_user_id): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + try: + target_user = User.objects.get(id=target_user_id) + target_user.delete() + # Return success response + return { + "status": "success", + "message": f"User {target_user_id} has been deleted successfully.", + } + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /users +def get_users(current_user): + """Retrieve a list of all users.""" + try: + # Check if user is a regional admin or global admin + if not is_global_view_admin(current_user): + raise HTTPException(status_code=401, detail="Unauthorized") + + users = User.objects.all().prefetch_related("roles__organization") + + # Return the updated user details + return [ + { + "id": str(user.id), + "createdAt": user.createdAt.isoformat(), + "updatedAt": user.updatedAt.isoformat(), + "firstName": user.firstName, + "lastName": user.lastName, + "fullName": user.fullName, + "email": user.email, + "regionId": user.regionId, + "state": user.state, + "userType": user.userType, + "lastLoggedIn": user.lastLoggedIn, + "acceptedTermsVersion": user.acceptedTermsVersion, + "roles": [ + { + "id": str(role.id), + "approved": role.approved, + "role": role.role, + "organization": { + "id": str(role.organization.id), + "name": role.organization.name, + } + if role.organization + else None, + } + for role in user.roles.all() + ], + } + for user in users + ] + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /users/regionId/{regionId} +def get_users_by_region_id(current_user, region_id): + """List users with specific regionId.""" + try: + if not is_regional_admin(current_user): + raise HTTPException(status_code=401, detail="Unauthorized") + + if not region_id: + raise HTTPException( + status_code=400, detail="Missing regionId in path parameters" + ) + + users = User.objects.filter(regionId=region_id).prefetch_related( + "roles", "roles.organization" + ) + if users: + return JSONResponse( + status_code=200, + content=[UserSchema.model_validate(user) for user in users], + ) + raise HTTPException( + status_code=404, detail="No users found for the specified regionId" + ) + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /users/state/{state} +async def get_users_by_state(state, current_user): + """List users with specific state.""" + try: + if not is_regional_admin(current_user): + raise HTTPException(status_code=401, detail="Unauthorized") + + if not state: + raise HTTPException( + status_code=400, detail="Missing state in path parameters" + ) + + users = User.objects.filter(state=state).prefetch_related( + "roles", "roles.organization" + ) + if users: + return JSONResponse( + status_code=200, + content=[UserSchema.model_validate(user) for user in users], + ) + raise HTTPException( + status_code=404, detail="No users found for the specified state" + ) + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# GET: /v2/users +def get_users_v2(state, regionId, invitePending, current_user): + """Retrieve a list of users based on optional filter parameters.""" + try: + # Check if user is a regional admin or global admin + if not is_regional_admin(current_user): + raise HTTPException(status_code=401, detail="Unauthorized") + + filters = {} + + if state is not None: + filters["state"] = state + if regionId is not None: + filters["regionId"] = regionId + if invitePending is not None: + filters["invitePending"] = invitePending + + users = User.objects.filter(**filters).prefetch_related("roles__organization") + + # Return the updated user details + return [ + { + "id": str(user.id), + "createdAt": user.createdAt.isoformat(), + "updatedAt": user.updatedAt.isoformat(), + "firstName": user.firstName, + "lastName": user.lastName, + "fullName": user.fullName, + "email": user.email, + "regionId": user.regionId, + "state": user.state, + "userType": user.userType, + "lastLoggedIn": user.lastLoggedIn, + "acceptedTermsVersion": user.acceptedTermsVersion, + "roles": [ + { + "id": str(role.id), + "approved": role.approved, + "role": role.role, + "organization": { + "id": str(role.organization.id), + "name": role.organization.name, + } + if role.organization + else None, + } + for role in user.roles.all() + ], + } + for user in users + ] + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# POST: /users/{userId} +async def update_user(target_user_id, body, current_user): + """ + Update a particular user. + + Args: + request: The HTTP request containing the update data. + + Raises: + HTTPException: If the user is not authorized or the user is not found. + + Returns: + User: The updated user. + """ + try: + if not can_access_user(current_user, target_user_id): + raise HTTPException(status_code=401, detail="Unauthorized") + + if not target_user_id or not User.objects.filter(id=target_user_id).exists(): + raise HTTPException(status_code=404, detail="User not found") + + update_data = NewUserSchema(**body) + + if not is_global_write_admin(current_user) and update_data.userType: + raise HTTPException(status_code=401, detail="Unauthorized to set userType") + + user = User.objects.get(id=target_user_id) + user.firstName = update_data.firstName or user.firstName + user.lastName = update_data.lastName or user.lastName + user.fullName = f"{user.firstName} {user.lastName}" + user.userType = update_data.userType or user.userType + user.state = update_data.state or user.state + user.regionId = update_data.regionId or user.regionId + user.email = update_data.email or user.email + user.organization = update_data.organization or user.organization + user.organizationAdmin = ( + update_data.organizationAdmin + if update_data.organizationAdmin is not None + else user.organizationAdmin + ) + + user.save() + + return UserSchema.model_validate(user) + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# PUT: /v2/users/{user_id} +def update_user_v2(user_id, user_data, current_user): + """Update a particular user.""" + try: + # Validate that the user ID is a valid UUID + if not user_id or not is_valid_uuid(user_id): + raise HTTPException(status_code=404, detail="User not found") + + # Check if the current user has permission to access/update this user + if not can_access_user(current_user, user_id): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Fetch the user to be updated + try: + user = User.objects.prefetch_related("roles").get(id=user_id) + except User.DoesNotExist: + raise HTTPException(status_code=404, detail="User not found") + + # Global admins only can update the userType + if not is_global_write_admin(current_user) and user_data.userType: + raise HTTPException( + status_code=403, detail="Only global admins can update userType." + ) + + # Update fields + if user_data.state: + user.regionId = REGION_STATE_MAP.get(user_data.state) + + print(user_data.dict()) + # Check for invitePending explicitly + if "invitePending" in user_data.dict(): + user.invitePending = user_data.invitePending + for field, value in user_data.dict(exclude_defaults=True).items(): + setattr(user, field, value) + + # Save the updated user + user.save() + + # Fetch updated user with roles and related data + updated_user = User.objects.prefetch_related("roles__organization").get( + id=user_id + ) + + # Return the updated user details + return { + "id": str(updated_user.id), + "createdAt": updated_user.createdAt.isoformat(), + "updatedAt": updated_user.updatedAt.isoformat(), + "firstName": updated_user.firstName, + "lastName": updated_user.lastName, + "fullName": user.fullName, + "email": updated_user.email, + "regionId": updated_user.regionId, + "state": updated_user.state, + "userType": updated_user.userType, + "lastLoggedIn": user.lastLoggedIn, + "acceptedTermsVersion": user.acceptedTermsVersion, + "roles": [ + { + "id": str(role.id), + "approved": role.approved, + "role": role.role, + "organization": { + "id": str(role.organization.id), + "name": role.organization.name, + } + if role.organization + else None, + } + for role in updated_user.roles.all() + ], + } + except HTTPException as http_exc: + raise http_exc + except Exception as e: + print(f"Error updating user: {e}") + raise HTTPException(status_code=500, detail="An unexpected error occurred.") + + +# PUT: /users/{user_id}/register/approve +def approve_user_registration(user_id, current_user): + """Approve a registered user.""" + if not is_valid_uuid(user_id): + raise HTTPException(status_code=404, detail="Invalid user ID.") + + try: + # Retrieve the user by ID + user = User.objects.get(id=user_id) + except ObjectDoesNotExist: + raise HTTPException(status_code=404, detail="User not found.") + + # Ensure authorizer's region matches the user's region + if not matches_user_region(current_user, user.regionId): + raise HTTPException(status_code=403, detail="Unauthorized region access.") + + # Send email notification + try: + send_registration_approved_email( + user.email, + subject="CyHy Dashboard Registration Approved", + first_name=user.firstName, + last_name=user.lastName, + template="crossfeed_approval_notification.html", + ) + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + raise HTTPException(status_code=500, detail=f"Failed to send email: {str(e)}") + + return {"statusCode": 200, "body": "User registration approved."} + + +# PUT: /users/{user_id}/register/deny +def deny_user_registration(user_id: str, current_user: User): + """Deny a user's registration by user ID.""" + # Validate UUID format for the user_id + if not is_valid_uuid(user_id): + raise HTTPException(status_code=404, detail="User not found.") + + try: + # Retrieve the user object + user = User.objects.filter(id=user_id).first() + if not user: + raise HTTPException(status_code=404, detail="User not found.") + + # Ensure authorizer's region matches the user's region + if not matches_user_region(current_user, user.regionId): + raise HTTPException(status_code=403, detail="Unauthorized region access.") + + # Send registration denial email to the user + send_registration_denied_email( + user.email, + subject="CyHy Dashboard Registration Denied", + first_name=user.firstName, + last_name=user.lastName, + template="crossfeed_denial_notification.html", + ) + + return {"statusCode": 200, "body": "User registration denied."} + + except HTTPException as http_exc: + raise http_exc + except ObjectDoesNotExist: + raise HTTPException(status_code=404, detail="User not found.") + except Exception as e: + print(f"Error denying registration: {e}") + raise HTTPException( + status_code=500, detail="Error processing registration denial." + ) + + +# POST: /users +def invite(new_user_data, current_user): + """Invite a user.""" + try: + # Validate permissions + if new_user_data.organization: + if not is_org_admin(current_user, new_user_data.organization): + raise HTTPException(status_code=403, detail="Unauthorized access.") + else: + if not is_global_write_admin(current_user): + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Non-global admins cannot set userType + if not is_global_write_admin(current_user) and new_user_data.userType: + raise HTTPException(status_code=403, detail="Unauthorized access.") + + # Lowercase the email for consistency + new_user_data.email = new_user_data.email.lower() + + # Map state to region ID if state is provided + if new_user_data.state: + new_user_data.regionId = REGION_STATE_MAP.get(new_user_data.state) + + # Check if the user already exists + user = User.objects.filter(email=new_user_data.email).first() + organization = ( + Organization.objects.filter(id=new_user_data.organization).first() + if new_user_data.organization + else None + ) + + if not user: + # Create a new user if they do not exist + user = User.objects.create( + invitePending=True, + **new_user_data.dict( + exclude_unset=True, + exclude={"organizationAdmin", "organization", "userType"}, + ), + ) + if not os.getenv("IS_LOCAL"): + send_invite_email(user.email, organization) + elif not user.firstName and not user.lastName: + # Update first and last name if the user exists but has no name set + user.firstName = new_user_data.firstName + user.lastName = new_user_data.lastName + user.save() + + # Always update userType if specified + if new_user_data.userType: + user.userType = new_user_data.userType.value + user.save() + + # Assign role if an organization is specified + if organization: + Role.objects.update_or_create( + user=user, + organization=organization, + defaults={ + "approved": True, + "createdBy": current_user, + "approvedBy": current_user, + "role": "admin" if new_user_data.organizationAdmin else "user", + }, + ) + # Return the updated user with relevant details + return { + "id": str(user.id), + "firstName": user.firstName, + "lastName": user.lastName, + "email": user.email, + "userType": user.userType, + "roles": [ + { + "id": str(role.id), + "role": role.role, + "approved": role.approved, + "organization": { + "id": str(role.organization.id), + "name": role.organization.name, + } + if role.organization + else {}, + } + for role in user.roles.select_related("organization").all() + ], + "invitePending": user.invitePending, + } + + except HTTPException as http_exc: + raise http_exc + + except Exception as e: + print(f"Error inviting user: {e}") + raise HTTPException(status_code=500, detail="Error inviting user.") diff --git a/backend/src/xfd_django/xfd_api/api_methods/vulnerability.py b/backend/src/xfd_django/xfd_api/api_methods/vulnerability.py new file mode 100644 index 00000000..4bedb1e3 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/api_methods/vulnerability.py @@ -0,0 +1,262 @@ +"""Vulnerability API.""" +# Standard Python Libraries +import csv +import io +import uuid + +# Third-Party Libraries +from django.core.paginator import Paginator +from django.db.models import Count, Q +from django.shortcuts import get_object_or_404 +from fastapi import HTTPException + +from ..auth import get_org_memberships, is_global_view_admin +from ..helpers.filter_helpers import apply_vuln_filters, sort_direction +from ..helpers.s3_client import S3Client +from ..models import Domain, Service, Vulnerability +from ..schema_models.vulnerability import ( + VulnerabilityFilters, + VulnerabilityGroupResponse, + VulnerabilitySearch, +) +from ..schema_models.vulnerability import GetVulnerabilityResponse +from ..schema_models.vulnerability import Vulnerability as VulnerabilitySchema + + +def is_valid_uuid(val: str) -> bool: + """Check if the given string is a valid UUID.""" + try: + uuid_obj = uuid.UUID(val, version=4) + except ValueError: + return False + return str(uuid_obj) == val + + +def get_vulnerability_by_id(vulnerability_id, current_user): + """Get vulnerability by id.""" + try: + # Initialize a VulnerabilitySearch with filters.id set to the vulnerability_id + search = VulnerabilitySearch( + page=1, + sort="ASC", + order="id", + filters=VulnerabilityFilters(id=str(vulnerability_id)), + ) + vulnerabilities, count = search_vulnerabilities(search, current_user) + + if count == 0: + raise HTTPException(status_code=404, detail="Vulnerability not found.") + + # Assuming vulnerabilities is a list, get the first (and only) item + vulnerability = vulnerabilities[0] + + # Serialize using Pydantic model + return GetVulnerabilityResponse.from_orm(vulnerability) + + except HTTPException as he: + raise he + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +def update_vulnerability( + vulnerability_id, vulnerability_data: VulnerabilitySchema, current_user +): + """Update vulnerability by id.""" + try: + if not is_global_view_admin(current_user): + raise HTTPException(status_code=401, detail="Unauthorized") + + # Validate the vulnerability ID + if not is_valid_uuid(vulnerability_id): + raise HTTPException(status_code=404, detail="Vulnerability not found") + + # Fetch the existing vulnerability + vulnerability = Vulnerability.objects.get(id=vulnerability_id) + + # Create a mapping of fields to update + fields_to_update = { + "title": vulnerability_data.title, + "cve": vulnerability_data.cve, + "cwe": vulnerability_data.cwe, + "cpe": vulnerability_data.cpe, + "description": vulnerability_data.description, + "references": vulnerability_data.references, + "cvss": vulnerability_data.cvss, + "severity": vulnerability_data.severity, + "needsPopulation": vulnerability_data.needsPopulation, + "state": vulnerability_data.state, + "substate": vulnerability_data.substate, + "source": vulnerability_data.source, + "notes": vulnerability_data.notes, + "actions": vulnerability_data.actions, + "structuredData": vulnerability_data.structuredData, + "isKev": vulnerability_data.isKev, + "domain": vulnerability_data.domain_id, + "service": vulnerability_data.service_id, + } + + # Update fields that are not None + for field, value in fields_to_update.items(): + if value is not None: + if field == "domain": + # Handle domain ID to fetch the Domain instance + domain_instance = get_object_or_404( + Domain, id=vulnerability_data.domain_id + ) + vulnerability.domain = domain_instance + elif field == "service": + # Handle service ID to fetch the Service instance + service_instance = get_object_or_404( + Service, id=vulnerability_data.service_id + ) + vulnerability.service = service_instance + else: + setattr(vulnerability, field, value) + # Save the updated vulnerability object + vulnerability.save() + return vulnerability + + except Vulnerability.DoesNotExist: + raise HTTPException(status_code=404, detail="Vulnerability not found.") + except Exception as e: + raise HTTPException(status_code=500, detail=f"Internal Server Error: {e}") + + +def search_vulnerabilities(vulnerability_search: VulnerabilitySearch, current_user): + """List vulnerabilities by search filter.""" + try: + # Base query with related data + vulnerabilities = Vulnerability.objects.select_related( + "domain", "domain__organization", "service" + ).order_by( + sort_direction(vulnerability_search.sort, vulnerability_search.order) + ) + + # Permissions check + if not is_global_view_admin(current_user): + org_ids = get_org_memberships(current_user) + if not org_ids: + return [], 0 # User has no accessible organizations + vulnerabilities = vulnerabilities.filter( + domain__organization_id__in=org_ids + ) + + # Apply custom FCEB and CIDR filter + vulnerabilities = vulnerabilities.filter( + Q(domain__isFceb=True) | Q(domain__isFceb=False, domain__fromCidr=True) + ) + + # Apply additional filters + if vulnerability_search.filters: + vulnerabilities = apply_vuln_filters( + vulnerabilities, vulnerability_search.filters + ) + + # Apply grouping if specified + if vulnerability_search.groupBy: + vulnerabilities = ( + vulnerabilities.values(vulnerability_search.groupBy) + .annotate(cnt=Count("id")) + .order_by("-cnt") + ) + + # Paginate the results + paginator = Paginator(vulnerabilities, vulnerability_search.pageSize) + page_obj = paginator.get_page(vulnerability_search.page) + + # If groupBy is used, handle raw values + if vulnerability_search.groupBy: + result = list(page_obj) + count = paginator.count + return result, count + + result = list(page_obj.object_list) + count = paginator.count + return result, count + + except Vulnerability.DoesNotExist as e: + print(e) + raise HTTPException(status_code=404, detail="Vulnerability not found.") + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +def export_vulnerabilities(vulnerability_search, current_user): + """Export vulnerabilities into a CSV and upload to S3.""" + try: + # Retrieve vulnerabilities based on search filters + vulnerability_search.pageSize = 1000 # Set to max 1000 results + vulnerabilities, count = search_vulnerabilities( + vulnerability_search, current_user + ) + + if vulnerability_search.groupBy: + # Handle grouped data + result = [ + VulnerabilityGroupResponse.model_validate(v) for v in vulnerabilities + ] + # Define CSV fields for grouped data + group_field = vulnerability_search.groupBy + csv_fields = [group_field, "cnt"] + # Create CSV content + output = io.StringIO() + writer = csv.DictWriter(output, fieldnames=csv_fields) + writer.writeheader() + for v in result: + row = {group_field: getattr(v, group_field, ""), "cnt": v.cnt} + writer.writerow(row) + csv_content = output.getvalue() + else: + # Serialize ORM instances to Pydantic models + serialized_vulnerabilities = [ + GetVulnerabilityResponse.model_validate(v) for v in vulnerabilities + ] + # Convert to list of dictionaries + data = [v.dict() for v in serialized_vulnerabilities] + # Map organization and domain names + for entry in data: + entry["organization"] = ( + entry["domain"]["organization"]["name"] + if entry.get("domain") and entry["domain"].get("organization") + else "" + ) + entry["domain"] = entry["domain"]["name"] if entry.get("domain") else "" + # Define CSV fields + csv_fields = [ + "organization", + "domain", + "title", + "description", + "cve", + "isKev", + "cwe", + "cpe", + "cvss", + "severity", + "state", + "substate", + "lastSeen", + "createdAt", + "id", + ] + # Create CSV content + output = io.StringIO() + writer = csv.DictWriter(output, fieldnames=csv_fields) + writer.writeheader() + for entry in data: + row = {field: entry.get(field, "") for field in csv_fields} + writer.writerow(row) + csv_content = output.getvalue() + + # Initialize S3 client + client = S3Client() + + # Save CSV to S3 + url = client.save_csv(csv_content, "vulnerabilities") + + return {"url": url} + + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) diff --git a/backend/src/xfd_django/xfd_api/apps.py b/backend/src/xfd_django/xfd_api/apps.py new file mode 100644 index 00000000..e6933816 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/apps.py @@ -0,0 +1,21 @@ +""" +This module configures the Django application for the xfd_django project. + +Classes: + - XfdApiConfig: Configures the xfd_api application. +""" +# Third-Party Libraries +from django.apps import AppConfig + + +class XfdApiConfig(AppConfig): + """ + Configure the xfd_api application. + + Attributes: + default_auto_field (str): The default auto field type for models. + name (str): The name of the application. + """ + + default_auto_field = "django.db.models.BigAutoField" + name = "xfd_api" diff --git a/backend/src/xfd_django/xfd_api/auth.py b/backend/src/xfd_django/xfd_api/auth.py new file mode 100644 index 00000000..b4627ed5 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/auth.py @@ -0,0 +1,599 @@ +"""Authentication utilities for the FastAPI application.""" + +# Standard Python Libraries +from datetime import datetime, timedelta, timezone +import hashlib +from hashlib import sha256 +import os +from typing import List, Optional +from urllib.parse import urlencode +import uuid + +# Third-Party Libraries +from asgiref.sync import sync_to_async +from django.conf import settings +from django.forms.models import model_to_dict +from fastapi import Depends, HTTPException, Request, Security, status +from fastapi.security import APIKeyHeader +import jwt +from jwt import ExpiredSignatureError, InvalidTokenError +import requests + +# from .helpers import user_to_dict +from .models import ApiKey, Domain, Organization, OrganizationTag, Role, Service, User + +# JWT_ALGORITHM = "RS256" +JWT_SECRET = settings.JWT_SECRET +SECRET_KEY = settings.SECRET_KEY +JWT_ALGORITHM = settings.JWT_ALGORITHM +JWT_TIMEOUT_HOURS = settings.JWT_TIMEOUT_HOURS + +api_key_header = APIKeyHeader(name="X-API-KEY", auto_error=False) + + +def user_to_dict(user): + """ + Take a user model object from django and sanitize fields for output. + + Args: + user (django model): Django User model object + + Returns: + dict: Returns sanitized and formated dict + """ + user_dict = model_to_dict(user) # Convert model to dict + # Convert any UUID fields to strings + if isinstance(user_dict.get("id"), uuid.UUID): + user_dict["id"] = str(user_dict["id"]) + for key, val in user_dict.items(): + if isinstance(val, datetime): + user_dict[key] = str(val) + return user_dict + + +def create_jwt_token(user): + """ + Create a JWT token for a given user. + + Args: + user (User): The user object for whom the token is created. + + Returns: + str: The encoded JWT token. + """ + payload = { + "id": str(user.id), + "email": user.email, + "exp": datetime.now(timezone.utc) + timedelta(hours=int(JWT_TIMEOUT_HOURS)), + } + return jwt.encode(payload, JWT_SECRET, algorithm=JWT_ALGORITHM) + + +def decode_jwt_token(token): + """ + Decode a JWT token to retrieve the user. + + Args: + token (str): The JWT token to decode. + + Returns: + User: The user object decoded from the token, or None if invalid or expired. + """ + try: + payload = jwt.decode(token, JWT_SECRET, algorithm=JWT_ALGORITHM) + user = User.objects.get(id=payload["id"]) + return user + except (ExpiredSignatureError, InvalidTokenError, User.DoesNotExist): + return None + + +def get_org_memberships(current_user) -> list[str]: + """Return the organization IDs that a user is a member of.""" + # Check if the user has a 'roles' attribute and it's not None + + roles = Role.objects.filter(user=current_user) + return [role.organization.id for role in roles if role.organization] + + +async def get_user_domains(user_id: str) -> List[str]: + """Retrieve a list of domain names associated with the user's organizations.""" + try: + # Check if the user exists + user_exists = await sync_to_async(User.objects.filter(id=user_id).exists)() + if not user_exists: + return [] + + # Fetch organization IDs associated with the user + organization_ids_qs = Role.objects.filter(user__id=user_id).values_list( + "organization", flat=True + ) + organization_ids = await sync_to_async(lambda qs: list(qs))(organization_ids_qs) + + if not organization_ids: + return [] + + # Fetch domain names associated with these organizations + domain_names_qs = Domain.objects.filter( + organization__in=organization_ids + ).values_list("name", flat=True) + domain_list = await sync_to_async(lambda qs: list(qs))(domain_names_qs) + + return domain_list + except Exception as e: + print(e) + # Optionally, handle exceptions or return an empty list + return [] + + +def get_user_service_ids(current_user): + """Retrieve service IDs associated with the organizations the user belongs to.""" + # Get organization IDs the user is a member of + organization_ids = Role.objects.filter(user=current_user).values_list( + "organization", flat=True + ) + # Get domain IDs associated with these organizations + domain_ids = Domain.objects.filter(organization__in=organization_ids).values_list( + "id", flat=True + ) + + # Get service IDs associated with these domains + service_ids = Service.objects.filter(domain__in=domain_ids).values_list( + "id", flat=True + ) + + return list(map(str, service_ids)) # Convert UUIDs to strings if necessary + + +async def get_user_organization_ids(user_id: str) -> List[str]: + """Get organization ids.""" + try: + # Fetch organization IDs associated with the user + organization_ids_qs = Role.objects.filter(user__id=user_id).values_list( + "organization__id", flat=True + ) + organization_ids = await sync_to_async(list)(organization_ids_qs) + return [str(org_id) for org_id in organization_ids] + except Exception: + return [] + + +def get_user_ports(user_id): + """Retrieve port numbers associated with the organizations the user belongs to.""" + # Get organization IDs the user is a member of + organization_ids = Role.objects.filter(user=user_id).values_list( + "organization", flat=True + ) + + # Get domain IDs associated with these organizations + domain_ids = Domain.objects.filter(organization__in=organization_ids).values_list( + "id", flat=True + ) + + # Get ports associated with services of these domains + ports = ( + Service.objects.filter(domainId__in=domain_ids) + .values_list("port", flat=True) + .distinct() + ) + + return list(ports) + + +def get_tag_organization_ids(current_user, tag_id: Optional[str] = None) -> list[str]: + """Return the organizations belonging to a tag, if the user can access the tag.""" + # Check if the user is a global view admin + if not is_global_view_admin(current_user): + return [] + + # Fetch the OrganizationTag and its related organizations + tag = ( + OrganizationTag.objects.prefetch_related("organizations") + .filter(id=tag_id) + .first() + ) + if tag: + # Return a list of organization IDs + return [org.id for org in tag.organizations.all()] + + # Return an empty list if tag is not found + return [] + + +def hash_key(key: str) -> str: + """ + Hash API key. + + Returns: + str: hashed API key value + """ + return hashlib.sha256(key.encode()).hexdigest() + + +# TODO: Confirm still needed +# async def get_user_info_from_cognito(token): +# """Get user info from cognito.""" +# jwks_url = ( +# f"https://cognito-idp.us-east-1.amazonaws.com/" +# f"{os.getenv('REACT_APP_USER_POOL_ID')}/.well-known/jwks.json" +# ) +# response = requests.get(jwks_url) +# jwks = response.json() +# unverified_header = jwt.get_unverified_header(token) +# for key in jwks["keys"]: +# if key["kid"] == unverified_header["kid"]: +# rsa_key = { +# "kty": key["kty"], +# "kid": key["kid"], +# "use": key["use"], +# "n": key["n"], +# "e": key["e"], +# } +# user_info = decode_jwt_token(token) +# return user_info + + +async def get_token_from_header(request: Request) -> Optional[str]: + """ + Extract token from the Authorization header, allowing 'Bearer' or raw tokens. + + Args: + request (Request): The incoming request object. + + Returns: + Optional[str]: The token extracted from the Authorization header, or None if missing. + """ + auth_header = request.headers.get("Authorization") + if auth_header: + if auth_header.startswith("Bearer "): + return auth_header[7:] # Remove 'Bearer ' prefix + return auth_header # Return the token directly if no 'Bearer ' prefix + return None + + +def get_user_by_api_key(api_key: str): + """Get a user by their API key.""" + hashed_key = sha256(api_key.encode()).hexdigest() + try: + api_key_instance = ApiKey.objects.get(hashedKey=hashed_key) + api_key_instance.lastUsed = datetime.now(timezone.utc) + api_key_instance.save(update_fields=["lastUsed"]) + return api_key_instance.user + except ApiKey.DoesNotExist: + print("API Key not found") + return None + + +def get_current_active_user( + request: Request, + api_key: Optional[str] = Security(api_key_header), + token: Optional[str] = Depends(get_token_from_header), +): + """Ensure the current user is authenticated and active, supporting either API key or token.""" + user = None + if api_key: + user = get_user_by_api_key(api_key) + elif token: + try: + # Decode token in Authorization header to get user + payload = jwt.decode(token, JWT_SECRET, algorithms=[JWT_ALGORITHM]) + user_id = payload.get("id") + + if user_id is None: + print("No user ID found in token") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="Invalid token", + headers={"WWW-Authenticate": "Bearer"}, + ) + # Fetch the user by ID from the database + user = User.objects.get(id=user_id) + except jwt.ExpiredSignatureError: + print("Token has expired") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="Token has expired", + headers={"WWW-Authenticate": "Bearer"}, + ) + except jwt.InvalidTokenError: + print("Invalid token") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="Invalid token", + headers={"WWW-Authenticate": "Bearer"}, + ) + else: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="No valid authentication credentials provided", + ) + + if user is None: + print("User not authenticated") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="Invalid authentication credentials", + ) + + # Attach email to request state for logging + request.state.user_email = user.email + return user + + +async def process_user(decoded_token): + """Process a user based on decoded token information.""" + user = User.objects.filter(email=decoded_token["email"]).first() + if not user: + # Create a new user if they don't exist from Okta fields in SAML Response + user = User( + email=decoded_token["email"], + oktaId=decoded_token["sub"], + firstName=decoded_token.get("given_name"), + lastName=decoded_token.get("family_name"), + userType="standard", + invitePending=True, + ) + user.save() + else: + # Update user oktaId (legacy users) and login time + user.oktaId = decoded_token["sub"] + user.lastLoggedIn = datetime.now() + user.save() + + if user: + if not JWT_SECRET: + raise HTTPException(status_code=500, detail="JWT_SECRET is not defined") + # Generate JWT token + signed_token = jwt.encode( + { + "id": str(user.id), + "email": user.email, + "exp": datetime.utcnow() + timedelta(hours=int(JWT_TIMEOUT_HOURS)), + }, + JWT_SECRET, + algorithm=JWT_ALGORITHM, + ) + + process_resp = {"token": signed_token, "user": user_to_dict(user)} + return process_resp + else: + raise HTTPException(status_code=400, detail="User not found") + + +async def get_jwt_from_code(auth_code: str): + """Exchange authorization code for JWT tokens and decode.""" + try: + callback_url = os.getenv("REACT_APP_COGNITO_CALLBACK_URL") + client_id = os.getenv("REACT_APP_COGNITO_CLIENT_ID") + domain = os.getenv("REACT_APP_COGNITO_DOMAIN") + proxy_url = os.getenv("LZ_PROXY_URL") + + scope = "openid" + authorize_token_url = f"https://{domain}/oauth2/token" + authorize_token_body = { + "grant_type": "authorization_code", + "client_id": client_id, + "code": auth_code, + "redirect_uri": callback_url, + "scope": scope, + } + headers = { + "Content-Type": "application/x-www-form-urlencoded", + } + + # Set up proxies if PROXY_URL is defined + proxies = None + if proxy_url: + proxies = {"http": proxy_url, "https": proxy_url} + + response = requests.post( + authorize_token_url, + headers=headers, + data=urlencode(authorize_token_body), + proxies=proxies, + timeout=20, # Timeout in seconds + ) + token_response = response.json() + # Convert the id_token to bytes + id_token = token_response["id_token"].encode("utf-8") + access_token = token_response.get("access_token") + refresh_token = token_response.get("refresh_token") + + # Decode the token without verifying the signature (if needed) + decoded_token = jwt.decode(id_token, options={"verify_signature": False}) + print(f"decoded token: {decoded_token}") + return { + "refresh_token": refresh_token, + "id_token": id_token, + "access_token": access_token, + "decoded_token": decoded_token, + } + + except Exception as error: + print(f"get_jwt_from_code post error: {error}") + + +def can_access_user(current_user, target_user_id) -> bool: + """Check if current user is allowed to modify.the target user.""" + if not target_user_id: + return False + + # Check if the current user is the target user or a global write admin + if str(current_user.id) == str(target_user_id) or is_global_write_admin( + current_user + ): + return True + + # Check if the user is a regional admin and the target user is in the same region + if is_regional_admin(current_user): + target_user = User.objects.get(id=target_user_id) + return current_user.regionId == target_user.regionId + + return False + + +def is_global_write_admin(current_user) -> bool: + """Check if the user has global write admin permissions.""" + return current_user and current_user.userType == "globalAdmin" + + +def is_global_view_admin(current_user) -> bool: + """Check if the user has global view permissions.""" + return current_user and current_user.userType in ["globalView", "globalAdmin"] + + +def is_regional_admin(current_user) -> bool: + """Check if the user has regional admin permissions.""" + return current_user and current_user.userType in ["regionalAdmin", "globalAdmin"] + + +def is_org_admin(current_user, organization_id) -> bool: + """Check if the user is an admin of the given organization.""" + if not organization_id: + return False + + # Check if the user has an admin role in the given organization + for role in current_user.roles.all(): + if str(role.organization.id) == str(organization_id) and role.role == "admin": + return True + + # If the user is a global write admin, they are considered an org admin + return is_global_write_admin(current_user) + + +def is_regional_admin_for_organization(current_user, organization_id) -> bool: + """Check if user is a regional admin and if a selected organization belongs to their region.""" + if not organization_id: + return False + + # Check if the user is a regional admin + if is_regional_admin(current_user): + # Check if the organization belongs to the user's region + user_region_id = ( + current_user.regionId + ) # Assuming this is available in the user object + organization_region_id = get_organization_region( + organization_id + ) # Function to fetch the organization's region + return user_region_id == organization_region_id + + return False + + +def get_organization_region(organization_id: str) -> str: + """Fetch the region ID for the given organization.""" + organization = Organization.objects.get(id=organization_id) + return organization.regionId + + +def get_tag_organizations(current_user, tag_id) -> list[str]: + """Return the organizations belonging to a tag, if the user can access the tag.""" + # Check if the user is a global view admin + if not is_global_view_admin(current_user): + return [] + + # Fetch the OrganizationTag and its related organizations + tag = ( + OrganizationTag.objects.prefetch_related("organizations") + .filter(id=tag_id) + .first() + ) + if tag: + # Return a list of organization IDs + return [org.id for org in tag.organizations.all()] + + # Return an empty list if tag is not found + return [] + + +def matches_user_region(current_user, user_region_id: str) -> bool: + """Check if the current user's region matches the user's region being modified.""" + # Check if the current user is a global admin (can match any region) + if is_global_write_admin(current_user): + return True + + # Ensure the user has a region associated with them + if not current_user.regionId or not user_region_id: + return False + + # Compare the region IDs + return user_region_id == current_user.regionId + + +def get_stats_org_ids(current_user, filters): + """Get organization ids that a user has access to for the stats.""" + # Extract filters from the Pydantic model + regions_filter = filters.filters.regions if filters and filters.filters else [] + organizations_filter = ( + filters.filters.organizations if filters and filters.filters else [] + ) + if organizations_filter == [""]: + organizations_filter = [] + tags_filter = filters.filters.tags if filters and filters.filters else [] + + # Final list of organization IDs + organization_ids = set() + + # Case 1: Explicit organization IDs in filters + if organizations_filter: + # Check user type restrictions for provided organization IDs + for org_id in organizations_filter: + if ( + is_global_view_admin(current_user) + or (is_regional_admin_for_organization(current_user, org_id)) + or (is_org_admin(current_user, org_id)) + ): + organization_ids.add(org_id) + + if not organization_ids: + raise HTTPException( + status_code=403, + detail="User does not have access to the specified organizations.", + ) + + # Case 2: Global view admin (if no explicit organization filter) + elif is_global_view_admin(current_user): + # Get organizations by region + if regions_filter: + organizations_by_region = Organization.objects.filter( + regionId__in=regions_filter + ).values_list("id", flat=True) + organization_ids.update(organizations_by_region) + + # Get organizations by tag + for tag_id in tags_filter: + organizations_by_tag = get_tag_organizations(current_user, tag_id) + organization_ids.update(organizations_by_tag) + + # Case 3: Regional admin + elif current_user.userType in ["regionalAdmin"]: + user_region_id = current_user.regionId + + # Allow only organizations in the user's region + organizations_in_region = Organization.objects.filter( + regionId=user_region_id + ).values_list("id", flat=True) + organization_ids.update(organizations_in_region) + + # Apply filters within the user's region + if regions_filter and user_region_id in regions_filter: + organization_ids.update(organizations_in_region) + + # Include organizations by tag within the same region + for tag_id in tags_filter: + tag_organizations = get_tag_organizations(current_user, tag_id) + regional_tag_organizations = [ + org_id + for org_id in tag_organizations + if get_organization_region(org_id) == user_region_id + ] + organization_ids.update(regional_tag_organizations) + + # Case 4: Standard user + else: + # Allow only organizations where the user is a member + user_organization_ids = current_user.roles.values_list( + "organization_id", flat=True + ) + organization_ids.update(user_organization_ids) + + return organization_ids diff --git a/backend/src/xfd_django/xfd_api/helpers/__init__.py b/backend/src/xfd_django/xfd_api/helpers/__init__.py new file mode 100644 index 00000000..eb8f2f47 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/helpers/__init__.py @@ -0,0 +1 @@ +"""Initialize helpers directory.""" diff --git a/backend/src/xfd_django/xfd_api/helpers/elastic_search.py b/backend/src/xfd_django/xfd_api/helpers/elastic_search.py new file mode 100644 index 00000000..2a703f0c --- /dev/null +++ b/backend/src/xfd_django/xfd_api/helpers/elastic_search.py @@ -0,0 +1,249 @@ +"""Elastic search methods.""" +# Standard Python Libraries +from typing import Any, Dict, List, Optional + +# Define non-keyword fields +NON_KEYWORD_FIELDS = {"updatedAt", "createdAt"} + + +def build_from(current: int, results_per_page: int) -> Optional[int]: + """Build from.""" + if not current or not results_per_page: + return None + return (current - 1) * results_per_page + + +def build_sort(sort_direction: str, sort_field: str) -> Optional[List[Dict[str, Any]]]: + """Build sort.""" + if not sort_direction or not sort_field: + return None + if sort_field in NON_KEYWORD_FIELDS: + return [{sort_field: {"order": sort_direction}}] + return [{f"{sort_field}.keyword": {"order": sort_direction}}] + + +def build_match(search_term: str) -> Dict[str, Any]: + """Build match.""" + if search_term: + return { + "query_string": { + "query": search_term, + "analyze_wildcard": True, + "fields": ["*"], + } + } + return {"match_all": {}} + + +def build_child_match(search_term: str) -> Dict[str, Any]: + """Build child match.""" + return build_match(search_term) + + +def get_term_filter_value(field, field_value): + """ + Determine the appropriate term filter value based on the field and its value. + + Handles specific cases for boolean values, 'organization.regionId', numeric values, + and the 'name' field. + """ + if field_value in ["false", "true"]: + return {field: field_value == "true"} + if field == "organization.regionId": + return {field: field_value} + if isinstance(field_value, (int, float)): + return {field: field_value} + if field == "name" and field_value and "*" not in field_value: + field_value = f"*{field_value}*" + return {f"{field}.keyword": field_value} + + +def get_term_filter(term_filter): + """ + Construct the appropriate term filter based on the filter's field and type. + + Handles 'any' and 'all' filter types, and manages nested fields appropriately. + """ + field_path = term_filter["field"].split(".") + search_type = "term" + search = {} + + if term_filter["field"] in ["name", "ip"]: + search_type = "wildcard" + elif term_filter["field"] == "services.port": + search_type = "match" + elif term_filter["field"] == "organization.regionId": + search_type = "terms" + + if term_filter["type"] == "any": + if term_filter["field"] == "organization.regionId" and term_filter["values"]: + search = { + "bool": { + "should": [ + { + search_type: get_term_filter_value( + term_filter["field"], term_filter["values"] + ) + } + ], + "minimum_should_match": 1, + } + } + else: + search = { + "bool": { + "should": [ + { + search_type: get_term_filter_value( + term_filter["field"], value + ) + } + for value in term_filter["values"] + ], + "minimum_should_match": 1, + } + } + elif term_filter["type"] == "all": + search = { + "bool": { + "filter": [ + {search_type: get_term_filter_value(term_filter["field"], value)} + for value in term_filter["values"] + ] + } + } + + if len(field_path) > 1 and term_filter["field"] != "organization.regionId": + return {"nested": {"path": field_path[0], "query": search}} + + return search + + +def build_request_filter(filters, force_return_no_results): + """ + Build the request filter for Elasticsearch queries. + + If force_return_no_results is True, returns a filter that matches no results. + Otherwise, processes each filter using get_term_filter. + """ + if force_return_no_results: + return {"term": {"non_existent_field": ""}} + + return [get_term_filter(f) for f in filters] + + +def build_request(state, options: Dict[str, Any]) -> Dict[str, Any]: + """Build request.""" + print(options) + current = state.current + filters = state.filters or [] + results_per_page = state.resultsPerPage + search_term = state.searchTerm + sort_direction = state.sortDirection + sort_field = state.sortField + + orgs_in_filters = next((f for f in filters if f["field"] == "organizationId"), None) + refined_filters = ( + [f for f in filters if f["field"] != "organizationId"] + if orgs_in_filters + else filters + ) + + should_return_no_results = len(filters) == 0 + + sort = build_sort(sort_direction, sort_field) + match = build_match(search_term) + size = results_per_page + from_ = build_from(current, results_per_page) + filter_ = build_request_filter(refined_filters, should_return_no_results) + + query = { + "bool": { + "must": [ + {"match": {"parent_join": "domain"}}, + { + "bool": { + "should": [ + match, + { + "has_child": { + "type": "webpage", + "query": build_child_match(search_term), + "inner_hits": { + "_source": ["webpage_url"], + "highlight": { + "fragment_size": 50, + "number_of_fragments": 3, + "fields": {"webpage_body": {}}, + }, + }, + } + }, + ] + } + }, + ], + "filter": filter_, + } + } + + if orgs_in_filters: + query = { + "bool": { + "must": [ + { + "terms": { + "organization.id.keyword": [ + org["id"] for org in orgs_in_filters["values"] + ] + } + }, + query, + ] + } + } + + body = { + "highlight": { + "fragment_size": 200, + "number_of_fragments": 1, + "fields": {"name": {}}, + }, + "aggs": { + "name": {"terms": {"field": "name.keyword"}}, + "fromRootDomain": {"terms": {"field": "fromRootDomain.keyword"}}, + "organization": {"terms": {"field": "organization.name.keyword"}}, + "services": { + "nested": {"path": "services"}, + "aggs": { + "port": {"terms": {"field": "services.port"}}, + "name": {"terms": {"field": "services.service.keyword"}}, + "products": { + "nested": {"path": "products"}, + "aggs": { + "cpe": {"terms": {"field": "services.products.cpe.keyword"}} + }, + }, + }, + }, + "vulnerabilities": { + "nested": {"path": "vulnerabilities"}, + "aggs": { + "severity": { + "terms": {"field": "vulnerabilities.severity.keyword"} + }, + "cve": {"terms": {"field": "vulnerabilities.cve.keyword"}}, + }, + }, + }, + "query": query, + } + + if sort: + body["sort"] = sort + if size: + body["size"] = size + if from_ is not None: + body["from"] = from_ + + return body diff --git a/backend/src/xfd_django/xfd_api/helpers/email.py b/backend/src/xfd_django/xfd_api/helpers/email.py new file mode 100644 index 00000000..d842eb5c --- /dev/null +++ b/backend/src/xfd_django/xfd_api/helpers/email.py @@ -0,0 +1,177 @@ +"""Email methods.""" +# Standard Python Libraries +import os + +# Third-Party Libraries +import boto3 +from botocore.exceptions import ClientError +from django.conf import settings +from jinja2 import Template + +from .s3_client import S3Client + + +def _setup_proxy(): + """ + Set in the environment, configure the HTTPS/HTTP proxy. + + This ensures that outbound connections go through the specified proxy. + """ + proxy_url = os.getenv("LZ_PROXY_URL") + if proxy_url: + os.environ["HTTPS_PROXY"] = proxy_url + os.environ["HTTP_PROXY"] = proxy_url + else: + # If not set, ensure these are not set so traffic is direct + os.environ.pop("HTTPS_PROXY", None) + os.environ.pop("HTTP_PROXY", None) + + +def send_invite_email(email, organization=None): + """Send an invitation email to the specified address.""" + _setup_proxy() # Setup proxy if LZ_PROXY_URL is defined + + frontend_domain = settings.FRONTEND_DOMAIN + reply_to = settings.CROSSFEED_SUPPORT_EMAIL_REPLYTO + + org_name_part = f"the {organization.name} organization on " if organization else "" + message = f""" + Hi there, + + You've been invited to join {org_name_part}CyHy Dashboard. To accept the invitation and start using CyHy Dashboard, sign on at {frontend_domain}/signup. + + CyHy Dashboard access instructions: + + 1. Visit {frontend_domain}/signup. + 2. Select "Create Account." + 3. Enter your email address and a new password for CyHy Dashboard. + 4. A confirmation code will be sent to your email. Enter this code when you receive it. + 5. You will be prompted to enable MFA. Scan the QR code with an authenticator app on your phone, such as Microsoft Authenticator. Enter the MFA code you see after scanning. + 6. After configuring your account, you will be redirected to CyHy Dashboard. + + For more information on using CyHy Dashboard, view the CyHy Dashboard user guide at https://docs.crossfeed.cyber.dhs.gov/user-guide/quickstart/. + + If you encounter any difficulties, please feel free to reply to this email (or send an email to {reply_to}). + """ + send_email(email, "CyHy Dashboard Invitation", message) + + +def send_email(recipient, subject, body): + """Send an email using AWS SES.""" + _setup_proxy() # Setup proxy if LZ_PROXY_URL is defined + + ses_client = boto3.client("ses", region_name=os.getenv("EMAIL_REGION")) + sender = settings.CROSSFEED_SUPPORT_EMAIL_SENDER + reply_to = settings.CROSSFEED_SUPPORT_EMAIL_REPLYTO + + email_params = { + "Source": sender, + "Destination": {"ToAddresses": [recipient]}, + "Message": {"Subject": {"Data": subject}, "Body": {"Text": {"Data": body}}}, + "ReplyToAddresses": [reply_to], + } + + try: + ses_client.send_email(**email_params) + print(f"Email sent to {recipient}") + except ClientError as e: + print(f"Error sending email: {e}") + + +def send_registration_approved_email( + recipient: str, subject: str, first_name: str, last_name: str, template +): + """Send registration approved email.""" + try: + _setup_proxy() # Setup proxy if LZ_PROXY_URL is defined + + # Initialize S3 client and fetch email template + client = S3Client() + html_template = client.get_email_asset(template) + + if not html_template: + raise ValueError("Email template not found or empty.") + + # Set up the email content with Jinja2 template rendering + template = Template(html_template) + data = { + "firstName": first_name, + "lastName": last_name, + "domain": settings.FRONTEND_DOMAIN, + } + html_to_send = template.render(data) + + # Email configuration + sender = settings.CROSSFEED_SUPPORT_EMAIL_SENDER + reply_to = settings.CROSSFEED_SUPPORT_EMAIL_REPLYTO + + email_params = { + "Source": sender, + "Destination": {"ToAddresses": [recipient]}, + "Message": { + "Subject": {"Data": subject}, + "Body": {"Html": {"Data": html_to_send}}, + }, + "ReplyToAddresses": [reply_to], + } + # SES client + if not settings.IS_LOCAL: + ses_client = boto3.client("ses", region_name=os.getenv("EMAIL_REGION")) + # Send email + ses_client.send_email(**email_params) + print("Email sent successfully to:", recipient) + else: + print(email_params) + print("Local environment cannot send email") + + except (ClientError, ValueError) as e: + print("Email error:", e) + + +def send_registration_denied_email( + recipient: str, subject: str, first_name: str, last_name: str, template +): + """Send registration denied email.""" + try: + _setup_proxy() # Setup proxy if LZ_PROXY_URL is defined + + # Initialize S3 client and fetch email template + client = S3Client() + html_template = client.get_email_asset(template) + + if not html_template: + raise ValueError("Email template not found or empty.") + + # Set up the email content with Jinja2 template rendering + template = Template(html_template) + data = { + "firstName": first_name, + "lastName": last_name, + } + html_to_send = template.render(data) + + # Email configuration + sender = settings.CROSSFEED_SUPPORT_EMAIL_SENDER + reply_to = settings.CROSSFEED_SUPPORT_EMAIL_REPLYTO + + email_params = { + "Source": sender, + "Destination": {"ToAddresses": [recipient]}, + "Message": { + "Subject": {"Data": subject}, + "Body": {"Html": {"Data": html_to_send}}, + }, + "ReplyToAddresses": [reply_to], + } + # SES client + if not settings.IS_LOCAL: + ses_client = boto3.client("ses", region_name=os.getenv("EMAIL_REGION")) + # Send email + ses_client.send_email(**email_params) + print("Email sent successfully to:", recipient) + else: + print(email_params) + print("Local environment cannot send email") + + except (ClientError, ValueError) as e: + print("Email error:", e) diff --git a/backend/src/xfd_django/xfd_api/helpers/filter_helpers.py b/backend/src/xfd_django/xfd_api/helpers/filter_helpers.py new file mode 100644 index 00000000..3366e542 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/helpers/filter_helpers.py @@ -0,0 +1,134 @@ +"""Filter helpers.""" +# Third-Party Libraries +from django.db.models.query import Q, QuerySet +from fastapi import HTTPException + +from ..models import Vulnerability +from ..schema_models.vulnerability import VulnerabilityFilters + + +def sort_direction(sort, order): + """ + Add the sort direction modifier. + + If sort = + ASC - return order field unmodified to sort in ascending order. + DSC - returns & prepend '-' to the order field to sort in descending order. + """ + try: + # Fetch all domains in list + if sort == "ASC": + return order + elif sort == "DSC": + return "-" + order + else: + raise ValueError + except ValueError as e: + print(e) + raise HTTPException(status_code=500, detail="Invalid sort direction supplied") + + +def apply_domain_filters(domains, filters): + """ + Apply filters to domains QuerySet directly. + + For partial matches (like ILIKE), we use __icontains. + """ + q = Q() + + if filters.name: + q &= Q(name__icontains=filters.name) + + # reverseName partial match + if filters.reverseName: + q &= Q(reverseName__icontains=filters.reverseName) + + # name partial match + if hasattr(filters, "name") and filters.name: + q &= Q(name__icontains=filters.name) + + # ip partial match + if filters.ip: + q &= Q(ip__icontains=filters.ip) + + # Organization exact match + if filters.organization: + q &= Q(organization_id=filters.organization) + + # OrganizationName partial match + if filters.organizationName: + q &= Q(organization__name__icontains=filters.organizationName) + + # Vulnerabilities partial match by title + if filters.vulnerabilities: + q &= Q(vulnerabilities__title__icontains=filters.vulnerabilities) + + # Ports filtering: + if hasattr(filters, "ports") and filters.ports: + try: + port_int = int(filters.ports) + q &= Q(services__port=port_int) + except ValueError: + # If not a valid integer, no match + q &= Q(pk__in=[]) + + # Service partial match in products or service field: + if filters.service: + q &= Q(services__products__icontains=filters.service) + + # Finally filter + return domains.filter(q) + + +def apply_vuln_filters( + vulnerabilities: QuerySet, vulnerability_filters: VulnerabilityFilters +) -> QuerySet: + """Filter vulnerabilities using Q objects for partial matches and exact matches.""" + q = Q() + + # Exact match on id + if vulnerability_filters.id: + q &= Q(id=vulnerability_filters.id) + + # Partial match on title (ILIKE -> __icontains) + if vulnerability_filters.title: + q &= Q(title__icontains=vulnerability_filters.title) + + # Partial match on domain name + if vulnerability_filters.domain: + q &= Q(domain__name__icontains=vulnerability_filters.domain) + + # Partial match on severity + if vulnerability_filters.severity: + q &= Q(severity__icontains=vulnerability_filters.severity) + + # Partial match on cpe + if vulnerability_filters.cpe: + q &= Q(cpe__icontains=vulnerability_filters.cpe) + + # Exact match on state + if vulnerability_filters.state: + q &= Q(state=vulnerability_filters.state) + + # Exact match on substate + if hasattr(vulnerability_filters, "substate") and vulnerability_filters.substate: + q &= Q(substate=vulnerability_filters.substate) + + # Exact match on organization + if vulnerability_filters.organization: + q &= Q(domain__organization_id=vulnerability_filters.organization) + + # Exact match on isKev (True/False) + if vulnerability_filters.isKev is not None: + q &= Q(isKev=vulnerability_filters.isKev) + + # Apply the final Q object filter + filtered = vulnerabilities.filter(q) + + # If the queryset is empty, raise a not found exception (404) + if not filtered.exists(): + raise Vulnerability.DoesNotExist( + "No Vulnerabilities found with the provided filters." + ) + + return filtered diff --git a/backend/src/xfd_django/xfd_api/helpers/getScanOrganizations.py b/backend/src/xfd_django/xfd_api/helpers/getScanOrganizations.py new file mode 100644 index 00000000..b4c14a97 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/helpers/getScanOrganizations.py @@ -0,0 +1,27 @@ +"""Get scan organizations methods.""" + +# Standard Python Libraries +from typing import List + +from ..models import Organization, Scan + + +def get_scan_organizations(scan: Scan) -> List[Organization]: + """ + Return the organizations that a scan should be run on. + + A scan should be run on an organization if the scan is + enabled for that organization or for one of its tags. + """ + organizations_to_run = {} + + # Add organizations associated with tags + for tag in scan.tags.all(): + for organization in tag.organizations.all(): + organizations_to_run[organization.id] = organization + + # Add directly associated organizations + for organization in scan.organizations.all(): + organizations_to_run[organization.id] = organization + + return list(organizations_to_run.values()) diff --git a/backend/src/xfd_django/xfd_api/helpers/regionStateMap.py b/backend/src/xfd_django/xfd_api/helpers/regionStateMap.py new file mode 100644 index 00000000..390c83b3 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/helpers/regionStateMap.py @@ -0,0 +1,62 @@ +"""Region state mapping dictionary.""" + +REGION_STATE_MAP = { + "Alabama": "4", + "Alaska": "10", + "American Samoa": "9", + "Arkansas": "6", + "Arizona": "9", + "California": "9", + "Colorado": "8", + "Commonwealth Northern Mariana Islands": "9", + "Connecticut": "1", + "Delaware": "3", + "District of Columbia": "3", + "Federal States of Micronesia": "9", + "Florida": "4", + "Georgia": "4", + "Guam": "9", + "Hawaii": "9", + "Idaho": "10", + "Illinois": "5", + "Indiana": "5", + "Iowa": "7", + "Kansas": "7", + "Kentucky": "4", + "Louisiana": "6", + "Maine": "1", + "Maryland": "3", + "Massachusetts": "1", + "Michigan": "5", + "Minnesota": "5", + "Mississippi": "4", + "Missouri": "7", + "Montana": "8", + "Nebraska": "7", + "Nevada": "9", + "New Hampshire": "1", + "New Jersey": "2", + "New Mexico": "6", + "New York": "2", + "North Carolina": "4", + "North Dakota": "8", + "Ohio": "5", + "Oklahoma": "6", + "Oregon": "10", + "Pennsylvania": "3", + "Puerto Rico": "2", + "Republic of Marshall Islands": "9", + "Rhode Island": "1", + "South Carolina": "4", + "South Dakota": "8", + "Tennessee": "4", + "Texas": "6", + "Utah": "8", + "Vermont": "1", + "Virgin Islands": "2", + "Virginia": "3", + "Washington": "10", + "West Virginia": "3", + "Wisconsin": "5", + "Wyoming": "8", +} diff --git a/backend/src/xfd_django/xfd_api/helpers/s3_client.py b/backend/src/xfd_django/xfd_api/helpers/s3_client.py new file mode 100644 index 00000000..1d6e3b9c --- /dev/null +++ b/backend/src/xfd_django/xfd_api/helpers/s3_client.py @@ -0,0 +1,124 @@ +"""S3 Client.""" +# Standard Python Libraries +from datetime import datetime +import os +import random + +# Third-Party Libraries +import boto3 +from botocore.exceptions import ClientError + + +class S3Client: + """S3 client.""" + + def __init__(self, is_local=None): + """Initialize.""" + self.is_local = ( + is_local + if is_local is not None + else bool(os.getenv("IS_OFFLINE") or os.getenv("IS_LOCAL")) + ) + + if self.is_local: + self.s3 = boto3.client( + "s3", + endpoint_url="http://minio:9000", + config=boto3.session.Config(s3={"addressing_style": "path"}), + ) + else: + self.s3 = boto3.client( + "s3", + config=boto3.session.Config( + s3={"addressing_style": "virtual"}, + retries={"max_attempts": 3}, + signature_version="s3v4", + ), + ) + + def save_csv(self, body, name=""): + """Save a CSV file in S3 and returns a temporary URL for access.""" + try: + key = f"{random.random()}/{name}-{datetime.utcnow().isoformat()}.csv" + bucket = os.getenv("EXPORT_BUCKET_NAME") + + # Save CSV to S3 + self.s3.put_object( + Bucket=bucket, Key=key, Body=body, ContentType="text/csv" + ) + + # Generate signed URL + url = self.s3.generate_presigned_url( + ClientMethod="get_object", + Params={"Bucket": bucket, "Key": key}, + ExpiresIn=60 * 5, + ) + return url.replace("minio:9000", "localhost:9000") if self.is_local else url + except ClientError as e: + print("Error saving CSV to S3: %s", e) + raise + + def export_report(self, report_name, org_id): + """Generate a presigned URL for a report.""" + try: + key = f"{org_id}/{report_name}" + bucket = os.getenv("REPORTS_BUCKET_NAME") + + url = self.s3.generate_presigned_url( + ClientMethod="get_object", + Params={"Bucket": bucket, "Key": key}, + ExpiresIn=60 * 5, + ) + return url.replace("minio:9000", "localhost:9000") if self.is_local else url + except ClientError as e: + print("Error exporting report from S3: %s", e) + raise + + def list_reports(self, org_id): + """List all reports in a specified organization's folder.""" + try: + bucket = os.getenv("REPORTS_BUCKET_NAME") + prefix = f"{org_id}/" + + response = self.s3.list_objects_v2( + Bucket=bucket, Prefix=prefix, Delimiter="" + ) + return response.get("Contents", []) + except ClientError as e: + print("Error listing reports from S3: %s", e) + raise + + def pull_daily_vs(self, filename): + """Retrieve a specified daily VS file from S3.""" + bucket = os.getenv("VS_BUCKET_NAME", "vs-extracts") + + try: + response = self.s3.head_object(Bucket=bucket, Key=filename) + if response: + print(f"File '{filename}' exists in bucket {bucket}.") + except self.s3.exceptions.NoSuchKey: + print(f"File '{filename}' does not exist in bucket {bucket}.") + return None + except ClientError as e: + print("Error checking for file in S3: %s", e) + raise + + try: + response = self.s3.get_object(Bucket=bucket, Key=filename) + return response["Body"].read() if "Body" in response else None + except ClientError as e: + print("Error downloading file from S3: %s", e) + raise + + def get_email_asset(self, file_name): + """Retrieve an email template asset from S3.""" + bucket = os.getenv("EMAIL_BUCKET_NAME") + + try: + response = self.s3.get_object(Bucket=bucket, Key=file_name) + return ( + response["Body"].read().decode("utf-8") if "Body" in response else None + ) + except ClientError as e: + print("Error retrieving email asset from S3: %s", e) + raise diff --git a/backend/src/xfd_django/xfd_api/helpers/stats_helpers.py b/backend/src/xfd_django/xfd_api/helpers/stats_helpers.py new file mode 100644 index 00000000..fb7cead7 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/helpers/stats_helpers.py @@ -0,0 +1,123 @@ +"""Stats helper methods.""" +# Standard Python Libraries +import asyncio +from collections import defaultdict +import json + +# Third-Party Libraries +from django.conf import settings +from django.db.models import Count, Q +import redis +from xfd_api.models import Domain + + +async def safe_redis_mget(redis_client, redis_keys, redis_semaphore): + """Safely perform Redis MGET with concurrency limit.""" + async with redis_semaphore: + return await redis_client.mget(*redis_keys) + + +async def get_stats_count_from_cache(redis_client, redis_key_prefix, filtered_org_ids): + """Fetch and aggregate stats from Redis.""" + aggregated_stats = defaultdict(int) + + # Fetch data from Redis by organization ID + redis_keys = [f"{redis_key_prefix}:{org_id}" for org_id in filtered_org_ids] + redis_responses = await asyncio.gather( + *(redis_client.get(redis_key) for redis_key in redis_keys), + return_exceptions=True, + ) + + for response in redis_responses: + if isinstance(response, Exception): + continue + if response: + stats_list = json.loads(response) + for stat in stats_list: + aggregated_stats[stat["id"]] += stat["value"] + + return [ + {"id": stat_id, "value": value, "label": stat_id} + for stat_id, value in aggregated_stats.items() + ] + + +def populate_stats_cache( + model, + group_by_field, + redis_key_prefix, + annotate_field="id", + custom_id=None, + filters=None, +): + """Populate Redis stats with custom ID fields.""" + try: + # Connect to Redis + redis_client = redis.StrictRedis( + host=settings.ELASTICACHE_ENDPOINT, + port=6379, + db=0, + decode_responses=True, + ) + + # Build queryset with optional filters + queryset = model.objects.all() + if filters: + queryset = queryset.filter(**filters).filter( + Q(domain__isFceb=True) | Q(domain__fromCidr=True) # Apply OR condition + ) + + # Apply custom ID annotation if provided + if custom_id: + queryset = queryset.annotate(custom_id=custom_id) + + # Aggregate and group data + stats = ( + queryset.values( + group_by_field, "custom_id" if custom_id else annotate_field + ) + .annotate(value=Count(annotate_field)) + .order_by(group_by_field, "-value") + ) + + # Organize stats by grouping field + stats_by_group = {} + for item in stats: + group_id = str(item[group_by_field]) + key = str(item["custom_id"]) if custom_id else str(item[annotate_field]) + count = item["value"] + if group_id not in stats_by_group: + stats_by_group[group_id] = [] + stats_by_group[group_id].append({"id": key, "value": count}) + + # Store stats in Redis + for group_id, data in stats_by_group.items(): + redis_key = f"{redis_key_prefix}:{group_id}" + redis_client.set(redis_key, json.dumps(data)) + + return { + "status": "success", + "message": f"Cache populated successfully for {redis_key_prefix}.", + } + + except Exception as e: + return { + "status": "error", + "message": f"An unexpected error occurred: {e}", + } + + +async def get_total_count(filtered_org_ids): + """Retrieve the total count of domains associated with the filtered organizations.""" + try: + # Query the database for the total count of domains in the filtered organizations + total_count = ( + Domain.objects.filter(organization__in=filtered_org_ids) + .filter(Q(isFceb=True) | Q(fromCidr=True)) + .count() + ) + return total_count + + except Exception as e: + print(f"Unexpected error fetching total count: {e}") + return 0 diff --git a/backend/src/xfd_django/xfd_api/login_gov.py b/backend/src/xfd_django/xfd_api/login_gov.py new file mode 100644 index 00000000..2bc3362a --- /dev/null +++ b/backend/src/xfd_django/xfd_api/login_gov.py @@ -0,0 +1,94 @@ +"""Login gov methods.""" +# Standard Python Libraries +import json +import os +import secrets + +# Third-Party Libraries +import jwt +import requests + +discovery_url = ( + os.getenv("LOGIN_GOV_BASE_URL", "") + "/.well-known/openid-configuration" +) + +# Load JWK Set (JSON Web Key Set) +try: + jwk_set = {"keys": [json.loads(os.getenv("LOGIN_GOV_JWT_KEY", ""))]} +except Exception as error: + print(f"Error: {error}") + jwk_set = {"keys": [{}]} + +# OpenID Connect Client Configuration +client_options = { + "client_id": os.getenv("LOGIN_GOV_ISSUER"), + "token_endpoint_auth_method": "private_key_jwt", + "id_token_signed_response_alg": "RS256", + "redirect_uris": [os.getenv("LOGIN_GOV_REDIRECT_URI", "")], + "token_endpoint": os.getenv("LOGIN_GOV_BASE_URL", "") + "/api/openid_connect/token", +} + + +# Generate random string for nonce and state +def random_string(length): + """Random string generator.""" + return secrets.token_hex(length // 2) + + +# Login function that returns authorization URL, state, and nonce +def login(): + """Equivalent function to initiate OpenID Connect login.""" + # Fetch OpenID Connect configuration + config_response = requests.get(discovery_url, timeout=20) + config = config_response.json() + + nonce = random_string(32) + state = random_string(32) + + # Create authorization URL + authorization_url = ( + f"{config['authorization_endpoint']}?response_type=code" + f"&client_id={client_options['client_id']}" + f"&redirect_uri={client_options['redirect_uris'][0]}" + f"&scope=openid+email" + f"&nonce={nonce}&state={state}&prompt=select_account" + ) + + return {"url": authorization_url, "state": state, "nonce": nonce} + + +# Callback function to exchange authorization code for tokens and user info +def callback(body): + """Equivalent function to handle OpenID Connect callback.""" + config_response = requests.get(discovery_url, timeout=20) + config = config_response.json() + + # Exchange the authorization code for tokens + token_response = requests.post( + config["token_endpoint"], + headers={"Content-Type": "application/x-www-form-urlencoded"}, + data={ + "grant_type": "authorization_code", + "code": body["code"], + "client_id": client_options["client_id"], + "redirect_uri": client_options["redirect_uris"][0], + "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", + "client_assertion": jwt.encode( + {"alg": "RS256"}, jwk_set["keys"][0], algorithm="RS256" + ), + }, + timeout=20, # Timeout in seconds + ) + + token_response_data = token_response.json() + + if "id_token" not in token_response_data: + raise Exception("ID token not found in the token response") + + id_token = token_response_data["id_token"] + + # Decode the ID token without verifying the signature + # (optional depending on your security model) + decoded_token = jwt.decode(id_token, options={"verify_signature": False}) + print(f"Decoded Token from login_gov: {decoded_token}") + return decoded_token diff --git a/backend/src/xfd_django/xfd_api/management/__init__.py b/backend/src/xfd_django/xfd_api/management/__init__.py new file mode 100644 index 00000000..8d16f202 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/__init__.py @@ -0,0 +1 @@ +"""Initialize.""" diff --git a/backend/src/xfd_django/xfd_api/management/commands/__init__.py b/backend/src/xfd_django/xfd_api/management/commands/__init__.py new file mode 100644 index 00000000..8d16f202 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/__init__.py @@ -0,0 +1 @@ +"""Initialize.""" diff --git a/backend/src/xfd_django/xfd_api/management/commands/local_scan_execution.py b/backend/src/xfd_django/xfd_api/management/commands/local_scan_execution.py new file mode 100644 index 00000000..7adb5b00 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/local_scan_execution.py @@ -0,0 +1,90 @@ +"""Scan execution.""" +# Standard Python Libraries +import json + +# Third-Party Libraries +from django.core.management.base import BaseCommand +import pika # For RabbitMQ +from xfd_api.tasks.scanExecution import handler as scan_execution + + +class Command(BaseCommand): + """Command.""" + + help = "Run local scan execution and send messages to RabbitMQ" + + def add_arguments(self, parser): + """Add arguments.""" + parser.add_argument( + "--scan-type", type=str, required=True, help="Type of scan to execute." + ) + parser.add_argument( + "--desired-count", type=int, default=1, help="Number of scans to run." + ) + parser.add_argument( + "--api-key-list", type=str, default="", help="Comma-separated API keys." + ) + parser.add_argument( + "--org-list", type=str, nargs="+", help="List of organizations." + ) + parser.add_argument("--queue", type=str, help="RabbitMQ queue name.") + + def handle(self, *args, **options): + """Handle method.""" + scan_type = options["scan_type"] + desired_count = options["desired_count"] + api_key_list = options["api_key_list"] + org_list = options.get("org_list", []) + queue = options.get("queue", f"staging-{scan_type}-queue") + + if not org_list: + self.stdout.write(self.style.ERROR("Organization list cannot be empty.")) + return + + # Send messages to RabbitMQ queue + for org in org_list: + message = {"scriptType": scan_type, "org": org} + self.send_message_to_queue(message, queue) + + # Run the local scan execution + self.local_scan_execution(scan_type, desired_count, api_key_list) + + @staticmethod + def send_message_to_queue(message, queue): + """Send message to queue.""" + try: + connection = pika.BlockingConnection( + pika.ConnectionParameters(host="rabbitmq") + ) + channel = connection.channel() + + # Declare the queue + channel.queue_declare(queue=queue, durable=True) + + # Send the message to the queue + channel.basic_publish( + exchange="", + routing_key=queue, + body=json.dumps(message), + properties=pika.BasicProperties( + delivery_mode=2 + ), # Make message persistent + ) + + print("Message sent:", message) + + # Close the connection + connection.close() + except Exception as e: + print(f"Error sending message to queue {queue}: {e}") + + @staticmethod + def local_scan_execution(scan_type, desired_count, api_key_list=""): + """Run the scan execution handler locally.""" + print("Starting local scan execution...") + payload = { + "scanType": scan_type, + "desiredCount": desired_count, + "apiKeyList": api_key_list, + } + scan_execution(payload, {}) diff --git a/backend/src/xfd_django/xfd_api/management/commands/populate_by_orgs_cache.py b/backend/src/xfd_django/xfd_api/management/commands/populate_by_orgs_cache.py new file mode 100644 index 00000000..4c825ed1 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/populate_by_orgs_cache.py @@ -0,0 +1,15 @@ +"""Populate command.""" +# Third-Party Libraries +from django.core.management.base import BaseCommand +from xfd_api.tasks.elasticache_tasks import populate_by_org_cache + + +class Command(BaseCommand): + """Command.""" + + help = "Populates the vulnerabilities stats cache in AWS Elasticache" + + def handle(self, *args, **options): + """Handle call.""" + result = populate_by_org_cache({}, {}) + self.stdout.write(self.style.SUCCESS(result["message"])) diff --git a/backend/src/xfd_django/xfd_api/management/commands/populate_latest_vulns_cache.py b/backend/src/xfd_django/xfd_api/management/commands/populate_latest_vulns_cache.py new file mode 100644 index 00000000..b28f9129 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/populate_latest_vulns_cache.py @@ -0,0 +1,15 @@ +"""Populate command.""" +# Third-Party Libraries +from django.core.management.base import BaseCommand +from xfd_api.tasks.elasticache_tasks import populate_latest_vulns_cache + + +class Command(BaseCommand): + """Command.""" + + help = "Populates the vulnerabilities stats cache in AWS Elasticache" + + def handle(self, *args, **options): + """Handle call.""" + result = populate_latest_vulns_cache({}, {}) + self.stdout.write(self.style.SUCCESS(result["message"])) diff --git a/backend/src/xfd_django/xfd_api/management/commands/populate_most_common_vulns_cache.py b/backend/src/xfd_django/xfd_api/management/commands/populate_most_common_vulns_cache.py new file mode 100644 index 00000000..860ca062 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/populate_most_common_vulns_cache.py @@ -0,0 +1,15 @@ +"""Populate command.""" +# Third-Party Libraries +from django.core.management.base import BaseCommand +from xfd_api.tasks.elasticache_tasks import populate_most_common_vulns_cache + + +class Command(BaseCommand): + """Command.""" + + help = "Populates the vulnerabilities stats cache in AWS Elasticache" + + def handle(self, *args, **options): + """Handle call.""" + result = populate_most_common_vulns_cache({}, {}) + self.stdout.write(self.style.SUCCESS(result["message"])) diff --git a/backend/src/xfd_django/xfd_api/management/commands/populate_ports_cache.py b/backend/src/xfd_django/xfd_api/management/commands/populate_ports_cache.py new file mode 100644 index 00000000..f2a3dfc2 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/populate_ports_cache.py @@ -0,0 +1,18 @@ +"""Populate command.""" +# Third-Party Libraries +from django.core.management.base import BaseCommand +from xfd_api.tasks.elasticache_tasks import populate_ports_cache + + +class Command(BaseCommand): + """Command.""" + + help = ( + "Populates the vulnerabilities stats cache in AWS Elasticache." + " i.e. python manage.py populate_ServicesStatscache" + ) + + def handle(self, *args, **options): + """Handle call.""" + result = populate_ports_cache({}, {}) + self.stdout.write(self.style.SUCCESS(result["message"])) diff --git a/backend/src/xfd_django/xfd_api/management/commands/populate_services_cache.py b/backend/src/xfd_django/xfd_api/management/commands/populate_services_cache.py new file mode 100644 index 00000000..8c2f9235 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/populate_services_cache.py @@ -0,0 +1,18 @@ +"""Populate command.""" +# Third-Party Libraries +from django.core.management.base import BaseCommand +from xfd_api.tasks.elasticache_tasks import populate_services_cache + + +class Command(BaseCommand): + """Command.""" + + help = ( + "Populates the vulnerabilities stats cache in AWS Elasticache." + " i.e. python manage.py populate_ServicesStatscache" + ) + + def handle(self, *args, **options): + """Handle call.""" + result = populate_services_cache({}, {}) + self.stdout.write(self.style.SUCCESS(result["message"])) diff --git a/backend/src/xfd_django/xfd_api/management/commands/populate_severity_count_cache.py b/backend/src/xfd_django/xfd_api/management/commands/populate_severity_count_cache.py new file mode 100644 index 00000000..3f2b77d8 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/populate_severity_count_cache.py @@ -0,0 +1,15 @@ +"""Populate command.""" +# Third-Party Libraries +from django.core.management.base import BaseCommand +from xfd_api.tasks.elasticache_tasks import populate_severity_cache + + +class Command(BaseCommand): + """Command.""" + + help = "Populates the vulnerabilities stats cache in AWS Elasticache" + + def handle(self, *args, **options): + """Handle call.""" + result = populate_severity_cache({}, {}) + self.stdout.write(self.style.SUCCESS(result["message"])) diff --git a/backend/src/xfd_django/xfd_api/management/commands/populate_vulns_cache.py b/backend/src/xfd_django/xfd_api/management/commands/populate_vulns_cache.py new file mode 100644 index 00000000..a3aaac7a --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/populate_vulns_cache.py @@ -0,0 +1,15 @@ +"""Populate command.""" +# Third-Party Libraries +from django.core.management.base import BaseCommand +from xfd_api.tasks.elasticache_tasks import populate_num_vulns_cache + + +class Command(BaseCommand): + """Command.""" + + help = "Populates the vulnerabilities stats cache in AWS Elasticache" + + def handle(self, *args, **options): + """Handle call.""" + result = populate_num_vulns_cache({}, {}) + self.stdout.write(self.style.SUCCESS(result["message"])) diff --git a/backend/src/xfd_django/xfd_api/management/commands/syncdb.py b/backend/src/xfd_django/xfd_api/management/commands/syncdb.py new file mode 100644 index 00000000..cae32c60 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/management/commands/syncdb.py @@ -0,0 +1,57 @@ +"""Populate command.""" +# Third-Party Libraries +from django.core.management.base import BaseCommand +from xfd_api.tasks.syncdb_helpers import ( + drop_all_tables, + manage_elasticsearch_indices, + populate_sample_data, + sync_es_organizations, + synchronize, +) + + +class Command(BaseCommand): + """Syncdb command.""" + + help = "Synchronizes and populates the database with optional sample data, and manages Elasticsearch indices." + + def add_arguments(self, parser): + """Add arguments.""" + parser.add_argument( + "-d", + "--dangerouslyforce", + action="store_true", + help="Force drop and recreate the database.", + ) + parser.add_argument( + "-p", + "--populate", + action="store_true", + help="Populate the database with sample data.", + ) + + def handle(self, *args, **options): + """Handle method.""" + dangerouslyforce = options["dangerouslyforce"] + populate = options["populate"] + + # Step 1: Database Reset and Migration + if dangerouslyforce: + self.stdout.write("Dropping and recreating the database...") + drop_all_tables() + synchronize() + else: + self.stdout.write("Applying migrations...") + synchronize() + + # Step 2: Elasticsearch Index Management + manage_elasticsearch_indices(dangerouslyforce) + + # Step 3: Populate Sample Data + if populate: + self.stdout.write("Populating the database with sample data...") + populate_sample_data() + self.stdout.write("Sample data population complete.") + + # Step 4: Sync organizations in ES + sync_es_organizations() diff --git a/backend/src/xfd_django/xfd_api/migrations/__init__.py b/backend/src/xfd_django/xfd_api/migrations/__init__.py new file mode 100644 index 00000000..8d16f202 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/migrations/__init__.py @@ -0,0 +1 @@ +"""Initialize.""" diff --git a/backend/src/xfd_django/xfd_api/models.py b/backend/src/xfd_django/xfd_api/models.py new file mode 100644 index 00000000..3f8916d9 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/models.py @@ -0,0 +1,747 @@ +"""Django ORM models.""" + + +# Standard Python Libraries +from datetime import datetime, timezone +import uuid + +# Third-Party Libraries +from django.contrib.postgres.fields import ArrayField +from django.db import models + + +class ApiKey(models.Model): + """The ApiKey model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(auto_now_add=True, db_column="createdAt") + updatedAt = models.DateTimeField(auto_now=True, db_column="updatedAt") + lastUsed = models.DateTimeField(db_column="lastUsed", blank=True, null=True) + hashedKey = models.TextField(db_column="hashedKey") + lastFour = models.TextField(db_column="lastFour") + user = models.ForeignKey( + "User", + models.CASCADE, + db_column="userId", + blank=True, + null=True, + related_name="apiKeys", + ) + + class Meta: + """Meta class for ApiKey.""" + + managed = True + db_table = "api_key" + + +class Cpe(models.Model): + """The Cpe model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + name = models.CharField(max_length=255) + version = models.CharField(max_length=255) + vendor = models.CharField(max_length=255) + lastSeenAt = models.DateTimeField(db_column="lastSeenAt") + + class Meta: + """The Meta class for Cpe.""" + + db_table = "cpe" + managed = True # This ensures Django does not manage the table + unique_together = (("name", "version", "vendor"),) # Unique constraint + + +class Cve(models.Model): + """The Cve model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + name = models.CharField(unique=True, blank=True, null=True) + publishedAt = models.DateTimeField(db_column="publishedAt", blank=True, null=True) + modifiedAt = models.DateTimeField(db_column="modifiedAt", blank=True, null=True) + status = models.CharField(blank=True, null=True) + description = models.CharField(blank=True, null=True) + cvssV2Source = models.CharField(db_column="cvssV2Source", blank=True, null=True) + cvssV2Type = models.CharField(db_column="cvssV2Type", blank=True, null=True) + cvssV2Version = models.CharField(db_column="cvssV2Version", blank=True, null=True) + cvssV2VectorString = models.CharField( + db_column="cvssV2VectorString", blank=True, null=True + ) + cvssV2BaseScore = models.CharField( + db_column="cvssV2BaseScore", blank=True, null=True + ) + cvssV2BaseSeverity = models.CharField( + db_column="cvssV2BaseSeverity", blank=True, null=True + ) + cvssV2ExploitabilityScore = models.CharField( + db_column="cvssV2ExploitabilityScore", blank=True, null=True + ) + cvssV2ImpactScore = models.CharField( + db_column="cvssV2ImpactScore", blank=True, null=True + ) + cvssV3Source = models.CharField(db_column="cvssV3Source", blank=True, null=True) + cvssV3Type = models.CharField(db_column="cvssV3Type", blank=True, null=True) + cvssV3Version = models.CharField(db_column="cvssV3Version", blank=True, null=True) + cvssV3VectorString = models.CharField( + db_column="cvssV3VectorString", blank=True, null=True + ) + cvssV3BaseScore = models.CharField( + db_column="cvssV3BaseScore", blank=True, null=True + ) + cvssV3BaseSeverity = models.CharField( + db_column="cvssV3BaseSeverity", blank=True, null=True + ) + cvssV3ExploitabilityScore = models.CharField( + db_column="cvssV3ExploitabilityScore", blank=True, null=True + ) + cvssV3ImpactScore = models.CharField( + db_column="cvssV3ImpactScore", blank=True, null=True + ) + cvssV4Source = models.CharField(db_column="cvssV4Source", blank=True, null=True) + cvssV4Type = models.CharField(db_column="cvssV4Type", blank=True, null=True) + cvssV4Version = models.CharField(db_column="cvssV4Version", blank=True, null=True) + cvssV4VectorString = models.CharField( + db_column="cvssV4VectorString", blank=True, null=True + ) + cvssV4BaseScore = models.CharField( + db_column="cvssV4BaseScore", blank=True, null=True + ) + cvssV4BaseSeverity = models.CharField( + db_column="cvssV4BaseSeverity", blank=True, null=True + ) + cvssV4ExploitabilityScore = models.CharField( + db_column="cvssV4ExploitabilityScore", blank=True, null=True + ) + cvssV4ImpactScore = models.CharField( + db_column="cvssV4ImpactScore", blank=True, null=True + ) + weaknesses = models.TextField(blank=True, null=True) + references = models.TextField(blank=True, null=True) + + cpes = models.ManyToManyField( + "Cpe", + related_name="cves", + db_table="cve_cpes_cpe", + ) + + class Meta: + """The Meta class for Cve.""" + + managed = True + db_table = "cve" + + +class Domain(models.Model): + """The Domain model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(auto_now_add=True, db_column="createdAt") + updatedAt = models.DateTimeField(auto_now=True, db_column="updatedAt") + + syncedAt = models.DateTimeField(db_column="syncedAt", blank=True, null=True) + ip = models.CharField(max_length=255, blank=True, null=True) + fromRootDomain = models.CharField( + max_length=255, db_column="fromRootDomain", blank=True, null=True + ) + subdomainSource = models.CharField( + db_column="subdomainSource", max_length=255, blank=True, null=True + ) + ipOnly = models.BooleanField(db_column="ipOnly", default=False) + + reverseName = models.CharField(db_column="reverseName", max_length=512) + name = models.CharField(max_length=512) + + screenshot = models.CharField(max_length=512, blank=True, null=True) + country = models.CharField(max_length=255, blank=True, null=True) + asn = models.CharField(max_length=255, blank=True, null=True) + cloudHosted = models.BooleanField(db_column="cloudHosted", default=False) + fromCidr = models.BooleanField(db_column="fromCidr", default=False) + isFceb = models.BooleanField(db_column="isFceb", default=False) + + ssl = models.JSONField(blank=True, null=True) + censysCertificatesResults = models.JSONField( + db_column="censysCertificatesResults", default=dict + ) + trustymailResults = models.JSONField(db_column="trustymailResults", default=dict) + + discoveredBy = models.ForeignKey( + "Scan", + on_delete=models.SET_NULL, + null=True, + blank=True, + db_column="discoveredById", + ) + organization = models.ForeignKey( + "Organization", on_delete=models.CASCADE, db_column="organizationId" + ) + + class Meta: + """The meta class for Domain.""" + + db_table = "domain" + managed = True # This ensures Django does not manage the table + unique_together = (("name", "organization"),) # Unique constraint + + def save(self, *args, **kwargs): + """Save domain ith reverseName.""" + self.name = self.name.lower() + self.reverseName = ".".join(reversed(self.name.split("."))) + super().save(*args, **kwargs) + + +class Log(models.Model): + """The Log model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + payload = models.JSONField() + createdAt = models.DateTimeField(auto_now_add=True) + eventType = models.CharField(max_length=255, null=True, blank=True) + result = models.CharField(max_length=255) + + class Meta: + """The Meta class for Log.""" + + managed = True + db_table = "log" + + +class Notification(models.Model): + """The Notification model.""" + + id = models.UUIDField(primary_key=True) + createdAt = models.DateTimeField(db_column="createdAt") + updatedAt = models.DateTimeField(db_column="updatedAt") + startDatetime = models.DateTimeField( + db_column="startDatetime", blank=True, null=True + ) + endDatetime = models.DateTimeField(db_column="endDatetime", blank=True, null=True) + maintenanceType = models.CharField( + db_column="maintenanceType", blank=True, null=True + ) + status = models.CharField(blank=True, null=True) + updatedBy = models.CharField(db_column="updatedBy", blank=True, null=True) + message = models.CharField(blank=True, null=True) + + class Meta: + """The Meta class for Notification.""" + + managed = True + db_table = "notification" + + +class Organization(models.Model): + """The Organization model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(db_column="createdAt", auto_now_add=True) + updatedAt = models.DateTimeField(db_column="updatedAt", auto_now=True) + + acronym = models.CharField(unique=True, blank=True, null=True, max_length=255) + name = models.CharField(max_length=255) + rootDomains = ArrayField(models.CharField(max_length=255), db_column="rootDomains") + ipBlocks = ArrayField(models.CharField(max_length=255), db_column="ipBlocks") + isPassive = models.BooleanField(db_column="isPassive", default=False) + + pendingDomains = models.TextField( + db_column="pendingDomains", default="[]" + ) # ******* Had to change this from JSON TO TEXT********** + country = models.CharField(max_length=255, blank=True, null=True) + state = models.CharField(max_length=255, blank=True, null=True) + regionId = models.CharField( + max_length=255, db_column="regionId", blank=True, null=True + ) + stateFips = models.IntegerField(db_column="stateFips", blank=True, null=True) + stateName = models.CharField( + max_length=255, db_column="stateName", blank=True, null=True + ) + county = models.CharField(max_length=255, blank=True, null=True) + countyFips = models.IntegerField(db_column="countyFips", blank=True, null=True) + type = models.CharField(max_length=255, blank=True, null=True) + + parent = models.ForeignKey( + "self", + db_column="parentId", + on_delete=models.CASCADE, + related_name="children", + null=True, + blank=True, + ) + + createdBy = models.ForeignKey( + "User", + db_column="createdById", + on_delete=models.SET_NULL, + null=True, + blank=True, + ) + + class Meta: + """The meta class for Organization.""" + + managed = True + db_table = "organization" + + +class OrganizationTag(models.Model): + """The OrganizationTag model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(db_column="createdAt", auto_now_add=True) + updatedAt = models.DateTimeField(db_column="updatedAt", auto_now=True) + + name = models.CharField(max_length=255, unique=True) + organizations = models.ManyToManyField( + "Organization", + related_name="tags", + db_table="organization_tag_organizations_organization", + ) + + class Meta: + """The Meta class for OrganizationTag.""" + + managed = True + db_table = "organization_tag" + + +class QueryResultCache(models.Model): + """The QueryResultCache model.""" + + identifier = models.CharField(blank=True, null=True) + time = models.BigIntegerField() + duration = models.IntegerField() + query = models.TextField() + result = models.TextField() + + class Meta: + """The Meta class for QueryResultCache.""" + + managed = True + db_table = "query-result-cache" + + +class Role(models.Model): + """The Role model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(auto_now_add=True, db_column="createdAt") + updatedAt = models.DateTimeField(auto_now=True, db_column="updatedAt") + + role = models.CharField(max_length=10, default="user") + approved = models.BooleanField(default=False) + + user = models.ForeignKey( + "User", on_delete=models.CASCADE, db_column="userId", related_name="roles" + ) + createdBy = models.ForeignKey( + "User", + models.DO_NOTHING, + db_column="createdById", + related_name="createdRoles", + blank=True, + null=True, + ) + approvedBy = models.ForeignKey( + "User", + models.DO_NOTHING, + db_column="approvedById", + related_name="approvedRoles", + blank=True, + null=True, + ) + + organization = models.ForeignKey( + "Organization", + on_delete=models.CASCADE, + db_column="organizationId", + related_name="userRoles", + blank=True, + null=True, + ) + + class Meta: + """The Meta class for Role.""" + + managed = True + db_table = "role" + unique_together = (("user", "organization"),) + + +class SavedSearch(models.Model): + """The SavedSearch model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(db_column="createdAt", auto_now_add=True) + updatedAt = models.DateTimeField(db_column="updatedAt", auto_now=True) + + name = models.CharField() + searchTerm = models.CharField(db_column="searchTerm") + sortDirection = models.CharField(db_column="sortDirection") + sortField = models.CharField(db_column="sortField") + count = models.IntegerField() + filters = models.JSONField() + searchPath = models.CharField(db_column="searchPath") + createdById = models.ForeignKey( + "User", models.DO_NOTHING, db_column="createdById", blank=True, null=True + ) + + class Meta: + """The Meta class for SavedSearch.""" + + managed = True + db_table = "saved_search" + + +class Scan(models.Model): + """The Scan model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(db_column="createdAt", auto_now_add=True) + updatedAt = models.DateTimeField(db_column="updatedAt", auto_now=True) + + name = models.CharField() + arguments = models.TextField( + default="{}" + ) # JSON in the database but fails: the JSON object must be str, bytes or bytearray, not dict + frequency = models.IntegerField() + + lastRun = models.DateTimeField(db_column="lastRun", blank=True, null=True) + isGranular = models.BooleanField(db_column="isGranular", default=False) + isUserModifiable = models.BooleanField( + db_column="isUserModifiable", blank=True, null=True, default=False + ) + isSingleScan = models.BooleanField(db_column="isSingleScan", default=False) + manualRunPending = models.BooleanField(db_column="manualRunPending", default=False) + + createdBy = models.ForeignKey( + "User", models.SET_NULL, db_column="createdById", blank=True, null=True + ) + tags = models.ManyToManyField( + "OrganizationTag", related_name="scans", db_table="scan_tags_organization_tag" + ) + organizations = models.ManyToManyField( + "Organization", + related_name="granularScans", + db_table="scan_organizations_organization", + ) + + class Meta: + """The Meta class for Scan.""" + + managed = True + db_table = "scan" + + +class ScanTask(models.Model): + """The ScanTask model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(db_column="createdAt", auto_now_add=True) + updatedAt = models.DateTimeField(db_column="updatedAt", auto_now=True) + status = models.TextField() + type = models.TextField() + fargateTaskArn = models.TextField(db_column="fargateTaskArn", blank=True, null=True) + input = models.TextField(blank=True, null=True) + output = models.TextField(blank=True, null=True) + requestedAt = models.DateTimeField(db_column="requestedAt", blank=True, null=True) + startedAt = models.DateTimeField(db_column="startedAt", blank=True, null=True) + finishedAt = models.DateTimeField(db_column="finishedAt", blank=True, null=True) + queuedAt = models.DateTimeField(db_column="queuedAt", blank=True, null=True) + + scan = models.ForeignKey( + Scan, on_delete=models.SET_NULL, db_column="scanId", blank=True, null=True + ) + organizations = models.ManyToManyField( + "Organization", + related_name="allScanTasks", + db_table="scan_task_organizations_organization", + ) + + class Meta: + """The Meta class for ScanTask.""" + + managed = True + db_table = "scan_task" + + +class Service(models.Model): + """The Service model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(auto_now_add=True, db_column="createdAt") + updatedAt = models.DateTimeField(auto_now=True, db_column="updatedAt") + + serviceSource = models.TextField(db_column="serviceSource", blank=True, null=True) + port = models.IntegerField() + service = models.CharField(blank=True, null=True) + lastSeen = models.DateTimeField(db_column="lastSeen", blank=True, null=True) + banner = models.TextField(blank=True, null=True) + + products = models.JSONField(default=list) + censysMetadata = models.JSONField( + db_column="censysMetadata", null=True, blank=True, default=dict + ) + censysIpv4Results = models.JSONField(db_column="censysIpv4Results", default=dict) + intrigueIdentResults = models.JSONField( + db_column="intrigueIdentResults", default=dict + ) + shodanResults = models.JSONField( + db_column="shodanResults", null=True, blank=True, default=dict + ) + wappalyzerResults = models.JSONField(db_column="wappalyzerResults", default=list) + + domain = models.ForeignKey( + Domain, db_column="domainId", on_delete=models.CASCADE, related_name="services" + ) + discoveredBy = models.ForeignKey( + Scan, + db_column="discoveredById", + blank=True, + null=True, + on_delete=models.SET_NULL, + related_name="services", + ) + + class Meta: + """The Meta class for Service.""" + + managed = True + db_table = "service" + unique_together = (("port", "domain"),) + + +class TypeormMetadata(models.Model): + """The TypeormMetadata model.""" + + type = models.CharField() + database = models.CharField(blank=True, null=True) + schema = models.CharField(blank=True, null=True) + table = models.CharField(blank=True, null=True) + name = models.CharField(blank=True, null=True) + value = models.TextField(blank=True, null=True) + + class Meta: + """The Meta class for TypeormMetadata.""" + + managed = True + db_table = "typeorm_metadata" + + +class UserType(models.TextChoices): + """User type definition.""" + + GLOBAL_ADMIN = "globalAdmin" + GLOBAL_VIEW = "globalView" + REGIONAL_ADMIN = "regionalAdmin" + STANDARD = "standard" + + +class User(models.Model): + """The User model.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + cognitoId = models.CharField( + max_length=255, db_column="cognitoId", unique=True, blank=True, null=True + ) + oktaId = models.CharField( + max_length=255, db_column="oktaId", null=True, blank=True, unique=True + ) + loginGovId = models.CharField( + max_length=255, db_column="loginGovId", unique=True, blank=True, null=True + ) + createdAt = models.DateTimeField(auto_now_add=True, db_column="createdAt") + updatedAt = models.DateTimeField(auto_now=True, db_column="updatedAt") + + firstName = models.CharField(max_length=255, db_column="firstName") + lastName = models.CharField(max_length=255, db_column="lastName") + fullName = models.CharField(max_length=255, db_column="fullName") + email = models.CharField(unique=True) + + invitePending = models.BooleanField(db_column="invitePending", default=False) + loginBlockedByMaintenance = models.BooleanField( + db_column="loginBlockedByMaintenance", default=False + ) + dateAcceptedTerms = models.DateTimeField( + db_column="dateAcceptedTerms", blank=True, null=True + ) + acceptedTermsVersion = models.TextField( + db_column="acceptedTermsVersion", blank=True, null=True + ) + + lastLoggedIn = models.DateTimeField(db_column="lastLoggedIn", blank=True, null=True) + userType = models.CharField( + db_column="userType", + max_length=50, + choices=UserType.choices, + default=UserType.STANDARD, + ) + + regionId = models.CharField( + db_column="regionId", blank=True, null=True, max_length=255 + ) + state = models.CharField(blank=True, null=True, max_length=255) + + def save(self, *args, **kwargs): + """Save user with fullName.""" + self.fullName = f"{self.firstName} {self.lastName}" + super().save(*args, **kwargs) + + class Meta: + """The Meta class for User.""" + + managed = True + db_table = "user" + + +class Vulnerability(models.Model): + """The Vulnerability model.""" + + class SeverityChoices(models.TextChoices): + """Severity choices.""" + + NONE = "None" + LOW = "Low" + MEDIUM = "Medium" + HIGH = "High" + CRITICAL = "Critical" + + class StateChoices(models.TextChoices): + """State choices.""" + + OPEN = "open" + CLOSED = "closed" + + class SubstateChoices(models.TextChoices): + """Substate choices.""" + + UNCONFIRMED = "unconfirmed" + EXPLOITABLE = "exploitable" + FALSE_POSITIVE = "false-positive" + ACCEPTED_RISK = "accepted-risk" + REMEDIATED = "remediated" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + createdAt = models.DateTimeField(auto_now_add=True, db_column="createdAt") + updatedAt = models.DateTimeField(auto_now=True, db_column="updatedAt") + lastSeen = models.DateTimeField(db_column="lastSeen", blank=True, null=True) + title = models.CharField() + cve = models.TextField(blank=True, null=True) + cwe = models.TextField(blank=True, null=True) + cpe = models.TextField(blank=True, null=True) + description = models.CharField() + references = models.JSONField(default=list) + cvss = models.DecimalField( + max_digits=1000, decimal_places=1000, blank=True, null=True + ) + severity = models.CharField( + max_length=10, choices=SeverityChoices.choices, blank=True, null=True + ) + needsPopulation = models.BooleanField(db_column="needsPopulation") + state = models.CharField( + max_length=10, choices=StateChoices.choices, default=StateChoices.OPEN + ) + substate = models.CharField( + max_length=15, + choices=SubstateChoices.choices, + default=SubstateChoices.UNCONFIRMED, + ) + source = models.CharField() + notes = models.CharField() + actions = models.JSONField(default=list) + structuredData = models.JSONField(db_column="structuredData", default=dict) + isKev = models.BooleanField(db_column="isKev", blank=True, null=True, default=False) + kevResults = models.JSONField( + db_column="kevResults", blank=True, null=True, default=dict + ) + domain = models.ForeignKey( + Domain, + on_delete=models.CASCADE, + db_column="domainId", + blank=True, + null=True, + related_name="vulnerabilities", + ) + service = models.ForeignKey( + Service, models.DO_NOTHING, db_column="serviceId", blank=True, null=True + ) + + def setState(self, substate, automatic, user=None): + """Set the state and update actions.""" + self.substate = substate + self.state = "open" if substate in ["unconfirmed", "exploitable"] else "closed" + self.actions.insert( + 0, + { + "type": "state-change", + "state": self.state, + "substate": self.substate, + "automatic": automatic, + "userId": user.id if user else None, + "userName": user.fullName if user else None, + "date": datetime.now(timezone.utc), + }, + ) + + def save(self, *args, **kwargs): + """Override save to set severity based on cvss.""" + if self.cvss is not None: + if self.cvss == 0: + self.severity = self.SeverityChoices.NONE + elif self.cvss < 4: + self.severity = self.SeverityChoices.LOW + elif self.cvss < 7: + self.severity = self.SeverityChoices.MEDIUM + elif self.cvss < 9: + self.severity = self.SeverityChoices.HIGH + else: + self.severity = self.SeverityChoices.CRITICAL + super().save(*args, **kwargs) + + class Meta: + """The Meta class for Vulnerability.""" + + managed = True + db_table = "vulnerability" + indexes = [ + models.Index(fields=["createdAt"]), + models.Index(fields=["updatedAt"]), + ] + unique_together = (("domain", "title"),) + + +class Webpage(models.Model): + """The Webpage model.""" + + id = models.UUIDField(primary_key=True) + createdAt = models.DateTimeField(db_column="createdAt") + updatedAt = models.DateTimeField(db_column="updatedAt") + syncedAt = models.DateTimeField(db_column="syncedAt", blank=True, null=True) + lastSeen = models.DateTimeField(db_column="lastSeen", blank=True, null=True) + s3key = models.CharField(db_column="s3Key", blank=True, null=True) + url = models.CharField() + status = models.DecimalField(max_digits=1000, decimal_places=1000) + responseSize = models.DecimalField( + db_column="responseSize", + max_digits=1000, + decimal_places=1000, + blank=True, + null=True, + ) + headers = models.JSONField() + domainId = models.ForeignKey( + Domain, + models.DO_NOTHING, + db_column="domainId", + blank=True, + null=True, + related_name="webpages", + ) + discoveredById = models.ForeignKey( + Scan, models.DO_NOTHING, db_column="discoveredById", blank=True, null=True + ) + + class Meta: + """The Meta class for Webpage.""" + + managed = True + db_table = "webpage" + unique_together = (("url", "domainId"),) diff --git a/backend/src/xfd_django/xfd_api/schema_models/__init__.py b/backend/src/xfd_django/xfd_api/schema_models/__init__.py new file mode 100644 index 00000000..d65b3e4e --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/__init__.py @@ -0,0 +1 @@ +"""Initialize schema directory.""" diff --git a/backend/src/xfd_django/xfd_api/schema_models/api_key.py b/backend/src/xfd_django/xfd_api/schema_models/api_key.py new file mode 100644 index 00000000..d8df1c8b --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/api_key.py @@ -0,0 +1,46 @@ +"""Api schema.""" +# Standard Python Libraries +from datetime import datetime +from typing import Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + + +class ApiKey(BaseModel): + """Pydantic model for the ApiKey model.""" + + id: str + createdAt: datetime + updatedAt: datetime + lastUsed: Optional[datetime] + hashedKey: Optional[ + str + ] = None # Make optional to avoid validation error in response + lastFour: Optional[str] + user: Optional[UUID] = None # Make optional to avoid validation error in response + api_key: Optional[ + str + ] = None # Add the actual key to the schema for response inclusion + + @classmethod + def model_validate(cls, obj): + """Model validate.""" + # Ensure that we convert the UUIDs to strings when validating + api_key_data = obj.__dict__.copy() + + # Remove the '_state' field or any other unwanted internal fields + api_key_data.pop("_state", None) + api_key_data["user"] = api_key_data.pop("user_id", None) + + for key, val in api_key_data.items(): + # Convert any UUIDs to strings + if isinstance(val, UUID): + api_key_data[key] = str(val) + return cls(**api_key_data) + + class Config: + """Config.""" + + from_attributes = True diff --git a/backend/src/xfd_django/xfd_api/schema_models/cpe.py b/backend/src/xfd_django/xfd_api/schema_models/cpe.py new file mode 100644 index 00000000..1bf1e5ca --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/cpe.py @@ -0,0 +1,25 @@ +"""Cpe schema.""" +# Third-Party Libraries +# from pydantic.types import UUID1, UUID +# Standard Python Libraries +from datetime import datetime +from typing import Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + + +class Cpe(BaseModel): + """Cpe schema.""" + + id: UUID + name: Optional[str] + version: Optional[str] + vendor: Optional[str] + lastSeenAt: datetime + + class Config: + """Config.""" + + from_attributes = True diff --git a/backend/src/xfd_django/xfd_api/schema_models/cve.py b/backend/src/xfd_django/xfd_api/schema_models/cve.py new file mode 100644 index 00000000..86f316fc --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/cve.py @@ -0,0 +1,46 @@ +"""Cve schema.""" +# Third-Party Libraries +# from pydantic.types import UUID1, UUID +# Standard Python Libraries +from datetime import datetime +from typing import Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + + +class Cve(BaseModel): + """Cve schema.""" + + id: UUID + name: Optional[str] + publishedAt: datetime + modifiedAt: datetime + status: str + description: Optional[str] + cvssV2Source: Optional[str] + cvssV2Type: Optional[str] + cvssV2VectorString: Optional[str] + cvssV2BaseSeverity: Optional[str] + cvssV2ExploitabilityScore: Optional[str] + cvssV2ImpactScore: Optional[str] + cvssV3Source: Optional[str] + cvssV3Type: Optional[str] + cvssV3VectorString: Optional[str] + cvssV3BaseSeverity: Optional[str] + cvssV3ExploitabilityScore: Optional[str] + cvssV3ImpactScore: Optional[str] + cvssV4Source: Optional[str] + cvssV4Type: Optional[str] + cvssV4VectorString: Optional[str] + cvssV4BaseSeverity: Optional[str] + cvssV4ExploitabilityScore: Optional[str] + cvssV4ImpactScore: Optional[str] + weaknesses: Optional[str] + references: Optional[str] + + class Config: + """Config.""" + + from_attributes = True diff --git a/backend/src/xfd_django/xfd_api/schema_models/domain.py b/backend/src/xfd_django/xfd_api/schema_models/domain.py new file mode 100644 index 00000000..aab2dec7 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/domain.py @@ -0,0 +1,202 @@ +"""Domain schema.""" +# Third-Party Libraries +# from pydantic.types import UUID1, UUID +# Standard Python Libraries +from datetime import datetime +from typing import Any, List, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel, field_validator + + +class Domain(BaseModel): + """Domain schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + syncedAt: Optional[datetime] = None + ip: str + fromRootDomain: Optional[str] + subdomainSource: Optional[str] + ipOnly: bool + reverseName: Optional[str] + name: Optional[str] + screenshot: Optional[str] + country: Optional[str] + asn: Optional[str] + cloudHosted: bool + ssl: Optional[Any] + censysCertificatesResults: Optional[dict] + trustymailResults: Optional[dict] + discoveredBy_id: Optional[UUID] + organization_id: Optional[UUID] + isFceb: Optional[bool] + fromCidr: Optional[bool] + + class Config: + """Domain base schema config.""" + + from_attributes = True + validate_assignment = True + + +class DomainFilters(BaseModel): + """DomainFilters schema.""" + + port: Optional[int] = None + service: Optional[str] = None + reverseName: Optional[str] = None + ip: Optional[str] = None + organization: Optional[str] = None + organizationName: Optional[str] = None + vulnerabilities: Optional[str] = None + tag: Optional[str] = None + name: Optional[str] = None + + class Config: + """Config.""" + + from_attributes = True + + +class DomainSearch(BaseModel): + """DomainSearch schema.""" + + page: int = 1 + sort: Optional[str] = "ASC" + order: Optional[str] = "id" + filters: Optional[DomainFilters] = None + pageSize: Optional[int] = 25 + + class Config: + """Config.""" + + from_attributes = True + + +class DomainSearchResponse(BaseModel): + """List of Domain objects.""" + + result: List["GetDomainResponse"] + count: int + + +class TotalDomainsResponse(BaseModel): + """Total domain response.""" + + value: int + + class Config: + """Config.""" + + from_attributes = True + + +class OrganizationResponse(BaseModel): + """Organization response.""" + + id: UUID + name: str + + class Config: + """Config.""" + + orm_mode = True + from_attributes = True + + +class ProductResponse(BaseModel): + """Product response.""" + + name: str + version: Optional[str] = None + + +class ServiceResponse(BaseModel): + """Service response.""" + + id: UUID + port: int + lastSeen: Optional[datetime] = None + products: Any + + class Config: + """Config.""" + + orm_mode = True + from_attributes = True + + +class VulnerabilityResponse(BaseModel): + """Vulnerability response.""" + + id: UUID + title: str + severity: Optional[str] = None + state: str + createdAt: Optional[datetime] = None + cve: Optional[str] = None + + class Config: + """Config.""" + + orm_mode = True + from_attributes = True + + +class WebpageResponse(BaseModel): + """Webpage response.""" + + url: str + status: str + responseSize: Optional[int] = None + + class Config: + """Config.""" + + orm_mode = True + from_attributes = True + + +class GetDomainResponse(BaseModel): + """Get domain response.""" + + id: UUID + name: str + ip: Optional[str] = None + createdAt: datetime + updatedAt: datetime + country: Optional[str] = None + cloudHosted: Optional[bool] = False + organization: Optional[OrganizationResponse] + vulnerabilities: Optional[List[VulnerabilityResponse]] = [] + services: Optional[List[ServiceResponse]] = [] + webpages: Optional[List[WebpageResponse]] = [] + + class Config: + """Config.""" + + from_attributes = True + + @field_validator("services", mode="before") + def ensure_services_list(cls, v): + """Ensure services.""" + if hasattr(v, "all"): + return list(v.all()) + return v + + @field_validator("vulnerabilities", mode="before") + def ensure_vulns_list(cls, v): + """Ensure vulns list.""" + if hasattr(v, "all"): + return list(v.all()) + return v + + @field_validator("webpages", mode="before") + def ensure_webpages_list(cls, v): + """Ensure webpages.""" + if hasattr(v, "all"): + return list(v.all()) + return v diff --git a/backend/src/xfd_django/xfd_api/schema_models/notification.py b/backend/src/xfd_django/xfd_api/schema_models/notification.py new file mode 100644 index 00000000..40ad138d --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/notification.py @@ -0,0 +1,29 @@ +"""Notification schema.""" +# Third-Party Libraries +# from pydantic.types import UUID1, UUID +# Standard Python Libraries +from datetime import datetime +from typing import Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + + +class Notification(BaseModel): + """Notification schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + startDatetime: Optional[datetime] + endDateTime: Optional[datetime] + maintenanceType: Optional[str] + status: Optional[str] + updatedBy: datetime + message: Optional[str] + + class Config: + """Config.""" + + from_attributes = True diff --git a/backend/src/xfd_django/xfd_api/schema_models/organization_schema.py b/backend/src/xfd_django/xfd_api/schema_models/organization_schema.py new file mode 100644 index 00000000..56d0d16f --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/organization_schema.py @@ -0,0 +1,218 @@ +"""Schemas to support Organization endpoints.""" + +# Standard Python Libraries +from datetime import datetime +from typing import Any, List, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + +from .organization_tag import OrganizationalTags + + +class Organization(BaseModel): + """Organization schema reflecting model.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + acronym: Optional[str] + name: str + rootDomains: List[str] + ipBlocks: List[str] + isPassive: bool + pendingDomains: Optional[List[dict]] + country: Optional[str] + state: Optional[str] + regionId: Optional[str] + stateFips: Optional[int] + stateName: Optional[str] + county: Optional[str] + countyFips: Optional[int] + type: Optional[str] + + +class UserRoleSchema(BaseModel): + """User role schema.""" + + id: UUID + role: str + approved: bool + user: Optional[dict] = {} + + +class TagSchema(BaseModel): + """Tag schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + name: str + + +class GetTagSchema(BaseModel): + """Tag simplified schema.""" + + id: UUID + name: str + + +class SimpleScanSchema(BaseModel): + """Simple scan schema.""" + + id: UUID + name: str + + +class GranularScanSchema(BaseModel): + """Granular task schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + name: str + arguments: Any + frequency: int + lastRun: Optional[datetime] + isGranular: bool + isUserModifiable: Optional[bool] + isSingleScan: bool + manualRunPending: bool + tags: Optional[List[OrganizationalTags]] = [] + organizations: Optional[List[Organization]] = [] + + +class ScanTaskSchema(BaseModel): + """Scan task schema.""" + + id: UUID + createdAt: datetime + scan: SimpleScanSchema + + +class GetOrganizationSchema(BaseModel): + """Schema for listing an organization.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + acronym: Optional[str] = None + name: str + rootDomains: List[str] + ipBlocks: List[str] + isPassive: bool + pendingDomains: Optional[Any] = [] + country: Optional[str] = None + state: Optional[str] = None + regionId: Optional[str] = None + stateFips: Optional[int] = None + stateName: Optional[str] = None + county: Optional[str] = None + countyFips: Optional[int] = None + type: Optional[str] = None + userRoles: Optional[List[UserRoleSchema]] = [] + tags: Optional[List[TagSchema]] = [] + + +class GetSingleOrganizationSchema(BaseModel): + """Schema for listing an organization.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + acronym: Optional[str] + name: str + rootDomains: List[str] + ipBlocks: List[str] + isPassive: bool + createdBy: Optional[Any] = {} + pendingDomains: Optional[Any] = [] + country: Optional[str] = None + state: Optional[str] = None + regionId: Optional[str] = None + stateFips: Optional[int] = None + stateName: Optional[str] = None + county: Optional[str] = None + countyFips: Optional[int] = None + type: Optional[str] = None + userRoles: Optional[List[UserRoleSchema]] = [] + tags: Optional[List[TagSchema]] = [] + parent: Optional[Any] = {} + children: Optional[Any] = {} + granularScans: Optional[List[GranularScanSchema]] = [] + scanTasks: Optional[List[ScanTaskSchema]] = [] + + +class NewTag(BaseModel): + """Schema for tag data.""" + + name: str # Adjust this if there could be an 'id' field + + +class NewOrganization(BaseModel): + """Create a new organization schema.""" + + acronym: Optional[str] + name: str + rootDomains: List[str] + ipBlocks: List[str] + isPassive: bool + pendingDomains: Optional[Any] = [] + country: Optional[str] = None + state: Optional[str] = None + regionId: Optional[str] = None + stateFips: Optional[int] = None + stateName: Optional[str] = None + county: Optional[str] = None + countyFips: Optional[int] = None + type: Optional[str] = None + parent: Optional[str] = None + tags: Optional[List[NewTag]] = None + + +class NewOrgUser(BaseModel): + """Add a user to organization schema.""" + + userId: str + role: str + + +class NewOrgScan(BaseModel): + """Update an organization scan schema.""" + + enabled: bool + + +class RegionSchema(BaseModel): + """Update an organization scan schema.""" + + regionId: str + + +class GenericMessageResponseModel(BaseModel): + """Generic response model.""" + + status: str + message: str + + +class OrganizationSearchBody(BaseModel): + """Elastic search orgnaization model.""" + + regions: Optional[List[str]] + searchTerm: str + + +class FilterSchema(BaseModel): + """Elastic search orgnaization model.""" + + regions: Optional[List[str]] = [] + organizations: Optional[List[str]] = [] + tags: Optional[List[str]] = [] + + +class StatsPayloadSchema(BaseModel): + """Elastic search orgnaization model.""" + + filters: Optional[FilterSchema] diff --git a/backend/src/xfd_django/xfd_api/schema_models/organization_tag.py b/backend/src/xfd_django/xfd_api/schema_models/organization_tag.py new file mode 100644 index 00000000..9935586f --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/organization_tag.py @@ -0,0 +1,17 @@ +"""Schemas to support Organization Tag endpoints.""" + +# Standard Python Libraries +from datetime import datetime +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + + +class OrganizationalTags(BaseModel): + """Organization Tags.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + name: str diff --git a/backend/src/xfd_django/xfd_api/schema_models/role.py b/backend/src/xfd_django/xfd_api/schema_models/role.py new file mode 100644 index 00000000..6af0532a --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/role.py @@ -0,0 +1,29 @@ +"""Role schema.""" +# Third-Party Libraries +# from pydantic.types import UUID1, UUID +# Standard Python Libraries +from datetime import datetime +from typing import Any, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + + +class Role(BaseModel): + """Role schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + role: str + approved: bool + createdById: Optional[Any] + approvedById: Optional[Any] + user: Optional[Any] + organizationId: Optional[Any] + + class Config: + """Config.""" + + from_attributes = True diff --git a/backend/src/xfd_django/xfd_api/schema_models/saved_search.py b/backend/src/xfd_django/xfd_api/schema_models/saved_search.py new file mode 100644 index 00000000..e6b7d814 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/saved_search.py @@ -0,0 +1,63 @@ +"""Saved Search schemas.""" +# Standard Python Libraries +from datetime import datetime +from typing import Any, List, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + + +class SavedSearchFilters(BaseModel): + """SavedSearchFilters schema.""" + + type: Optional[str] + field: str + values: List[Any] + + +class SavedSearchCreate(BaseModel): + """Saved search create.""" + + name: str + searchTerm: str + sortDirection: str + sortField: str + count: int + filters: List[SavedSearchFilters] + searchPath: str + + +class SavedSearchUpdate(BaseModel): + """Saved search update.""" + + name: str + searchTerm: str + sortDirection: str + sortField: str + count: int + filters: List[SavedSearchFilters] + searchPath: str + + +class SavedSearch(BaseModel): + """SavedSearch schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + name: str + searchTerm: str + sortDirection: str + sortField: str + count: int + filters: List[SavedSearchFilters] + searchPath: str + createdById: UUID + + +class SavedSearchList(BaseModel): + """SavedSearchList schema.""" + + result: List[SavedSearch] + count: int diff --git a/backend/src/xfd_django/xfd_api/schema_models/scan.py b/backend/src/xfd_django/xfd_api/schema_models/scan.py new file mode 100644 index 00000000..a65cdacb --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/scan.py @@ -0,0 +1,312 @@ +"""Schemas to support Scan endpoints.""" + +# Standard Python Libraries +from datetime import datetime +from typing import Any, Dict, List, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + +from .organization_schema import Organization +from .organization_tag import OrganizationalTags + + +class Scan(BaseModel): + """Scan schema reflecting model.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + name: str + arguments: Any + frequency: int + lastRun: Optional[datetime] + isGranular: bool + isUserModifiable: Optional[bool] + isSingleScan: bool + manualRunPending: bool + tags: Optional[List[OrganizationalTags]] = [] + organizations: Optional[List[Organization]] = [] + + +class ScanSchema(BaseModel): + """Scan type schema.""" + + type: str = "fargate" # Only 'fargate' is supported + description: str + + # Whether scan is passive (not allowed to hit the domain). + isPassive: bool + + # Whether scan is global. Global scans run once for all organizations, as opposed + # to non-global scans, which are run for each organization. + global_scan: bool + + # CPU and memory for the scan. See this page for more information: + # https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html + cpu: Optional[str] = None + memory: Optional[str] = None + + # A scan is "chunked" if its work is divided and run in parallel by multiple workers. + # To make a scan chunked, make sure it is a global scan and specify the "numChunks" variable, + # which corresponds to the number of workers that will be created to run the task. + # Chunked scans can only be run on scans whose implementation takes into account the + # chunkNumber and numChunks parameters specified in commandOptions. + numChunks: Optional[int] = None + + +class GranularScan(BaseModel): + """Granular scan model.""" + + id: UUID + name: str + isUserModifiable: Optional[bool] + + +class GetScansResponseModel(BaseModel): + """Get Scans response model.""" + + scans: List[Scan] + schema: Dict[str, Any] + organizations: List[Dict[str, Any]] + + +class GetGranularScansResponseModel(BaseModel): + """Get Scans response model.""" + + scans: List[GranularScan] + schema: Dict[str, Any] + + +class IdSchema(BaseModel): + """Schema for ID objects.""" + + id: UUID + + +class NewScan(BaseModel): + """Create Scan Schema.""" + + name: str + arguments: Any + organizations: Optional[List[UUID]] = [] + tags: Optional[List[IdSchema]] = [] + frequency: Optional[int] = None + isGranular: Optional[bool] = None + isUserModifiable: Optional[bool] = None + isSingleScan: Optional[bool] = None + + +class CreateScanResponseModel(BaseModel): + """Create Scan Schema.""" + + id: UUID + name: str + arguments: Any + frequency: int + isGranular: bool + isUserModifiable: Optional[bool] + isSingleScan: bool + createdBy: Optional[Any] + tags: Optional[List[IdSchema]] + organizations: Optional[List[IdSchema]] + + +class GetScanResponseModel(BaseModel): + """Get Scans response model.""" + + scan: Scan + schema: Dict[str, Any] + organizations: List[Dict[str, Any]] + + +class GenericMessageResponseModel(BaseModel): + """Generic response model.""" + + status: str + message: str + + +SCAN_SCHEMA = { + "amass": ScanSchema( + type="fargate", + isPassive=False, + global_scan=False, + description="Open source tool that integrates passive APIs and active subdomain enumeration in order to discover target subdomains", + ), + "censys": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + description="Passive discovery of subdomains from public certificates", + ), + "censysCertificates": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="2048", + memory="6144", + numChunks=20, + description="Fetch TLS certificate data from censys certificates dataset", + ), + "censysIpv4": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="2048", + memory="6144", + numChunks=20, + description="Fetch passive port and banner data from censys ipv4 dataset", + ), + "cve": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="1024", + memory="8192", + description="Matches detected software versions to CVEs from NIST NVD and CISA's Known Exploited Vulnerabilities Catalog.", + ), + "vulnScanningSync": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="1024", + memory="8192", + description="Pull in vulnerability data from VSs Vulnerability database", + ), + "cveSync": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="1024", + memory="8192", + description="Matches detected software versions to CVEs from NIST NVD and CISA's Known Exploited Vulnerabilities Catalog.", + ), + "dnstwist": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + cpu="2048", + memory="16384", + description="Domain name permutation engine for detecting similar registered domains.", + ), + "dotgov": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + description='Create organizations based on root domains from the dotgov registrar dataset. All organizations are created with the "dotgov" tag and have a " (dotgov)" suffix added to their name.', + ), + "findomain": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + description="Open source tool that integrates passive APIs in order to discover target subdomains", + ), + "hibp": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + cpu="2048", + memory="16384", + description="Finds emails that have appeared in breaches related to a given domain", + ), + "intrigueIdent": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + cpu="1024", + memory="4096", + description="Open source tool that fingerprints web technologies based on HTTP responses", + ), + "lookingGlass": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + description="Finds vulnerabilities and malware from the LookingGlass API", + ), + "portscanner": ScanSchema( + type="fargate", + isPassive=False, + global_scan=False, + description="Active port scan of common ports", + ), + "rootDomainSync": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + description="Creates domains from root domains by doing a single DNS lookup for each root domain.", + ), + "savedSearch": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + description="Performs saved searches to update their search results", + ), + "searchSync": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="1024", + memory="4096", + description="Syncs records with Elasticsearch so that they appear in search results.", + ), + "shodan": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + cpu="1024", + memory="8192", + description="Fetch passive port, banner, and vulnerability data from shodan", + ), + "sslyze": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + description="SSL certificate inspection", + ), + "test": ScanSchema( + type="fargate", + isPassive=False, + global_scan=True, + description="Not a real scan, used to test", + ), + "trustymail": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + description="Evaluates SPF/DMARC records and checks MX records for STARTTLS support", + ), + "vulnSync": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="1024", + memory="8192", + description="Pull in vulnerability data from PEs Vulnerability database", + ), + "wappalyzer": ScanSchema( + type="fargate", + isPassive=True, + global_scan=False, + cpu="1024", + memory="4096", + description="Open source tool that fingerprints web technologies based on HTTP responses", + ), + "xpanseSync": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="1024", + memory="8192", + description="Pull in xpanse vulnerability data from PEs Vulnerability database", + ), + "flagFloatingIps": ScanSchema( + type="fargate", + isPassive=True, + global_scan=True, + cpu="2048", + memory="16384", + description="Loops through all domains and determines if their associated IP can be found in a report Cidr block.", + ), +} diff --git a/backend/src/xfd_django/xfd_api/schema_models/scan_tasks.py b/backend/src/xfd_django/xfd_api/schema_models/scan_tasks.py new file mode 100644 index 00000000..1a044e0f --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/scan_tasks.py @@ -0,0 +1,55 @@ +"""Schemas to support scan task endpoints.""" + +# Standard Python Libraries +from datetime import datetime +from typing import Dict, List, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + +from .organization_schema import Organization +from .scan import Scan + + +class ScanTaskSearch(BaseModel): + """Scan-task search schema.""" + + page: Optional[int] = 1 + pageSize: Optional[int] = 10 + sort: Optional[str] = "createdAt" + order: Optional[str] = "DESC" + filters: Optional[Dict[str, Optional[str]]] = {} + + +class ScanTaskList(BaseModel): + """Single scan-task schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + status: str + type: str + fargateTaskArn: Optional[str] + input: Optional[str] + output: Optional[str] + requestedAt: Optional[datetime] + startedAt: Optional[datetime] + finishedAt: Optional[datetime] + queuedAt: Optional[datetime] + scan: Optional[Scan] + organization: Optional[List[Organization]] = [] + + +class ScanTaskListResponse(BaseModel): + """Scan-task list schema.""" + + result: List[ScanTaskList] = [] + count: int + + +class GenericResponse(BaseModel): + """Generic scan task response.""" + + statusCode: int + message: str diff --git a/backend/src/xfd_django/xfd_api/schema_models/search.py b/backend/src/xfd_django/xfd_api/schema_models/search.py new file mode 100644 index 00000000..e9808332 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/search.py @@ -0,0 +1,50 @@ +"""Search schemas.""" +# Standard Python Libraries +from typing import Any, List, Optional + +# Third-Party Libraries +from pydantic import BaseModel + + +# Input request schema +class Filter(BaseModel): + """Filter.""" + + field: str + values: List[str] + type: str + + +# TODO this is based on current payload just as needed +class SearchRequest(BaseModel): + """Search request.""" + + current: int + filters: List[Filter] + resultsPerPage: int + searchTerm: Optional[str] = "" + sortDirection: str = "asc" + sortField: str = "name" + + +# Response schema (based on your example) +class SearchResponse(BaseModel): + """Search response.""" + + took: int + timed_out: bool + _shards: Any + hits: Any + + +class DomainSearchBody(BaseModel): + """Elastic search domain model.""" + + current: Optional[int] = 1 + filters: Optional[List[dict]] = [] + resultsPerPage: Optional[int] = 15 + searchTerm: Optional[str] = "" + sortDirection: Optional[str] = "asc" + sortField: Optional[str] = "name" + organization_id: Optional[List[str]] = None + tag_id: Optional[str] = None diff --git a/backend/src/xfd_django/xfd_api/schema_models/service.py b/backend/src/xfd_django/xfd_api/schema_models/service.py new file mode 100644 index 00000000..b12e7864 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/service.py @@ -0,0 +1,33 @@ +"""Service schema.""" +# Standard Python Libraries +from datetime import datetime +from typing import Any, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel, Json + + +class Service(BaseModel): + """Service schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + serviceSource: Optional[str] + port: int + service: Optional[str] + lastSeen: Optional[datetime] + banner: Optional[str] + products: Json[Any] + censysMetadata: Json[Any] + censysIpv4Results: Json[Any] + shodanResults: Json[Any] + wappalyzerResults: Json[Any] + domain: Optional[Any] + discoveredBy: Optional[Any] + + class Config: + """Config.""" + + from_attributes = True diff --git a/backend/src/xfd_django/xfd_api/schema_models/stat_schema.py b/backend/src/xfd_django/xfd_api/schema_models/stat_schema.py new file mode 100644 index 00000000..e175bd40 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/stat_schema.py @@ -0,0 +1,111 @@ +"""Stats schema.""" +# Standard Python Libraries +from datetime import datetime +from typing import Any, Dict, List, Optional + +# Third-Party Libraries +from pydantic import BaseModel + + +# Reusing the previously defined models +class ServiceStat(BaseModel): + """Service stat.""" + + id: str + value: int + label: str + + +class PortStat(BaseModel): + """Port stat.""" + + id: int + value: int + label: str + + +class VulnerabilityStat(BaseModel): + """Vulnerability stat.""" + + id: str + value: int + label: str + + +class SeverityCountStat(BaseModel): + """Severity count stat.""" + + id: str + value: int + label: str + + +class Domain(BaseModel): + """Domain schema.""" + + id: str + createdAt: datetime + updatedAt: datetime + syncedAt: Optional[datetime] + ip: Optional[str] + fromRootDomain: Optional[str] + subdomainSource: Optional[str] + ipOnly: Optional[bool] + reverseName: Optional[str] + name: Optional[str] + screenshot: Optional[str] + country: Optional[str] + asn: Optional[str] + cloudHosted: Optional[bool] + fromCidr: Optional[bool] + isFceb: Optional[bool] + ssl: Optional[dict] + censysCertificatesResults: Optional[dict] + trustymailResults: Optional[dict] + + +class LatestVulnerability(BaseModel): + """Latest vulnerability.""" + + createdAt: datetime + title: str + description: Optional[str] + severity: Optional[str] + + +class MostCommonVulnerability(BaseModel): + """Most common vulnerability.""" + + title: str + description: str + severity: Optional[str] + count: int + + +class ByOrgStat(BaseModel): + """By org stat.""" + + id: str + orgId: str + value: int + label: str + + +# Main StatsResponse model +class StatsResponse(BaseModel): + """Stats response.""" + + result: Dict[str, Any] = { + "domains": { + "services": List[ServiceStat], + "ports": List[PortStat], + "numVulnerabilities": List[VulnerabilityStat], + "total": int, + }, + "vulnerabilities": { + "severity": List[SeverityCountStat], + "latestVulnerabilities": List[LatestVulnerability], + "mostCommonVulnerabilities": List[MostCommonVulnerability], + "byOrg": List[ByOrgStat], + }, + } diff --git a/backend/src/xfd_django/xfd_api/schema_models/user.py b/backend/src/xfd_django/xfd_api/schema_models/user.py new file mode 100644 index 00000000..d8d04dd1 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/user.py @@ -0,0 +1,194 @@ +"""User schemas.""" + +# Standard Python Libraries +from datetime import datetime +from enum import Enum +from typing import Any, Dict, List, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + +from .api_key import ApiKey +from .role import Role + + +class UserType(Enum): + """User Type.""" + + GLOBAL_ADMIN = "globalAdmin" + GLOBAL_VIEW = "globalView" + REGIONAL_ADMIN = "regionalAdmin" + READY_SET_CYBER = "readySetCyber" + STANDARD = "standard" + + +class User(BaseModel): + """User schema.""" + + id: UUID + cognitoId: Optional[str] + loginGovId: Optional[str] + createdAt: datetime + updatedAt: datetime + firstName: str + lastName: str + fullName: str + email: str + invitePending: bool + loginBlockedByMaintenance: bool + dateAcceptedTerms: Optional[datetime] + acceptedTermsVersion: Optional[str] + lastLoggedIn: Optional[datetime] + userType: UserType + regionId: Optional[str] + state: Optional[str] + oktaId: Optional[str] + roles: Optional[List[Role]] = [] + apiKeys: Optional[List[ApiKey]] = [] + + +class UserResponse(BaseModel): + """User response schema.""" + + cognitoId: Optional[str] + loginGovId: Optional[str] + firstName: str + lastName: str + fullName: str + email: str + invitePending: bool + loginBlockedByMaintenance: bool + dateAcceptedTerms: Optional[datetime] + acceptedTermsVersion: Optional[str] + lastLoggedIn: Optional[datetime] + userType: UserType + regionId: Optional[str] + state: Optional[str] + oktaId: Optional[str] + roles: Optional[List[Role]] = [] + apiKeys: Optional[List[ApiKey]] = [] + + @classmethod + def model_validate(cls, obj): + """Model validate.""" + # Convert fields before passing to Pydantic Schema + user_dict = obj.__dict__.copy() + user_dict["roles"] = [ + Role.model_validate(role).model_dump() for role in obj.roles.all() + ] + user_dict["apiKeys"] = [ + ApiKey.model_validate(api_key).model_dump() for api_key in obj.apiKeys.all() + ] + [ApiKey.from_orm(api_key) for api_key in obj] + return cls(**user_dict) + + def model_dump(self, **kwargs): + """Override model_dump to handle UUID serialization.""" + data = super().model_dump(**kwargs) + if isinstance(data.get("id"), UUID): + data["id"] = str(data["id"]) + return data + + class Config: + """Config.""" + + from_attributes = True + + +class UserRoleOrg(BaseModel): + """User role organization schema.""" + + id: str + name: str + + +class UserRole(BaseModel): + """User role schema.""" + + id: str + role: str + approved: bool + organization: Optional[UserRoleOrg] = None + + +class NewUser(BaseModel): + """New user schema.""" + + email: str + firstName: str + lastName: str + organization: Optional[str] = None + organizationAdmin: Optional[bool] = None + regionId: Optional[str] = None + state: Optional[str] = None + userType: Optional[UserType] = None + + +class NewUserResponseModel(BaseModel): + """New user response schema.""" + + id: str + firstName: str + lastName: str + email: str + invitePending: bool + userType: UserType + roles: Optional[List[UserRole]] = [] + + +class UpdateUser(BaseModel): + """Update user schema.""" + + firstName: Optional[str] + fullName: Optional[str] + invitePending: Optional[bool] + lastName: Optional[str] + loginBlockedByMaintenance: Optional[bool] + organization: Optional[str] + regionId: Optional[str] + role: Optional[str] + state: Optional[str] + userType: Optional[UserType] + + +class UpdateUserV2(BaseModel): + """Schema for updating a user.""" + + firstName: Optional[str] = None + lastName: Optional[str] = None + email: Optional[str] = None + state: Optional[str] = None + userType: Optional[str] = None + invitePending: Optional[bool] = False + + +class RegisterUserResponse(BaseModel): + """Register or deny user response.""" + + statusCode: int + body: str + + +class VersionModel(BaseModel): + """Version model.""" + + version: str + + +class UserResponseV2(BaseModel): + """Schema for returning user data.""" + + id: str + createdAt: str + updatedAt: str + firstName: str + lastName: str + fullName: str + email: str + acceptedTermsVersion: Optional[str] = None + lastLoggedIn: Optional[datetime] = None + regionId: Optional[str] = None + state: Optional[str] = None + userType: Optional[str] = None + roles: List[Dict[str, Optional[Any]]] diff --git a/backend/src/xfd_django/xfd_api/schema_models/vulnerability.py b/backend/src/xfd_django/xfd_api/schema_models/vulnerability.py new file mode 100644 index 00000000..c4419c42 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/schema_models/vulnerability.py @@ -0,0 +1,205 @@ +"""Vulnerability schemas.""" +# Third-Party Libraries +# from pydantic.types import UUID1, UUID +# Standard Python Libraries +from datetime import datetime +from typing import Any, List, Optional +from uuid import UUID + +# Third-Party Libraries +from pydantic import BaseModel + + +class Vulnerability(BaseModel): + """Vulnerability schema.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + lastSeen: Optional[datetime] + title: Optional[str] + cve: Optional[str] + cwe: Optional[str] + cpe: Optional[str] + description: Optional[str] + references: Optional[Any] + cvss: Optional[float] + severity: Optional[str] + needsPopulation: bool + state: Optional[str] + substate: Optional[str] + source: Optional[str] + notes: Optional[str] + actions: Optional[Any] + structuredData: Optional[Any] + isKev: bool + domain_id: Optional[UUID] + service_id: Optional[UUID] + + model_config = {"from_attributes": True} + + +class VulnerabilityFilters(BaseModel): + """VulnerabilityFilters schema.""" + + id: Optional[str] = None + title: Optional[str] = None + domain: Optional[str] = None + severity: Optional[str] = None + cpe: Optional[str] = None + state: Optional[str] = None + substate: Optional[str] = None + organization: Optional[str] = None + tag: Optional[str] = None + isKev: Optional[bool] = None + + model_config = {"from_attributes": True} + + +class VulnerabilitySearch(BaseModel): + """VulnerabilitySearch schema.""" + + page: int = 1 + sort: Optional[str] = "ASC" + order: Optional[str] = "id" + filters: Optional[VulnerabilityFilters] = None + pageSize: Optional[int] = 25 + groupBy: Optional[str] = None + + model_config = {"from_attributes": True} + + +class VulnerabilityStat(BaseModel): + """VulnerabilityStat schema.""" + + id: str + value: int + + model_config = {"from_attributes": True} + + +class OrganizationResponse(BaseModel): + """Organization response.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + acronym: Optional[str] + name: str + rootDomains: List[str] + ipBlocks: List[str] + isPassive: bool + pendingDomains: Any + country: Optional[str] + state: Optional[str] + regionId: Optional[str] + stateFips: Optional[int] + stateName: Optional[str] + county: Optional[str] + countyFips: Optional[int] + type: Optional[str] + + model_config = {"from_attributes": True} + + +class DomainResponse(BaseModel): + """Domain response.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + syncedAt: Optional[datetime] + ip: Any + fromRootDomain: Optional[str] + subdomainSource: Optional[str] + ipOnly: bool + reverseName: Optional[str] + name: Optional[str] + screenshot: Optional[str] + country: Optional[str] + asn: Optional[str] + cloudHosted: bool + fromCidr: bool + isFceb: bool + ssl: Optional[Any] + censysCertificatesResults: Optional[dict] + trustymailResults: Optional[dict] + organization: Optional[OrganizationResponse] + + model_config = {"from_attributes": True} + + +class ProductResponse(BaseModel): + """Product response.""" + + name: str + version: Optional[str] = None + + model_config = {"from_attributes": True} + + +class ServiceResponse(BaseModel): + """Service response.""" + + id: UUID + port: int + lastSeen: Optional[datetime] = None + products: Any + serviceSource: Optional[str] + service: Optional[str] + banner: Optional[str] + censysMetadata: Optional[dict] + censysIpv4Results: Optional[dict] + intrigueIdentResults: Optional[dict] + shodanResults: Optional[dict] + wappalyzerResults: Optional[List[Any]] + + model_config = {"from_attributes": True} + + +class GetVulnerabilityResponse(BaseModel): + """Get a single vulnerability response model.""" + + id: UUID + createdAt: datetime + updatedAt: datetime + lastSeen: Optional[datetime] + title: Optional[str] + cve: Optional[str] + cwe: Optional[str] + cpe: Optional[str] + description: Optional[str] + references: Optional[List[Any]] + cvss: Optional[float] + severity: Optional[str] + needsPopulation: bool + state: Optional[str] + substate: Optional[str] + source: Optional[str] + notes: Optional[str] + actions: Optional[List[Any]] + structuredData: Optional[Any] + isKev: bool + kevResults: Optional[dict] + domain: Optional[DomainResponse] + service: Optional[ServiceResponse] + + model_config = {"from_attributes": True} + + +class VulnerabilitySearchResponse(BaseModel): + """List of Vulnerability objects.""" + + result: List[GetVulnerabilityResponse] + count: int + + model_config = {"from_attributes": True} + + +class VulnerabilityGroupResponse(BaseModel): + """Vulnerability group response.""" + + group_field: Optional[str] + cnt: int + + model_config = {"from_attributes": True} diff --git a/backend/src/xfd_django/xfd_api/tasks/__init__.py b/backend/src/xfd_django/xfd_api/tasks/__init__.py new file mode 100644 index 00000000..9cc66e91 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/__init__.py @@ -0,0 +1 @@ +"""Initialize tasks directory.""" diff --git a/backend/src/xfd_django/xfd_api/tasks/bastion.py b/backend/src/xfd_django/xfd_api/tasks/bastion.py new file mode 100644 index 00000000..e7f13ec6 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/bastion.py @@ -0,0 +1,53 @@ +"""Run bastion.""" +# Standard Python Libraries +import os + +# Third-Party Libraries +import django +from django.db import connection +from xfd_api.tasks.es_client import ESClient + +# Django setup +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" +django.setup() + + +def handler(event, context): + """Execute database queries or managing Elasticsearch indices.""" + mode = event.get("mode") + query = event.get("query") + + if not mode or not query: + return {"statusCode": 400, "body": "Mode and query are required in the event."} + + try: + if mode == "db": + return handle_db_query(query) + elif mode == "es": + return handle_es_query(query) + else: + return {"statusCode": 400, "body": f"Unsupported mode: {mode}"} + except Exception as e: + return {"statusCode": 500, "body": str(e)} + + +def handle_db_query(query): + """Handle the 'db' mode: executes a raw SQL query on the database.""" + with connection.cursor() as cursor: + cursor.execute(query) + result = cursor.fetchall() + + print(str(result)) + return {"statusCode": 200, "body": str(result)} + + +def handle_es_query(query): + """Handle the 'es' mode: interacts with Elasticsearch.""" + client = ESClient() + + if query == "delete": + client.delete_all() + return {"statusCode": 200, "body": "Index successfully deleted."} + else: + return {"statusCode": 400, "body": f"Unsupported Elasticsearch query: {query}"} diff --git a/backend/src/xfd_django/xfd_api/tasks/checkUserExpiration.py b/backend/src/xfd_django/xfd_api/tasks/checkUserExpiration.py new file mode 100644 index 00000000..b6300f3b --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/checkUserExpiration.py @@ -0,0 +1,131 @@ +"""CheckUserExpiration.""" +# Standard Python Libraries +from datetime import timedelta +import os + +# Third-Party Libraries +import boto3 +from botocore.exceptions import ClientError +import django +from django.utils.timezone import now + +# Django setup +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" +django.setup() + + +# Third-Party Libraries +from xfd_api.helpers.email import send_email +from xfd_api.models import User + +# AWS Configuration +cognito_client = boto3.client("cognito-idp", region_name=os.getenv("AWS_REGION")) +user_pool_id = os.getenv("REACT_APP_USER_POOL_ID") + + +def check_user_expiration(): + """Check user inactivity and take actions: notify (30 days), deactivate (45 days), and delete (90 days).""" + today = now() + cutoff_30_days = today - timedelta(days=30) + cutoff_45_days = today - timedelta(days=45) + cutoff_90_days = today - timedelta(days=90) + + # Users to notify (30 days of inactivity) + users_to_notify = User.objects.filter( + lastLoggedIn__lt=cutoff_30_days, lastLoggedIn__gte=cutoff_45_days + ) + + # Notify users of inactivity (30 days) + for user in users_to_notify: + subject = "Account Inactivity Notice" + body = f""" + Hello {user.firstName} {user.lastName}, + + Your account has been inactive for over 30 days. If your account reaches 45 days of inactivity, + your password will be reset, requiring action to reactivate your account. + + Thank you, + The Crossfeed Team + """ + send_email(user.email, subject, body) + print(f"30-day inactivity notice sent to {user.email}.") + + # Users to deactivate (45 days of inactivity) + users_to_deactivate = User.objects.filter( + lastLoggedIn__lt=cutoff_45_days, lastLoggedIn__gte=cutoff_90_days + ) + + for user in users_to_deactivate: + subject = "Account Deactivation Notice" + body = f""" + Hello {user.firstName} {user.lastName}, + + Your account has been inactive for over 45 days. As a result, your password has been reset. + You will need to set a new password the next time you log in. If your account reaches 90 days of inactivity, + it will be removed, requiring action to recreate your account. + + Thank you, + The Crossfeed Team + """ + # Send inactivity notification + send_email(user.email, subject, body) + + # Reset the user's password + try: + cognito_client.admin_set_user_password( + UserPoolId=user_pool_id, + Username=user.cognitoId, + Password=os.getenv("REACT_APP_RANDOM_PASSWORD"), + Permanent=False, + ) + print(f"Password reset for user {user.email} due to 45 days of inactivity.") + except ClientError as e: + print(f"Error resetting password for {user.email}: {e}") + + # Users to remove (90 days of inactivity) + users_to_remove = User.objects.filter(lastLoggedIn__lt=cutoff_90_days) + + for user in users_to_remove: + subject = "Account Removal Notice" + body = f""" + Hello {user.firstName} {user.lastName}, + + Your account has been inactive for over 90 days and has been removed. + You will need to recreate your account if you wish to use our services again. + + Thank you, + The Crossfeed Team + """ + # Notify user of account removal + send_email(user.email, subject, body) + + # Remove the user from Cognito and the database + try: + # Remove from Cognito + cognito_client.admin_delete_user( + UserPoolId=user_pool_id, + Username=user.cognitoId, + ) + print(f"Removed user {user.email} from Cognito.") + + # Remove from database + user.delete() + print( + f"Removed user {user.email} from the database due to 90 days of inactivity." + ) + except ClientError as e: + print(f"Error removing user {user.email}: {e}") + + +def handler(event, context): + """AWS Lambda handler for checking user expiration.""" + try: + check_user_expiration() + return { + "statusCode": 200, + "body": "User expiration check completed successfully.", + } + except Exception as e: + print(f"Error during user expiration check: {e}") + return {"statusCode": 500, "body": str(e)} diff --git a/backend/src/xfd_django/xfd_api/tasks/cveSync.py b/backend/src/xfd_django/xfd_api/tasks/cveSync.py new file mode 100644 index 00000000..aa3f9d59 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/cveSync.py @@ -0,0 +1,162 @@ +"""CVE sync scan.""" +# Standard Python Libraries +from datetime import datetime +import os +import time + +# Third-Party Libraries +import django +import requests +from xfd_api.models import Cpe, Cve + +# Django setup +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" +django.setup() + + +def handler(event, context): + """Lambda handler for syncing CVE data.""" + try: + main() + return {"statusCode": 200, "body": "CVE sync completed successfully."} + except Exception as e: + return {"statusCode": 500, "body": str(e)} + + +def main(): + """Sync CVE data.""" + done = False + page = 1 + total_pages = 2 + + while not done: + task_request = fetch_cve_data(page) + if not task_request or task_request.get("status") != "Processing": + raise Exception( + f"Error: {task_request.get('error')} - Status: {task_request.get('status')}" + ) + + while task_request.get("status") == "Processing": + time.sleep(1) + task_request = fetch_cve_data_task(task_request["task_id"]) + + if task_request.get("status") == "Completed": + cve_array = task_request.get("result", {}).get("data", []) + total_pages = task_request.get("result", {}).get("total_pages", 1) + current_page = task_request.get("result", {}).get("current_page", 1) + + save_to_db(cve_array) + + if current_page >= total_pages: + done = True + page += 1 + else: + raise Exception( + f"Task error: {task_request.get('error')} - Status: {task_request.get('status')}" + ) + + +def fetch_cve_data(page): + """Fetch CVE data for a specific page.""" + print(f"Fetching CVE data for page {page}") + headers = { + "Authorization": os.getenv("CF_API_KEY"), + "access_token": os.getenv("PE_API_KEY"), + "Content-Type": "", + } + data = {"page": page, "per_page": 100} + + try: + response = requests.post( + "https://api.staging-cd.crossfeed.cyber.dhs.gov/pe/apiv1/cves_by_modified_date", + headers=headers, + json=data, + timeout=20, # Timeout in seconds + ) + response.raise_for_status() + return response.json() + except requests.exceptions.RequestException as e: + print(f"Error fetching CVE data: {e}") + return None + + +def fetch_cve_data_task(task_id): + """Fetch task result for CVE data.""" + url = f"https://api.staging-cd.crossfeed.cyber.dhs.gov/pe/apiv1/cves_by_modified_date/task/{task_id}" + headers = { + "Authorization": os.getenv("CF_API_KEY"), + "access_token": os.getenv("PE_API_KEY"), + "Content-Type": "", + } + + try: + response = requests.get(url, headers=headers, timeout=20) + response.raise_for_status() + return response.json() + except requests.exceptions.RequestException as e: + print(f"Error fetching CVE task data: {e}") + return None + + +def save_to_db(cve_array): + """Save CVE and associated CPE data to the database using Django ORM.""" + for cve in cve_array: + cpe_objects = [] + for vendor, products in cve.get("vender_product", {}).items(): + for product in products: + cpe_objects.append( + Cpe( + name=product["cpe_product_name"], + version=product["version_number"], + vendor=vendor, + lastSeenAt=datetime.now(), + ) + ) + + # Save CPEs and get their IDs + cpe_ids = save_cpes_to_db(cpe_objects) + + # Save CVE and associate with CPEs + save_cve_to_db(cve, cpe_ids) + + +def save_cpes_to_db(cpes): + """Save CPE entries to the database using Django ORM.""" + cpe_ids = [] + for cpe in cpes: + try: + cpe_obj, created = Cpe.objects.update_or_create( + name=cpe.name, + version=cpe.version, + vendor=cpe.vendor, + defaults={"lastSeenAt": cpe.lastSeenAt}, + ) + cpe_ids.append(cpe_obj.id) + except Exception as e: + print(f"Error saving CPE: {e}") + return cpe_ids + + +def save_cve_to_db(cve, cpe_ids): + """Save CVE entry to the database and associate with CPEs using Django ORM.""" + try: + cve_obj, created = Cve.objects.update_or_create( + name=cve["cve_name"], + defaults={ + "publishedAt": cve.get("published_date"), + "modifiedAt": cve.get("last_modified_date"), + "status": cve.get("vuln_status"), + "description": cve.get("description"), + "cvssV2BaseScore": cve.get("cvss_v2_base_score"), + "cvssV3BaseScore": cve.get("cvss_v3_base_score"), + "cvssV4BaseScore": cve.get("cvss_v4_base_score"), + "weaknesses": cve.get("weaknesses"), + "references": cve.get("reference_urls"), + }, + ) + # Add the CPEs to the CVE + cve_obj.cpes.add(*cpe_ids) + cve_obj.save() + except Exception as e: + print(f"Error saving CVE: {e}") diff --git a/backend/src/xfd_django/xfd_api/tasks/ecs_client.py b/backend/src/xfd_django/xfd_api/tasks/ecs_client.py new file mode 100644 index 00000000..8d3f8805 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/ecs_client.py @@ -0,0 +1,198 @@ +"""AWS Elastic Container Service Client.""" + +# Standard Python Libraries +from datetime import datetime +import json +import os + +# Third-Party Libraries +import boto3 + +from ..schema_models.scan import SCAN_SCHEMA + + +def to_snake_case(input_str): + """Convert a string to snake_case.""" + return input_str.replace(" ", "-") + + +class ECSClient: + """ECS Client.""" + + def __init__(self, is_local=None): + """Initialize.""" + # Determine if we're running locally or using ECS + self.is_local = is_local or os.getenv("IS_OFFLINE") or os.getenv("IS_LOCAL") + + if self.is_local: + # Third-Party Libraries + import docker + + self.docker = docker.from_env() + else: + self.docker = None + self.ecs = boto3.client("ecs") if not self.is_local else None + self.cloudwatch_logs = boto3.client("logs") if not self.is_local else None + + def run_command(self, command_options): + """Launch an ECS task or Docker container with the given command options.""" + scan_id = command_options["scanId"] + scan_name = command_options["scanName"] + num_chunks = command_options.get("numChunks") + chunk_number = command_options.get("chunkNumber") + scan_schema = SCAN_SCHEMA.get(scan_name, {}) + cpu = getattr(scan_schema, "cpu", None) + memory = getattr(scan_schema, "memory", None) + global_scan = getattr(scan_schema, "global_scan", False) + # These properties are not specified when creating a ScanTask (as a single ScanTask + # can correspond to multiple organizations), but they are input into the the + # specific task function that runs per organization. + organization_id = command_options.get("organizationId") + organization_name = command_options.get("organizationName") + + if self.is_local: + # Run the command in a local Docker container + try: + container_name = to_snake_case( + f"crossfeed_worker_{'global' if global_scan else organization_name}_{scan_name}_{int(os.urandom(4).hex(), 16)}" + ) + container = self.docker.containers.run( + "crossfeed-worker", + name=container_name, + network_mode="xfd_backend", + mem_limit="4g", + environment={ + "CROSSFEED_COMMAND_OPTIONS": json.dumps(command_options), + "CF_API_KEY": os.getenv("CF_API_KEY"), + "PE_API_KEY": os.getenv("PE_API_KEY"), + "DB_DIALECT": os.getenv("DB_DIALECT"), + "DB_HOST": os.getenv("DB_HOST"), + "IS_LOCAL": "true", + "DB_PORT": os.getenv("DB_PORT"), + "DB_NAME": os.getenv("DB_NAME"), + "DB_USERNAME": os.getenv("DB_USERNAME"), + "DB_PASSWORD": os.getenv("DB_PASSWORD"), + "MDL_NAME": os.getenv("MDL_NAME"), + "MDL_USERNAME": os.getenv("MDL_USERNAME"), + "MDL_PASSWORD": os.getenv("MDL_PASSWORD"), + "MI_ACCOUNT_NAME": os.getenv("MI_ACCOUNT_NAME"), + "MI_PASSWORD": os.getenv("MI_PASSWORD"), + "PE_DB_NAME": os.getenv("PE_DB_NAME"), + "PE_DB_USERNAME": os.getenv("PE_DB_USERNAME"), + "PE_DB_PASSWORD": os.getenv("PE_DB_PASSWORD"), + "CENSYS_API_ID": os.getenv("CENSYS_API_ID"), + "CENSYS_API_SECRET": os.getenv("CENSYS_API_SECRET"), + "WORKER_USER_AGENT": os.getenv("WORKER_USER_AGENT"), + "SHODAN_API_KEY": os.getenv("SHODAN_API_KEY"), + "SIXGILL_CLIENT_ID": os.getenv("SIXGILL_CLIENT_ID"), + "SIXGILL_CLIENT_SECRET": os.getenv("SIXGILL_CLIENT_SECRET"), + "PE_SHODAN_API_KEYS": os.getenv("PE_SHODAN_API_KEYS"), + "WORKER_SIGNATURE_PUBLIC_KEY": os.getenv( + "WORKER_SIGNATURE_PUBLIC_KEY" + ), + "WORKER_SIGNATURE_PRIVATE_KEY": os.getenv( + "WORKER_SIGNATURE_PRIVATE_KEY" + ), + "ELASTICSEARCH_ENDPOINT": os.getenv("ELASTICSEARCH_ENDPOINT"), + "AWS_ACCESS_KEY_ID": os.getenv("AWS_ACCESS_KEY_ID"), + "AWS_SECRET_ACCESS_KEY": os.getenv("AWS_SECRET_ACCESS_KEY"), + "LG_API_KEY": os.getenv("LG_API_KEY"), + "LG_WORKSPACE_NAME": os.getenv("LG_WORKSPACE_NAME"), + }, + detach=True, + ) + return {"tasks": [{"taskArn": container.name}], "failures": []} + except Exception as e: + print(e) + return {"tasks": [], "failures": [{}]} + + # Run the command on ECS + tags = [ + {"key": "scanId", "value": scan_id}, + {"key": "scanName", "value": scan_name}, + ] + if organization_name and organization_id: + tags.append({"key": "organizationId", "value": organization_id}) + tags.append({"key": "organizationName", "value": organization_name}) + if num_chunks is not None and chunk_number is not None: + tags.append({"key": "numChunks", "value": str(num_chunks)}) + tags.append({"key": "chunkNumber", "value": str(chunk_number)}) + + response = self.ecs.run_task( + cluster=os.getenv("FARGATE_CLUSTER_NAME"), + taskDefinition=os.getenv("FARGATE_TASK_DEFINITION_NAME"), + networkConfiguration={ + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [os.getenv("FARGATE_SG_ID")], + "subnets": [os.getenv("FARGATE_SUBNET_ID")], + } + }, + platformVersion="1.4.0", + launchType="FARGATE", + overrides={ + "cpu": cpu, + "memory": memory, + "containerOverrides": [ + { + "name": "main", # Name from task definition + "environment": [ + { + "name": "CROSSFEED_COMMAND_OPTIONS", + "value": json.dumps(command_options), + }, + { + "name": "NODE_OPTIONS", + "value": f"--max_old_space_size={memory}" + if memory + else "", + }, + ], + } + ], + }, + ) + return response + + def get_logs(self, fargate_task_arn): + """Get logs for a specific Fargate or Docker task.""" + if self.is_local: + # Retrieve logs from the local Docker container + log_stream = self.docker.containers.get(fargate_task_arn).logs( + stdout=True, stderr=True, timestamps=True + ) + # Process and return the logs + return "\n".join(line for line in log_stream.decode("utf-8").splitlines()) + else: + log_stream_name = f"worker/main/{fargate_task_arn.split('/')[-1]}" + + # Fetch logs from AWS CloudWatch + response = self.cloudwatch_logs.get_log_events( + logGroupName=os.getenv("FARGATE_LOG_GROUP_NAME"), + logStreamName=log_stream_name, + startFromHead=True, + ) + + # Process and format the logs + events = response.get("events", []) + if not events: + return "" + + # Format the logs as "timestamp message" + formatted_logs = "\n".join( + f"{datetime.utcfromtimestamp(event['timestamp'] / 1000).isoformat(timespec='seconds')} {event['message']}" + for event in events + ) + return formatted_logs + + def get_num_tasks(self): + """Retrieve the number of running tasks associated with the Fargate worker.""" + if self.is_local: + containers = self.docker.containers.list( + filters={"ancestor": "crossfeed-worker"} + ) + return len(containers) + tasks = self.ecs.list_tasks( + cluster=os.getenv("FARGATE_CLUSTER_NAME"), launchType="FARGATE" + ) + return len(tasks.get("taskArns", [])) diff --git a/backend/src/xfd_django/xfd_api/tasks/elasticache_tasks.py b/backend/src/xfd_django/xfd_api/tasks/elasticache_tasks.py new file mode 100644 index 00000000..164dc3b6 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/elasticache_tasks.py @@ -0,0 +1,256 @@ +"""Elasticache tasks.""" +# Standard Python Libraries +import json +import os + +# Third-Party Libraries +import django +from django.conf import settings +from django.db.models import CharField, Count, F, Q, Value +from django.db.models.functions import Concat +import redis + +# Set the Django settings module +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" + +# Initialize Django +django.setup() + +# Third-Party Libraries +from xfd_api.helpers.stats_helpers import populate_stats_cache +from xfd_api.models import Service, Vulnerability + + +def populate_services_cache(event, context): + """Populate services cache.""" + return populate_stats_cache( + model=Service, + group_by_field="domain__organization_id", + redis_key_prefix="services_stats", + annotate_field="service", + filters={ + "service__isnull": False, + "domain__isnull": False, + "domain__organization__isnull": False, + }, + ) + + +def populate_ports_cache(event, context): + """Populate ports cache.""" + return populate_stats_cache( + model=Service, + group_by_field="domain__organization_id", + redis_key_prefix="ports_stats", + annotate_field="port", + filters={ + "port__isnull": False, + "domain__isnull": False, + "domain__organization__isnull": False, + }, + ) + + +def populate_num_vulns_cache(event, context): + """Populate num vulns cache.""" + return populate_stats_cache( + model=Vulnerability, + group_by_field="domain__organization_id", + redis_key_prefix="vulnerabilities_stats", + annotate_field="severity", + custom_id=Concat( + F("domain__name"), + Value("|"), + F("severity"), + output_field=CharField(), + ), + filters={ + "state": "open", # Include only open vulnerabilities + "domain__isnull": False, + "domain__organization__isnull": False, + }, + ) + + +def populate_latest_vulns_cache(event, context): + """Populate Redis with the latest vulnerabilities for each organization.""" + try: + # Connect to Redis + redis_client = redis.StrictRedis( + host=settings.ELASTICACHE_ENDPOINT, + port=6379, + db=0, + decode_responses=True, + ) + + # Fetch and organize the latest vulnerabilities + vulnerabilities = ( + Vulnerability.objects.filter( + state="open", # Only open vulnerabilities + domain__isnull=False, + domain__organization__isnull=False, + ) + .filter( + Q(domain__isFceb=True) | Q(domain__fromCidr=True) # Apply OR condition + ) + .select_related("domain", "domain__organization") + .order_by("createdAt") + ) + + # Organize vulnerabilities by organization + vulnerabilities_by_org = {} + for vuln in vulnerabilities: + org_id = str(vuln.domain.organization.id) # Organization ID + vuln_data = { + "createdAt": vuln.createdAt.isoformat(), + "title": vuln.title, + "description": vuln.description, + "severity": vuln.severity, + } + if org_id not in vulnerabilities_by_org: + vulnerabilities_by_org[org_id] = [] + vulnerabilities_by_org[org_id].append(vuln_data) + + # Store each organization's vulnerabilities in Redis + for org_id, data in vulnerabilities_by_org.items(): + redis_key = f"latest_vulnerabilities:{org_id}" + redis_client.set(redis_key, json.dumps(data)) + + return { + "status": "success", + "message": "Cache populated with the latest vulnerabilities successfully.", + } + + except Exception as e: + return { + "status": "error", + "message": f"An unexpected error occurred while populating the cache: {e}", + } + + +def populate_most_common_vulns_cache(event, context): + """Populate Redis with the most common vulnerabilities grouped by title, description, and severity.""" + try: + # Connect to Redis + redis_client = redis.StrictRedis( + host=settings.ELASTICACHE_ENDPOINT, + port=6379, + db=0, + decode_responses=True, + ) + + # Fetch and aggregate vulnerabilities + vulnerabilities = ( + Vulnerability.objects.filter( + state="open", # Only open vulnerabilities + domain__isnull=False, + domain__organization__isnull=False, + ) + .filter( + Q(domain__isFceb=True) | Q(domain__fromCidr=True) # Apply OR condition + ) + .values("title", "description", "severity", "domain__organization_id") + .annotate(count=Count("id")) + .order_by("-count") + ) + + # Organize vulnerabilities by organization + vulnerabilities_by_org = {} + for vuln in vulnerabilities: + org_id = str(vuln["domain__organization_id"]) + vuln_data = { + "title": vuln["title"], + "description": vuln["description"], + "severity": vuln["severity"], + "count": vuln["count"], + } + if org_id not in vulnerabilities_by_org: + vulnerabilities_by_org[org_id] = [] + vulnerabilities_by_org[org_id].append(vuln_data) + + # Store each organization's vulnerabilities in Redis + for org_id, data in vulnerabilities_by_org.items(): + redis_key = f"most_common_vulnerabilities:{org_id}" + redis_client.set(redis_key, json.dumps(data)) + + return { + "status": "success", + "message": "Cache populated with the most common vulnerabilities successfully.", + } + + except Exception as e: + return { + "status": "error", + "message": f"An unexpected error occurred while populating the cache: {e}", + } + + +def populate_severity_cache(event, context): + """Populate Redis with severity statistics for vulnerabilities.""" + return populate_stats_cache( + model=Vulnerability, + group_by_field="domain__organization_id", # Group by severity + redis_key_prefix="severity_stats", + annotate_field="severity", # Default field for counting occurrences + filters={ + "state": "open", # Include only open vulnerabilities + "domain__isnull": False, + "domain__organization__isnull": False, + }, + ) + + +def populate_by_org_cache(event, context): + """ + Populate Redis with the count of open vulnerabilities grouped by organization. + + Each organization's data is stored under its own Redis key. + """ + try: + # Connect to Redis + redis_client = redis.StrictRedis( + host=settings.ELASTICACHE_ENDPOINT, + port=6379, + db=0, + decode_responses=True, + ) + + # Fetch and aggregate vulnerabilities grouped by organization + vulnerabilities = ( + Vulnerability.objects.filter( + state="open", + domain__isnull=False, + domain__organization__isnull=False, + ) + .filter( + Q(domain__isFceb=True) | Q(domain__fromCidr=True) # Apply OR condition + ) + .values("domain__organization__id", "domain__organization__name") + .annotate(value=Count("id")) + .order_by("-value") + ) + + # Organize data and store in Redis + for vuln in vulnerabilities: + org_id = str(vuln["domain__organization__id"]) + org_name = vuln["domain__organization__name"] + redis_key = f"by_org_stats:{org_id}" + data = { + "id": org_name, # Organization name as "id" + "orgId": org_id, # Organization ID + "value": vuln["value"], # Count of vulnerabilities + "label": org_name, # Organization name as "label" + } + redis_client.set(redis_key, json.dumps(data)) + + return { + "status": "success", + "message": "Cache populated for byOrg successfully.", + } + + except Exception as e: + return { + "status": "error", + "message": f"An unexpected error occurred while populating the cache: {e}", + } diff --git a/backend/src/xfd_django/xfd_api/tasks/es_client.py b/backend/src/xfd_django/xfd_api/tasks/es_client.py new file mode 100644 index 00000000..b0448b3b --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/es_client.py @@ -0,0 +1,164 @@ +"""ES client.""" +# Standard Python Libraries +import logging +import os + +# Third-Party Libraries +from elasticsearch import Elasticsearch, helpers + +# Constants +DOMAINS_INDEX = "domains-5" +ORGANIZATIONS_INDEX = "organizations-1" + +# Configure logging +logging.basicConfig(level=logging.INFO) + +# Define mappings +organization_mapping = { + "properties": {"name": {"type": "text"}, "suggest": {"type": "completion"}} +} + +domain_mapping = { + "properties": { + "services": {"type": "nested"}, + "vulnerabilities": {"type": "nested"}, + "webpage_body": {"type": "text", "term_vector": "yes"}, + "parent_join": {"type": "join", "relations": {"domain": "webpage"}}, + "suggest": {"type": "completion"}, + } +} + + +class ESClient: + """ES Client.""" + + def __init__(self): + """Initialize the Elasticsearch client.""" + endpoint = os.getenv("ELASTICSEARCH_ENDPOINT") + self.client = Elasticsearch(endpoint) + + def sync_organizations_index(self): + """Create or updates the organizations index with mappings.""" + try: + if not self.client.indices.exists(index=ORGANIZATIONS_INDEX): + logging.info(f"Creating index {ORGANIZATIONS_INDEX}...") + self.client.indices.create( + index=ORGANIZATIONS_INDEX, + body={ + "mappings": organization_mapping, + "settings": {"number_of_shards": 2}, + }, + ) + else: + logging.info(f"Updating index {ORGANIZATIONS_INDEX}...") + self.client.indices.put_mapping( + index=ORGANIZATIONS_INDEX, body=organization_mapping + ) + except Exception as e: + logging.error(f"Error syncing organizations index: {e}") + raise e + + def sync_domains_index(self): + """Create or updates the domains index with mappings.""" + try: + if not self.client.indices.exists(index=DOMAINS_INDEX): + logging.info(f"Creating index {DOMAINS_INDEX}...") + self.client.indices.create( + index=DOMAINS_INDEX, + body={ + "mappings": domain_mapping, + "settings": {"number_of_shards": 2}, + }, + ) + else: + logging.info(f"Updating index {DOMAINS_INDEX}...") + self.client.indices.put_mapping( + index=DOMAINS_INDEX, body=domain_mapping + ) + # Set refresh interval + self.client.indices.put_settings( + index=DOMAINS_INDEX, body={"settings": {"refresh_interval": "1800s"}} + ) + except Exception as e: + logging.error(f"Error syncing domains index: {e}") + raise e + + def update_organizations(self, organizations): + """Update or inserts organizations into Elasticsearch.""" + actions = [ + { + "_op_type": "update", + "_index": ORGANIZATIONS_INDEX, + "_id": org["id"], + "doc": {**org, "suggest": [{"input": org["name"], "weight": 1}]}, + "doc_as_upsert": True, + } + for org in organizations + ] + self._bulk_update(actions) + + def update_domains(self, domains): + """Update or insert domains into Elasticsearch.""" + actions = [ + { + "_op_type": "update", + "_index": DOMAINS_INDEX, + "_id": domain["id"], + "doc": { + **domain, + "suggest": [{"input": domain["name"], "weight": 1}], + "parent_join": "domain", + }, + "doc_as_upsert": True, + } + for domain in domains + ] + self._bulk_update(actions) + + def update_webpages(self, webpages): + """Update or insert webpages into Elasticsearch.""" + actions = [ + { + "_op_type": "update", + "_index": DOMAINS_INDEX, + "_id": f"webpage_{webpage['webpage_id']}", + "routing": webpage["webpage_domainId"], + "doc": { + **webpage, + "suggest": [{"input": webpage["webpage_url"], "weight": 1}], + "parent_join": { + "name": "webpage", + "parent": webpage["webpage_domainId"], + }, + }, + "doc_as_upsert": True, + } + for webpage in webpages + ] + self._bulk_update(actions) + + def delete_all(self): + """Delete all indices in Elasticsearch.""" + try: + logging.info("Deleting all indices...") + self.client.indices.delete(index="*") + except Exception as e: + logging.error(f"Error deleting all indices: {e}") + raise e + + def search_domains(self, body): + """Search domains index with specified query body.""" + return self.client.search(index=DOMAINS_INDEX, body=body) + + def search_organizations(self, body): + """Search organizations index with specified query body.""" + return self.client.search(index=ORGANIZATIONS_INDEX, body=body) + + def _bulk_update(self, actions): + """Update to Elasticsearch.""" + try: + helpers.bulk(self.client, actions, raise_on_error=True) + logging.info("Bulk update completed successfully.") + except Exception as e: + logging.error(f"Bulk operation error: {e}") + raise e diff --git a/backend/src/xfd_django/xfd_api/tasks/flagFloatingIps.py b/backend/src/xfd_django/xfd_api/tasks/flagFloatingIps.py new file mode 100644 index 00000000..46f40a3f --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/flagFloatingIps.py @@ -0,0 +1,104 @@ +"""Flag floating IPs.""" +# Standard Python Libraries + +# Third-Party Libraries +from django.db.models import Prefetch +from xfd_api.models import Cidr, Domain, Organization + + +async def check_ip_in_cidr(ip: str, acronym: str) -> bool: + """Check if a given IP address is within the CIDRs associated with an organization.""" + try: + # Fetch the organization by acronym with related CIDRs + organization = ( + Organization.objects.prefetch_related("cidrs") + .filter(acronym=acronym) + .first() + ) + if not organization or not organization.cidrs.exists(): + return False + + # Check if the IP is within any CIDR + return Cidr.objects.filter( + network__contains=ip, id__in=organization.cidrs.values_list("id", flat=True) + ).exists() + except Exception as e: + print(f"Error checking IP in CIDR: {e}") + return False + + +async def check_org_is_fceb(acronym: str) -> bool: + """Check if the organization (or its parent organizations) belongs to the EXECUTIVE sector.""" + try: + + def is_executive(organization: Organization) -> bool: + # Check if the current organization belongs to the EXECUTIVE sector + if organization.sectors.filter(acronym="EXECUTIVE").exists(): + return True + # If there is a parent organization, check it recursively + if organization.parent: + return is_executive(organization.parent) + return False + + # Fetch the organization by acronym with its sectors and parent + organization = ( + Organization.objects.prefetch_related("sectors", "parent") + .filter(acronym=acronym) + .first() + ) + if not organization: + return False + + # Check if the organization or any of its parents belong to the EXECUTIVE sector + return is_executive(organization) + except Exception as e: + print(f"Error checking organization is FCEB: {e}") + return False + + +async def handler(command_options): + """Handle flagging floating IPs and updating domains for an organization.""" + organization_id = command_options.get("organizationId") + organization_name = command_options.get("organizationName") + + print(f"Running flagFloatingIps for {organization_name}...") + + try: + # Fetch organization with related domains + organizations = ( + Organization.objects.prefetch_related( + Prefetch("domains", queryset=Domain.objects.all()) + ) + .filter(id=organization_id) + .all() + ) + + for organization in organizations: + print(f"Processing organization: {organization_name}...") + + # Check if the organization is executive (isFceb) + is_executive = await check_org_is_fceb(organization.acronym) + + if is_executive: + # Mark all domains as isFceb = True + domains_to_update = organization.domains.all() + Domain.objects.filter( + id__in=[domain.id for domain in domains_to_update] + ).update(isFceb=True) + print(f"Marked all domains in {organization_name} as isFceb=True.") + else: + # Update domains' fromCidr status + for domain in organization.domains.all(): + if domain.ip: + from_cidr = await check_ip_in_cidr( + domain.ip, organization.acronym + ) + if domain.fromCidr != from_cidr: + domain.fromCidr = from_cidr + domain.save() # Save domain only if `fromCidr` changes + print(f"Updated domain {domain.name}: fromCidr={from_cidr}") + + print(f"Completed processing for organization: {organization_name}.") + + except Exception as e: + print(f"Error processing organization {organization_name}: {e}") diff --git a/backend/src/xfd_django/xfd_api/tasks/lambda_client.py b/backend/src/xfd_django/xfd_api/tasks/lambda_client.py new file mode 100644 index 00000000..11ec8198 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/lambda_client.py @@ -0,0 +1,37 @@ +"""AWS Lambda Client.""" + +# Standard Python Libraries +import os + +# Third-Party Libraries +import boto3 + +from .scheduler import handler as scheduler + + +class LambdaClient: + """Lambda client.""" + + def __init__(self): + """Initialize.""" + # Determine if running locally or not + self.is_local = os.getenv("IS_OFFLINE") or os.getenv("IS_LOCAL") + if not self.is_local: + # Initialize Boto3 Lambda client only if not local + self.lambda_client = boto3.client( + "lambda", region_name=os.getenv("AWS_REGION", "us-east-1") + ) + + def run_command(self, name: str): + """Invoke a lambda function with the given name.""" + print(f"Invoking lambda function: {name}") + if self.is_local: + # If running locally, directly call the scheduler function + scheduler({}, {}) + return {"status": 200, "message": ""} + else: + # Invoke the lambda function asynchronously + response = self.lambda_client.invoke( + FunctionName=name, InvocationType="Event", Payload="" + ) + return response diff --git a/backend/src/xfd_django/xfd_api/tasks/run_syncdb.py b/backend/src/xfd_django/xfd_api/tasks/run_syncdb.py new file mode 100644 index 00000000..ac01356e --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/run_syncdb.py @@ -0,0 +1,62 @@ +"""Run syncdb.""" +# Standard Python Libraries +import os + +# Third-Party Libraries +import django + +# Set the Django settings module +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" + +# Initialize Django +django.setup() + +# Third-Party Libraries +from xfd_api.tasks.syncdb_helpers import ( + drop_all_tables, + manage_elasticsearch_indices, + populate_sample_data, + sync_es_organizations, + synchronize, +) + + +def handler(event, context): + """Trigger syncdb.""" + dangerouslyforce = event.get("dangerouslyforce", False) + populate = event.get("populate", False) + + try: + # Drop and recreate the database if dangerouslyforce is true + if dangerouslyforce: + print("Dropping and recreating the database...") + drop_all_tables() + + # Generate and apply migrations dynamically + print("Applying migrations dynamically...") + synchronize() + + # Elasticsearch Index Management + manage_elasticsearch_indices(dangerouslyforce) + + # Populate Sample Data + if populate: + print("Populating the database with sample data...") + populate_sample_data() + print("Sample data population complete.") + + # Step 4: Sync organizations in ES + + sync_es_organizations() + + return { + "statusCode": 200, + "body": "Database synchronization completed successfully.", + } + except Exception as e: + print(f"Error during syncdb: {str(e)}") + return { + "statusCode": 500, + "body": f"Database synchronization failed: {str(e)}", + } diff --git a/backend/src/xfd_django/xfd_api/tasks/sample_data/adjectives.json b/backend/src/xfd_django/xfd_api/tasks/sample_data/adjectives.json new file mode 100644 index 00000000..5f838b6b --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/sample_data/adjectives.json @@ -0,0 +1,110 @@ +[ + "admiring", + "adoring", + "affectionate", + "agitated", + "amazing", + "angry", + "awesome", + "beautiful", + "blissful", + "bold", + "boring", + "brave", + "busy", + "charming", + "clever", + "cool", + "compassionate", + "competent", + "condescending", + "confident", + "cranky", + "crazy", + "dazzling", + "determined", + "distracted", + "dreamy", + "eager", + "ecstatic", + "elastic", + "elated", + "elegant", + "eloquent", + "epic", + "exciting", + "fervent", + "festive", + "flamboyant", + "focused", + "friendly", + "frosty", + "funny", + "gallant", + "gifted", + "goofy", + "gracious", + "great", + "happy", + "hardcore", + "heuristic", + "hopeful", + "hungry", + "infallible", + "inspiring", + "interesting", + "intelligent", + "jolly", + "jovial", + "keen", + "kind", + "laughing", + "loving", + "lucid", + "magical", + "mystifying", + "modest", + "musing", + "naughty", + "nervous", + "nice", + "nifty", + "nostalgic", + "objective", + "optimistic", + "peaceful", + "pedantic", + "pensive", + "practical", + "priceless", + "quirky", + "quizzical", + "recursing", + "relaxed", + "reverent", + "romantic", + "sad", + "serene", + "sharp", + "silly", + "sleepy", + "stoic", + "strange", + "stupefied", + "suspicious", + "sweet", + "tender", + "thirsty", + "trusting", + "unruffled", + "upbeat", + "vibrant", + "vigilant", + "vigorous", + "wizardly", + "wonderful", + "xenodochial", + "youthful", + "zealous", + "zen" +] diff --git a/backend/src/xfd_django/xfd_api/tasks/sample_data/assessments.json b/backend/src/xfd_django/xfd_api/tasks/sample_data/assessments.json new file mode 100644 index 00000000..86223a4e --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/sample_data/assessments.json @@ -0,0 +1,146 @@ +{ + "result": [ + { + "sys_class_name": "x_g_dhs_rsc_rsc_data", + "sys_created_by": "chris.torres", + "sys_created_on": "2024-03-19 02:47:43", + "sys_id": "2a4095b3-72d3-4bf0-afdd-700ddf794575", + "sys_mod_count": "0", + "sys_tags": "", + "sys_updated_by": "some.person", + "sys_updated_on": "2024-03-19 02:47:43", + "u_3rd_party_cyber_validation": "In Progress", + "u_annual_cyber_training": "Scoped", + "u_asset_inventory": "Implemented", + "u_asset_recovery_plan": "Scoped", + "u_backup_access": "Yes", + "u_backup_auto": "Yes", + "u_backup_data": "Yes", + "u_backup_method": "An external hard drive", + "u_basline_config_documents": "Scoped", + "u_change_default_pw": "Scoped", + "u_cia_data": "Implemented", + "u_connect_deny_default": "Implemented", + "u_contact_email": "user@email.com", + "u_customer_account": { + "link": "https://this.is.a.link.com", + "value": "1062c0bb-91f4-4074-a82c-2e9ddf476a5b" + }, + "u_cyber_incident_plan": "Scoped", + "u_departing_employee_return": "Implemented", + "u_device_config": "Scoped", + "u_device_type": "mobile_device", + "u_disable_svcs": "Yes", + "u_email_tls_dkim": "In Progress", + "u_fw_av": "Yes", + "u_governance_training": "Implemented", + "u_hw_software_firmware_approval": "Not Started", + "u_iam_security": "In Progress", + "u_inc_reporting_policy": "In Progress", + "u_inc_response_plan": "Not Started", + "u_it_org_size": "micro_to_small", + "u_kev_mitagation": "Implemented", + "u_log_storage": "Implemented", + "u_log_storage_detect_resp": "Scoped", + "u_log_unsuccessful_login": "Scoped", + "u_macros_disabled": "Implemented", + "u_mfa_enabled": "Yes", + "u_named_cyber_role": "Implemented", + "u_network_diagrams": "Scoped", + "u_no_public_devices": "In Progress", + "u_ot_cyber_training": "Implemented", + "u_prohibit_unauth_devices": "In Progress", + "u_public_services_disabled": "Implemented", + "u_pw_different": "Yes", + "u_pw_length": "Not Started", + "u_pw_strong": "Yes", + "u_regular_backups": "Implemented", + "u_reputable_software": "always", + "u_secure_credential_storage": "Not Started", + "u_security_features": "Yes", + "u_security_inc_sla": "Scoped", + "u_security_research_contact": "In Progress", + "u_security_vuln_sla": "Implemented", + "u_separate_admin": "Scoped", + "u_software_updates": "Yes", + "u_strong_mfa": "Not Started", + "u_supply_chain_risk": "Implemented", + "u_tls_enabled": "Implemented", + "u_ttp_list": "Implemented", + "u_unique_svc_accounts": "In Progress", + "u_vendor_eval_docs": "Scoped", + "u_vul_management": "In Progress" + }, + { + "sys_class_name": "x_g_dhs_rsc_rsc_data", + "sys_created_by": "some.other.person", + "sys_created_on": "2021-01-11 01:11:11", + "sys_id": "0c3b0626-459a-4141-84cb-2bd357bcf276", + "sys_mod_count": "0", + "sys_tags": "", + "sys_updated_by": "thomas.johnson", + "sys_updated_on": "2023-01-01 01:11:11", + "u_3rd_party_cyber_validation": "In Progress", + "u_annual_cyber_training": "In Progress", + "u_asset_inventory": "Implemented", + "u_asset_recovery_plan": "Not Started", + "u_backup_access": "No/Unsure", + "u_backup_auto": "No/Unsure", + "u_backup_data": "Yes", + "u_backup_method": "A combination of the above", + "u_basline_config_documents": "In Progress", + "u_change_default_pw": "Scoped", + "u_cia_data": "Not Started", + "u_connect_deny_default": "Scoped", + "u_contact_email": "user@email.com", + "u_customer_account": { + "link": "https://this.is.another.link.com", + "value": "3bee8967-a3c1-467b-bbb6-41f1a5bc5f5f" + }, + "u_cyber_incident_plan": "Not Started", + "u_departing_employee_return": "Scoped", + "u_device_config": "Implemented", + "u_device_type": "mobile_device", + "u_disable_svcs": "No/Unsure", + "u_email_tls_dkim": "Scoped", + "u_fw_av": "Yes", + "u_governance_training": "Not Started", + "u_hw_software_firmware_approval": "Scoped", + "u_iam_security": "Not Started", + "u_inc_reporting_policy": "Implemented", + "u_inc_response_plan": "In Progress", + "u_it_org_size": "micro_to_small", + "u_kev_mitagation": "Not Started", + "u_log_storage": "Scoped", + "u_log_storage_detect_resp": "In Progress", + "u_log_unsuccessful_login": "Implemented", + "u_macros_disabled": "Not Started", + "u_mfa_enabled": "Yes", + "u_named_cyber_role": "Scoped", + "u_network_diagrams": "In Progress", + "u_no_public_devices": "In Progress", + "u_ot_cyber_training": "Not Started", + "u_prohibit_unauth_devices": "In Progress", + "u_public_services_disabled": "In Progress", + "u_pw_different": "Yes", + "u_pw_length": "Implemented", + "u_pw_strong": "No/Unsure", + "u_regular_backups": "Not Started", + "u_reputable_software": "never", + "u_secure_credential_storage": "Scoped", + "u_security_features": "No/Unsure", + "u_security_inc_sla": "Implemented", + "u_security_research_contact": "Not Started", + "u_security_vuln_sla": "In Progress", + "u_separate_admin": "In Progress", + "u_software_updates": "No/Unsure", + "u_strong_mfa": "Implemented", + "u_supply_chain_risk": "In Progress", + "u_tls_enabled": "Scoped", + "u_ttp_list": "Scoped", + "u_unique_svc_accounts": "In Progress", + "u_vendor_eval_docs": "Not Started", + "u_vul_management": "In Progress" + } + ] +} diff --git a/backend/src/xfd_django/xfd_api/tasks/sample_data/cpes.json b/backend/src/xfd_django/xfd_api/tasks/sample_data/cpes.json new file mode 100644 index 00000000..f637f387 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/sample_data/cpes.json @@ -0,0 +1,9 @@ +[ + "cpe:/a:microsoft:exchange_server:4.0:sp1", + "cpe:/a:apache:httpd:0.0.1", + "cpe:/a:drupal:drupal:3", + "cpe:/a:igor_sysoev:nginx:1.2.0", + "cpe:/a:openbsd:openssh:7.4", + "cpe:/a:microsoft:internet_information_server:2.0", + "cpe:/a:apache:http_server:1.0" +] diff --git a/backend/src/xfd_django/xfd_api/tasks/sample_data/cves.json b/backend/src/xfd_django/xfd_api/tasks/sample_data/cves.json new file mode 100644 index 00000000..e01122c8 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/sample_data/cves.json @@ -0,0 +1,1082 @@ +[ + { + "cve_name": "CVE-2017-15906", + "cve_uid": "", + "cvss_v2_base_score": 5, + "cvss_v2_base_severity": "MEDIUM", + "cvss_v2_exploitability_score": 10, + "cvss_v2_impact_score": 2.9, + "cvss_v2_source": "nvd@nist.gov", + "cvss_v2_type": "Primary", + "cvss_v2_vector_string": "AV:N/AC:L/Au:N/C:N/I:P/A:N", + "cvss_v2_version": "2.0", + "cvss_v3_base_score": 5.3, + "cvss_v3_base_severity": "MEDIUM", + "cvss_v3_exploitability_score": 3.9, + "cvss_v3_impact_score": 1.4, + "cvss_v3_source": "nvd@nist.gov", + "cvss_v3_type": "Primary", + "cvss_v3_vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", + "cvss_v3_version": "3.1", + "cvss_v4_base_score": null, + "cvss_v4_base_severity": null, + "cvss_v4_exploitability_score": null, + "cvss_v4_impact_score": null, + "cvss_v4_source": null, + "cvss_v4_type": null, + "cvss_v4_vector_string": null, + "cvss_v4_version": null, + "description": "The process_open function in sftp-server.c in OpenSSH before 7.6 does not properly prevent write operations in readonly mode, which allows attackers to create zero-length files.", + "last_modified_date": "2024-02-14T22:42:27.316Z", + "published_date": "2017-10-26T08:29:00.220Z", + "reference_urls": [ + "http://www.securityfocus.com/bid/101552", + "https://access.redhat.com/errata/RHSA-2018:0980", + "https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf", + "https://github.com/openbsd/src/commit/a6981567e8e215acc1ef690c8dbb30f2d9b00a19", + "https://lists.debian.org/debian-lts-announce/2018/09/msg00010.html", + "https://security.gentoo.org/glsa/201801-05", + "https://security.netapp.com/advisory/ntap-20180423-0004/", + "https://www.openssh.com/txt/release-7.6", + "https://www.oracle.com/security-alerts/cpujan2020.html" + ], + "vender_product": { + "company": [ + { + "cpe_product_name": "oncommand_unified_manager_core_package", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "storage_replication_adapter_for_clustered_data_ontap", + "vender": "netapp", + "version_number": "*" + }, + { + "cpe_product_name": "solidfire", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_server_aus", + "vender": "redhat", + "version_number": "7.6" + }, + { + "cpe_product_name": "enterprise_linux_server_aus", + "vender": "redhat", + "version_number": "7.7" + }, + { + "cpe_product_name": "enterprise_linux_desktop", + "vender": "redhat", + "version_number": "7.0" + }, + { + "cpe_product_name": "virtual_storage_console", + "vender": "netapp", + "version_number": "9.6" + }, + { + "cpe_product_name": "data_ontap_edge", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "7.7" + }, + { + "cpe_product_name": "enterprise_linux_server_tus", + "vender": "redhat", + "version_number": "7.6" + }, + { + "cpe_product_name": "openssh", + "vender": "openssh", + "version_number": "*" + }, + { + "cpe_product_name": "cn1610", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "steelstore_cloud_integrated_storage", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "7.6" + }, + { + "cpe_product_name": "enterprise_linux_server_tus", + "vender": "redhat", + "version_number": "7.7" + }, + { + "cpe_product_name": "hci_management_node", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_server", + "vender": "redhat", + "version_number": "7.0" + }, + { + "cpe_product_name": "cloud_backup", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_workstation", + "vender": "redhat", + "version_number": "7.0" + }, + { + "cpe_product_name": "storage_replication_adapter_for_clustered_data_ontap", + "vender": "netapp", + "version_number": "9.6" + }, + { + "cpe_product_name": "virtual_storage_console", + "vender": "netapp", + "version_number": "*" + }, + { + "cpe_product_name": "sun_zfs_storage_appliance_kit", + "vender": "oracle", + "version_number": "8.8.6" + }, + { + "cpe_product_name": "clustered_data_ontap", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "cn1610_firmware", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "vasa_provider_for_clustered_data_ontap", + "vender": "netapp", + "version_number": "*" + }, + { + "cpe_product_name": "debian_linux", + "vender": "debian", + "version_number": "8.0" + }, + { + "cpe_product_name": "active_iq_unified_manager", + "vender": "netapp", + "version_number": "-" + } + ] + }, + "vuln_status": "Modified", + "weaknesses": [ + "CWE-732" + ] + }, + { + "cve_name": "CVE-2018-15473", + "cve_uid": "", + "cvss_v2_base_score": 5, + "cvss_v2_base_severity": "MEDIUM", + "cvss_v2_exploitability_score": 10, + "cvss_v2_impact_score": 2.9, + "cvss_v2_source": "nvd@nist.gov", + "cvss_v2_type": "Primary", + "cvss_v2_vector_string": "AV:N/AC:L/Au:N/C:P/I:N/A:N", + "cvss_v2_version": "2.0", + "cvss_v3_base_score": 5.3, + "cvss_v3_base_severity": "MEDIUM", + "cvss_v3_exploitability_score": 3.9, + "cvss_v3_impact_score": 1.4, + "cvss_v3_source": "nvd@nist.gov", + "cvss_v3_type": "Primary", + "cvss_v3_vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", + "cvss_v3_version": "3.1", + "cvss_v4_base_score": null, + "cvss_v4_base_severity": null, + "cvss_v4_exploitability_score": null, + "cvss_v4_impact_score": null, + "cvss_v4_source": null, + "cvss_v4_type": null, + "cvss_v4_vector_string": null, + "cvss_v4_version": null, + "description": "OpenSSH through 7.7 is prone to a user enumeration vulnerability due to not delaying bailout for an invalid authenticating user until after the packet containing the request has been fully parsed, related to auth2-gss.c, auth2-hostbased.c, and auth2-pubkey.c.", + "last_modified_date": "2024-02-14T22:50:19.257Z", + "published_date": "2018-08-18T00:29:00.223Z", + "reference_urls": [ + "http://www.openwall.com/lists/oss-security/2018/08/15/5", + "http://www.securityfocus.com/bid/105140", + "http://www.securitytracker.com/id/1041487", + "https://access.redhat.com/errata/RHSA-2019:0711", + "https://access.redhat.com/errata/RHSA-2019:2143", + "https://bugs.debian.org/906236", + "https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf", + "https://github.com/openbsd/src/commit/779974d35b4859c07bc3cb8a12c74b43b0a7d1e0", + "https://lists.debian.org/debian-lts-announce/2018/08/msg00022.html", + "https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0011", + "https://security.gentoo.org/glsa/201810-03", + "https://security.netapp.com/advisory/ntap-20181101-0001/", + "https://usn.ubuntu.com/3809-1/", + "https://www.debian.org/security/2018/dsa-4280", + "https://www.exploit-db.com/exploits/45210/", + "https://www.exploit-db.com/exploits/45233/", + "https://www.exploit-db.com/exploits/45939/", + "https://www.oracle.com/security-alerts/cpujan2020.html" + ], + "vender_product": { + "company": [ + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "14.04" + }, + { + "cpe_product_name": "ontap_select_deploy", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "vasa_provider", + "vender": "netapp", + "version_number": "*" + }, + { + "cpe_product_name": "enterprise_linux_desktop", + "vender": "redhat", + "version_number": "7.0" + }, + { + "cpe_product_name": "enterprise_linux_server", + "vender": "redhat", + "version_number": "6.0" + }, + { + "cpe_product_name": "enterprise_linux_desktop", + "vender": "redhat", + "version_number": "6.0" + }, + { + "cpe_product_name": "data_ontap_edge", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "service_processor", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "scalance_x204rna", + "vender": "siemens", + "version_number": "-" + }, + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "18.04" + }, + { + "cpe_product_name": "data_ontap", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "16.04" + }, + { + "cpe_product_name": "openssh", + "vender": "openssh", + "version_number": "*" + }, + { + "cpe_product_name": "cn1610", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "steelstore_cloud_integrated_storage", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_workstation", + "vender": "redhat", + "version_number": "6.0" + }, + { + "cpe_product_name": "oncommand_unified_manager", + "vender": "netapp", + "version_number": "*" + }, + { + "cpe_product_name": "aff_baseboard_management_controller", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "storage_replication_adapter", + "vender": "netapp", + "version_number": "*" + }, + { + "cpe_product_name": "enterprise_linux_server", + "vender": "redhat", + "version_number": "7.0" + }, + { + "cpe_product_name": "cloud_backup", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_workstation", + "vender": "redhat", + "version_number": "7.0" + }, + { + "cpe_product_name": "virtual_storage_console", + "vender": "netapp", + "version_number": "*" + }, + { + "cpe_product_name": "scalance_x204rna_firmware", + "vender": "siemens", + "version_number": "*" + }, + { + "cpe_product_name": "sun_zfs_storage_appliance_kit", + "vender": "oracle", + "version_number": "8.8.6" + }, + { + "cpe_product_name": "debian_linux", + "vender": "debian", + "version_number": "9.0" + }, + { + "cpe_product_name": "clustered_data_ontap", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "cn1610_firmware", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "fas_baseboard_management_controller", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "debian_linux", + "vender": "debian", + "version_number": "8.0" + } + ] + }, + "vuln_status": "Analyzed", + "weaknesses": [ + "CWE-362" + ] + }, + { + "cve_name": "CVE-2018-15919", + "cve_uid": "", + "cvss_v2_base_score": 5, + "cvss_v2_base_severity": "MEDIUM", + "cvss_v2_exploitability_score": 10, + "cvss_v2_impact_score": 2.9, + "cvss_v2_source": "nvd@nist.gov", + "cvss_v2_type": "Primary", + "cvss_v2_vector_string": "AV:N/AC:L/Au:N/C:P/I:N/A:N", + "cvss_v2_version": "2.0", + "cvss_v3_base_score": 5.3, + "cvss_v3_base_severity": "MEDIUM", + "cvss_v3_exploitability_score": 3.9, + "cvss_v3_impact_score": 1.4, + "cvss_v3_source": "nvd@nist.gov", + "cvss_v3_type": "Primary", + "cvss_v3_vector_string": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", + "cvss_v3_version": "3.0", + "cvss_v4_base_score": null, + "cvss_v4_base_severity": null, + "cvss_v4_exploitability_score": null, + "cvss_v4_impact_score": null, + "cvss_v4_source": null, + "cvss_v4_type": null, + "cvss_v4_vector_string": null, + "cvss_v4_version": null, + "description": "Remotely observable behaviour in auth-gss2.c in OpenSSH through 7.8 could be used by remote attackers to detect existence of users on a target system when GSS2 is in use. NOTE: the discoverer states 'We understand that the OpenSSH developers do not want to treat such a username enumeration (or \"oracle\") as a vulnerability.'", + "last_modified_date": "2024-02-14T22:50:28.245Z", + "published_date": "2018-08-28T13:29:00.207Z", + "reference_urls": [ + "http://seclists.org/oss-sec/2018/q3/180", + "http://www.securityfocus.com/bid/105163", + "https://security.netapp.com/advisory/ntap-20181221-0001/" + ], + "vender_product": { + "company": [ + { + "cpe_product_name": "ontap_select_deploy", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "data_ontap_edge", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "openssh", + "vender": "openssh", + "version_number": "*" + }, + { + "cpe_product_name": "cn1610", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "cloud_backup", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "cn1610_firmware", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "steelstore", + "vender": "netapp", + "version_number": "-" + } + ] + }, + "vuln_status": "Analyzed", + "weaknesses": [ + "CWE-200" + ] + }, + { + "cve_name": "CVE-2018-20685", + "cve_uid": "", + "cvss_v2_base_score": 2.6, + "cvss_v2_base_severity": "LOW", + "cvss_v2_exploitability_score": 4.9, + "cvss_v2_impact_score": 2.9, + "cvss_v2_source": "nvd@nist.gov", + "cvss_v2_type": "Primary", + "cvss_v2_vector_string": "AV:N/AC:H/Au:N/C:N/I:P/A:N", + "cvss_v2_version": "2.0", + "cvss_v3_base_score": 5.3, + "cvss_v3_base_severity": "MEDIUM", + "cvss_v3_exploitability_score": 1.6, + "cvss_v3_impact_score": 3.6, + "cvss_v3_source": "nvd@nist.gov", + "cvss_v3_type": "Primary", + "cvss_v3_vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N", + "cvss_v3_version": "3.1", + "cvss_v4_base_score": null, + "cvss_v4_base_severity": null, + "cvss_v4_exploitability_score": null, + "cvss_v4_impact_score": null, + "cvss_v4_source": null, + "cvss_v4_type": null, + "cvss_v4_vector_string": null, + "cvss_v4_version": null, + "description": "In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypass intended access restrictions via the filename of . or an empty filename. The impact is modifying the permissions of the target directory on the client side.", + "last_modified_date": "2024-02-14T22:51:58.019Z", + "published_date": "2019-01-11T03:29:00.377Z", + "reference_urls": [ + "http://www.securityfocus.com/bid/106531", + "https://access.redhat.com/errata/RHSA-2019:3702", + "https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf", + "https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h", + "https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2", + "https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html", + "https://security.gentoo.org/glsa/201903-16", + "https://security.gentoo.org/glsa/202007-53", + "https://security.netapp.com/advisory/ntap-20190215-0001/", + "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt", + "https://usn.ubuntu.com/3885-1/", + "https://www.debian.org/security/2019/dsa-4387", + "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html", + "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html" + ], + "vender_product": { + "company": [ + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "14.04" + }, + { + "cpe_product_name": "m10-4s", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "ontap_select_deploy", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "scalance_x204rna_eec", + "vender": "siemens", + "version_number": "-" + }, + { + "cpe_product_name": "m12-1_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "m10-4", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "m12-2s", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "8.6" + }, + { + "cpe_product_name": "element_software", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "m12-2s_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "enterprise_linux", + "vender": "redhat", + "version_number": "7.0" + }, + { + "cpe_product_name": "enterprise_linux_server_aus", + "vender": "redhat", + "version_number": "8.2" + }, + { + "cpe_product_name": "m12-2", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "solaris", + "vender": "oracle", + "version_number": "10" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "8.1" + }, + { + "cpe_product_name": "scalance_x204rna", + "vender": "siemens", + "version_number": "-" + }, + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "18.04" + }, + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "16.04" + }, + { + "cpe_product_name": "openssh", + "vender": "openssh", + "version_number": "*" + }, + { + "cpe_product_name": "storage_automation_store", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "m10-1_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "m12-2_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "enterprise_linux", + "vender": "redhat", + "version_number": "8.0" + }, + { + "cpe_product_name": "steelstore_cloud_integrated_storage", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "8.2" + }, + { + "cpe_product_name": "enterprise_linux_server_tus", + "vender": "redhat", + "version_number": "8.2" + }, + { + "cpe_product_name": "enterprise_linux_server_tus", + "vender": "redhat", + "version_number": "8.4" + }, + { + "cpe_product_name": "winscp", + "vender": "winscp", + "version_number": "*" + }, + { + "cpe_product_name": "m10-4s_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "cloud_backup", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "scalance_x204rna_firmware", + "vender": "siemens", + "version_number": "*" + }, + { + "cpe_product_name": "m10-4_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "debian_linux", + "vender": "debian", + "version_number": "9.0" + }, + { + "cpe_product_name": "scalance_x204rna_eec_firmware", + "vender": "siemens", + "version_number": "*" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "8.4" + }, + { + "cpe_product_name": "enterprise_linux_server_tus", + "vender": "redhat", + "version_number": "8.6" + }, + { + "cpe_product_name": "enterprise_linux_server_aus", + "vender": "redhat", + "version_number": "8.4" + }, + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "18.10" + }, + { + "cpe_product_name": "debian_linux", + "vender": "debian", + "version_number": "8.0" + }, + { + "cpe_product_name": "enterprise_linux_server_aus", + "vender": "redhat", + "version_number": "8.6" + }, + { + "cpe_product_name": "m10-1", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "m12-1", + "vender": "fujitsu", + "version_number": "-" + } + ] + }, + "vuln_status": "Analyzed", + "weaknesses": [ + "CWE-863" + ] + }, + { + "cve_name": "CVE-2019-6109", + "cve_uid": "", + "cvss_v2_base_score": 4, + "cvss_v2_base_severity": "MEDIUM", + "cvss_v2_exploitability_score": 4.9, + "cvss_v2_impact_score": 4.9, + "cvss_v2_source": "nvd@nist.gov", + "cvss_v2_type": "Primary", + "cvss_v2_vector_string": "AV:N/AC:H/Au:N/C:P/I:P/A:N", + "cvss_v2_version": "2.0", + "cvss_v3_base_score": 6.8, + "cvss_v3_base_severity": "MEDIUM", + "cvss_v3_exploitability_score": 1.6, + "cvss_v3_impact_score": 5.2, + "cvss_v3_source": "nvd@nist.gov", + "cvss_v3_type": "Primary", + "cvss_v3_vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N", + "cvss_v3_version": "3.1", + "cvss_v4_base_score": null, + "cvss_v4_base_severity": null, + "cvss_v4_exploitability_score": null, + "cvss_v4_impact_score": null, + "cvss_v4_source": null, + "cvss_v4_type": null, + "cvss_v4_vector_string": null, + "cvss_v4_version": null, + "description": "An issue was discovered in OpenSSH 7.9. Due to missing character encoding in the progress display, a malicious server (or Man-in-The-Middle attacker) can employ crafted object names to manipulate the client output, e.g., by using ANSI control codes to hide additional files being transferred. This affects refresh_progress_meter() in progressmeter.c.", + "last_modified_date": "2024-02-14T23:02:10.030Z", + "published_date": "2019-02-01T00:29:00.710Z", + "reference_urls": [ + "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00058.html", + "https://access.redhat.com/errata/RHSA-2019:3702", + "https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf", + "https://cvsweb.openbsd.org/src/usr.bin/ssh/progressmeter.c", + "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c", + "https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html", + "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5P5ISFG37G/", + "https://security.gentoo.org/glsa/201903-16", + "https://security.netapp.com/advisory/ntap-20190213-0001/", + "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt", + "https://usn.ubuntu.com/3885-1/", + "https://www.debian.org/security/2019/dsa-4387", + "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html" + ], + "vender_product": { + "company": [ + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "14.04" + }, + { + "cpe_product_name": "m10-4s", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "ontap_select_deploy", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "scalance_x204rna_eec", + "vender": "siemens", + "version_number": "-" + }, + { + "cpe_product_name": "m12-1_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "m10-4", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "m12-2s", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "8.6" + }, + { + "cpe_product_name": "element_software", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "m12-2s_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "enterprise_linux_server_aus", + "vender": "redhat", + "version_number": "8.2" + }, + { + "cpe_product_name": "m12-2", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "fedora", + "vender": "fedoraproject", + "version_number": "30" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "8.1" + }, + { + "cpe_product_name": "scalance_x204rna", + "vender": "siemens", + "version_number": "-" + }, + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "18.04" + }, + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "16.04" + }, + { + "cpe_product_name": "openssh", + "vender": "openssh", + "version_number": "*" + }, + { + "cpe_product_name": "storage_automation_store", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "m10-1_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "m12-2_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "enterprise_linux", + "vender": "redhat", + "version_number": "8.0" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "8.2" + }, + { + "cpe_product_name": "enterprise_linux_server_tus", + "vender": "redhat", + "version_number": "8.2" + }, + { + "cpe_product_name": "enterprise_linux_server_tus", + "vender": "redhat", + "version_number": "8.4" + }, + { + "cpe_product_name": "winscp", + "vender": "winscp", + "version_number": "*" + }, + { + "cpe_product_name": "m10-4s_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "scalance_x204rna_firmware", + "vender": "siemens", + "version_number": "*" + }, + { + "cpe_product_name": "m10-4_firmware", + "vender": "fujitsu", + "version_number": "*" + }, + { + "cpe_product_name": "debian_linux", + "vender": "debian", + "version_number": "9.0" + }, + { + "cpe_product_name": "scalance_x204rna_eec_firmware", + "vender": "siemens", + "version_number": "*" + }, + { + "cpe_product_name": "enterprise_linux_eus", + "vender": "redhat", + "version_number": "8.4" + }, + { + "cpe_product_name": "enterprise_linux_server_tus", + "vender": "redhat", + "version_number": "8.6" + }, + { + "cpe_product_name": "enterprise_linux_server_aus", + "vender": "redhat", + "version_number": "8.4" + }, + { + "cpe_product_name": "ubuntu_linux", + "vender": "canonical", + "version_number": "18.10" + }, + { + "cpe_product_name": "debian_linux", + "vender": "debian", + "version_number": "8.0" + }, + { + "cpe_product_name": "enterprise_linux_server_aus", + "vender": "redhat", + "version_number": "8.6" + }, + { + "cpe_product_name": "m10-1", + "vender": "fujitsu", + "version_number": "-" + }, + { + "cpe_product_name": "m12-1", + "vender": "fujitsu", + "version_number": "-" + } + ] + }, + "vuln_status": "Modified", + "weaknesses": [ + "CWE-116" + ] + }, + { + "cve_name": "CVE-2019-6110", + "cve_uid": "", + "cvss_v2_base_score": 4, + "cvss_v2_base_severity": "MEDIUM", + "cvss_v2_exploitability_score": 4.9, + "cvss_v2_impact_score": 4.9, + "cvss_v2_source": "nvd@nist.gov", + "cvss_v2_type": "Primary", + "cvss_v2_vector_string": "AV:N/AC:H/Au:N/C:P/I:P/A:N", + "cvss_v2_version": "2.0", + "cvss_v3_base_score": 6.8, + "cvss_v3_base_severity": "MEDIUM", + "cvss_v3_exploitability_score": 1.6, + "cvss_v3_impact_score": 5.2, + "cvss_v3_source": "nvd@nist.gov", + "cvss_v3_type": "Primary", + "cvss_v3_vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N", + "cvss_v3_version": "3.1", + "cvss_v4_base_score": null, + "cvss_v4_base_severity": null, + "cvss_v4_exploitability_score": null, + "cvss_v4_impact_score": null, + "cvss_v4_source": null, + "cvss_v4_type": null, + "cvss_v4_vector_string": null, + "cvss_v4_version": null, + "description": "In OpenSSH 7.9, due to accepting and displaying arbitrary stderr output from the server, a malicious server (or Man-in-The-Middle attacker) can manipulate the client output, for example to use ANSI control codes to hide additional files being transferred.", + "last_modified_date": "2024-02-14T23:02:10.051Z", + "published_date": "2019-02-01T00:29:00.807Z", + "reference_urls": [ + "https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf", + "https://cvsweb.openbsd.org/src/usr.bin/ssh/progressmeter.c", + "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c", + "https://security.gentoo.org/glsa/201903-16", + "https://security.netapp.com/advisory/ntap-20190213-0001/", + "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt", + "https://www.exploit-db.com/exploits/46193/" + ], + "vender_product": { + "company": [ + { + "cpe_product_name": "ontap_select_deploy", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "scalance_x204rna_eec", + "vender": "siemens", + "version_number": "-" + }, + { + "cpe_product_name": "element_software", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "scalance_x204rna", + "vender": "siemens", + "version_number": "-" + }, + { + "cpe_product_name": "openssh", + "vender": "openssh", + "version_number": "*" + }, + { + "cpe_product_name": "storage_automation_store", + "vender": "netapp", + "version_number": "-" + }, + { + "cpe_product_name": "winscp", + "vender": "winscp", + "version_number": "*" + }, + { + "cpe_product_name": "scalance_x204rna_firmware", + "vender": "siemens", + "version_number": "*" + }, + { + "cpe_product_name": "scalance_x204rna_eec_firmware", + "vender": "siemens", + "version_number": "*" + } + ] + }, + "vuln_status": "Analyzed", + "weaknesses": [ + "CWE-838" + ] + } +] diff --git a/backend/src/xfd_django/xfd_api/tasks/sample_data/nouns.json b/backend/src/xfd_django/xfd_api/tasks/sample_data/nouns.json new file mode 100644 index 00000000..86fb857a --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/sample_data/nouns.json @@ -0,0 +1,239 @@ +[ + "albattani", + "allen", + "almeida", + "antonelli", + "agnesi", + "archimedes", + "ardinghelli", + "aryabhata", + "austin", + "babbage", + "banach", + "banzai", + "bardeen", + "bartik", + "bassi", + "beaver", + "bell", + "benz", + "bhabha", + "bhaskara", + "black", + "blackburn", + "blackwell", + "bohr", + "booth", + "borg", + "bose", + "bouman", + "boyd", + "brahmagupta", + "brattain", + "brown", + "buck", + "burnell", + "cannon", + "carson", + "cartwright", + "carver", + "cerf", + "chandrasekhar", + "chaplygin", + "chatelet", + "chatterjee", + "chebyshev", + "cohen", + "chaum", + "clarke", + "colden", + "cori", + "cray", + "curran", + "curie", + "darwin", + "davinci", + "dewdney", + "dhawan", + "diffie", + "dijkstra", + "dirac", + "driscoll", + "dubinsky", + "easley", + "edison", + "einstein", + "elbakyan", + "elgamal", + "elion", + "ellis", + "engelbart", + "euclid", + "euler", + "faraday", + "feistel", + "fermat", + "fermi", + "feynman", + "franklin", + "gagarin", + "galileo", + "galois", + "ganguly", + "gates", + "gauss", + "germain", + "goldberg", + "goldstine", + "goldwasser", + "golick", + "goodall", + "gould", + "greider", + "grothendieck", + "haibt", + "hamilton", + "haslett", + "hawking", + "hellman", + "heisenberg", + "hermann", + "herschel", + "hertz", + "heyrovsky", + "hodgkin", + "hofstadter", + "hoover", + "hopper", + "hugle", + "hypatia", + "ishizaka", + "jackson", + "jang", + "jemison", + "jennings", + "jepsen", + "johnson", + "joliot", + "jones", + "kalam", + "kapitsa", + "kare", + "keldysh", + "keller", + "kepler", + "khayyam", + "khorana", + "kilby", + "kirch", + "knuth", + "kowalevski", + "lalande", + "lamarr", + "lamport", + "leakey", + "leavitt", + "lederberg", + "lehmann", + "lewin", + "lichterman", + "liskov", + "lovelace", + "lumiere", + "mahavira", + "margulis", + "matsumoto", + "maxwell", + "mayer", + "mccarthy", + "mcclintock", + "mclaren", + "mclean", + "mcnulty", + "mendel", + "mendeleev", + "meitner", + "meninsky", + "merkle", + "mestorf", + "mirzakhani", + "moore", + "morse", + "murdock", + "moser", + "napier", + "nash", + "neumann", + "newton", + "nightingale", + "nobel", + "noether", + "northcutt", + "noyce", + "panini", + "pare", + "pascal", + "pasteur", + "payne", + "perlman", + "pike", + "poincare", + "poitras", + "proskuriakova", + "ptolemy", + "raman", + "ramanujan", + "ride", + "montalcini", + "ritchie", + "rhodes", + "robinson", + "roentgen", + "rosalind", + "rubin", + "saha", + "sammet", + "sanderson", + "satoshi", + "shamir", + "shannon", + "shaw", + "shirley", + "shockley", + "shtern", + "sinoussi", + "snyder", + "solomon", + "spence", + "stonebraker", + "sutherland", + "swanson", + "swartz", + "swirles", + "taussig", + "tereshkova", + "tesla", + "tharp", + "thompson", + "torvalds", + "tu", + "turing", + "varahamihira", + "vaughan", + "visvesvaraya", + "volhard", + "villani", + "wescoff", + "wilbur", + "wiles", + "williams", + "williamson", + "wilson", + "wing", + "wozniak", + "wright", + "wu", + "yalow", + "yonath", + "zhukovsky" +] diff --git a/backend/src/xfd_django/xfd_api/tasks/sample_data/services.json b/backend/src/xfd_django/xfd_api/tasks/sample_data/services.json new file mode 100644 index 00000000..8b48535d --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/sample_data/services.json @@ -0,0 +1,22 @@ +[ + { + "port": 80, + "service": "http" + }, + { + "port": 443, + "service": "https" + }, + { + "port": 22, + "service": "ssh" + }, + { + "port": 25, + "service": "ftp" + }, + { + "port": 3389, + "service": "rdp" + } +] diff --git a/backend/src/xfd_django/xfd_api/tasks/sample_data/vulnerabilities.json b/backend/src/xfd_django/xfd_api/tasks/sample_data/vulnerabilities.json new file mode 100644 index 00000000..59fbc9aa --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/sample_data/vulnerabilities.json @@ -0,0 +1,918 @@ +[ + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2017-15906", + "cvss": 5.3, + "cwe": "CWE-732", + "description": "The process_open function in sftp-server.c in OpenSSH before 7.6 does not properly prevent write operations in readonly mode, which allows attackers to create zero-length files.", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "101552", + "source": "BID", + "tags": [], + "url": "http://www.securityfocus.com/bid/101552" + }, + { + "name": "RHSA-2018:0980", + "source": "REDHAT", + "tags": [], + "url": "https://access.redhat.com/errata/RHSA-2018:0980" + }, + { + "name": "https://github.com/openbsd/src/commit/a6981567e8e215acc1ef690c8dbb30f2d9b00a19", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://github.com/openbsd/src/commit/a6981567e8e215acc1ef690c8dbb30f2d9b00a19" + }, + { + "name": "[debian-lts-announce] 20180910 [SECURITY] [DLA 1500-1] openssh security update", + "source": "MLIST", + "tags": [], + "url": "https://lists.debian.org/debian-lts-announce/2018/09/msg00010.html" + }, + { + "name": "GLSA-201801-05", + "source": "GENTOO", + "tags": [], + "url": "https://security.gentoo.org/glsa/201801-05" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20180423-0004/", + "source": "CONFIRM", + "tags": [], + "url": "https://security.netapp.com/advisory/ntap-20180423-0004/" + }, + { + "name": "https://www.openssh.com/txt/release-7.6", + "source": "CONFIRM", + "tags": [ + "Vendor Advisory" + ], + "url": "https://www.openssh.com/txt/release-7.6" + }, + { + "name": "https://www.oracle.com/security-alerts/cpujan2020.html", + "source": "MISC", + "tags": [], + "url": "https://www.oracle.com/security-alerts/cpujan2020.html" + } + ], + "severity": "Medium", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2017-15906" + }, + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2018-15473", + "cvss": 5.3, + "cwe": "CWE-362", + "description": "OpenSSH through 7.7 is prone to a user enumeration vulnerability due to not delaying bailout for an invalid authenticating user until after the packet containing the request has been fully parsed, related to auth2-gss.c, auth2-hostbased.c, and auth2-pubkey.c.", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "http://www.openwall.com/lists/oss-security/2018/08/15/5", + "source": "MISC", + "tags": [ + "Mailing List", + "Patch", + "Third Party Advisory" + ], + "url": "http://www.openwall.com/lists/oss-security/2018/08/15/5" + }, + { + "name": "105140", + "source": "BID", + "tags": [ + "Third Party Advisory", + "VDB Entry" + ], + "url": "http://www.securityfocus.com/bid/105140" + }, + { + "name": "1041487", + "source": "SECTRACK", + "tags": [ + "Patch", + "Third Party Advisory", + "VDB Entry" + ], + "url": "http://www.securitytracker.com/id/1041487" + }, + { + "name": "RHSA-2019:0711", + "source": "REDHAT", + "tags": [ + "Third Party Advisory" + ], + "url": "https://access.redhat.com/errata/RHSA-2019:0711" + }, + { + "name": "RHSA-2019:2143", + "source": "REDHAT", + "tags": [], + "url": "https://access.redhat.com/errata/RHSA-2019:2143" + }, + { + "name": "https://bugs.debian.org/906236", + "source": "MISC", + "tags": [ + "Issue Tracking", + "Mailing List", + "Patch", + "Third Party Advisory" + ], + "url": "https://bugs.debian.org/906236" + }, + { + "name": "https://github.com/openbsd/src/commit/779974d35b4859c07bc3cb8a12c74b43b0a7d1e0", + "source": "MISC", + "tags": [ + "Third Party Advisory" + ], + "url": "https://github.com/openbsd/src/commit/779974d35b4859c07bc3cb8a12c74b43b0a7d1e0" + }, + { + "name": "[debian-lts-announce] 20180821 [SECURITY] [DLA-1474-1] openssh security update", + "source": "MLIST", + "tags": [ + "Mailing List", + "Third Party Advisory" + ], + "url": "https://lists.debian.org/debian-lts-announce/2018/08/msg00022.html" + }, + { + "name": "https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0011", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0011" + }, + { + "name": "GLSA-201810-03", + "source": "GENTOO", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.gentoo.org/glsa/201810-03" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20181101-0001/", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.netapp.com/advisory/ntap-20181101-0001/" + }, + { + "name": "USN-3809-1", + "source": "UBUNTU", + "tags": [ + "Third Party Advisory" + ], + "url": "https://usn.ubuntu.com/3809-1/" + }, + { + "name": "DSA-4280", + "source": "DEBIAN", + "tags": [ + "Third Party Advisory" + ], + "url": "https://www.debian.org/security/2018/dsa-4280" + }, + { + "name": "45210", + "source": "EXPLOIT-DB", + "tags": [ + "Exploit", + "Third Party Advisory", + "VDB Entry" + ], + "url": "https://www.exploit-db.com/exploits/45210/" + }, + { + "name": "45233", + "source": "EXPLOIT-DB", + "tags": [ + "Exploit", + "Third Party Advisory", + "VDB Entry" + ], + "url": "https://www.exploit-db.com/exploits/45233/" + }, + { + "name": "45939", + "source": "EXPLOIT-DB", + "tags": [ + "Exploit", + "Third Party Advisory", + "VDB Entry" + ], + "url": "https://www.exploit-db.com/exploits/45939/" + }, + { + "name": "https://www.oracle.com/security-alerts/cpujan2020.html", + "source": "MISC", + "tags": [], + "url": "https://www.oracle.com/security-alerts/cpujan2020.html" + } + ], + "severity": "Medium", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2018-15473" + }, + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2018-15919", + "cvss": 5.3, + "cwe": "CWE-200", + "description": "Remotely observable behaviour in auth-gss2.c in OpenSSH through 7.8 could be used by remote attackers to detect existence of users on a target system when GSS2 is in use. NOTE: the discoverer states 'We understand that the OpenSSH developers do not want to treat such a username enumeration (or \"oracle\") as a vulnerability.'", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "http://seclists.org/oss-sec/2018/q3/180", + "source": "MISC", + "tags": [ + "Mailing List", + "Patch", + "Third Party Advisory" + ], + "url": "http://seclists.org/oss-sec/2018/q3/180" + }, + { + "name": "105163", + "source": "BID", + "tags": [ + "Third Party Advisory", + "VDB Entry" + ], + "url": "http://www.securityfocus.com/bid/105163" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20181221-0001/", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.netapp.com/advisory/ntap-20181221-0001/" + } + ], + "severity": "Medium", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2018-15919" + }, + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2018-20685", + "cvss": 5.3, + "cwe": "CWE-863", + "description": "In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypass intended access restrictions via the filename of . or an empty filename. The impact is modifying the permissions of the target directory on the client side.", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "106531", + "source": "BID", + "tags": [ + "Third Party Advisory", + "VDB Entry" + ], + "url": "http://www.securityfocus.com/bid/106531" + }, + { + "name": "RHSA-2019:3702", + "source": "REDHAT", + "tags": [], + "url": "https://access.redhat.com/errata/RHSA-2019:3702" + }, + { + "name": "https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h", + "source": "MISC", + "tags": [ + "Patch", + "Third Party Advisory" + ], + "url": "https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h" + }, + { + "name": "https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2", + "source": "MISC", + "tags": [ + "Patch", + "Third Party Advisory" + ], + "url": "https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2" + }, + { + "name": "[debian-lts-announce] 20190325 [SECURITY] [DLA 1728-1] openssh security update", + "source": "MLIST", + "tags": [ + "Mailing List", + "Third Party Advisory" + ], + "url": "https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html" + }, + { + "name": "GLSA-201903-16", + "source": "GENTOO", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.gentoo.org/glsa/201903-16" + }, + { + "name": "GLSA-202007-53", + "source": "GENTOO", + "tags": [], + "url": "https://security.gentoo.org/glsa/202007-53" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20190215-0001/", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.netapp.com/advisory/ntap-20190215-0001/" + }, + { + "name": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt", + "source": "MISC", + "tags": [ + "Patch", + "Third Party Advisory" + ], + "url": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt" + }, + { + "name": "USN-3885-1", + "source": "UBUNTU", + "tags": [ + "Third Party Advisory" + ], + "url": "https://usn.ubuntu.com/3885-1/" + }, + { + "name": "DSA-4387", + "source": "DEBIAN", + "tags": [ + "Third Party Advisory" + ], + "url": "https://www.debian.org/security/2019/dsa-4387" + }, + { + "name": "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html", + "source": "MISC", + "tags": [ + "Patch" + ], + "url": "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html" + }, + { + "name": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html", + "source": "MISC", + "tags": [], + "url": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html" + } + ], + "severity": "Medium", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2018-20685" + }, + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2019-6109", + "cvss": 6.8, + "cwe": "CWE-116", + "description": "An issue was discovered in OpenSSH 7.9. Due to missing character encoding in the progress display, a malicious server (or Man-in-The-Middle attacker) can employ crafted object names to manipulate the client output, e.g., by using ANSI control codes to hide additional files being transferred. This affects refresh_progress_meter() in progressmeter.c.", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "openSUSE-SU-2019:1602", + "source": "SUSE", + "tags": [], + "url": "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00058.html" + }, + { + "name": "RHSA-2019:3702", + "source": "REDHAT", + "tags": [], + "url": "https://access.redhat.com/errata/RHSA-2019:3702" + }, + { + "name": "https://cvsweb.openbsd.org/src/usr.bin/ssh/progressmeter.c", + "source": "MISC", + "tags": [ + "Release Notes", + "Vendor Advisory" + ], + "url": "https://cvsweb.openbsd.org/src/usr.bin/ssh/progressmeter.c" + }, + { + "name": "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c", + "source": "MISC", + "tags": [ + "Release Notes", + "Vendor Advisory" + ], + "url": "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c" + }, + { + "name": "[debian-lts-announce] 20190325 [SECURITY] [DLA 1728-1] openssh security update", + "source": "MLIST", + "tags": [ + "Third Party Advisory" + ], + "url": "https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html" + }, + { + "name": "FEDORA-2019-0f4190cdb0", + "source": "FEDORA", + "tags": [], + "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5P5ISFG37G/" + }, + { + "name": "GLSA-201903-16", + "source": "GENTOO", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.gentoo.org/glsa/201903-16" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20190213-0001/", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.netapp.com/advisory/ntap-20190213-0001/" + }, + { + "name": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt", + "source": "MISC", + "tags": [ + "Third Party Advisory" + ], + "url": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt" + }, + { + "name": "USN-3885-1", + "source": "UBUNTU", + "tags": [ + "Third Party Advisory" + ], + "url": "https://usn.ubuntu.com/3885-1/" + }, + { + "name": "DSA-4387", + "source": "DEBIAN", + "tags": [ + "Third Party Advisory" + ], + "url": "https://www.debian.org/security/2019/dsa-4387" + }, + { + "name": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html", + "source": "MISC", + "tags": [], + "url": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html" + } + ], + "severity": "Medium", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2019-6109" + }, + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2019-6110", + "cvss": 6.8, + "cwe": "CWE-838", + "description": "In OpenSSH 7.9, due to accepting and displaying arbitrary stderr output from the server, a malicious server (or Man-in-The-Middle attacker) can manipulate the client output, for example to use ANSI control codes to hide additional files being transferred.", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "https://cvsweb.openbsd.org/src/usr.bin/ssh/progressmeter.c", + "source": "MISC", + "tags": [ + "Release Notes", + "Vendor Advisory" + ], + "url": "https://cvsweb.openbsd.org/src/usr.bin/ssh/progressmeter.c" + }, + { + "name": "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c", + "source": "MISC", + "tags": [ + "Release Notes", + "Vendor Advisory" + ], + "url": "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c" + }, + { + "name": "GLSA-201903-16", + "source": "GENTOO", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.gentoo.org/glsa/201903-16" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20190213-0001/", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.netapp.com/advisory/ntap-20190213-0001/" + }, + { + "name": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt", + "source": "MISC", + "tags": [ + "Third Party Advisory" + ], + "url": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt" + }, + { + "name": "46193", + "source": "EXPLOIT-DB", + "tags": [ + "Exploit", + "Third Party Advisory", + "VDB Entry" + ], + "url": "https://www.exploit-db.com/exploits/46193/" + } + ], + "severity": "Medium", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2019-6110" + }, + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2019-6111", + "cvss": 5.9, + "cwe": "CWE-22", + "description": "An issue was discovered in OpenSSH 7.9. Due to the scp implementation being derived from 1983 rcp, the server chooses which files/directories are sent to the client. However, the scp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented). A malicious scp server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the scp client target directory. If recursive operation (-r) is performed, the server can manipulate subdirectories as well (for example, to overwrite the .ssh/authorized_keys file).", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "openSUSE-SU-2019:1602", + "source": "SUSE", + "tags": [], + "url": "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00058.html" + }, + { + "name": "[oss-security] 20190417 Announce: OpenSSH 8.0 released", + "source": "MLIST", + "tags": [], + "url": "http://www.openwall.com/lists/oss-security/2019/04/18/1" + }, + { + "name": "106741", + "source": "BID", + "tags": [ + "Third Party Advisory", + "VDB Entry" + ], + "url": "http://www.securityfocus.com/bid/106741" + }, + { + "name": "RHSA-2019:3702", + "source": "REDHAT", + "tags": [], + "url": "https://access.redhat.com/errata/RHSA-2019:3702" + }, + { + "name": "https://bugzilla.redhat.com/show_bug.cgi?id=1677794", + "source": "MISC", + "tags": [ + "Exploit", + "Issue Tracking", + "Third Party Advisory" + ], + "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1677794" + }, + { + "name": "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c", + "source": "MISC", + "tags": [ + "Release Notes" + ], + "url": "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c" + }, + { + "name": "[mina-dev] 20190620 [jira] [Created] (SSHD-925) See if SCP vulnerability CVE-2019-6111 applies and mitigate it if so", + "source": "MLIST", + "tags": [], + "url": "https://lists.apache.org/thread.html/c45d9bc90700354b58fb7455962873c44229841880dcb64842fa7d23@%3Cdev.mina.apache.org%3E" + }, + { + "name": "[mina-dev] 20190623 [jira] [Comment Edited] (SSHD-925) See if SCP vulnerability CVE-2019-6111 applies and mitigate it if so", + "source": "MLIST", + "tags": [], + "url": "https://lists.apache.org/thread.html/c7301cab36a86825359e1b725fc40304d1df56dc6d107c1fe885148b@%3Cdev.mina.apache.org%3E" + }, + { + "name": "[mina-dev] 20190820 [jira] [Resolved] (SSHD-925) See if SCP vulnerability CVE-2019-6111 applies and mitigate it if so", + "source": "MLIST", + "tags": [], + "url": "https://lists.apache.org/thread.html/d540139359de999b0f1c87d05b715be4d7d4bec771e1ae55153c5c7a@%3Cdev.mina.apache.org%3E" + }, + { + "name": "[mina-dev] 20190623 [jira] [Commented] (SSHD-925) See if SCP vulnerability CVE-2019-6111 applies and mitigate it if so", + "source": "MLIST", + "tags": [], + "url": "https://lists.apache.org/thread.html/e47597433b351d6e01a5d68d610b4ba195743def9730e49561e8cf3f@%3Cdev.mina.apache.org%3E" + }, + { + "name": "[debian-lts-announce] 20190325 [SECURITY] [DLA 1728-1] openssh security update", + "source": "MLIST", + "tags": [ + "Mailing List", + "Third Party Advisory" + ], + "url": "https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html" + }, + { + "name": "FEDORA-2019-0f4190cdb0", + "source": "FEDORA", + "tags": [], + "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5P5ISFG37G/" + }, + { + "name": "GLSA-201903-16", + "source": "GENTOO", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.gentoo.org/glsa/201903-16" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20190213-0001/", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.netapp.com/advisory/ntap-20190213-0001/" + }, + { + "name": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt", + "source": "MISC", + "tags": [ + "Third Party Advisory" + ], + "url": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt" + }, + { + "name": "USN-3885-1", + "source": "UBUNTU", + "tags": [ + "Third Party Advisory" + ], + "url": "https://usn.ubuntu.com/3885-1/" + }, + { + "name": "USN-3885-2", + "source": "UBUNTU", + "tags": [ + "Third Party Advisory" + ], + "url": "https://usn.ubuntu.com/3885-2/" + }, + { + "name": "DSA-4387", + "source": "DEBIAN", + "tags": [ + "Third Party Advisory" + ], + "url": "https://www.debian.org/security/2019/dsa-4387" + }, + { + "name": "46193", + "source": "EXPLOIT-DB", + "tags": [ + "Exploit", + "Third Party Advisory", + "VDB Entry" + ], + "url": "https://www.exploit-db.com/exploits/46193/" + }, + { + "name": "FreeBSD-EN-19:10", + "source": "FREEBSD", + "tags": [], + "url": "https://www.freebsd.org/security/advisories/FreeBSD-EN-19:10.scp.asc" + }, + { + "name": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html", + "source": "MISC", + "tags": [], + "url": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html" + } + ], + "severity": "Medium", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2019-6111" + }, + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2020-14145", + "cvss": 5.9, + "cwe": "CWE-200", + "description": "The client side in OpenSSH 5.7 through 8.4 has an Observable Discrepancy leading to an information leak in the algorithm negotiation. This allows man-in-the-middle attackers to target initial connection attempts (where no host key for the server has been cached by the client).", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "[oss-security] 20201202 Some mitigation for openssh CVE-2020-14145", + "source": "MLIST", + "tags": [ + "Mailing List", + "Patch", + "Third Party Advisory" + ], + "url": "http://www.openwall.com/lists/oss-security/2020/12/02/1" + }, + { + "name": "https://anongit.mindrot.org/openssh.git/commit/?id=b3855ff053f5078ec3d3c653cdaedefaa5fc362d", + "source": "MISC", + "tags": [ + "Patch", + "Third Party Advisory" + ], + "url": "https://anongit.mindrot.org/openssh.git/commit/?id=b3855ff053f5078ec3d3c653cdaedefaa5fc362d" + }, + { + "name": "https://docs.ssh-mitm.at/CVE-2020-14145.html", + "source": "MISC", + "tags": [ + "Third Party Advisory" + ], + "url": "https://docs.ssh-mitm.at/CVE-2020-14145.html" + }, + { + "name": "https://github.com/openssh/openssh-portable/compare/V_8_3_P1...V_8_4_P1", + "source": "MISC", + "tags": [ + "Patch", + "Third Party Advisory" + ], + "url": "https://github.com/openssh/openssh-portable/compare/V_8_3_P1...V_8_4_P1" + }, + { + "name": "https://github.com/ssh-mitm/ssh-mitm/blob/master/ssh_proxy_server/plugins/session/cve202014145.py", + "source": "MISC", + "tags": [ + "Third Party Advisory" + ], + "url": "https://github.com/ssh-mitm/ssh-mitm/blob/master/ssh_proxy_server/plugins/session/cve202014145.py" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20200709-0004/", + "source": "CONFIRM", + "tags": [ + "Third Party Advisory" + ], + "url": "https://security.netapp.com/advisory/ntap-20200709-0004/" + }, + { + "name": "https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-2-ausnutzung-eines-informationslecks-fuer-gezielte-mitm-angriffe-auf-ssh-clients/", + "source": "MISC", + "tags": [ + "Third Party Advisory" + ], + "url": "https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-2-ausnutzung-eines-informationslecks-fuer-gezielte-mitm-angriffe-auf-ssh-clients/" + } + ], + "severity": "Medium", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2020-14145" + }, + { + "actions": [], + "cpe": "cpe:/a:openbsd:openssh:7.4", + "cve": "CVE-2020-15778", + "cvss": 7.8, + "cwe": "CWE-78", + "description": "scp in OpenSSH through 8.3p1 allows command injection in the scp.c toremote function, as demonstrated by backtick characters in the destination argument. NOTE: the vendor reportedly has stated that they intentionally omit validation of \"anomalous argument transfers\" because that could \"stand a great chance of breaking existing workflows.\"", + "needsPopulation": false, + "notes": "", + "references": [ + { + "name": "https://github.com/cpandya2909/CVE-2020-15778/", + "source": "MISC", + "tags": [ + "Exploit", + "Third Party Advisory" + ], + "url": "https://github.com/cpandya2909/CVE-2020-15778/" + }, + { + "name": "https://news.ycombinator.com/item?id=25005567", + "source": "MISC", + "tags": [], + "url": "https://news.ycombinator.com/item?id=25005567" + }, + { + "name": "https://security.netapp.com/advisory/ntap-20200731-0007/", + "source": "CONFIRM", + "tags": [], + "url": "https://security.netapp.com/advisory/ntap-20200731-0007/" + }, + { + "name": "https://www.openssh.com/security.html", + "source": "MISC", + "tags": [ + "Vendor Advisory" + ], + "url": "https://www.openssh.com/security.html" + } + ], + "severity": "High", + "source": "cpe2cve", + "state": "open", + "substate": "unconfirmed", + "title": "CVE-2020-15778" + }, + { + "actions": [], + "cpe": null, + "cve": null, + "cvss": null, + "cwe": null, + "description": "Domain name permutation engine for detecting similar registered domains", + "needsPopulation": false, + "notes": "", + "severity": "Low", + "source": "dnstwist", + "state": "open", + "structuredData": { + "domains": [ + { + "date-observed": "2019-04-22T10:20:30Z", + "dns-a": [ + "21.22.23.24" + ], + "domain-name": "test-domain.one", + "fuzzer": "Homoglyph" + }, + { + "date-observed": "2019-04-22T10:20:30Z", + "dns-a": [ + "01.02.03.04" + ], + "dns-mx": [ + "localhost" + ], + "domain-name": "test-domain.two", + "fuzzer": "Original" + }, + { + "date-observed": "2019-04-22T10:20:30Z", + "dns-a": [ + "10.11.12.13" + ], + "dns-ns": [ + "example.link" + ], + "domain-name": "test-domain.three", + "fuzzer": "tls" + } + ] + }, + "substate": "unconfirmed", + "title": "DNS Twist Domains" + } +] diff --git a/backend/src/xfd_django/xfd_api/tasks/scanExecution.py b/backend/src/xfd_django/xfd_api/tasks/scanExecution.py new file mode 100644 index 00000000..461a715a --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/scanExecution.py @@ -0,0 +1,175 @@ +"""Scan Execution.""" +# Standard Libraries +# Standard Python Libraries +import json +import os +import random +import re + +# Third-Party Libraries +import boto3 +from botocore.exceptions import ClientError +import django + +# Django setup +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" +django.setup() + + +# Initialize AWS clients + +SCAN_LIST = [ + "dnstwist", + "intelx", + "cybersixgill", + "shodan", + "xpanse", + "asmSync", + "qualys", +] +QUEUE_URL = os.getenv("QUEUE_URL") + +# Conditionally import Docker if in local environment +docker = None +if os.getenv("IS_LOCAL"): + # Third-Party Libraries + from docker import DockerClient + + docker = DockerClient(base_url="unix://var/run/docker.sock") +else: + ecs_client = boto3.client("ecs") + + +def to_snake_case(input_string): + """Convert a string to snake-case.""" + return re.sub(r"\s+", "-", input_string) + + +def start_desired_tasks(scan_type, desired_count, shodan_api_keys=None): + """Start the desired number of tasks on AWS ECS or local Docker based on configuration.""" + shodan_api_keys = shodan_api_keys or [] + queue_url = f"{QUEUE_URL}{scan_type}-queue" + + batch_size = 1 if scan_type == "shodan" else 10 + remaining_count = desired_count + + while remaining_count > 0: + current_batch_count = min(remaining_count, batch_size) + shodan_api_key = shodan_api_keys[remaining_count - 1] if shodan_api_keys else "" + + if os.getenv("IS_LOCAL"): + # Use local Docker environment + print("Starting local containers...") + start_local_containers( + current_batch_count, scan_type, queue_url, shodan_api_key + ) + else: + # Use AWS ECS + try: + ecs_client.run_task( + cluster=os.getenv("PE_FARGATE_CLUSTER_NAME"), + taskDefinition=os.getenv("PE_FARGATE_TASK_DEFINITION_NAME"), + networkConfiguration={ + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [os.getenv("FARGATE_SG_ID")], + "subnets": [os.getenv("FARGATE_SUBNET_ID")], + } + }, + platformVersion="1.4.0", + launchType="FARGATE", + count=current_batch_count, + overrides={ + "containerOverrides": [ + { + "name": "main", + "environment": [ + {"name": "SERVICE_TYPE", "value": scan_type}, + {"name": "SERVICE_QUEUE_URL", "value": queue_url}, + { + "name": "PE_SHODAN_API_KEYS", + "value": shodan_api_key, + }, + ], + } + ] + }, + ) + print(f"Tasks started: {current_batch_count}") + except ClientError as e: + print(f"Error starting tasks: {e}") + raise e + + remaining_count -= current_batch_count + + +def start_local_containers(count, scan_type, queue_url, shodan_api_key=""): + """Start the desired number of local Docker containers.""" + for i in range(count): + try: + container_name = to_snake_case( + f"crossfeed_worker_{scan_type}_{i}_{random.randint(1, 10_000_000)}" + ) + container = docker.containers.create( + name=container_name, + image="pe-worker", + network_mode="xfd_backend", + mem_limit="4g", + detach=True, + environment=[ + f"DB_DIALECT={os.getenv('DB_DIALECT')}", + f"DB_HOST={os.getenv('DB_HOST')}", + "IS_LOCAL=true", + f"DB_PORT={os.getenv('DB_PORT')}", + f"DB_NAME={os.getenv('DB_NAME')}", + f"DB_USERNAME={os.getenv('DB_USERNAME')}", + f"DB_PASSWORD={os.getenv('DB_PASSWORD')}", + f"SERVICE_QUEUE_URL={queue_url}", + f"SERVICE_TYPE={scan_type}", + f"PE_SHODAN_API_KEYS={shodan_api_key}", + f"WHOIS_XML_KEY={os.getenv('WHOIS_XML_KEY')}", + f"QUALYS_USERNAME={os.getenv('QUALYS_USERNAME')}", + f"QUALYS_PASSWORD={os.getenv('QUALYS_PASSWORD')}", + ], + ) + container.start() + print(f"Started container: {container_name}") + except Exception as e: + print(f"Error starting container {i}: {e}") + + +def handler(event, context): + """Handle the AWS Lambda event to start tasks on ECS or Docker.""" + try: + desired_count = event.get("desiredCount", 1) + scan_type = event.get("scanType") + + if not scan_type: + print("scanType must be provided.") + return {"statusCode": 400, "body": "Failed: no scanType provided."} + + if scan_type == "shodan": + api_key_list = event.get("apiKeyList", "") + shodan_api_keys = ( + [key.strip() for key in api_key_list.split(",")] if api_key_list else [] + ) + + if len(shodan_api_keys) < desired_count: + print("Not enough API keys provided for Shodan tasks.") + return { + "statusCode": 400, + "body": "Failed: insufficient API keys for Shodan.", + } + + start_desired_tasks(scan_type, desired_count, shodan_api_keys) + elif scan_type in SCAN_LIST: + start_desired_tasks(scan_type, desired_count) + else: + print("Invalid scanType. Must be one of:", ", ".join(SCAN_LIST)) + return {"statusCode": 400, "body": "Invalid scanType provided."} + + return {"statusCode": 200, "body": "Tasks started successfully."} + except Exception as e: + print(f"Error in handler: {e}") + return {"statusCode": 500, "body": json.dumps(str(e))} diff --git a/backend/src/xfd_django/xfd_api/tasks/scheduler.py b/backend/src/xfd_django/xfd_api/tasks/scheduler.py new file mode 100644 index 00000000..e9473122 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/scheduler.py @@ -0,0 +1,313 @@ +"""Scheduler method containing AWS Lambda handler.""" + + +# Standard Python Libraries +from itertools import islice +import os + +# Third-Party Libraries +import django +from django.utils import timezone + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" + +django.setup() + +# Third-Party Libraries +from xfd_api.helpers.getScanOrganizations import get_scan_organizations +from xfd_api.models import Organization, Scan, ScanTask +from xfd_api.schema_models.scan import SCAN_SCHEMA +from xfd_api.tasks.ecs_client import ECSClient + + +def chunk(iterable, size): + """Chunk a list into a nested list.""" + it = iter(iterable) + return iter(lambda: list(islice(it, size)), []) + + +class Scheduler: + """Scheduler.""" + + def __init__(self): + """Initialize.""" + self.ecs = ECSClient() + self.num_existing_tasks = 0 + self.num_launched_tasks = 0 + self.max_concurrent_tasks = int(os.getenv("FARGATE_MAX_CONCURRENCY", "10")) + self.scans = [] + self.organizations = [] + self.queued_scan_tasks = [] + self.orgs_per_scan_task = 1 + + def initialize(self, scans, organizations, queued_scan_tasks, orgs_per_scan_task): + """Initialize.""" + self.scans = scans + self.organizations = organizations + self.queued_scan_tasks = queued_scan_tasks + self.orgs_per_scan_task = orgs_per_scan_task + self.num_existing_tasks = self.ecs.get_num_tasks() + + print(f"Number of running Fargate tasks: {self.num_existing_tasks}") + print(f"Number of queued scan tasks: {len(self.queued_scan_tasks)}") + + def launch_single_scan_task( + self, + organizations=None, + scan=None, + chunk_number=None, + num_chunks=None, + scan_task=None, + ): + """Launch single scan.""" + organizations = organizations or [] + scan_schema = SCAN_SCHEMA.get(scan.name, {}) + task_type = getattr(scan_schema, "type", None) + global_scan = getattr(scan_schema, "global_scan", None) + + scan_task = scan_task or ScanTask.objects.create( + scan=scan, type=task_type, status="created" + ) + + # Set the many-to-many relationship with organizations + if not global_scan: + scan_task.organizations.set(organizations) + + command_options = scan_task.input or { + "organizations": [ + {"name": org.name, "id": str(org.id)} for org in organizations + ], + "scanId": str(scan.id), + "scanName": scan.name, + "scanTaskId": str(scan_task.id), + "numChunks": num_chunks, + "chunkNumber": chunk_number, + "isSingleScan": scan.isSingleScan, + } + + scan_task.input = command_options + + if self.reached_scan_limit(): + scan_task.status = "queued" + if not scan_task.queuedAt: + scan_task.queuedAt = timezone.now() + print(f"Reached maximum concurrency, queueing scantask {scan_task.id}") + scan_task.save() + return + + try: + if task_type == "fargate": + result = self.ecs.run_command(command_options) + if not result.get("tasks"): + print( + f"Failed to start Fargate task for scan {scan.name}, failures: {result.get('failures')}" + ) + raise Exception( + f"Failed to start Fargate task for scan {scan.name}" + ) + + task_arn = result["tasks"][0]["taskArn"] + scan_task.fargateTaskArn = task_arn + print( + f"Successfully invoked scan {scan.name} with Fargate on {len(organizations)} organizations. Task ARN: {task_arn}" + ) + else: + raise Exception(f"Invalid task type: {task_type}") + + scan_task.status = "requested" + scan_task.requestedAt = timezone.now() + self.num_launched_tasks += 1 + except Exception as error: + print(f"Error invoking {scan.name} scan: {error}") + scan_task.output = str(error) + scan_task.status = "failed" + scan_task.finishedAt = timezone.now() + + scan_task.save() + + def launch_scan_task(self, organizations=None, scan=None): + """Launch scan task.""" + organizations = organizations or [] + + scan_schema = SCAN_SCHEMA.get(scan.name, None) + num_chunks = getattr(scan_schema, "numChunks", None) + + # If num_chunks is set, handle it; otherwise, default to launching a single task + if num_chunks: + # For running locally, set num_chunks to 1 + if os.getenv("IS_LOCAL"): + num_chunks = 1 + + # Sanitize num_chunks to ensure it doesn't exceed 100 + num_chunks = min(num_chunks, 100) + + for chunk_number in range(num_chunks): + self.launch_single_scan_task( + organizations=organizations, + scan=scan, + chunk_number=chunk_number, + num_chunks=num_chunks, + ) + else: + # Launch a single scan task when num_chunks is None or 0 + self.launch_single_scan_task(organizations=organizations, scan=scan) + + def reached_scan_limit(self): + """Check scan limit.""" + return ( + self.num_existing_tasks + self.num_launched_tasks + ) >= self.max_concurrent_tasks + + def run(self): + """Run scheduler.""" + for scan in self.scans: + prev_num_launched_tasks = self.num_launched_tasks + + if scan.name not in SCAN_SCHEMA: + print(f"Invalid scan name: {scan.name}") + continue + + scan_schema = SCAN_SCHEMA[scan.name] + if scan_schema.global_scan: + if not self.should_run_scan(scan): + continue + self.launch_scan_task(scan=scan) + else: + organizations = ( + get_scan_organizations(scan) + if scan.isGranular + else self.organizations + ) + orgs_to_launch = [ + org + for org in organizations + if self.should_run_scan(scan=scan, organization=org) + ] + for org_chunk in chunk(orgs_to_launch, self.orgs_per_scan_task): + self.launch_scan_task(organizations=org_chunk, scan=scan) + + if self.num_launched_tasks > prev_num_launched_tasks: + scan.lastRun = timezone.now() + scan.manualRunPending = False + scan.save() + + def run_queued(self): + """Run queued scans.""" + for scan_task in self.queued_scan_tasks: + self.launch_single_scan_task(scan_task=scan_task, scan=scan_task.scan) + + def should_run_scan(self, scan, organization=None): + """Check if the scan should run.""" + scan_schema = SCAN_SCHEMA.get(scan.name, {}) + is_passive = getattr(scan_schema, "isPassive", False) + global_scan = getattr(scan_schema, "global_scan", False) + + # Don't run non-passive scans on passive organizations. + if organization and organization.isPassive and not is_passive: + return False + + # Always run scans that have manualRunPending set to True. + if scan.manualRunPending: + return True + + # Function to filter the scan tasks based on whether it's global or organization-specific. + def filter_scan_tasks(tasks): + if global_scan: + return tasks.filter(scan=scan) + else: + return tasks.filter(scan=scan).filter( + organizations=organization + ) | tasks.filter(organizations__id=organization.id) + + # Check if there's a currently running or queued scan task for the given scan. + last_running_scan_task = filter_scan_tasks( + ScanTask.objects.filter( + status__in=["created", "queued", "requested", "started"] + ).order_by("-createdAt") + ).first() + + # If there's a running or queued task, do not run another. + if last_running_scan_task: + return False + + # Check for the last finished scan task. + last_finished_scan_task = filter_scan_tasks( + ScanTask.objects.filter( + status__in=["finished", "failed"], finishedAt__isnull=False + ).order_by("-finishedAt") + ).first() + + # If a scan task was finished recently within the scan frequency, do not run. + if last_finished_scan_task and last_finished_scan_task.finishedAt: + print("Has been run since the last scan frequency") + frequency_seconds = ( + scan.frequency * 1000 + ) # Assuming frequency is in seconds. + + # Convert finishedAt to an aware datetime if it is naive + if timezone.is_naive(last_finished_scan_task.finishedAt): + last_finished_scan_task.finishedAt = timezone.make_aware( + last_finished_scan_task.finishedAt, timezone.get_current_timezone() + ) + # Perform the subtraction and check the time difference + if ( + timezone.now() - last_finished_scan_task.finishedAt + ).total_seconds() < frequency_seconds: + return False + + # If the scan is marked as a single scan and has already run once, do not run again. + if ( + last_finished_scan_task + and last_finished_scan_task.finishedAt + and scan.isSingleScan + ): + print("Single scan") + return False + + return True + + +def handler(event, context): + """Handle manually invoking the scheduler to run scans.""" + print("Running scheduler...") + + scan_ids = event.get("scanIds", []) + if "scanId" in event: + scan_ids.append(event["scanId"]) + + org_ids = event.get("organizationIds", []) + + # Fetch scans based on scan_ids if provided + if scan_ids: + scans = Scan.objects.filter(id__in=scan_ids).prefetch_related( + "organizations", "tags" + ) + else: + scans = Scan.objects.all().prefetch_related("organizations", "tags") + + # Fetch organizations based on org_ids if provided + if org_ids: + organizations = Organization.objects.filter(id__in=org_ids) + else: + organizations = Organization.objects.all() + + queued_scan_tasks = ( + ScanTask.objects.filter(scan__in=scan_ids, status="queued") + .order_by("queuedAt") + .select_related("scan") + ) + + scheduler = Scheduler() + scheduler.initialize( + scans=scans, + organizations=organizations, + queued_scan_tasks=queued_scan_tasks, + orgs_per_scan_task=event.get("orgsPerScanTask") + or int(os.getenv("SCHEDULER_ORGS_PER_SCANTASK", "1")), + ) + + scheduler.run_queued() + scheduler.run() + + print("Finished running scheduler.") diff --git a/backend/src/xfd_django/xfd_api/tasks/searchSync.py b/backend/src/xfd_django/xfd_api/tasks/searchSync.py new file mode 100644 index 00000000..49858a9b --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/searchSync.py @@ -0,0 +1,167 @@ +"""Search sync.""" +# Standard Python Libraries +from itertools import islice +import os + +# Third-Party Libraries +from django.db.models import F, Q +from django.utils.timezone import now +from xfd_api.models import Domain + +from .es_client import ESClient + +# Constants +DOMAIN_CHUNK_SIZE = int(os.getenv("DOMAIN_CHUNK_SIZE", "50")) # Adjust if needed + + +def chunked_queryset(queryset, chunk_size): + """Chunk a queryset into smaller pieces.""" + it = iter(queryset.values_list("id", flat=True)) # Extract only IDs + for first in it: + yield [first] + list(islice(it, chunk_size - 1)) + + +async def handler(command_options): + """Handle the synchronization of domains with Elasticsearch.""" + organization_id = command_options.get("organizationId") + domain_id = command_options.get("domainId") + + print("Running searchSync...") + client = ESClient() + + # Query to find domains that need to be synced + domain_queryset = Domain.objects.annotate( + should_sync=( + Q(syncedAt__isnull=True) + | Q(updatedAt__gt=F("syncedAt")) + | Q(organization__updatedAt__gt=F("syncedAt")) + | Q(vulnerabilities__updatedAt__gt=F("syncedAt")) + | Q(services__updatedAt__gt=F("syncedAt")) + ) + ).filter(should_sync=True, isFceb=True) + + # Additional filters for testing + if organization_id: + domain_queryset = domain_queryset.filter(organization_id=organization_id) + if domain_id: + domain_queryset = domain_queryset.filter(id=domain_id) + + print(f"Found {domain_queryset.count()} domains to sync.") + + # Chunk domains for processing + for domain_chunk in chunked_queryset(domain_queryset, DOMAIN_CHUNK_SIZE): + domains = list( + Domain.objects.filter(id__in=domain_chunk) + .select_related("organization") + .prefetch_related("vulnerabilities", "services") + ) + print(f"Syncing {len(domains)} domains...") + + # Update Elasticsearch + try: + client.update_domains( + [ + { + "id": str(domain.id), + "createdAt": domain.createdAt, + "updatedAt": domain.updatedAt, + "name": domain.name, + "reverseName": domain.reverseName, + "ip": domain.ip, + "fromRootDomain": domain.fromRootDomain, + "subdomainSource": domain.subdomainSource, + "ipOnly": domain.ipOnly, + "screenshot": domain.screenshot, + "country": domain.country, + "asn": domain.asn, + "cloudHosted": domain.cloudHosted, + "fromCidr": domain.fromCidr, + "isFceb": domain.isFceb, + "syncedAt": domain.syncedAt.isoformat() + if domain.syncedAt + else None, + "ssl": domain.ssl, + "censysCertificatesResults": domain.censysCertificatesResults, + "trustymailResults": domain.trustymailResults, + "organization": { + "id": str(domain.organization.id), + "name": domain.organization.name, + "acronym": domain.organization.acronym, + "rootDomains": domain.organization.rootDomains, + "ipBlocks": domain.organization.ipBlocks, + "isPassive": domain.organization.isPassive, + "country": domain.organization.country, + "state": domain.organization.state, + "regionId": domain.organization.regionId, + "stateFips": domain.organization.stateFips, + "stateName": domain.organization.stateName, + "county": domain.organization.county, + "countyFips": domain.organization.countyFips, + "type": domain.organization.type, + "parent": { + "id": str(domain.organization.parent.id) + if domain.organization.parent + else None, + "name": domain.organization.parent.name + if domain.organization.parent + else None, + } + if domain.organization.parent + else None, + }, + "discoveredBy": { + "id": str(domain.discoveredBy.id) + if domain.discoveredBy + else None, + "name": domain.discoveredBy.name + if domain.discoveredBy + else None, + "arguments": domain.discoveredBy.arguments + if domain.discoveredBy + else None, + } + if domain.discoveredBy + else None, + "services": [ + { + "id": str(service.id), + "port": service.port, + "service": service.service, + "lastSeen": service.lastSeen.isoformat() + if service.lastSeen + else None, + "products": service.products, + "censysMetadata": service.censysMetadata, + } + for service in domain.services.all() + ], + "vulnerabilities": [ + { + "id": str(vulnerability.id), + "title": vulnerability.title, + "cvss": vulnerability.cvss, + "severity": vulnerability.severity, + "state": vulnerability.state, + "substate": vulnerability.substate, + "description": vulnerability.description, + "lastSeen": vulnerability.lastSeen.isoformat() + if vulnerability.lastSeen + else None, + "references": vulnerability.references, + } + for vulnerability in domain.vulnerabilities.all() + ], + } + for domain in domains + ] + ) + except Exception as e: + print(f"Error syncing domains to Elasticsearch: {e}") + continue + + # Mark domains as synced + Domain.objects.filter(id__in=[domain.id for domain in domains]).update( + syncedAt=now() + ) + + print("Domain sync complete.") diff --git a/backend/src/xfd_django/xfd_api/tasks/syncdb_helpers.py b/backend/src/xfd_django/xfd_api/tasks/syncdb_helpers.py new file mode 100644 index 00000000..a4d1bc91 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/syncdb_helpers.py @@ -0,0 +1,407 @@ +"""Syncdb helpers.""" +# File: xfd_api/utils/db_utils.py +# Standard Python Libraries +from datetime import datetime +import hashlib +from itertools import islice +import json +import os +import random +import secrets + +# Third-Party Libraries +from django.apps import apps +from django.conf import settings +from django.db import connection, transaction +from django.db.backends.base.schema import BaseDatabaseSchemaEditor +from xfd_api.models import ( + ApiKey, + Domain, + Organization, + OrganizationTag, + Service, + User, + UserType, + Vulnerability, +) +from xfd_api.tasks.es_client import ESClient + +# Constants for sample data generation +SAMPLE_TAG_NAME = "Sample Data" +NUM_SAMPLE_ORGS = 10 +NUM_SAMPLE_DOMAINS = 10 +PROB_SAMPLE_SERVICES = 0.5 +PROB_SAMPLE_VULNERABILITIES = 0.5 +SAMPLE_STATES = ["Virginia", "California", "Colorado"] +SAMPLE_REGION_IDS = ["1", "2", "3"] +ORGANIZATION_CHUNK_SIZE = 50 + +# Load sample data files +SAMPLE_DATA_DIR = os.path.join(settings.BASE_DIR, "xfd_api", "tasks", "sample_data") +services = json.load(open(os.path.join(SAMPLE_DATA_DIR, "services.json"))) +cpes = json.load(open(os.path.join(SAMPLE_DATA_DIR, "cpes.json"))) +vulnerabilities = json.load(open(os.path.join(SAMPLE_DATA_DIR, "vulnerabilities.json"))) +cves = json.load(open(os.path.join(SAMPLE_DATA_DIR, "cves.json"))) +nouns = json.load(open(os.path.join(SAMPLE_DATA_DIR, "nouns.json"))) +adjectives = json.load(open(os.path.join(SAMPLE_DATA_DIR, "adjectives.json"))) + +# Elasticsearch client +es_client = ESClient() + + +def manage_elasticsearch_indices(dangerouslyforce): + """Handle Elasticsearch index setup and teardown.""" + try: + if dangerouslyforce: + es_client.delete_all() + es_client.sync_organizations_index() + es_client.sync_domains_index() + print("Elasticsearch indices synchronized.") + except Exception as e: + print(f"Error managing Elasticsearch indices: {e}") + + +def populate_sample_data(): + """Populate sample data into the database.""" + with transaction.atomic(): + tag, _ = OrganizationTag.objects.get_or_create(name=SAMPLE_TAG_NAME) + for _ in range(NUM_SAMPLE_ORGS): + # Create organization + org = Organization.objects.create( + acronym="".join(random.choices("ABCDEFGHIJKLMNOPQRSTUVWXYZ", k=5)), + name=generate_random_name(), + rootDomains=["crossfeed.local"], + ipBlocks=[], + isPassive=False, + state=random.choice(SAMPLE_STATES), + regionId=random.choice(SAMPLE_REGION_IDS), + ) + org.tags.add(tag) + + # Create sample domains, services, and vulnerabilities + for _ in range(NUM_SAMPLE_DOMAINS): + domain = create_sample_domain(org) + create_sample_services_and_vulnerabilities(domain) + + # Create a user for the organization + user = create_sample_user(org) + + # Create an API key for the user + create_api_key_for_user(user) + + +def create_sample_user(organization): + """Create a sample user linked to an organization.""" + user = User.objects.create( + firstName="Sample", + lastName="User", + email=f"user{random.randint(1, 1000)}@example.com", + userType=UserType.GLOBAL_ADMIN, + state=random.choice(SAMPLE_STATES), + regionId=random.choice(SAMPLE_REGION_IDS), + ) + # Set user as the creator of the organization (optional) + organization.createdBy = user + organization.save() + return user + + +def create_api_key_for_user(user): + """Create a sample API key linked to a user.""" + # Generate a random 16-byte API key + key = secrets.token_hex(16) + + # Hash the API key + hashed_key = hashlib.sha256(key.encode()).hexdigest() + + # Create the API key record + ApiKey.objects.create( + hashedKey=hashed_key, + lastFour=key[-4:], + user=user, + createdAt=datetime.utcnow(), + updatedAt=datetime.utcnow(), + ) + + # Print the raw key for debugging or manual testing + print(f"Created API key for user {user.email}: {key}") + + +def generate_random_name(): + """Generate a random organization name using an adjective and entity noun.""" + adjective = random.choice(adjectives) + noun = random.choice(nouns) + entity = random.choice(["City", "County", "Agency", "Department"]) + return f"{adjective.capitalize()} {entity} {noun.capitalize()}" + + +def create_sample_domain(organization): + """Create a sample domain linked to an organization.""" + domain_name = ( + f"{random.choice(adjectives)}-{random.choice(nouns)}.crossfeed.local".lower() + ) + ip = ".".join(map(str, (random.randint(0, 255) for _ in range(4)))) + return Domain.objects.create( + name=domain_name, + ip=ip, + fromRootDomain="crossfeed.local", + isFceb=True, + subdomainSource="findomain", + organization=organization, + ) + + +def create_sample_services_and_vulnerabilities(domain): + """Create sample services and vulnerabilities for a domain.""" + # Add random services + if random.random() < PROB_SAMPLE_SERVICES: + Service.objects.create( + domain=domain, + port=random.choice([80, 443]), + service="http", + serviceSource="shodan", + wappalyzerResults=[ + {"technology": {"cpe": random.choice(cpes)}, "version": ""} + ], + ) + + # Add random vulnerabilities + if random.random() < PROB_SAMPLE_VULNERABILITIES: + Vulnerability.objects.create( + title="Sample Vulnerability " + + "".join(random.choices("ABCDEFGHIJKLMNOPQRSTUVWXYZ", k=3)), + domain=domain, + service=None, + description="Sample description", + severity=random.choice(["Low", "Medium", "High"]), + needsPopulation=True, + state="open", + substate="unconfirmed", + source="sample_source", + actions=[], + structuredData={}, + ) + + +def synchronize(): + """ + Synchronize the database schema with Django models. + + Handles creation, update, and removal of tables and fields dynamically, + including Many-to-Many linking tables. + """ + print("Synchronizing database schema with models...") + with connection.cursor() as cursor: + with connection.schema_editor() as schema_editor: + # Step 1: Process models in dependency order + ordered_models = get_ordered_models(apps) + for model in ordered_models: + print(f"Processing model: {model.__name__}") + process_model(schema_editor, cursor, model) + + # Step 2: Handle Many-to-Many tables + print("Processing Many-to-Many tables...") + process_m2m_tables(schema_editor, cursor) + + # Step 3: Cleanup stale tables + cleanup_stale_tables(cursor) + print("Database synchronization complete.") + + +def get_ordered_models(apps): + """ + Get models in dependency order to ensure foreign key constraints are respected. + + Handles circular dependencies gracefully by breaking cycles. + """ + # Standard Python Libraries + from collections import defaultdict, deque + + dependencies = defaultdict(set) + dependents = defaultdict(set) + models = list(apps.get_models()) + + for model in models: + for field in model._meta.get_fields(): + if field.is_relation and field.related_model: + dependencies[model].add(field.related_model) + dependents[field.related_model].add(model) + + ordered = [] + independent_models = deque(model for model in models if not dependencies[model]) + + while independent_models: + model = independent_models.popleft() + ordered.append(model) + for dependent in list(dependents[model]): + dependencies[dependent].remove(model) + dependents[model].remove(dependent) + if not dependencies[dependent]: + independent_models.append(dependent) + + # Handle circular dependencies + if any(dependencies.values()): + print("Circular dependencies detected. Breaking cycles arbitrarily.") + for model, deps in dependencies.items(): + if deps: + print(f"Breaking dependency for model: {model.__name__}") + dependencies[model] = set() + + ordered.extend(dependencies.keys()) + + return ordered + + +def process_model(schema_editor: BaseDatabaseSchemaEditor, cursor, model): + """Process a single model: create or update its table.""" + table_name = model._meta.db_table + + # Check if the table exists + cursor.execute(f"SELECT to_regclass('{table_name}');") + table_exists = cursor.fetchone()[0] is not None + + if table_exists: + print(f"Updating table for model: {model.__name__}") + update_table(schema_editor, model) + else: + print(f"Creating table for model: {model.__name__}") + schema_editor.create_model(model) + + +def process_m2m_tables(schema_editor: BaseDatabaseSchemaEditor, cursor): + """Handle creation of Many-to-Many linking tables.""" + for model in apps.get_models(): + for field in model._meta.local_many_to_many: + m2m_table_name = field.m2m_db_table() + + # Check if the M2M table exists + cursor.execute(f"SELECT to_regclass('{m2m_table_name}');") + table_exists = cursor.fetchone()[0] is not None + + if not table_exists: + print(f"Creating Many-to-Many table: {m2m_table_name}") + schema_editor.create_model(field.remote_field.through) + else: + print(f"Many-to-Many table {m2m_table_name} already exists. Skipping.") + + +def update_table(schema_editor: BaseDatabaseSchemaEditor, model): + """Update an existing table for the given model. Ensure columns match fields.""" + table_name = model._meta.db_table + db_fields = {field.column for field in model._meta.fields} + + with connection.cursor() as cursor: + # Get existing columns + cursor.execute( + "SELECT column_name FROM information_schema.columns WHERE table_name = %s;", + [table_name], # Pass the table name as a parameter + ) + existing_columns = {row[0] for row in cursor.fetchall()} + + # Add missing columns + missing_columns = db_fields - existing_columns + for field in model._meta.fields: + if field.column in missing_columns: + print(f"Adding column '{field.column}' to table '{table_name}'") + schema_editor.add_field(model, field) + + # Remove extra columns + extra_columns = existing_columns - db_fields + for column in extra_columns: + print(f"Removing extra column '{column}' from table '{table_name}'") + try: + cursor.execute( + f"ALTER TABLE {table_name} DROP COLUMN IF EXISTS {column};" + ) + except Exception as e: + print( + f"Error dropping column '{column}' from table '{table_name}': {e}" + ) + + +def cleanup_stale_tables(cursor): + """Remove tables that no longer correspond to any Django model or Many-to-Many relationship.""" + print("Checking for stale tables...") + model_tables = {model._meta.db_table for model in apps.get_models()} + m2m_tables = { + field.m2m_db_table() + for model in apps.get_models() + for field in model._meta.local_many_to_many + } + expected_tables = model_tables.union(m2m_tables) + + cursor.execute("SELECT tablename FROM pg_tables WHERE schemaname = 'public';") + existing_tables = {row[0] for row in cursor.fetchall()} + + stale_tables = existing_tables - expected_tables + for table in stale_tables: + print(f"Removing stale table: {table}") + try: + cursor.execute(f"DROP TABLE {table} CASCADE;") + except Exception as e: + print(f"Error dropping stale table {table}: {e}") + + +def drop_all_tables(): + """Drop all tables in the database. Used with `dangerouslyforce`.""" + with connection.cursor() as cursor: + cursor.execute( + """ + DO $$ DECLARE + r RECORD; + BEGIN + FOR r IN ( + SELECT tablename + FROM pg_tables + WHERE schemaname = 'public' + ) LOOP + EXECUTE 'DROP TABLE IF EXISTS ' || quote_ident(r.tablename) || ' CASCADE'; + END LOOP; + END $$; + """ + ) + print("All tables dropped successfully.") + + +def chunked_iterable(iterable, size): + """Chunk an iterable.""" + iterator = iter(iterable) + for first in iterator: + yield list(islice([first] + list(iterator), size - 1)) + + +def update_organization_chunk(es_client, organizations): + """Update a chunk of organizations.""" + es_client.update_organizations(organizations) + + +def sync_es_organizations(): + """Sync elastic search organizations.""" + try: + # Fetch all organization IDs + organization_ids = list(Organization.objects.values_list("id", flat=True)) + print(f"Found {len(organization_ids)} organizations to sync.") + + if organization_ids: + # Split IDs into chunks + for organization_chunk in chunked_iterable( + organization_ids, ORGANIZATION_CHUNK_SIZE + ): + # Fetch full organization data for the current chunk + organizations = list( + Organization.objects.filter(id__in=organization_chunk).values( + "id", "name", "country", "state", "regionId", "tags" + ) + ) + print(f"Syncing {len(organizations)} organizations...") + + # Attempt to update Elasticsearch + update_organization_chunk(es_client, organizations) + + print("Organization sync complete.") + else: + print("No organizations to sync.") + + except Exception as e: + print(f"Error syncing organizations: {e}") + raise e diff --git a/backend/src/xfd_django/xfd_api/tasks/updateScanTaskStatus.py b/backend/src/xfd_django/xfd_api/tasks/updateScanTaskStatus.py new file mode 100644 index 00000000..ce13c40f --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/updateScanTaskStatus.py @@ -0,0 +1,83 @@ +"""Update scan task status.""" +# Standard Python Libraries +import os + +# Third-Party Libraries +import django +from django.db.utils import OperationalError +from django.utils.timezone import now + +# Django setup +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" +django.setup() + +# Third-Party Libraries +from xfd_api.models import ScanTask + + +def handler(event, context): + """Update the status of a ScanTask based on EventBridge event data.""" + detail = event.get("detail") + if not detail: + return {"statusCode": 400, "body": "Event detail is required."} + + task_arn = detail.get("taskArn") + last_status = detail.get("lastStatus") + stop_code = detail.get("stopCode") + stopped_reason = detail.get("stoppedReason") + containers = detail.get("containers", []) + + if not task_arn or not last_status: + return {"statusCode": 400, "body": "taskArn and lastStatus are required."} + + try: + # Retry logic for finding the ScanTask + scan_task = retry_find_scan_task(task_arn) + + if not scan_task: + raise ValueError(f"Couldn't find scan task with taskArn: {task_arn}") + + old_status = scan_task.status + + if last_status == "RUNNING": + scan_task.status = "started" + elif last_status == "STOPPED": + if containers and containers[0].get("exitCode") == 0: + scan_task.status = "finished" + else: + scan_task.status = "failed" + scan_task.output = f"{stop_code}: {stopped_reason}" + scan_task.finishedAt = now() + else: + # No update needed for other statuses + return {"statusCode": 204, "body": "No status change required."} + + print( + f"Updating status of ScanTask {scan_task.id} from {old_status} to {scan_task.status}." + ) + scan_task.save() + + return { + "statusCode": 200, + "body": f"ScanTask {scan_task.id} updated successfully.", + } + + except Exception as e: + return {"statusCode": 500, "body": str(e)} + + +def retry_find_scan_task(task_arn, retries=3): + """Retry logic to find a ScanTask by its Fargate Task ARN.""" + for attempt in range(retries): + try: + scan_task = ScanTask.objects.filter(fargateTaskArn=task_arn).first() + if scan_task: + return scan_task + except OperationalError as e: + print(f"Database error on attempt {attempt + 1}: {e}") + except Exception as e: + print(f"Unexpected error on attempt {attempt + 1}: {e}") + if attempt < retries - 1: + continue + return None diff --git a/backend/src/xfd_django/xfd_api/tasks/vulnSync.py b/backend/src/xfd_django/xfd_api/tasks/vulnSync.py new file mode 100644 index 00000000..7a9a920c --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tasks/vulnSync.py @@ -0,0 +1,212 @@ +"""VulnSync scan.""" +# Standard Python Libraries +import os +import time + +# Third-Party Libraries +import django +import dns.resolver +import requests +from xfd_api.models import Domain, Organization, Service, Vulnerability + +# Django setup +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" +django.setup() + + +def handler(event, context): + """Retrieve and save vulnerabilities and services from PE.""" + try: + main() + return { + "statusCode": 200, + "body": "PE Vulnerabilities sync completed successfully.", + } + except Exception as e: + return {"statusCode": 500, "body": str(e)} + + +def main(): + """Fetch and save PE vulnerabilities and services.""" + print("Scanning PE database for vulnerabilities & services for all organizations.") + + # Retrieve all organizations + all_orgs = Organization.objects.all() + + # For each organization, fetch vulnerability data + for org in all_orgs: + print(f"Processing organization: {org.acronym}, {org.name}") + + # Fetch PE vulnerability task data + data = fetch_pe_vuln_task(org.acronym) + if not data or not data.get("tasks_dict"): + print(f"Failed to start PE API task for org: {org.acronym}, {org.name}") + continue + + all_vulns = [] + for scan_name, task_id in data["tasks_dict"].items(): + response = fetch_pe_vuln_data(scan_name, task_id) + while response and response.get("status") == "Pending": + time.sleep(1) + response = fetch_pe_vuln_data(scan_name, task_id) + + if response and response.get("status") == "Failure": + print( + f"Failed fetching data for task {task_id} for org {org.acronym}, {org.name}" + ) + continue + + all_vulns.extend(response.get("result", [])) + time.sleep(1) + + # Save vulnerabilities and associated data + for vuln in all_vulns: + process_vulnerability(vuln, org) + + +def fetch_pe_vuln_task(org_acronym): + """Fetch PE vulnerability task data.""" + print(f"Fetching PE vulnerability task for organization: {org_acronym}") + headers = { + "Authorization": os.getenv("CF_API_KEY"), + "access_token": os.getenv("PE_API_KEY"), + "Content-Type": "", + } + data = {"org_acronym": org_acronym} + + try: + response = requests.post( + "https://api.staging-cd.crossfeed.cyber.dhs.gov/pe/apiv1/crossfeed_vulns", + headers=headers, + json=data, + timeout=20, # Timeout in seconds + ) + response.raise_for_status() + return response.json() + except requests.exceptions.RequestException as e: + print(f"Error fetching PE task: {e}") + return None + + +def fetch_pe_vuln_data(scan_name, task_id): + """Fetch PE vulnerability data for a task.""" + url = f"https://api.staging-cd.crossfeed.cyber.dhs.gov/pe/apiv1/crossfeed_vulns/task/?task_id={task_id}&scan_name={scan_name}" + headers = { + "Authorization": os.getenv("CF_API_KEY"), + "access_token": os.getenv("PE_API_KEY"), + "Content-Type": "", + } + + try: + response = requests.get(url, headers=headers, timeout=20) + response.raise_for_status() + return response.json() + except requests.exceptions.RequestException as e: + print(f"Error fetching PE vulnerability data: {e}") + return None + + +def process_vulnerability(vuln, org): + """Process and save a single vulnerability along with associated domains and services.""" + try: + domain = save_domain(vuln, org) + service = save_service(vuln, domain) + save_vulnerability(vuln, domain, service) + except Exception as e: + print(f"Error processing vulnerability: {e}") + + +def save_domain(vuln, org): + """Save domain associated with a vulnerability.""" + try: + service_asset_type = vuln.get("service_asset_type") + service_asset = vuln.get("service_asset") + ip_only = False + service_domain, service_ip = None, None + + if service_asset_type == "ip": + service_ip = service_asset + try: + service_domain = dns.resolver.resolve(service_ip, "PTR")[0].to_text() + except Exception as e: + print(e) + service_domain = service_ip + ip_only = True + else: + service_domain = service_asset + try: + service_ip = dns.resolver.resolve(service_domain, "A")[0].to_text() + except Exception as e: + print(e) + service_ip = None + + domain, _ = Domain.objects.update_or_create( + name=service_domain, + organization=org, + defaults={ + "ip": service_ip, + "fromRootDomain": None + if ip_only + else ".".join(service_domain.split(".")[-2:]), + "subdomainSource": f"P&E - {vuln['source']}", + "ipOnly": ip_only, + }, + ) + return domain + except Exception as e: + print(f"Failed to save domain: {e}") + raise + + +def save_service(vuln, domain): + """Save service associated with a vulnerability.""" + try: + if vuln.get("port") is None: + return None + + service, _ = Service.objects.update_or_create( + domain=domain, + port=vuln["port"], + defaults={ + "lastSeen": vuln["last_seen"], + "banner": vuln.get("banner"), + "serviceSource": vuln.get("source"), + "shodanResults": { + "product": vuln.get("product"), + "version": vuln.get("version"), + "cpe": vuln.get("cpe"), + } + if vuln.get("source") == "shodan" + else {}, + }, + ) + return service + except Exception as e: + print(f"Failed to save service: {e}") + raise + + +def save_vulnerability(vuln, domain, service): + """Save vulnerability to the database.""" + try: + Vulnerability.objects.update_or_create( + domain=domain, + title=vuln["title"], + defaults={ + "lastSeen": vuln["last_seen"], + "cve": vuln["cve"], + "cwe": vuln["cwe"], + "description": vuln["description"], + "cvss": vuln["cvss"], + "severity": vuln["severity"], + "state": vuln["state"], + "structuredData": vuln.get("structuredData"), + "source": vuln["source"], + "needsPopulation": vuln["needsPopulation"], + "service": service, + }, + ) + except Exception as e: + print(f"Failed to save vulnerability: {e}") + raise diff --git a/backend/src/xfd_django/xfd_api/tests/__init__.py b/backend/src/xfd_django/xfd_api/tests/__init__.py new file mode 100644 index 00000000..8d16f202 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/__init__.py @@ -0,0 +1 @@ +"""Initialize.""" diff --git a/backend/src/xfd_django/xfd_api/tests/test_api_key.py b/backend/src/xfd_django/xfd_api/tests/test_api_key.py new file mode 100644 index 00000000..644f58cd --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_api_key.py @@ -0,0 +1,194 @@ +"""Test api key.""" +# Standard Python Libraries + +# Third-Party Libraries +from fastapi.testclient import TestClient +from xfd_django.asgi import app # Import the FastAPI app + +client = TestClient(app) + +# TODO: Complete tests +# @pytest.mark.django_db +# def test_generate_api_key(): +# user = User.objects.create( +# firstName="Test", +# lastName="User", +# email=f"{secrets.token_hex(4)}@example.com", +# userType="STANDARD", +# createdAt=datetime.now(), +# updatedAt=datetime.now(), +# ) +# response = client.post( +# "/api-keys", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) +# assert response.status_code == 200 + +# response2 = client.get( +# "/users/me", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) +# assert response2.status_code == 200 + +# assert response.json()["hashedKey"] == response2.json()["apiKeys"][0]["hashedKey"] +# assert response.json()["key"][-4:] == response2.json()["apiKeys"][0]["lastFour"] +# assert len(response2.json()["apiKeys"]) == 1 +# assert "key" not in response2.json()["apiKeys"][0] + + +# @pytest.mark.django_db +# def test_delete_own_api_key(): +# user = User.objects.create( +# firstName="Test", +# lastName="User", +# email=f"{secrets.token_hex(4)}@example.com", +# userType="STANDARD", +# createdAt=datetime.now(), +# updatedAt=datetime.now(), +# ) +# api_key = ApiKey.objects.create( +# hashedKey="1234", +# lastFour="1234", +# user=user, +# ) +# response = client.delete( +# f"/api-keys/{api_key.id}", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) +# assert response.status_code == 200 + +# response2 = client.get( +# "/users/me", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) +# assert response2.status_code == 200 +# assert len(response2.json()["apiKeys"]) == 0 + + +# @pytest.mark.django_db +# def test_delete_other_users_api_key_fails(): +# user1 = User.objects.create( +# firstName="Test1", +# lastName="User1", +# email=f"{secrets.token_hex(4)}@example.com", +# userType="STANDARD", +# createdAt=datetime.now(), +# updatedAt=datetime.now(), +# ) +# user2 = User.objects.create( +# firstName="Test2", +# lastName="User2", +# email=f"{secrets.token_hex(4)}@example.com", +# userType="GLOBAL_ADMIN", +# createdAt=datetime.now(), +# updatedAt=datetime.now(), +# ) +# api_key = ApiKey.objects.create( +# hashedKey="1234", +# lastFour="1234", +# user=user1, +# ) + +# # Try to delete user1's API key as user2 +# response = client.delete( +# f"/api-keys/{api_key.id}", +# headers={ +# "Authorization": create_jwt_token( +# {"id": user2.id, "userType": "GLOBAL_ADMIN"} +# ) +# }, +# ) +# assert response.status_code == 404 + +# # Verify user1's API key still exists +# response2 = client.get( +# "/users/me", +# headers={ +# "Authorization": create_jwt_token({"id": user1.id, "userType": "STANDARD"}) +# }, +# ) +# assert response2.status_code == 200 +# assert len(response2.json()["apiKeys"]) == 1 + + +# @pytest.mark.django_db +# def test_using_valid_api_key(): +# user = User.objects.create( +# firstName="Test", +# lastName="User", +# email=f"{secrets.token_hex(4)}@example.com", +# userType="STANDARD", +# createdAt=datetime.now(), +# updatedAt=datetime.now(), +# ) +# response = client.post( +# "/api-keys", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) +# assert response.status_code == 200 +# api_key = response.json()["key"] + +# # Verify user info with API key +# response_with_api_key = client.get("/users/me", headers={"Authorization": api_key}) +# assert response_with_api_key.status_code == 200 + + +# @pytest.mark.django_db +# def test_using_invalid_api_key(): +# User.objects.create( +# firstName="Test", +# lastName="User", +# email=f"{secrets.token_hex(4)}@example.com", +# userType="STANDARD", +# createdAt=datetime.now(), +# updatedAt=datetime.now(), +# ) + +# response = client.get("/users/me", headers={"Authorization": "invalid_key"}) +# assert response.status_code == 401 + + +# @pytest.mark.django_db +# def test_using_revoked_api_key(): +# user = User.objects.create( +# firstName="Test", +# lastName="User", +# email=f"{secrets.token_hex(4)}@example.com", +# userType="STANDARD", +# createdAt=datetime.now(), +# updatedAt=datetime.now(), +# ) + +# response = client.post( +# "/api-keys", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) +# assert response.status_code == 200 +# api_key_id = response.json()["id"] + +# # Revoke the API key +# response = client.delete( +# f"/api-keys/{api_key_id}", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) +# assert response.status_code == 200 + +# # Verify revoked API key fails +# response_with_revoked_key = client.get( +# "/users/me", headers={"Authorization": response.json()["key"]} +# ) +# assert response_with_revoked_key.status_code == 401 diff --git a/backend/src/xfd_django/xfd_api/tests/test_auth.py b/backend/src/xfd_django/xfd_api/tests/test_auth.py new file mode 100644 index 00000000..d22463ff --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_auth.py @@ -0,0 +1,117 @@ +"""Test auth API.""" +# Standard Python Libraries + +# Third-Party Libraries +from fastapi.testclient import TestClient +from xfd_django.asgi import app + +client = TestClient(app) + +# TODO: Fix tests +# @pytest.mark.django_db +# def test_login_success(): +# # Mock login request +# response = client.post("/auth/login") +# assert response.status_code == 200 +# assert response.json() + + +# @pytest.mark.django_db +# def test_callback_success_login_gov(): +# # Simulate login via login.gov +# response = client.post( +# "/auth/callback", +# json={ +# "code": "CODE", +# "state": "STATE", +# "origState": "ORIGSTATE", +# "nonce": "NONCE", +# }, +# ) +# assert response.status_code == 200 +# assert response.json()["token"] +# assert response.json()["user"] +# assert response.json()["user"]["email"] == "test@crossfeed.cisa.gov" + +# # Verify user in the database +# user = User.objects.get(id=response.json()["user"]["id"]) +# assert user.firstName == "" +# assert user.lastName == "" + + +# @pytest.mark.django_db +# def test_callback_success_cognito(): +# # Simulate Cognito login +# response = client.post( +# "/auth/callback", json={"token": "TOKEN_test2@crossfeed.cisa.gov"} +# ) +# assert response.status_code == 200 +# assert response.json()["token"] +# assert response.json()["user"] +# assert response.json()["user"]["email"] == "test2@crossfeed.cisa.gov" + +# # Verify user in the database +# user = User.objects.get(id=response.json()["user"]["id"]) +# assert user.firstName == "" +# assert user.lastName == "" + + +# @pytest.mark.django_db +# def test_callback_cognito_overwrite_cognito_id(): +# # Simulate Cognito login with two different IDs +# response = client.post( +# "/auth/callback", json={"token": "TOKEN_test3@crossfeed.cisa.gov"} +# ) +# assert response.status_code == 200 +# user_id = response.json()["user"]["id"] +# cognito_id = response.json()["user"]["cognitoId"] + +# response = client.post( +# "/auth/callback", json={"token": "TOKEN_test3@crossfeed.cisa.gov"} +# ) +# user = User.objects.get(id=response.json()["user"]["id"]) +# assert user.id == user_id +# assert user.cognitoId != cognito_id + + +# @pytest.mark.django_db +# def test_login_gov_then_cognito_preserves_ids(): +# # Simulate login via login.gov +# response = client.post( +# "/auth/callback", +# json={ +# "code": "CODE", +# "state": "STATE", +# "origState": "ORIGSTATE", +# "nonce": "NONCE", +# }, +# ) +# assert response.status_code == 200 +# user_id = response.json()["user"]["id"] +# login_gov_id = response.json()["user"]["loginGovId"] + +# # Simulate subsequent Cognito login +# response = client.post( +# "/auth/callback", json={"token": "TOKEN_test@crossfeed.cisa.gov"} +# ) +# assert response.status_code == 200 + +# user = User.objects.get(id=response.json()["user"]["id"]) +# assert user.id == user_id +# assert user.loginGovId == login_gov_id +# assert user.cognitoId is not None + + +# @pytest.mark.django_db +# def test_last_logged_in_is_updated(): +# # Simulate Cognito login and check lastLoggedIn timestamp +# time_1 = datetime.now() +# response = client.post( +# "/auth/callback", json={"token": "TOKEN_test4@crossfeed.cisa.gov"} +# ) +# assert response.status_code == 200 +# time_2 = datetime.now() + +# assert response.json()["token"] +# assert response.json()["user"]["lastLoggedIn"] +# assert time_1 <= response.json()["user"]["lastLoggedIn"] <= time_2 diff --git a/backend/src/xfd_django/xfd_api/tests/test_domain.py b/backend/src/xfd_django/xfd_api/tests/test_domain.py new file mode 100644 index 00000000..e01b827b --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_domain.py @@ -0,0 +1,342 @@ +"""Test domain API.""" +# Standard Python Libraries +from datetime import datetime +import secrets + +# Third-Party Libraries +from django.db import transaction +from fastapi.testclient import TestClient +import pytest +from xfd_api.auth import create_jwt_token +from xfd_api.models import Domain, Organization, Service, User, UserType, Vulnerability +from xfd_django.asgi import app + +client = TestClient(app) + + +bad_id = "960b7db7-f3af-411d-a247-33371" +search_fields = { + "port": "80", + "reverseName": "local.crossfeed.quizzical-wing", + "ip": "127.116.195.151", + "organizationName": "Wizardly Agency", + "tag": "", +} + + +@pytest.fixture +def user(): + """Create user fixture.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + yield user + user.delete() # Clean up after the test + + +@pytest.fixture +def organization(): + """Create org fixture.""" + organization = Organization.objects.create( + name=search_fields["organizationName"], + rootDomains=["crossfeed.local"], + ipBlocks=[], + isPassive=False, + ) + transaction.commit() + assert organization.name == search_fields["organizationName"] + yield organization + + +@pytest.fixture +def domain(organization): + """Create domain fixture.""" + domain = Domain.objects.create( + reverseName="local.crossfeed.example", + ip=search_fields["ip"], # Ensure this IP is the one you expect + organization=organization, + name="example.crossfeed.local", + isFceb=True, + ) + transaction.commit() + # Debugging: Ensure the domain is created correctly + assert domain.ip == search_fields["ip"] + yield domain + + +@pytest.fixture +def service(domain): + """Create service fixture.""" + service = Service.objects.create( + serviceSource="shodan", + port=search_fields["port"], + service="http", + products="test test test", + censysIpv4Results={}, + intrigueIdentResults={}, + shodanResults={}, + wappalyzerResults=[], + domain=domain, + ) + transaction.commit() + assert service.port == search_fields["port"] + assert service.domain == domain + yield service + + +@pytest.fixture +def vulnerability(domain, service): + """Create vuln fixture.""" + vulnerability = Vulnerability.objects.create( + title="Vulnerability title", + description="Test description", + references=[], + needsPopulation=False, + state="open", + substate="unconfirmed", + source="test", + notes="test", + actions=[], + structuredData={}, + isKev=False, + domain=domain, + service=service, + ) + transaction.commit() + assert vulnerability.domain == domain + assert vulnerability.service == service + yield vulnerability + + +@pytest.mark.django_db(transaction=True) +def test_get_domain_by_id(user, domain): + """Test domain by id.""" + # Get domain by Id. + response = client.get( + f"/domain/{domain.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data is not None, "Response is empty" + assert data["id"] == str(domain.id) + assert data["ip"] == domain.ip + + +@pytest.mark.django_db(transaction=True) +def test_get_domain_by_id_fails_404(user, domain): + """Test domain by id to fail.""" + # Get domain by Id. + response = client.get( + f"/domain/{bad_id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 404 + + +@pytest.mark.django_db(transaction=True) +def test_search_domain_by_ip(user, vulnerability): + """Test domain by ip.""" + # Search for the domain by IP + response = client.post( + "/domain/search", + json={"page": 1, "filters": {"ip": search_fields["ip"]}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given IP" + + # Validate result contain the correct IP + for domain in data["result"]: + assert ( + domain["ip"] == search_fields["ip"] + ), f"Expected IP {search_fields['ip']}, but got {domain['ip']}" + + +@pytest.mark.django_db(transaction=True) +def test_search_domain_by_port(user, vulnerability): + """Test domain by port.""" + response = client.post( + "/domain/search", + json={"page": 1, "filters": {"port": search_fields["port"]}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 200 + data = response.json() + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given IP" + + for domain_data in data["result"]: + domain_id = domain_data.get("id", None) + + assert domain_id is not None, "Domain Id not found in Response" + services = Service.objects.filter(domain=domain_id) + for service in services: + assert ( + str(service.port) == search_fields["port"] + ), f"Domain with ID {domain_id} does not have a service with port {vulnerability.service.port}" + + +@pytest.mark.django_db(transaction=True) +def test_search_domain_by_service(user, vulnerability): + """Test domain by service.""" + response = client.post( + "/domain/search", + json={ + "page": 1, + "filters": {"service": str(vulnerability.service.products)}, + "pageSize": 25, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 200 + + data = response.json() + assert data is not None, "Response body is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given service" + + for domain_data in data["result"]: + domain_id = domain_data.get("id", None) + + assert domain_id is not None, "Domain Id not found in Response" + services = Service.objects.filter(domain=domain_id) + service_match = services.filter(id=vulnerability.service.id) + assert ( + service_match is not None + ), f"Domain with ID {domain_id} is not related a service with ID {vulnerability.service.id}" + + +@pytest.mark.django_db(transaction=True) +def test_search_domain_by_organization(user, vulnerability): + """Test domain by org.""" + # Test search domains by organization + response = client.post( + "/domain/search", + json={ + "page": 1, + "filters": {"organization": str(vulnerability.domain.organization.id)}, + "pageSize": 25, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 200 + data = response.json() + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given organization" + + for domain in data["result"]: + assert domain["organization"]["name"] == str( + vulnerability.domain.organization.name + ) + + +@pytest.mark.django_db(transaction=True) +def test_search_domain_by_organization_name(user, vulnerability): + """Test domain by org name.""" + # Test search domains by organization + response = client.post( + "/domain/search", + json={ + "page": 1, + "filters": {"organizationName": search_fields["organizationName"]}, + "pageSize": 25, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 200 + data = response.json() + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given organization name" + + for domain in data["result"]: + assert ( + domain["organization"] is not None + ), "Response domain did not include an Organization ID" + organization = Organization.objects.get(id=domain["organization"]["id"]) + assert ( + organization.name == search_fields["organizationName"] + ), f"Domain with ID {domain['id']} did not contain Organization Id {search_fields['organizationName']}" + + +@pytest.mark.django_db(transaction=True) +def test_search_domain_by_vulnerabilities(user, vulnerability): + """Test domain by vuln.""" + # Test search domains by vulnerabilities + response = client.post( + "/domain/search", + json={ + "page": 1, + "filters": {"vulnerabilities": str(vulnerability.title)}, + "pageSize": 25, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 200 + data = response.json() + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given vulnerability" + + for domain in data["result"]: + assert str(vulnerability.domain.id) == str( + domain["id"] + ), f"Response domain {domain['id']} did not relate back to the expected vulnerability {vulnerability.domain.id}" + + +@pytest.mark.django_db(transaction=True) +def test_search_domains_multiple_criteria(user, vulnerability): + """Test domain by multi-criteria.""" + # Test search domains by multiple criteria + response = client.post( + "/domain/search", + json={ + "page": 1, + "filters": {"ip": search_fields["ip"], "port": search_fields["port"]}, + "pageSize": 25, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 200 + data = response.json() + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given ip and port" + + for domain in data["result"]: + assert ( + domain["ip"] == search_fields["ip"] + ), f"Domain with ID {domain['id']} does not have an IP {search_fields['ip']}" + domain_id = domain.get("id", None) + + assert domain_id is not None, "Domain Id not found in Response" + services = Service.objects.filter(domain=domain_id) + for service in services: + assert ( + str(service.port) == search_fields["port"] + ), f"Domain with ID {domain_id} does not have a service with port {vulnerability.service.port}" + + +@pytest.mark.django_db(transaction=True) +def test_search_domains_does_not_exist(user, vulnerability): + """Test domain by domain not existing.""" + # Test search domains if record does not exist + response = client.post( + "/domain/search", + json={"page": 1, "filters": {"ip": "Does not exist"}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert len(data["result"]) == 0, "No result found for the given organization name" diff --git a/backend/src/xfd_django/xfd_api/tests/test_notification.py b/backend/src/xfd_django/xfd_api/tests/test_notification.py new file mode 100644 index 00000000..e15a7909 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_notification.py @@ -0,0 +1,139 @@ +"""Test notifications.""" +# Third-Party Libraries +from fastapi.testclient import TestClient +from xfd_django.asgi import app # Import your FastAPI app + +client = TestClient(app) + +# TODO: Fix tests +# @pytest.mark.django_db +# def test_create_notification(): +# # Create a test user +# user = User.objects.create( +# firstName="Test", +# lastName="User", +# email="testuser@example.com", +# userType="STANDARD", +# ) + +# # Define the notification data +# notification_data = {"message": "Test notification", "status": "unread"} + +# # Send the POST request +# response = client.post( +# "/notifications", +# json=notification_data, +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) + +# # Assert the response status code +# assert response.status_code == 200 + +# # Assert the notification was created correctly +# response_data = response.json() +# assert response_data["message"] == "Test notification" +# assert response_data["status"] == "unread" +# assert "id" in response_data # Ensure that ID was assigned + + +# @pytest.mark.django_db +# def test_delete_notification(): +# # Create a test user +# user = User.objects.create( +# firstName="Test", +# lastName="User", +# email="testuser@example.com", +# userType="STANDARD", +# ) + +# # Create a test notification +# notification = Notification.objects.create( +# message="Test notification", status="unread", userId=user +# ) + +# # Send the DELETE request +# response = client.delete( +# f"/notifications/{notification.id}", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) + +# # Assert the response status code +# assert response.status_code == 200 + +# # Assert the response content +# response_data = response.json() +# assert response_data["status"] == "success" +# assert response_data["message"] == "Item deleted successfully" + +# # Assert the notification no longer exists +# with pytest.raises(Notification.DoesNotExist): +# Notification.objects.get(id=notification.id) + + +# @pytest.mark.django_db +# def test_get_all_notifications(): +# # Create a test user +# user = User.objects.create( +# firstName="Test", +# lastName="User", +# email="testuser@example.com", +# userType="STANDARD", +# ) + +# # Create two test notifications +# Notification.objects.create(message="Notification 1", status="unread", userId=user) +# Notification.objects.create(message="Notification 2", status="read", userId=user) + +# # Send the GET request +# response = client.get( +# "/notifications", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) + +# # Assert the response status code +# assert response.status_code == 200 + +# # Assert that two notifications are returned +# notifications = response.json() +# assert len(notifications) == 2 +# assert notifications[0]["message"] == "Notification 1" +# assert notifications[1]["message"] == "Notification 2" + + +# @pytest.mark.django_db +# def test_get_notification_by_id(): +# # Create a test user +# user = User.objects.create( +# firstName="Test", +# lastName="User", +# email="testuser@example.com", +# userType="STANDARD", +# ) + +# # Create a test notification +# notification = Notification.objects.create( +# message="Test notification", status="unread", userId=user +# ) + +# # Send the GET request +# response = client.get( +# f"/notifications/{notification.id}", +# headers={ +# "Authorization": create_jwt_token({"id": user.id, "userType": "STANDARD"}) +# }, +# ) + +# # Assert the response status code +# assert response.status_code == 200 + +# # Assert the correct notification is returned +# response_data = response.json() +# assert response_data["message"] == "Test notification" +# assert response_data["status"] == "unread" +# assert response_data["id"] == str(notification.id) diff --git a/backend/src/xfd_django/xfd_api/tests/test_organization.py b/backend/src/xfd_django/xfd_api/tests/test_organization.py new file mode 100644 index 00000000..3c804768 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_organization.py @@ -0,0 +1,1290 @@ +"""Test organizations.""" +# Standard Python Libraries +from datetime import datetime +import secrets + +# Third-Party Libraries +from fastapi.testclient import TestClient +import pytest +from xfd_api.auth import create_jwt_token +from xfd_api.models import ( + Organization, + OrganizationTag, + Role, + Scan, + ScanTask, + User, + UserType, +) +from xfd_django.asgi import app + +client = TestClient(app) + + +# Test: Creating an organization by global admin should succeed +@pytest.mark.django_db(transaction=True) +def test_create_org_by_global_admin(): + """Test organization by global admin should succeed.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + name = f"test-{secrets.token_hex(4)}" + acronym = secrets.token_hex(2) + + response = client.post( + "/organizations/", + json={ + "ipBlocks": [], + "acronym": acronym, + "name": name, + "rootDomains": ["cisa.gov"], + "isPassive": False, + "tags": [{"name": "test"}], + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["createdBy"]["id"] == str(user.id) + assert data["name"] == name + assert data["tags"][0]["name"] == "test" + + +# Test: Cannot add organization with the same acronym +@pytest.mark.django_db(transaction=True) +def test_create_duplicate_org_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + name = f"test-{secrets.token_hex(4)}" + acronym = secrets.token_hex(2) + + client.post( + "/organizations/", + json={ + "ipBlocks": [], + "acronym": acronym, + "name": name, + "rootDomains": ["cisa.gov"], + "isPassive": False, + "tags": [], + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + # Attempt to create another organization with the same acronym + response = client.post( + "/organizations/", + json={ + "ipBlocks": [], + "acronym": acronym, + "name": name, + "rootDomains": ["cisa.gov"], + "isPassive": False, + "tags": [], + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 500 + + +# Test: Creating an organization by global view user should fail +@pytest.mark.django_db(transaction=True) +def test_create_org_by_global_view_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + print(user) + + name = f"test-{secrets.token_hex(4)}" + acronym = secrets.token_hex(2) + + response = client.post( + "/organizations/", + json={ + "ipBlocks": [], + "acronym": acronym, + "name": name, + "rootDomains": ["cisa.gov"], + "isPassive": False, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: Update organization by global admin +@pytest.mark.django_db(transaction=True) +def test_update_org_by_global_admin(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + acronym=secrets.token_hex(2), + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test.com"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + new_name = f"test-{secrets.token_hex(4)}" + new_acronym = secrets.token_hex(2) + new_root_domains = ["newdomain.com"] + new_ip_blocks = ["1.1.1.1"] + is_passive = True + tags = [{"name": "updated"}] + + response = client.put( + f"/organizations/{organization.id}", + json={ + "name": new_name, + "acronym": new_acronym, + "rootDomains": new_root_domains, + "ipBlocks": new_ip_blocks, + "isPassive": is_passive, + "tags": tags, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["name"] == new_name + assert data["rootDomains"] == new_root_domains + assert data["ipBlocks"] == new_ip_blocks + assert data["isPassive"] == is_passive + assert data["tags"][0]["name"] == tags[0]["name"] + + +# Test: Update organization by global view should fail +@pytest.mark.django_db(transaction=True) +def test_update_org_by_global_view_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + acronym=secrets.token_hex(2), + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test.com"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + new_name = f"test-{secrets.token_hex(4)}" + new_acronym = secrets.token_hex(2) + new_root_domains = ["newdomain.com"] + new_ip_blocks = ["1.1.1.1"] + is_passive = True + tags = [{"name": "updated"}] + + response = client.put( + f"/organizations/{organization.id}", + json={ + "name": new_name, + "acronym": new_acronym, + "rootDomains": new_root_domains, + "ipBlocks": new_ip_blocks, + "isPassive": is_passive, + "tags": tags, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: Deleting an organization by global admin should succeed +@pytest.mark.django_db(transaction=True) +def test_delete_org_by_global_admin(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test.com"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.delete( + f"/organizations/{organization.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + +# Test: Deleting an organization by org admin should fail +@pytest.mark.django_db(transaction=True) +def test_delete_org_by_org_admin_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test.com"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign admin role to the user for the organization + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + response = client.delete( + f"/organizations/{organization.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: Deleting an organization by global view should fail +@pytest.mark.django_db(transaction=True) +def test_delete_org_by_global_view_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + acronym=secrets.token_hex(2), + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test.com"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.delete( + f"/organizations/{organization.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: List organizations by global view should succeed +@pytest.mark.django_db(transaction=True) +def test_list_orgs_by_global_view_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Create an organization + Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.get( + "/organizations", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert len(data) >= 1 + + +# Test: List organizations by org member should only return their org +@pytest.mark.django_db(transaction=True) +def test_list_orgs_by_org_member_only_gets_their_org(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Create organizations + organization1 = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign user a role in organization1 + Role.objects.create( + user=user, + organization=organization1, + role="user", + ) + + # Fetch organizations + response = client.get( + "/organizations", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert len(data) == 1 + assert data[0]["id"] == str(organization1.id) + + +# Test: Get organization by global view should fail +@pytest.mark.django_db(transaction=True) +def test_get_org_by_global_view_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.get( + f"/organizations/{organization.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized"} + + +# Test: Get organization by org admin user should pass +@pytest.mark.django_db(transaction=True) +def test_get_org_by_org_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign admin role to the user for the organization + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + response = client.get( + f"/organizations/{organization.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["name"] == organization.name + + +# Test: Get organization by org admin of different org should fail +@pytest.mark.django_db(transaction=True) +def test_get_org_by_org_admin_of_different_org_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization1 = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization2 = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign admin role to the user for organization1 + Role.objects.create( + user=user, + organization=organization1, + role="admin", + ) + + response = client.get( + f"/organizations/{organization2.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized"} + + +# Test: Get organization by org regular user should fail +@pytest.mark.django_db(transaction=True) +def test_get_org_by_org_regular_user_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign regular user role to the user for the organization + Role.objects.create( + user=user, + organization=organization, + role="user", + ) + + response = client.get( + f"/organizations/{organization.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized"} + + +# Test: Get organization by org admin should return associated scantasks +@pytest.mark.django_db(transaction=True) +def test_get_org_with_scan_tasks_by_org_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign admin role to the user for the organization + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + # Create a scan and scantask associated with the organization + scan = Scan.objects.create( + name="censys", + arguments={}, + frequency=999999, + ) + + scan_task = ScanTask.objects.create(scan=scan, status="created", type="fargate") + + scan_task.organizations.add(organization) + + response = client.get( + f"/organizations/{organization.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["name"] == organization.name + assert len(data["scanTasks"]) == 1 + assert data["scanTasks"][0]["id"] == str(scan_task.id) + assert data["scanTasks"][0]["scan"]["id"] == str(scan.id) + + +# Test: Enabling a user-modifiable scan by org admin should succeed +@pytest.mark.django_db(transaction=True) +def test_enable_user_modifiable_scan_by_org_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + scan = Scan.objects.create( + name="censys", + arguments={}, + frequency=999999, + isGranular=True, + isUserModifiable=True, + ) + + response = client.post( + f"/organizations/{organization.id}/granularScans/{scan.id}/update", + json={"enabled": True}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert len(data["granularScans"]) == 1 + assert data["granularScans"][0]["id"] == str(scan.id) + + +# Test: Disabling a user-modifiable scan by org admin should succeed +@pytest.mark.django_db(transaction=True) +def test_disable_user_modifiable_scan_by_org_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + scan = Scan.objects.create( + name="censys", + arguments={}, + frequency=999999, + isGranular=True, + isUserModifiable=True, + ) + + scan_task = ScanTask.objects.create( + scan=scan, + status="created", + type="fargate", + ) + scan_task.organizations.add(organization) + + response = client.post( + f"/organizations/{organization.id}/granularScans/{scan.id}/update", + json={"enabled": False}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert len(data["granularScans"]) == 0 + + +# Test: Enabling a user-modifiable scan by org user should fail +@pytest.mark.django_db(transaction=True) +def test_enable_user_modifiable_scan_by_org_user_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create( + user=user, + organization=organization, + role="user", + ) + + scan = Scan.objects.create( + name="censys", + arguments={}, + frequency=999999, + isGranular=True, + isUserModifiable=True, + ) + + response = client.post( + f"/organizations/{organization.id}/granularScans/{scan.id}/update", + json={"enabled": True}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + + +# Test: Enabling a user-modifiable scan by global admin should succeed +@pytest.mark.django_db(transaction=True) +def test_enable_user_modifiable_scan_by_global_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create( + name="censys", + arguments={}, + frequency=999999, + isGranular=True, + isUserModifiable=True, + ) + + response = client.post( + f"/organizations/{organization.id}/granularScans/{scan.id}/update", + json={"enabled": True}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert len(data["granularScans"]) == 1 + assert data["granularScans"][0]["id"] == str(scan.id) + + +# Test: Enabling a non-user-modifiable scan by org admin should fail +@pytest.mark.django_db(transaction=True) +def test_enable_non_user_modifiable_scan_by_org_admin_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + scan = Scan.objects.create( + name="censys", + arguments={}, + frequency=999999, + isGranular=True, + isUserModifiable=False, # Not user-modifiable + ) + + response = client.post( + f"/organizations/{organization.id}/granularScans/{scan.id}/update", + json={"enabled": True}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 404 + + +# Test: Approving a role by global admin should succeed +@pytest.mark.django_db(transaction=True) +def test_approve_role_by_global_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + user2 = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + role = Role.objects.create( + role="user", approved=False, organization=organization, user=user2 + ) + + response = client.post( + f"/organizations/{organization.id}/roles/{role.id}/approve", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + role.refresh_from_db() + assert role.approved is True + + +# Test: Approving a role by global view should fail +@pytest.mark.django_db(transaction=True) +def test_approve_role_by_global_view_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + user2 = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + role = Role.objects.create( + role="user", approved=False, organization=organization, user=user2 + ) + + response = client.post( + f"/organizations/{organization.id}/roles/{role.id}/approve", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + role.refresh_from_db() + assert role.approved is False + + +# Test: Approving a role by org admin should succeed +@pytest.mark.django_db(transaction=True) +def test_approve_role_by_org_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + user2 = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + role = Role.objects.create( + role="user", approved=False, organization=organization, user=user2 + ) + + response = client.post( + f"/organizations/{organization.id}/roles/{role.id}/approve", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + role.refresh_from_db() + assert role.approved is True + + +# Test: Approving a role by org user should fail +@pytest.mark.django_db(transaction=True) +def test_approve_role_by_org_user_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + user2 = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create( + user=user, + organization=organization, + role="user", + ) + + role = Role.objects.create( + role="user", approved=False, organization=organization, user=user2 + ) + + response = client.post( + f"/organizations/{organization.id}/roles/{role.id}/approve", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + role.refresh_from_db() + assert role.approved is False + + +# Test: removeRole by globalAdmin should work +@pytest.mark.django_db(transaction=True) +def test_remove_role_by_global_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + user2 = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + role = Role.objects.create( + role="user", approved=False, organization=organization, user=user2 + ) + + response = client.post( + f"/organizations/{organization.id}/roles/{role.id}/remove", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + +# Test: removeRole by globalView should fail +@pytest.mark.django_db(transaction=True) +def test_remove_role_by_global_view_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + user2 = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + role = Role.objects.create( + role="user", approved=False, organization=organization, user=user2 + ) + + response = client.post( + f"/organizations/{organization.id}/roles/{role.id}/remove", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: removeRole by org admin should succeed +@pytest.mark.django_db(transaction=True) +def test_remove_role_by_org_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + user2 = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + role = Role.objects.create( + role="user", approved=False, organization=organization, user=user2 + ) + + response = client.post( + f"/organizations/{organization.id}/roles/{role.id}/remove", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + +# Test: removeRole by org user should fail +@pytest.mark.django_db(transaction=True) +def test_remove_role_by_org_user_fails(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + user2 = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create( + user=user, + organization=organization, + role="user", + ) + + role = Role.objects.create( + role="user", approved=False, organization=organization, user=user2 + ) + + response = client.post( + f"/organizations/{organization.id}/roles/{role.id}/remove", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: getTags by globalAdmin should work +@pytest.mark.django_db(transaction=True) +def test_get_tags_by_global_admin_succeeds(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + OrganizationTag.objects.create( + name=f"test-{secrets.token_hex(4)}", + ) + + response = client.get( + "/organizations/tags", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + assert len(response.json()) >= 1 + + +# Test: getTags by standard user should return no tags +@pytest.mark.django_db(transaction=True) +def test_get_tags_by_standard_user_returns_no_tags(): + """Test organization.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + OrganizationTag.objects.create( + name=f"test-{secrets.token_hex(4)}", + ) + + response = client.get( + "/organizations/tags", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + assert len(response.json()) == 0 diff --git a/backend/src/xfd_django/xfd_api/tests/test_proxy.py b/backend/src/xfd_django/xfd_api/tests/test_proxy.py new file mode 100644 index 00000000..28328801 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_proxy.py @@ -0,0 +1,83 @@ +"""Test proxy.""" +# Standard Python Libraries +from datetime import datetime +import secrets + +# Third-Party Libraries +from fastapi.testclient import TestClient +import pytest +from xfd_api.auth import create_jwt_token +from xfd_api.models import User, UserType +from xfd_django.asgi import app + +# Initialize the test client with the FastAPI app +client = TestClient(app) + + +@pytest.mark.django_db(transaction=True) +def test_standard_user_not_authorized_to_access_pe_proxy(): + """Test that a standard user is not authorized to access P&E proxy.""" + # Create a standard user + user = User.objects.create( + firstName="Standard", + lastName="User", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Generate a JWT token for the user + token = create_jwt_token(user) + + # Make a GET request to the P&E proxy endpoint with the user's token + response = client.get("/pe", headers={"Authorization": f"Bearer {token}"}) + + # Assert that the user receives a 403 Unauthorized response + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized"} + + +@pytest.mark.django_db(transaction=True) +def test_global_admin_authorized_to_access_pe_proxy(): + """Test that a global admin is authorized to access P&E proxy.""" + # Create a global admin user + user = User.objects.create( + firstName="Admin", + lastName="User", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Generate a JWT token for the global admin + token = create_jwt_token(user) + + # Make a GET request to the P&E proxy endpoint with the global admin's token + response = client.get("/pe", headers={"Authorization": f"Bearer {token}"}) + + # Assert that the global admin is authorized and receives either a 200 or 504 response + assert response.status_code in [200, 504] + + +@pytest.mark.django_db(transaction=True) +def test_global_view_user_authorized_to_access_pe_proxy(): + """Test that a global view user is authorized to access P&E proxy.""" + # Create a global view user + user = User.objects.create( + firstName="View", + lastName="User", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Make a GET request to the P&E proxy endpoint with the global view user's token + response = client.get( + "/pe", headers={"Authorization": "Bearer " + create_jwt_token(user)} + ) + print(response.json()) + # Assert that the global view user is authorized and receives either a 200 or 504 response + assert response.status_code in [200, 504] diff --git a/backend/src/xfd_django/xfd_api/tests/test_saved_searches.py b/backend/src/xfd_django/xfd_api/tests/test_saved_searches.py new file mode 100644 index 00000000..9bc2f5ec --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_saved_searches.py @@ -0,0 +1,585 @@ +"""Test saved search.""" +# Standard Python Libraries +from datetime import datetime +import secrets + +# Third-Party Libraries +from fastapi.testclient import TestClient +import pytest +from xfd_api.auth import create_jwt_token +from xfd_api.models import SavedSearch, User, UserType +from xfd_django.asgi import app + +client = TestClient(app) + + +@pytest.fixture +def create_global_admin(): + """Create user fixture.""" + global_admin_user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + yield global_admin_user + global_admin_user.delete() + + +@pytest.fixture +def create_global_view(): + """Create user fixture.""" + global_view_user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + yield global_view_user + global_view_user.delete() + + +@pytest.fixture +def create_standard_user(): + """Create user fixture.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + yield user + user.delete() + + +@pytest.fixture +def create_secondary_standard_user(): + """Create user fixture.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + yield user + user.delete() + + +@pytest.mark.django_db(transaction=True) +def test_create_saved_search_by_user(create_standard_user): + """ + Ensure that a standard user can successfully create a saved search. + + This test verifies that a user with standard permissions can create a saved search by sending a POST request with the appropriate JSON payload. + The test checks the response status code and the data to confirm that the saved search is created successfully. + Assertions: + The response status code should be 200. + The response data should include the correct name and createdById fields. + """ + user = create_standard_user + name = f"test-{secrets.token_hex(4)}" + response = client.post( + "/saved-searches/", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + json={ + "name": name, + "count": 3, + "sortDirection": "", + "sortField": "", + "searchTerm": "", + "searchPath": "", + "filters": [], + }, + ) + assert response.status_code == 200 + data = response.json() + assert data["name"] == name + assert data["createdById"] == str(user.id) + search = SavedSearch.objects.get(id=data["id"]) + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_update_saved_search_by_global_admin_fails( + create_global_admin, create_standard_user +): + """ + Ensure that a global admin user cannot update a saved search created by another user. + + This test attempts to update a saved search using the global admin's credentials and asserts that the operation fails with a 404 status code. + Assertions: + The response status code should be 404. + """ + global_admin_user = create_global_admin + standard_user = create_standard_user + body = { + "name": f"test-{secrets.token_hex(4)}", + "count": 3, + "sortDirection": "", + "sortField": "", + "searchTerm": "", + "searchPath": "", + "filters": [], + "updatedAt": datetime.now(), # Include updatedAt field + } + search = SavedSearch.objects.create(**body, createdById=standard_user) + body["name"] = f"test-{secrets.token_hex(4)}" + body["searchTerm"] = "123" + body["updatedAt"] = datetime.now().isoformat() # Update the timestamp + + response = client.put( + f"/saved-searches/{search.id}", + json=body, + headers={"Authorization": "Bearer " + create_jwt_token(global_admin_user)}, + ) + assert response.status_code == 404 + + # Cleanup + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_update_saved_search_by_global_view_fails( + create_standard_user, create_global_view +): + """ + Ensure that a global view user cannot update a saved search. + + This test verifies that a user with global view permissions is not allowed to update a saved search created by a standard user. + It attempts to update the saved search using the global view user's credentials and asserts that the operation fails with a 404 status code. + Args: + create_standard_user (function): Fixture to create a standard user. + create_global_view (function): Fixture to create a global view user. + Assertions: + The response status code should be 404, indicating that the update operation is not permitted for the global view user. + """ + global_view_user = create_global_view + user = create_standard_user + body = { + "name": f"test-{secrets.token_hex(4)}", + "count": 3, + "sortDirection": "", + "sortField": "", + "searchTerm": "", + "searchPath": "", + "filters": [], + "updatedAt": datetime.now(), # Include updatedAt field + } + saved_search = SavedSearch.objects.create(**body, createdById=user) + + # Attempt to update the saved search with the global view user + body["name"] = f"test-{secrets.token_hex(4)}" + body["searchTerm"] = "123" + body["updatedAt"] = datetime.now().isoformat() # Update the timestamp + response = client.put( + f"/saved-searches/{saved_search.id}", + json=body, + headers={"Authorization": "Bearer " + create_jwt_token(global_view_user)}, + ) + + # Assert that the response indicates failure (403 or 404) + assert response.status_code == 404 + + # Cleanup + saved_search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_update_saved_search_by_standard_user_with_access(create_standard_user): + """ + Ensure that a standard user with access can successfully update a saved search. + + This test verifies that a standard user who created the saved search can update it by sending a PUT request with updated data. + Assertions: + The response status code should be 200. + The response data should include the updated name and searchTerm fields. + """ + user = create_standard_user + body = { + "name": f"test-{secrets.token_hex(4)}", + "count": 3, + "sortDirection": "", + "sortField": "", + "searchTerm": "", + "searchPath": "", + "filters": [], + "updatedAt": datetime.now(), # Include updatedAt field + } + search = SavedSearch.objects.create(**body, createdById=user) + body["name"] = f"test-{secrets.token_hex(4)}" + body["searchTerm"] = "123" + body["updatedAt"] = datetime.now().isoformat() # Update the timestamp + + response = client.put( + f"/saved-searches/{search.id}", + json=body, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 200 + data = response.json() + assert data["name"] == body["name"] + assert data["searchTerm"] == body["searchTerm"] + + # Cleanup + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_update_saved_search_by_standard_user_without_access_fails( + create_standard_user, create_secondary_standard_user +): + """ + Ensure that a standard user without access cannot update a saved search. + + This test verifies that a standard user cannot update a saved search created by another user. + Assertions: + The response status code should be 404. + """ + user_with_access = create_standard_user + user_without_access = create_secondary_standard_user + body = { + "name": f"test-{secrets.token_hex(4)}", + "count": 3, + "sortDirection": "", + "sortField": "", + "searchTerm": "", + "searchPath": "", + "filters": [], + "updatedAt": str(datetime.now()), # Include updatedAt field + } + search = SavedSearch.objects.create(**body, createdById=user_with_access) + response = client.put( + f"/saved-searches/{search.id}", + json=body, + headers={"Authorization": "Bearer " + create_jwt_token(user_without_access)}, + ) + assert response.status_code == 404 + + # Cleanup + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_delete_saved_search_by_global_admin_fails( + create_global_admin, create_standard_user +): + """ + Ensure that a global admin user cannot delete a saved search created by another user. + + This test attempts to delete a saved search using the global admin's credentials and asserts that the operation fails with a 404 status code. + Assertions: + The response status code should be 404. + """ + global_admin_user = create_global_admin + standard_user = create_standard_user + + search = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + createdById=standard_user, + ) + response = client.delete( + f"/saved-searches/{search.id}", + headers={"Authorization": "Bearer " + create_jwt_token(global_admin_user)}, + ) + assert response.status_code == 404 + + # Cleanup + if search: + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_delete_saved_search_by_global_view_fails( + create_standard_user, create_global_view +): + """ + Ensure that a global view user cannot delete a saved search. + + This test verifies that a user with global view permissions is not allowed to delete a saved search created by a standard user. + It attempts to delete the saved search using the global view user's credentials and asserts that the operation fails with a 404 status code. + Args: + create_standard_user (function): Fixture to create a standard user. + create_global_view (function): Fixture to create a global view user. + Assertions: + The response status code should be 404, indicating that the delete operation is not permitted for the global view user. + """ + global_view_user = create_global_view + user = create_standard_user + + saved_search = SavedSearch.objects.create( + name=f"test-search-{secrets.token_hex(4)}", + count=5, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + createdById=user, + ) + + # Attempt to delete the saved search with the global view user + response = client.delete( + f"/saved-searches/{saved_search.id}", + headers={"Authorization": "Bearer " + create_jwt_token(global_view_user)}, + ) + + # Assert that the response indicates failure (403 or 404) + assert response.status_code == 404 + + # Cleanup + saved_search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_delete_saved_search_by_user_with_access(create_standard_user): + """ + Ensure that a standard user with access can successfully delete a saved search. + + This test verifies that the user who created the saved search can delete it by sending a DELETE request. + Assertions: + The response status code should be 200. + """ + user = create_standard_user + search = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + createdById=user, + ) + response = client.delete( + f"/saved-searches/{search.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + # Cleanup + if search: + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_delete_saved_search_by_user_without_access_fails( + create_standard_user, create_secondary_standard_user +): + """ + Ensure that a standard user without access cannot delete a saved search. + + This test verifies that a user cannot delete a saved search created by another user. + Assertions: + The response status code should be 404. + """ + user_with_access = create_standard_user + user_without_access = create_secondary_standard_user + search = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + createdById=user_with_access, + ) + response = client.delete( + f"/saved-searches/{search.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user_without_access)}, + ) + assert response.status_code == 404 + + # Cleanup + if search: + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_list_saved_searches_by_global_view_returns_none(create_global_view): + """ + Ensure that a global view user cannot list saved searches. + + This test verifies that a global view user does not have access to view any saved searches. + Assertions: + The response status code should be 200. + The response data should be an empty list. + """ + global_view_user = create_global_view + search = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + ) + response = client.get( + "/saved-searches", + headers={"Authorization": "Bearer " + create_jwt_token(global_view_user)}, + ) + + assert response.status_code == 200 + assert response.json()["count"] == 0 + + # Cleanup + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_list_saved_searches_by_user_only_gets_their_search( + create_standard_user, create_secondary_standard_user +): + """ + Ensure that a standard user can only list their own saved searches. + + This test verifies that a user only sees the saved searches they created. + Assertions: + The response status code should be 200. + The response data should include only the searches created by the user. + """ + primary_user = create_standard_user + secondary_user = create_secondary_standard_user + search = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + createdById=primary_user, + ) + search2 = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + createdById=secondary_user, + ) + response = client.get( + "/saved-searches", + headers={"Authorization": "Bearer " + create_jwt_token(primary_user)}, + ) + response_data = response.json()["result"] + + assert response.status_code == 200 + assert response.json()["count"] == 1 + assert response_data[0]["id"] == str(search.id) + + # Cleanup + search.delete() + search2.delete() + + +@pytest.mark.django_db(transaction=True) +def test_get_saved_search_by_global_view_fails(create_global_view): + """ + Ensure that a global view user cannot retrieve a saved search. + + This test verifies that a global view user cannot access a saved search by ID. + Assertions: + The response status code should be 404. + """ + global_view_user = create_global_view + search = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + ) + response = client.get( + f"/saved-searches/{search.id}", + headers={"Authorization": "Bearer " + create_jwt_token(global_view_user)}, + ) + assert response.status_code == 404 + + # Cleanup + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_get_saved_search_by_user_passes(create_standard_user): + """ + Ensure that a standard user can retrieve their saved search by ID. + + This test verifies that a user can successfully retrieve a saved search they created. + Assertions: + The response status code should be 200. + The response data should match the saved search's attributes. + """ + user = create_standard_user + search = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + createdById=user, + ) + response = client.get( + f"/saved-searches/{search.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 200 + assert response.json()["name"] == search.name + + # Cleanup + search.delete() + + +@pytest.mark.django_db(transaction=True) +def test_get_saved_search_by_different_user_fails( + create_standard_user, create_secondary_standard_user +): + """ + Ensure that a standard user cannot retrieve a saved search created by another user. + + This test verifies that access to saved searches is restricted to the creator. + Assertions: + The response status code should be 404. + """ + user_with_access = create_standard_user + user_without_access = create_secondary_standard_user + search = SavedSearch.objects.create( + name=f"test-{secrets.token_hex(4)}", + count=3, + sortDirection="", + sortField="", + searchTerm="", + searchPath="", + filters=[], + createdById=user_with_access, + ) + response = client.get( + f"/saved-searches/{search.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user_without_access)}, + ) + assert response.status_code == 404 + + # Cleanup + search.delete() diff --git a/backend/src/xfd_django/xfd_api/tests/test_scan.py b/backend/src/xfd_django/xfd_api/tests/test_scan.py new file mode 100644 index 00000000..de0151fc --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_scan.py @@ -0,0 +1,512 @@ +"""Test scan.""" +# Standard Python Libraries +from datetime import datetime +import secrets +from unittest.mock import patch + +# Third-Party Libraries +from fastapi.testclient import TestClient +import pytest +from xfd_api.auth import create_jwt_token +from xfd_api.models import Organization, OrganizationTag, Scan, User, UserType +from xfd_django.asgi import app + +client = TestClient(app) + + +# Test: list by globalAdmin should return all scans +@pytest.mark.django_db(transaction=True) +def test_list_scans_by_global_admin(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + name = f"test-{secrets.token_hex(4)}" + + Scan.objects.create( + name=name, + arguments={}, + frequency=999999, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + Scan.objects.create( + name=f"{name}-2", + arguments={}, + frequency=999999, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.get( + "/scans", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert len(data["scans"]) >= 2 + assert len(data["organizations"]) >= 1 + assert any(org["id"] == str(organization.id) for org in data["organizations"]) + + +# Test: create by globalAdmin should succeed +@pytest.mark.django_db(transaction=True) +def test_create_scan_by_global_admin(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + name = "censys" + arguments = '{"a": "b"}' + frequency = 999999 + + response = client.post( + "/scans", + json={ + "name": name, + "arguments": arguments, + "frequency": frequency, + "isGranular": False, + "organizations": [], + "isUserModifiable": False, + "isSingleScan": False, + "tags": [], + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["name"] == name + assert data["arguments"] == arguments + assert data["frequency"] == frequency + assert data["isGranular"] is False + assert data["organizations"] == [] + assert data["tags"] == [] + assert data["createdBy"]["id"] == str(user.id) + + +# Test: create a granular scan by globalAdmin should succeed +@pytest.mark.django_db(transaction=True) +def test_create_granular_scan_by_global_admin(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + name = "censys" + arguments = '{"a": "b"}' + frequency = 999999 + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.post( + "/scans", + json={ + "name": name, + "arguments": arguments, + "frequency": frequency, + "isGranular": True, + "organizations": [str(organization.id)], + "isUserModifiable": False, + "isSingleScan": False, + "tags": [], + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["name"] == name + assert data["arguments"] == arguments + assert data["frequency"] == frequency + assert data["isGranular"] is True + assert str(organization.id) in [org["id"] for org in data["organizations"]] + + +# Test: create by globalView should fail +@pytest.mark.django_db(transaction=True) +def test_create_by_global_view_fails(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.post( + "/scans", + json={ + "name": "censys", + "arguments": "{}", + "frequency": 999999, + "isGranular": False, + "organizations": [], + "isUserModifiable": False, + "isSingleScan": False, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: update by globalAdmin should succeed +@pytest.mark.django_db(transaction=True) +def test_update_by_global_admin_succeeds(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="censys", arguments="{}", frequency=999999) + + response = client.put( + f"/scans/{scan.id}", + json={ + "name": "findomain", + "arguments": "{}", + "frequency": 999991, + "isGranular": False, + "organizations": [], + "isUserModifiable": False, + "isSingleScan": False, + "tags": [], + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["name"] == "findomain" + assert data["arguments"] == "{}" + assert data["frequency"] == 999991 + + +# Test: update a non-granular scan to a granular scan by globalAdmin +@pytest.mark.django_db(transaction=True) +def test_update_non_granular_to_granular_by_global_admin(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create( + name="censys", + arguments="{}", + frequency=999999, + isGranular=False, + isSingleScan=False, + ) + + tag = OrganizationTag.objects.create(name=f"test-{secrets.token_hex(4)}") + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + organization.tags.set([tag]) + + response = client.put( + f"/scans/{scan.id}", + json={ + "name": "findomain", + "arguments": "{}", + "frequency": 999991, + "isGranular": True, + "organizations": [str(organization.id)], + "isSingleScan": False, + "isUserModifiable": True, + "tags": [{"id": str(tag.id)}], + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + print(response.json()) + assert response.status_code == 200 + data = response.json() + assert data["name"] == "findomain" + assert data["frequency"] == 999991 + assert data["isGranular"] is True + assert data["isUserModifiable"] is True + assert str(organization.id) in [org["id"] for org in data["organizations"]] + assert str(tag.id) in [t["id"] for t in data["tags"]] + + +# Test: update by globalView should fail +@pytest.mark.django_db(transaction=True) +def test_update_by_global_view_fails(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="censys", arguments="{}", frequency=999999) + + response = client.put( + f"/scans/{scan.id}", + json={"name": "findomain", "arguments": "{}", "frequency": 999991}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + print(response.json()) + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: delete by globalAdmin should succeed +@pytest.mark.django_db(transaction=True) +def test_delete_by_global_admin_succeeds(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="censys", arguments="{}", frequency=999999) + + response = client.delete( + f"/scans/{scan.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + +# Test: delete by globalView should fail +@pytest.mark.django_db(transaction=True) +def test_delete_by_global_view_fails(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="censys", arguments="{}", frequency=999999) + + response = client.delete( + f"/scans/{scan.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: get by globalView should succeed +@pytest.mark.django_db(transaction=True) +def test_get_by_global_view_succeeds(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="censys", arguments="{}", frequency=999999) + + response = client.get( + f"/scans/{scan.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["scan"]["name"] == "censys" + + +# Test: get by regular user on a scan not from their org should fail +@pytest.mark.django_db(transaction=True) +def test_get_by_regular_user_fails(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="censys", arguments="{}", frequency=999999) + + response = client.get( + f"/scans/{scan.id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +# Test: scheduler invoke by globalAdmin should succeed +@pytest.mark.django_db(transaction=True) +@patch("xfd_api.tasks.lambda_client.LambdaClient.run_command") +def test_scheduler_invoke_by_global_admin(mock_scheduler): + """Test scan.""" + mock_scheduler.return_value = {} + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.post( + "/scheduler/invoke", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + print(response.json()) + assert response.status_code == 200 + assert response.json() == {} + mock_scheduler.assert_called_once() + + +# Test: scheduler invoke by globalView should fail +@pytest.mark.django_db(transaction=True) +@patch("xfd_api.tasks.lambda_client.LambdaClient.run_command") +def test_scheduler_invoke_by_global_view_fails(mock_scheduler): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.post( + "/scheduler/invoke", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + mock_scheduler.assert_not_called() + + +# Test: run scan should set manualRunPending to true +@pytest.mark.django_db(transaction=True) +def test_run_scan_should_set_manualRunPending_to_true(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create( + name="censys", + arguments="{}", + frequency=999999, + lastRun=datetime.now(), + ) + + response = client.post( + f"/scans/{scan.id}/run", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + +# Test: runScan by globalView should fail +@pytest.mark.django_db(transaction=True) +def test_run_scan_by_global_view_fails(): + """Test scan.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create( + name="censys", + arguments="{}", + frequency=999999, + lastRun=datetime.now(), + ) + + response = client.post( + f"/scans/{scan.id}/run", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} diff --git a/backend/src/xfd_django/xfd_api/tests/test_scan_task.py b/backend/src/xfd_django/xfd_api/tests/test_scan_task.py new file mode 100644 index 00000000..f8da19b6 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_scan_task.py @@ -0,0 +1,316 @@ +"""Test scan task.""" +# Standard Python Libraries +from datetime import datetime +import secrets +from unittest.mock import patch + +# Third-Party Libraries +from fastapi.testclient import TestClient +import pytest +from xfd_api.auth import create_jwt_token +from xfd_api.models import Organization, Role, Scan, ScanTask, User, UserType +from xfd_django.asgi import app + +client = TestClient(app) + + +# Test: list by globalView should return scan tasks +@pytest.mark.django_db(transaction=True) +def test_list_scan_tasks_by_global_view(): + """Test scan-task.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="findomain", arguments={}, frequency=100) + scan_task = ScanTask.objects.create(scan=scan, type="fargate", status="failed") + scan_task.organizations.add(organization) + + response = client.post( + "/scan-tasks/search", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["count"] >= 1 + assert any(task["id"] == str(scan_task.id) for task in data["result"]) + + +# Test: list by globalView with filter should return filtered scan tasks +@pytest.mark.django_db(transaction=True) +def test_list_filtered_scan_tasks_by_global_view(): + """Test scan-task.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="findomain", arguments={}, frequency=100) + scan_task = ScanTask.objects.create(scan=scan, type="fargate", status="failed") + scan_task.organizations.add(organization) + + scan2 = Scan.objects.create(name="censys", arguments={}, frequency=100) + scan_task2 = ScanTask.objects.create(scan=scan2, type="fargate", status="failed") + scan_task2.organizations.add(organization) + + response = client.post( + "/scan-tasks/search", + json={"filters": {"name": "findomain"}}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + print(response.json()) + + assert response.status_code == 200 + data = response.json() + assert data["count"] >= 1 + assert any(task["id"] == str(scan_task.id) for task in data["result"]) + assert all(task["scan"]["name"] == "findomain" for task in data["result"]) + + +# Test: list by regular user should fail +@pytest.mark.django_db(transaction=True) +def test_list_scan_tasks_by_regular_user_fails(): + """Test scan-task.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + Role.objects.create(user=user, organization=organization, role="user") + + response = client.post( + "/scan-tasks/search", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access. View logs for details."} + + +# Test: kill by globalAdmin should kill the scan task +@pytest.mark.django_db(transaction=True) +def test_kill_scan_task_by_global_admin(): + """Test scan-task.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="findomain", arguments={}, frequency=100) + scan_task = ScanTask.objects.create(scan=scan, type="fargate", status="created") + scan_task.organizations.add(organization) + + response = client.post( + f"/scan-tasks/{scan_task.id}/kill", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + print(response.json) + assert response.status_code == 200 + + +# Test: kill by globalAdmin should not work on a finished scan task +@pytest.mark.django_db(transaction=True) +def test_kill_finished_scan_task_by_global_admin_fails(): + """Test scan-task.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="findomain", arguments={}, frequency=100) + scan_task = ScanTask.objects.create(scan=scan, type="fargate", status="finished") + scan_task.organizations.add(organization) + + response = client.post( + f"/scan-tasks/{scan_task.id}/kill", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 400 + assert "already finished" in response.text + + +# Test: kill by globalView should fail +@pytest.mark.django_db(transaction=True) +def test_kill_scan_task_by_global_view_fails(): + """Test scan-task.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="findomain", arguments={}, frequency=100) + scan_task = ScanTask.objects.create(scan=scan, type="fargate", status="created") + scan_task.organizations.add(organization) + + response = client.post( + f"/scan-tasks/{scan_task.id}/kill", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access. View logs for details."} + + +# Test: logs by globalView user should get logs +@pytest.mark.django_db(transaction=True) +@patch("xfd_api.tasks.ecs_client.ECSClient.get_logs") +def test_get_logs_by_global_view(mock_get_logs): + """Test scan-task.""" + mock_get_logs.return_value = "logs" + + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="findomain", arguments={}, frequency=100) + scan_task = ScanTask.objects.create( + scan=scan, fargateTaskArn="fargateTaskArn", type="fargate", status="started" + ) + scan_task.organizations.add(organization) + + response = client.get( + f"/scan-tasks/{scan_task.id}/logs", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + assert response.text == "logs" + # Mock assertion to ensure logs fetching is called with the correct ARN + mock_get_logs.assert_called_with("fargateTaskArn") + + +# Test: logs by regular user should fail +@pytest.mark.django_db(transaction=True) +@patch("xfd_api.tasks.ecs_client.ECSClient.get_logs") +def test_get_logs_by_regular_user_fails(mock_get_logs): + """Test scan-task.""" + mock_get_logs.return_value = "logs" + + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=["test-" + secrets.token_hex(4)], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + scan = Scan.objects.create(name="findomain", arguments={}, frequency=100) + scan_task = ScanTask.objects.create( + scan=scan, fargateTaskArn="fargateTaskArn", type="fargate", status="started" + ) + scan_task.organizations.add(organization) + + response = client.get( + f"/scan-tasks/{scan_task.id}/logs", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access. View logs for details."} + mock_get_logs.assert_not_called() diff --git a/backend/src/xfd_django/xfd_api/tests/test_search.py b/backend/src/xfd_django/xfd_api/tests/test_search.py new file mode 100644 index 00000000..29d44837 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_search.py @@ -0,0 +1,52 @@ +"""Test search.""" +# Third-Party Libraries +from fastapi.testclient import TestClient + +# from xfd_api.views import api_router +from xfd_django.asgi import app + +client = TestClient(app) + +# Example search body to use for testing +search_body = { + "current": 1, + "results_per_page": 10, + "search_term": "example search term", + "sort_direction": "asc", + "sort_field": "createdAt", + "filters": [{"field": "organization.id", "values": ["1", "2", "3"], "type": "any"}], + "organization_ids": ["f834b2f8-3c10-4d3a-8ec7-9fc57b88c9e5"], + "organization_id": "f834b2f8-3c10-4d3a-8ec7-9fc57b88c9e5", + "tag_id": "a93a5d1b-1234-4567-890a-bc1234567890", +} + +# TODO: Complete tests +# Test for /search endpoint +# def test_search_endpoint(): +# response = client.post("/search", json=search_body) +# assert response.status_code == 200 # Expecting HTTP 200 OK +# data = response.json() +# assert "current" in data # Check if the expected field is in the response +# assert data["current"] == 1 # Ensure the current value matches the request + + +# # Test for /search/export endpoint +# def test_search_export_endpoint(): +# response = client.post("/search/export", json=search_body) +# assert response.status_code == 200 # Expecting HTTP 200 OK +# data = response.json() +# assert "url" in data # Check if the response contains the CSV URL + + +# # Test for invalid request to /search endpoint (missing required fields) +# def test_search_invalid_request(): +# invalid_body = {"current": 1} # Missing many required fields +# response = client.post("/search", json=invalid_body) +# assert response.status_code == 422 # Expecting validation error + + +# # Test for invalid request to /search/export endpoint (missing required fields) +# def test_search_export_invalid_request(): +# invalid_body = {"current": 1} # Missing many required fields +# response = client.post("/search/export", json=invalid_body) +# assert response.status_code == 422 # Expecting validation error diff --git a/backend/src/xfd_django/xfd_api/tests/test_user.py b/backend/src/xfd_django/xfd_api/tests/test_user.py new file mode 100644 index 00000000..2550c592 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_user.py @@ -0,0 +1,660 @@ +"""Test user.""" +# Standard Python Libraries +from datetime import datetime +import secrets +from unittest.mock import patch + +# Third-Party Libraries +from fastapi.testclient import TestClient +import pytest +from xfd_api.auth import create_jwt_token +from xfd_api.models import Organization, Role, User, UserType +from xfd_django.asgi import app + +client = TestClient(app) + + +@pytest.mark.django_db(transaction=True) +def test_invite_by_regular_user_should_not_work(): + """Invite by a regular user should not work.""" + user = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=[f"test-{secrets.token_hex(4)}"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign standard user role to the user for the organization + Role.objects.create( + user=user, + organization=organization, + role="user", + ) + + response = client.post( + "/users", + json={ + "firstName": "first name", + "lastName": "last name", + "email": f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + }, + headers={"Authorization": f"Bearer {create_jwt_token(user)}"}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +@pytest.mark.django_db(transaction=True) +def test_invite_by_global_admin_should_work(): + """Invite by a global admin should work.""" + user = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + response = client.post( + "/users", + json={"firstName": "first name", "lastName": "last name", "email": email}, + headers={"Authorization": f"Bearer {create_jwt_token(user)}"}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["email"] == email + assert data["invitePending"] is True + assert data["firstName"] == "first name" + assert data["lastName"] == "last name" + assert data["roles"] == [] + assert data["userType"] == UserType.STANDARD + + +@pytest.mark.django_db(transaction=True) +def test_invite_by_global_admin_with_user_type_setting(): + """Invite by a global admin should work if setting user type.""" + user = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + response = client.post( + "/users", + json={ + "firstName": "first name", + "lastName": "last name", + "email": email, + "userType": UserType.GLOBAL_ADMIN, + }, + headers={"Authorization": f"Bearer {create_jwt_token(user)}"}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["email"] == email + assert data["invitePending"] is True + assert data["firstName"] == "first name" + assert data["lastName"] == "last name" + assert data["roles"] == [] + assert data["userType"] == UserType.GLOBAL_ADMIN + + +@pytest.mark.django_db(transaction=True) +def test_invite_by_global_view_should_not_work(): + """Invite by a global view should not work.""" + user = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + response = client.post( + "/users", + json={ + "firstName": "first name", + "lastName": "last name", + "email": f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + }, + headers={"Authorization": f"Bearer {create_jwt_token(user)}"}, + ) + + print(response.json()) + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +@pytest.mark.django_db(transaction=True) +def test_invite_by_organization_admin_should_work(): + """Invite by an organization admin should work.""" + user = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=[f"test-{secrets.token_hex(4)}"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + # Assign admin role to the user for the organization + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + print("here") + response = client.post( + "/users", + json={ + "firstName": "first name", + "lastName": "last name", + "email": email, + "organization": str(organization.id), + "organizationAdmin": False, + }, + headers={"Authorization": f"Bearer {create_jwt_token(user)}"}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["email"] == email + assert data["invitePending"] is True + assert data["firstName"] == "first name" + assert data["lastName"] == "last name" + assert data["roles"][0]["approved"] is True + assert data["roles"][0]["role"] == "user" + assert data["roles"][0]["organization"]["id"] == str(organization.id) + + +@pytest.mark.django_db(transaction=True) +def test_invite_by_organization_admin_should_not_work_if_setting_user_type(): + """Invite by an organization admin should not work if setting user type.""" + user = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=[f"test-{secrets.token_hex(4)}"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + # Assign admin role to the user for the organization + Role.objects.create( + user=user, + organization=organization, + role="admin", + ) + + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + response = client.post( + "/users", + json={ + "firstName": "first name", + "lastName": "last name", + "email": email, + "organization": str(organization.id), + "organizationAdmin": False, + "userType": UserType.GLOBAL_ADMIN, + }, + headers={"Authorization": f"Bearer {create_jwt_token(user)}"}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +@pytest.mark.django_db(transaction=True) +def test_invite_existing_user_by_different_org_admin_should_not_modify_other_user_details(): + """Invite existing user by a different organization admin should work, and should not modify other user details.""" + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=[f"test-{secrets.token_hex(4)}"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + organization2 = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=[f"test-{secrets.token_hex(4)}"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + user = User.objects.create( + firstName="first name", lastName="last name", email=email + ) + Role.objects.create( + role="user", approved=False, organization=organization, user=user + ) + + user2 = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign admin role to the user for the organization + Role.objects.create( + user=user2, + organization=organization2, + role="admin", + ) + + response = client.post( + "/users", + json={ + "firstName": "new first name", + "lastName": "new last name", + "email": email, + "organization": str(organization2.id), + "organizationAdmin": False, + }, + headers={"Authorization": f"Bearer {create_jwt_token(user2)}"}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["id"] == str(user.id) + assert data["email"] == email + assert data["invitePending"] is False + assert data["firstName"] == "first name" + assert data["lastName"] == "last name" + role_for_org2 = [ + role + for role in data["roles"] + if role["organization"]["id"] == str(organization2.id) + ] + assert role_for_org2, f"No role found for organization {organization2.id}" + assert role_for_org2[0]["approved"] is True + assert role_for_org2[0]["role"] == "user" + + +@pytest.mark.django_db(transaction=True) +def test_invite_existing_user_by_different_org_admin_should_modify_user_name_if_initially_blank(): + """Invite existing user by a different organization admin should modify user name if user name is initially blank.""" + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=[f"test-{secrets.token_hex(4)}"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + organization2 = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=[f"test-{secrets.token_hex(4)}"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + user = User.objects.create(firstName="", lastName="", email=email) + Role.objects.create( + role="user", approved=False, organization=organization, user=user + ) + + user2 = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign admin role to the user for the organization + Role.objects.create( + user=user2, + organization=organization2, + role="admin", + ) + + response = client.post( + "/users", + json={ + "firstName": "new first name", + "lastName": "new last name", + "email": email, + "organization": str(organization2.id), + "organizationAdmin": False, + }, + headers={"Authorization": f"Bearer {create_jwt_token(user2)}"}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["id"] == str(user.id) + assert data["email"] == email + assert data["invitePending"] is False + assert data["firstName"] == "new first name" + assert data["lastName"] == "new last name" + role_for_org2 = [ + role + for role in data["roles"] + if role["organization"]["id"] == str(organization2.id) + ] + assert role_for_org2, f"No role found for organization {organization2.id}" + assert role_for_org2[0]["approved"] is True + assert role_for_org2[0]["role"] == "user" + + +@pytest.mark.django_db(transaction=True) +def test_invite_existing_user_by_same_org_admin_should_update_user_org_role(): + """Invite existing user by same organization admin should work, and should update the user organization role.""" + organization = Organization.objects.create( + name=f"test-{secrets.token_hex(4)}", + rootDomains=[f"test-{secrets.token_hex(4)}"], + ipBlocks=[], + isPassive=False, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + admin_user = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + ) + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + user = User.objects.create(firstName="first", lastName="last", email=email) + Role.objects.create( + role="user", + approved=False, + organization=organization, + user=user, + createdBy=admin_user, + approvedBy=admin_user, + ) + + user2 = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.STANDARD, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Assign admin role to the user for the organization + Role.objects.create( + user=user2, + organization=organization, + role="admin", + ) + + response = client.post( + "/users", + json={ + "firstName": "first", + "lastName": "last", + "email": email, + "organization": str(organization.id), + "organizationAdmin": True, + }, + headers={"Authorization": f"Bearer {create_jwt_token(user2)}"}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["id"] == str(user.id) + assert data["email"] == email + assert data["invitePending"] is False + assert data["firstName"] == "first" + assert data["lastName"] == "last" + assert data["roles"][0]["approved"] is True + assert data["roles"][0]["role"] == "admin" + + +@pytest.mark.django_db(transaction=True) +def test_invite_existing_user_by_global_admin_should_update_user_type(): + """Invite existing user by global admin that updates user type should work.""" + User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + ) + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + user = User.objects.create(firstName="first", lastName="last", email=email) + + user2 = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.post( + "/users", + json={ + "firstName": "first", + "lastName": "last", + "email": email, + "userType": UserType.GLOBAL_ADMIN, + }, + headers={"Authorization": f"Bearer {create_jwt_token(user2)}"}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["id"] == str(user.id) + assert data["email"] == email + assert data["invitePending"] is False + assert data["firstName"] == "first" + assert data["lastName"] == "last" + assert data["roles"] == [] + assert data["userType"] == UserType.GLOBAL_ADMIN + + +@pytest.mark.django_db(transaction=True) +def test_invite_existing_user_by_global_view_should_not_work(): + """Invite existing user by global view should not work.""" + User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + ) + email = f"{secrets.token_hex(4)}@crossfeed.cisa.gov" + User.objects.create(firstName="first", lastName="last", email=email) + + user2 = User.objects.create( + firstName="first", + lastName="last", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.GLOBAL_VIEW, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.post( + "/users", + json={"firstName": "first", "lastName": "last", "email": email}, + headers={"Authorization": f"Bearer {create_jwt_token(user2)}"}, + ) + + assert response.status_code == 403 + assert response.json() == {"detail": "Unauthorized access."} + + +@pytest.mark.django_db(transaction=True) +@patch("xfd_api.api_methods.user.send_registration_approved_email") +def test_register_approve_success(mock_email): + """Test successful user registration approval.""" + mock_email.return_value = "test" + current_user = User.objects.create( + firstName="Admin", + lastName="User", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.GLOBAL_ADMIN, + regionId="region-1", + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + user_to_approve = User.objects.create( + firstName="Test", + lastName="User", + email=f"{secrets.token_hex(4)}@example.com", + regionId="region-1", + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + # Mock email sending + response = client.put( + f"/users/{user_to_approve.id}/register/approve", + headers={"Authorization": f"Bearer {create_jwt_token(current_user)}"}, + ) + + assert response.status_code == 200 + data = response.json() + assert data["body"] == "User registration approved." + mock_email.assert_called_once_with( + user_to_approve.email, + subject="CyHy Dashboard Registration Approved", + first_name=user_to_approve.firstName, + last_name=user_to_approve.lastName, + template="crossfeed_approval_notification.html", + ) + + +@pytest.mark.django_db(transaction=True) +def test_register_approve_unauthorized_region(): + """Test approval with unauthorized region access.""" + current_user = User.objects.create( + firstName="Admin", + lastName="User", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.REGIONAL_ADMIN, + regionId="1", + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + user_to_approve = User.objects.create( + firstName="Test", + lastName="User", + email=f"{secrets.token_hex(4)}@example.com", + regionId="2", + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.put( + f"/users/{user_to_approve.id}/register/approve", + headers={"Authorization": f"Bearer {create_jwt_token(current_user)}"}, + ) + + assert response.status_code == 403 + assert response.json()["detail"] == "Unauthorized region access." + + +@pytest.mark.django_db(transaction=True) +@patch("xfd_api.api_methods.user.send_registration_denied_email") +def test_register_deny_success(mock_denied_email): + """Test successful user registration denial.""" + mock_denied_email.return_value = "test" + current_user = User.objects.create( + firstName="Admin", + lastName="User", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.GLOBAL_ADMIN, + regionId="1", + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + user_to_deny = User.objects.create( + firstName="Test", + lastName="User", + email=f"{secrets.token_hex(4)}@example.com", + regionId="1", + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + response = client.put( + f"/users/{user_to_deny.id}/register/deny", + headers={"Authorization": f"Bearer {create_jwt_token(current_user)}"}, + ) + + assert response.status_code == 200 + assert response.json()["body"] == "User registration denied." + mock_denied_email.assert_called_once_with( + user_to_deny.email, + subject="CyHy Dashboard Registration Denied", + first_name=user_to_deny.firstName, + last_name=user_to_deny.lastName, + template="crossfeed_denial_notification.html", + ) + + +@pytest.mark.django_db(transaction=True) +def test_register_deny_unauthorized_region(): + """Test registration denial with unauthorized region access.""" + current_user = User.objects.create( + firstName="Admin", + lastName="User", + email=f"{secrets.token_hex(4)}@crossfeed.cisa.gov", + userType=UserType.REGIONAL_ADMIN, + regionId="1", + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + user_to_deny = User.objects.create( + firstName="Test", + lastName="User", + email=f"{secrets.token_hex(4)}@example.com", + regionId="2", + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + + response = client.put( + f"/users/{user_to_deny.id}/register/deny", + headers={"Authorization": f"Bearer {create_jwt_token(current_user)}"}, + ) + + print(response.json()) + assert response.status_code == 403 + assert response.json()["detail"] == "Unauthorized region access." diff --git a/backend/src/xfd_django/xfd_api/tests/test_vulnerabilities.py b/backend/src/xfd_django/xfd_api/tests/test_vulnerabilities.py new file mode 100644 index 00000000..bfb3c62b --- /dev/null +++ b/backend/src/xfd_django/xfd_api/tests/test_vulnerabilities.py @@ -0,0 +1,576 @@ +"""Test vulnerability.""" +# Standard Python Libraries +from datetime import datetime +import logging +import secrets + +# Configure logging +logging.basicConfig(level=logging.DEBUG) # Set the logging level to DEBUG +logger = logging.getLogger(__name__) + + +# Third-Party Libraries +from fastapi.testclient import TestClient +import pytest +from xfd_api.auth import create_jwt_token +from xfd_api.models import Domain, Organization, Service, User, UserType, Vulnerability +from xfd_django.asgi import app + +client = TestClient(app) + +bad_id = "c0effe93-3647-475a-a0c5-0b629c348590" +search_fields = { + "title": "DNS Twist Domains", + "cpe": "cpe:/a:openbsd:openssh:7.4", + "severity": "Low", + "state": "open", + "substate": "unconfirmed", + "isKev": False, +} + + +@pytest.fixture +def user(): + """Create user fixture.""" + user = User.objects.create( + firstName="", + lastName="", + email=f"{secrets.token_hex(4)}@example.com", + userType=UserType.GLOBAL_ADMIN, + createdAt=datetime.now(), + updatedAt=datetime.now(), + ) + yield user + user.delete() # Clean up after the test + + +@pytest.fixture +def organization(): + """Create org fixture.""" + organization = Organization.objects.create( + name="Test Organization", + rootDomains=["crossfeed.local"], + ipBlocks=[], + isPassive=False, + ) + yield organization + organization.delete() + + +@pytest.fixture +def domain(organization): + """Create domain fixture.""" + domain = Domain.objects.create( + reverseName="local.crossfeed.example", + ip="127.116.195.151", # Ensure this IP is the one you expect + organization=organization, + name="example.crossfeed.local", + isFceb=True, + ) + assert domain.organization == organization + yield domain + domain.delete() + + +@pytest.fixture +def service(domain): + """Create service fixture.""" + service = Service.objects.create( + serviceSource="shodan", + port="80", + service="http", + products="test test test", + censysIpv4Results={}, + intrigueIdentResults={}, + shodanResults={}, + wappalyzerResults=[], + domain=domain, + ) + assert service.domain == domain + yield service + service.delete() + + +@pytest.fixture +def vulnerability(domain, service): + """Create user fixture.""" + vulnerability = Vulnerability.objects.create( + title=search_fields["title"], + cpe=search_fields["cpe"], + severity=search_fields["severity"], + description="Test description", + references=[], + needsPopulation=False, + state=search_fields["state"], + substate=search_fields["substate"], + source="test", + notes="test", + actions=[], + structuredData={}, + isKev=search_fields["isKev"], + domain=domain, + service=service, + ) + assert vulnerability.domain == domain + assert vulnerability.service == service + assert vulnerability.title == search_fields["title"] + assert vulnerability.cpe == search_fields["cpe"] + assert vulnerability.severity == search_fields["severity"] + assert vulnerability.state == search_fields["state"] + assert vulnerability.substate == search_fields["substate"] + assert vulnerability.isKev == search_fields["isKev"] + yield vulnerability + vulnerability.delete() + + +@pytest.fixture +def old_vulnerability(): + """Create vuln fixture.""" + vulnerability = Vulnerability.objects.create( + title="Old Vulnerability", + description="Old description.", + severity="Medium", + cvss=5.0, + createdAt=datetime.now(), + updatedAt=datetime.now(), + needsPopulation=True, + source="source1", + notes="old notes", + actions=[], + structuredData={}, + isKev=False, + kevResults={}, + domain_id="", + service_id="", + ) + yield vulnerability + vulnerability.delete() + + +@pytest.mark.django_db(transaction=True) +def test_get_vulnerability_by_id(user, vulnerability): + """Test vulnerability.""" + # Get vulnerability by Id. + response = client.get( + f"/vulnerabilities/{str(vulnerability.id)}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + data = response.json() + + assert response.status_code == 200 + assert data["id"] == str(vulnerability.id) + assert data["domain"]["id"] == str(vulnerability.domain.id) + assert data["severity"] == vulnerability.severity + + +@pytest.mark.django_db(transaction=True) +def test_get_vulnerability_by_id_fails_404(user, vulnerability): + """Test vulnerability.""" + # Get error 404 if vulnerability does not exist + response = client.get( + f"/vulnerabilities/{bad_id}", + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 404 + + +@pytest.mark.django_db(transaction=True) +def test_update_vulnerability(user, vulnerability): + """Test vulnerability.""" + original_vuln_id = str(vulnerability.id) + new_data = { + "id": str(vulnerability.id), + "createdAt": str(vulnerability.createdAt), + "updatedAt": str(datetime.now()), + "lastSeen": str(datetime.now()), + "title": "Updated Vulnerability", + "cve": vulnerability.cve, + "cwe": vulnerability.cwe, + "cpe": vulnerability.cpe, + "description": "Updated description.", + "references": None, + "severity": "Medium", + "cvss": None, + "needsPopulation": False, + "state": vulnerability.state, + "substate": vulnerability.substate, + "source": "source2", + "notes": "updated notes", + "actions": ["action1"], + "structuredData": {"key": "value"}, + "isKev": True, + "domain_id": str(vulnerability.domain.id), + "service_id": str(vulnerability.service.id), + } + + response = client.put( + f"/vulnerabilities/{str(vulnerability.id)}", + json=new_data, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + vulnerability.refresh_from_db() + assert vulnerability.title == new_data["title"] + assert vulnerability.description == new_data["description"] + assert vulnerability.needsPopulation == new_data["needsPopulation"] + assert vulnerability.source == new_data["source"] + assert vulnerability.notes == new_data["notes"] + assert vulnerability.severity == new_data["severity"] + assert vulnerability.cvss == new_data["cvss"] + assert vulnerability.isKev == new_data["isKev"] + assert vulnerability.actions == new_data["actions"] + + assert str(vulnerability.id) == original_vuln_id + + +@pytest.mark.django_db(transaction=True) +def test_update_vulnerability_fails_404(user, vulnerability): + """Test vulnerability.""" + new_data = { + "id": str(vulnerability.id), + "createdAt": str(vulnerability.createdAt), + "updatedAt": str(datetime.now()), + "lastSeen": str(datetime.now()), + "title": "Updated Vulnerability", + "cve": vulnerability.cve, + "cwe": vulnerability.cwe, + "cpe": vulnerability.cpe, + "description": "Updated description.", + "references": None, + "severity": "Medium", + "cvss": 7.5, + "needsPopulation": False, + "state": vulnerability.state, + "substate": vulnerability.substate, + "source": "source2", + "notes": "updated notes", + "actions": ["action1"], + "structuredData": {"key": "value"}, + "isKev": True, + "domain_id": str(vulnerability.domain.id), + "service_id": str(vulnerability.service.id), + } + + response = client.put( + f"/vulnerabilities/{bad_id}", + json=new_data, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 404 + + +@pytest.mark.django_db(transaction=True) +def test_update_vulnerability_fails_422(user, vulnerability): + """Test vulnerability.""" + new_data = { + "title": "Updated Vulnerability", + "cve": vulnerability.cve, + "cwe": vulnerability.cwe, + "cpe": vulnerability.cpe, + "description": "Updated description.", + "references": None, + "severity": "High", + "cvss": 7.5, + "needsPopulation": False, + "state": vulnerability.state, + "substate": vulnerability.substate, + "source": "source2", + "notes": "updated notes", + "actions": ["action1"], + "structuredData": {"key": "value"}, + "isKev": True, + "domain_id": None, + "service_id": None, + } + + response = client.put( + f"/vulnerabilities/{vulnerability.id}", + json=new_data, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + assert response.status_code == 422 + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_id(user, vulnerability): + """Test vulnerability.""" + # Search vulnerabilities by ip. + response = client.post( + "/vulnerabilities/search", + json={"page": 1, "filters": {"id": str(vulnerability.id)}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given ID" + for vuln in data["result"]: + assert vuln["id"] == str( + vulnerability.id + ), f"Vulnerability ID {vuln['id']} does not match the expected {vulnerability.id}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_title(user, vulnerability): + """Test vulnerability.""" + # Test search vulnerabilities by title + + response = client.post( + "/vulnerabilities/search", + json={"page": 1, "filters": {"title": search_fields["title"]}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given title" + for vuln in data["result"]: + assert ( + vuln["title"] == search_fields["title"] + ), f"Vulnerability title {vuln['title']} does not match the expected {search_fields['title']}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_cpe(user, vulnerability): + """Test vulnerability.""" + # Test search vulnerabilities by cpe + response = client.post( + "/vulnerabilities/search", + json={"page": 1, "filters": {"cpe": search_fields["cpe"]}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given CPE" + + for vuln in data["result"]: + assert ( + vuln["cpe"] == search_fields["cpe"] + ), f"Vulnerability CPE {vuln['cpe']} does not match the expected {search_fields['cpe']}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_severity(user, vulnerability): + """Test vulnerability.""" + # Test search vulnerabilities by severity + response = client.post( + "/vulnerabilities/search", + json={ + "page": 1, + "filters": {"severity": search_fields["severity"]}, + "pageSize": 25, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + data = response.json() + + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + + assert len(data["result"]) > 0, "No result found for the given severity" + + for vuln in data["result"]: + assert ( + vuln["severity"] == search_fields["severity"] + ), f"Vulnerability severity {vuln['severity']} does not match the expected {search_fields['severity']}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_domain_id(user, vulnerability): + """Test vulnerability.""" + # Test search vulnerabilities by domain id + domain_name = str(vulnerability.domain.name) + response = client.post( + "/vulnerabilities/search", + json={"page": 1, "filters": {"domain": domain_name}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + data = response.json() + + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No vulnerabilities found for the given domain" + + for vuln in data["result"]: + assert ( + str(vuln["domain"]["name"]) == domain_name + ), f"Vulnerability with ID {vuln['id']} does not have the expected domain_id {domain_name}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_state(user, vulnerability): + """Test vulnerability.""" + state_to_search = search_fields["state"] + + response = client.post( + "/vulnerabilities/search", + json={"page": 1, "filters": {"state": state_to_search}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + data = response.json() + + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No vulnerabilities found for the given state" + + for vuln in data["result"]: + assert ( + vuln["state"] == state_to_search + ), f"Vulnerability with ID {vuln['id']} does not have the expected state {state_to_search}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_substate(user, vulnerability): + """Test vulnerability.""" + substate_to_search = search_fields["substate"] + + response = client.post( + "/vulnerabilities/search", + json={"page": 1, "filters": {"substate": substate_to_search}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + data = response.json() + + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No vulnerabilities found for the given substate" + + for vuln in data["result"]: + assert ( + vuln["substate"] == substate_to_search + ), f"Vulnerability with ID {vuln['id']} does not have the expected substate {substate_to_search}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_organization_id(user, vulnerability): + """Test vulnerability.""" + organization_id = str(vulnerability.domain.organization.id) + + response = client.post( + "/vulnerabilities/search", + json={ + "page": 1, + "filters": {"organization": organization_id}, + "pageSize": 25, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + data = response.json() + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert len(data["result"]) > 0, "No result found for the given organization" + + for vulnerability_data in data["result"]: + domain_id = vulnerability_data.get("domain_id", None) + if domain_id: + domain = Domain.objects.get(id=domain_id) + assert ( + str(domain.organization.id) == organization_id + ), f"Vulnerability with ID {vulnerability_data.get('id', 'N/A')} does not belong to the expected organization" + else: + print( + f"Warning: 'domain_id' key not found in vulnerability with ID {vulnerability_data.get('id', 'N/A')}" + ) + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_is_kev(user, vulnerability): + """Test vulnerability.""" + is_kev_to_search = search_fields["isKev"] + + response = client.post( + "/vulnerabilities/search", + json={"page": 1, "filters": {"isKev": is_kev_to_search}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + data = response.json() + + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert ( + len(data["result"]) > 0 + ), f"No vulnerabilities found for the given isKev value {is_kev_to_search}" + + for vuln in data["result"]: + assert ( + vuln["isKev"] == is_kev_to_search + ), f"Vulnerability with ID {vuln['id']} does not have the expected 'isKev' value {is_kev_to_search}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_by_multiple_criteria(user, vulnerability): + """Test vulnerability.""" + state_to_search = search_fields["state"] + substate_to_search = search_fields["substate"] + + response = client.post( + "/vulnerabilities/search", + json={ + "page": 1, + "filters": { + "state": state_to_search, + "substate": substate_to_search, + }, + "pageSize": 25, + }, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 200 + + data = response.json() + + assert data is not None, "Response is empty" + assert "result" in data, "Response does not contain 'result' key" + assert ( + len(data["result"]) > 0 + ), f"No vulnerabilities found for the given 'state' = {state_to_search} and 'substate' = {substate_to_search}" + + for vuln in data["result"]: + assert ( + vuln["state"] == state_to_search + ), f"Vulnerability with ID {vuln['id']} does not have the expected 'state' value {state_to_search}" + assert ( + vuln["substate"] == substate_to_search + ), f"Vulnerability with ID {vuln['id']} does not have the expected 'substate' value {substate_to_search}" + + +@pytest.mark.django_db(transaction=True) +def test_search_vulnerabilities_does_not_exist(user, vulnerability): + """Test vulnerability.""" + # Test search vulnerabilities by state + response = client.post( + "/vulnerabilities/search", + json={"page": 1, "filters": {"title": "Does Not Exist"}, "pageSize": 25}, + headers={"Authorization": "Bearer " + create_jwt_token(user)}, + ) + + assert response.status_code == 404 diff --git a/backend/src/xfd_django/xfd_api/views.py b/backend/src/xfd_django/xfd_api/views.py new file mode 100644 index 00000000..c3c2b569 --- /dev/null +++ b/backend/src/xfd_django/xfd_api/views.py @@ -0,0 +1,1259 @@ +"""This module defines the API endpoints for the FastAPI application.""" +# Standard Python Libraries +import os +from typing import List, Optional +from uuid import UUID + +# Third-Party Libraries +from fastapi import APIRouter, Body, Depends, HTTPException, Query, Request, status +from fastapi.responses import RedirectResponse +from redis import asyncio as aioredis + +# from .schemas import Cpe +from .api_methods import api_key as api_key_methods +from .api_methods import auth as auth_methods +from .api_methods import notification as notification_methods +from .api_methods import organization, proxy, scan, scan_tasks, user +from .api_methods.cpe import get_cpes_by_id +from .api_methods.cve import get_cves_by_id, get_cves_by_name +from .api_methods.domain import export_domains, get_domain_by_id, search_domains +from .api_methods.saved_search import ( + create_saved_search, + delete_saved_search, + get_saved_search, + list_saved_searches, + update_saved_search, +) +from .api_methods.search import search_export, search_post +from .api_methods.stats import ( + get_by_org_stats, + get_num_vulns, + get_severity_stats, + get_stats, + get_user_ports_count, + get_user_services_count, + stats_latest_vulns, + stats_most_common_vulns, +) +from .api_methods.user import ( + accept_terms, + delete_user, + get_me, + get_users, + get_users_by_region_id, + get_users_by_state, + get_users_v2, + update_user, + update_user_v2, +) +from .api_methods.vulnerability import ( + export_vulnerabilities, + get_vulnerability_by_id, + search_vulnerabilities, + update_vulnerability, +) +from .auth import get_current_active_user +from .login_gov import callback, login +from .models import User +from .schema_models import organization_schema as OrganizationSchema +from .schema_models import scan as scanSchema +from .schema_models import scan_tasks as scanTaskSchema +from .schema_models import stat_schema +from .schema_models.api_key import ApiKey as ApiKeySchema +from .schema_models.cpe import Cpe as CpeSchema +from .schema_models.cve import Cve as CveSchema +from .schema_models.domain import DomainSearch, DomainSearchResponse, GetDomainResponse +from .schema_models.notification import Notification as NotificationSchema +from .schema_models.saved_search import ( + SavedSearchCreate, + SavedSearchList, + SavedSearchUpdate, +) +from .schema_models.saved_search import SavedSearch as SavedSearchSchema +from .schema_models.search import DomainSearchBody, SearchResponse +from .schema_models.user import ( + NewUser, + NewUserResponseModel, + RegisterUserResponse, + UpdateUserV2, +) +from .schema_models.user import User as UserSchema +from .schema_models.user import UserResponseV2, VersionModel +from .schema_models.vulnerability import ( + VulnerabilitySearch, + VulnerabilitySearchResponse, +) +from .schema_models.vulnerability import GetVulnerabilityResponse +from .schema_models.vulnerability import Vulnerability as VulnerabilitySchema + +# Define API router +api_router = APIRouter() + + +async def default_identifier(request): + """Return default identifier.""" + return request.headers.get("X-Real-IP", request.client.host) + + +async def get_redis_client(request: Request): + """Get the Redis client from the application state.""" + return request.app.state.redis + + +# ======================================== +# Analytic Endpoints +# ======================================== + + +# Matomo Proxy +@api_router.api_route( + "/matomo/{path:path}", + dependencies=[Depends(get_current_active_user)], + tags=["Analytics"], +) +async def matomo_proxy( + path: str, request: Request, current_user: User = Depends(get_current_active_user) +): + """Proxy requests to the Matomo analytics instance.""" + # Public paths -- directly allowed + allowed_paths = ["/matomo.php", "/matomo.js"] + if any( + [request.url.path.startswith(allowed_path) for allowed_path in allowed_paths] + ): + return await proxy.proxy_request(path, request, os.getenv("MATOMO_URL")) + + # Redirects for specific font files + if request.url.path in [ + "/plugins/Morpheus/fonts/matomo.woff2", + "/plugins/Morpheus/fonts/matomo.woff", + "/plugins/Morpheus/fonts/matomo.ttf", + ]: + return RedirectResponse( + url=f"https://cdn.jsdelivr.net/gh/matomo-org/matomo@3.14.1{request.url.path}" + ) + + # Ensure only global admin can access other paths + if current_user.userType != "globalAdmin": + raise HTTPException(status_code=403, detail="Unauthorized") + + # Handle the proxy request to Matomo + return await proxy.proxy_request( + request, os.getenv("MATOMO_URL", ""), path, cookie_name="MATOMO_SESSID" + ) + + +# P&E Proxy +@api_router.api_route( + "/pe/{path:path}", + dependencies=[Depends(get_current_active_user)], + tags=["Analytics"], +) +async def pe_proxy( + path: str, request: Request, current_user: User = Depends(get_current_active_user) +): + """Proxy requests to the P&E Django application.""" + # Ensure only Global Admin and Global View users can access + if current_user.userType not in ["globalView", "globalAdmin"]: + raise HTTPException(status_code=403, detail="Unauthorized") + + # Handle the proxy request to the P&E Django application + return await proxy.proxy_request(request, os.getenv("PE_API_URL", ""), path) + + +# ======================================== +# API Key Endpoints +# ======================================== + + +# POST +@api_router.post("/api-keys", response_model=ApiKeySchema, tags=["API Keys"]) +async def create_api_key(current_user: User = Depends(get_current_active_user)): + """Create api key.""" + return api_key_methods.post(current_user) + + +# DELETE +@api_router.delete("/api-keys/{id}", tags=["API Keys"]) +async def delete_api_key( + api_key_id: str, current_user: User = Depends(get_current_active_user) +): + """Delete api key by id.""" + return api_key_methods.delete(api_key_id, current_user) + + +# GET ALL +@api_router.get("/api-keys", response_model=List[ApiKeySchema], tags=["API Keys"]) +async def get_all_api_keys(current_user: User = Depends(get_current_active_user)): + """Get all api keys.""" + return api_key_methods.get_all(current_user) + + +# GET BY ID +@api_router.get("/api-keys/{id}", response_model=ApiKeySchema, tags=["API Keys"]) +async def get_api_key( + api_key_id: str, current_user: User = Depends(get_current_active_user) +): + """Get api key by id.""" + return api_key_methods.get_by_id(api_key_id, current_user) + + +# ======================================== +# Auth Endpoints +# ======================================== + + +# Okta Callback +@api_router.post("/auth/okta-callback", tags=["Auth"]) +async def okta_callback(request: Request): + """Handle Okta Callback.""" + return await auth_methods.handle_okta_callback(request) + + +# Login +@api_router.get("/login", tags=["Auth"]) +async def login_route(): + """Handle V1 Login.""" + return login() + + +# V1 Callback +@api_router.post("/auth/callback", tags=["Auth"]) +async def callback_route(request: Request): + """Handle V1 Callback.""" + body = await request.json() + try: + user_info = callback(body) + return user_info + except Exception as error: + raise HTTPException(status_code=400, detail=str(error)) + + +# ======================================== +# CPE Endpoints +# ======================================== + + +@api_router.get( + "/cpes/{cpe_id}", + dependencies=[Depends(get_current_active_user)], + response_model=CpeSchema, + tags=["CPEs"], +) +async def call_get_cpes_by_id(cpe_id): + """Get Cpe by id.""" + return get_cpes_by_id(cpe_id) + + +# ======================================== +# CVE Endpoints +# ======================================== + + +@api_router.get( + "/cves/{cve_id}", + dependencies=[Depends(get_current_active_user)], + response_model=CveSchema, + tags=["CVEs"], +) +async def call_get_cves_by_id(cve_id): + """Get Cve by id.""" + return get_cves_by_id(cve_id) + + +@api_router.get( + "/cves/name/{cve_name}", + dependencies=[Depends(get_current_active_user)], + response_model=CveSchema, + tags=["CVEs"], +) +async def call_get_cves_by_name(cve_name): + """Get Cve by name.""" + return get_cves_by_name(cve_name) + + +# ======================================== +# Domain Endpoints +# ======================================== + + +@api_router.post( + "/domain/search", + dependencies=[Depends(get_current_active_user)], + response_model=DomainSearchResponse, + tags=["Domains"], +) +async def call_search_domains( + domain_search: DomainSearch, current_user: User = Depends(get_current_active_user) +): + """Call search domains.""" + domains, count = search_domains(domain_search, current_user) + return DomainSearchResponse(result=domains, count=count) + + +@api_router.post( + "/domain/export", + dependencies=[Depends(get_current_active_user)], + tags=["Domains"], +) +async def call_export_domains( + domain_search: DomainSearch, current_user: User = Depends(get_current_active_user) +): + """Call export domains.""" + try: + return export_domains(domain_search, current_user) + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +@api_router.get( + "/domain/{domain_id}", + dependencies=[Depends(get_current_active_user)], + response_model=GetDomainResponse, + tags=["Domains"], +) +async def call_get_domain_by_id(domain_id: str): + """Get domain by id.""" + return get_domain_by_id(domain_id) + + +# ======================================== +# Notification Endpoints +# ======================================== + + +# POST +@api_router.post( + "/notifications", response_model=NotificationSchema, tags=["Notifications"] +) +async def create_notification(current_user: User = Depends(get_current_active_user)): + """Create notification key.""" + # return notification_handler.post(current_user) + return [] + + +# DELETE +@api_router.delete( + "/notifications/{id}", response_model=NotificationSchema, tags=["Notifications"] +) +async def delete_notification( + notification_id: str, current_user: User = Depends(get_current_active_user) +): + """Delete notification by id.""" + return notification_methods.delete(notification_id, current_user) + + +# GET ALL: Doesn't require authentication +@api_router.get( + "/notifications", response_model=List[NotificationSchema], tags=["Notifications"] +) +async def get_all_notifications(): + """Get all notifications.""" + return notification_methods.get_all() + + +# GET BY ID +@api_router.get( + "/notifications/{id}", response_model=NotificationSchema, tags=["Notifications"] +) +async def get_notification( + notification_id: str, current_user: User = Depends(get_current_active_user) +): + """Get notification by id.""" + return notification_methods.get_by_id(notification_id, current_user) + + +# UPDATE BY ID +@api_router.put("/notifications/{id}", tags=["Notifications"]) +async def update_notification( + notification_id: str, current_user: User = Depends(get_current_active_user) +): + """Update notification key by id.""" + return notification_methods.delete(notification_id, current_user) + + +# TODO: Adding placeholder until we determine if we still need this. +# GET 508 Banner: Doesn't require authentication +# @api_router.get("/notifications/508-banner", tags=["Notifications"]) +# async def get_508_banner(): +# """Get notification by id.""" +# return notification_methods.get_508_banner() + + +# ======================================== +# Organization Endpoints +# ======================================== + + +@api_router.get( + "/organizations", + dependencies=[Depends(get_current_active_user)], + response_model=List[OrganizationSchema.GetOrganizationSchema], + tags=["Organizations"], +) +async def list_organizations(current_user: User = Depends(get_current_active_user)): + """Retrieve a list of all organizations.""" + return organization.list_organizations(current_user) + + +@api_router.get( + "/organizations/tags", + dependencies=[Depends(get_current_active_user)], + response_model=List[OrganizationSchema.GetTagSchema], + tags=["Organizations"], +) +async def get_organization_tags(current_user: User = Depends(get_current_active_user)): + """Retrieve a list of organization tags.""" + return organization.get_tags(current_user) + + +@api_router.get( + "/organizations/{organization_id}", + dependencies=[Depends(get_current_active_user)], + response_model=OrganizationSchema.GetSingleOrganizationSchema, + tags=["Organizations"], +) +async def get_organization( + organization_id: str, current_user: User = Depends(get_current_active_user) +): + """Retrieve an organization by its ID.""" + return organization.get_organization(organization_id, current_user) + + +@api_router.get( + "/organizations/state/{state}", + dependencies=[Depends(get_current_active_user)], + response_model=List[OrganizationSchema.GetOrganizationSchema], + tags=["Organizations"], +) +async def get_organizations_by_state( + state: str, current_user: User = Depends(get_current_active_user) +): + """Retrieve organizations by state.""" + return organization.get_by_state(state, current_user) + + +@api_router.get( + "/organizations/regionId/{region_id}", + dependencies=[Depends(get_current_active_user)], + response_model=List[OrganizationSchema.GetOrganizationSchema], + tags=["Organizations"], +) +async def get_organizations_by_region( + region_id: str, current_user: User = Depends(get_current_active_user) +): + """Retrieve organizations by region ID.""" + return organization.get_by_region(region_id, current_user) + + +@api_router.post( + "/organizations", + dependencies=[Depends(get_current_active_user)], + response_model=OrganizationSchema.GetSingleOrganizationSchema, + tags=["Organizations"], +) +async def create_organization( + organization_data: OrganizationSchema.NewOrganization, + current_user: User = Depends(get_current_active_user), +): + """Create a new organization.""" + return organization.create_organization(organization_data, current_user) + + +@api_router.post( + "/organizations_upsert", + dependencies=[Depends(get_current_active_user)], + response_model=OrganizationSchema.GetSingleOrganizationSchema, + tags=["Organizations"], +) +async def upsert_organization( + organization_data: OrganizationSchema.NewOrganization, + current_user: User = Depends(get_current_active_user), +): + """Upsert an organization.""" + return organization.upsert_organization(organization_data, current_user) + + +@api_router.put( + "/organizations/{organization_id}", + dependencies=[Depends(get_current_active_user)], + response_model=OrganizationSchema.GetSingleOrganizationSchema, + tags=["Organizations"], +) +async def update_organization( + organization_id: str, + org_data: OrganizationSchema.NewOrganization, + current_user: User = Depends(get_current_active_user), +): + """Update an organization by its ID.""" + return organization.update_organization(organization_id, org_data, current_user) + + +@api_router.delete( + "/organizations/{organization_id}", + dependencies=[Depends(get_current_active_user)], + response_model=OrganizationSchema.GenericMessageResponseModel, + tags=["Organizations"], +) +async def delete_organization( + organization_id: str, current_user: User = Depends(get_current_active_user) +): + """Delete an organization by its ID.""" + return organization.delete_organization(organization_id, current_user) + + +@api_router.post( + "/v2/organizations/{organization_id}/users", + dependencies=[Depends(get_current_active_user)], + tags=["Organizations"], +) +async def add_user_to_organization_v2( + organization_id: str, + user_data: OrganizationSchema.NewOrgUser, + current_user: User = Depends(get_current_active_user), +): + """Add a user to an organization.""" + return organization.add_user_to_org_v2(organization_id, user_data, current_user) + + +@api_router.post( + "/organizations/{organization_id}/roles/{role_id}/approve", + dependencies=[Depends(get_current_active_user)], + response_model=OrganizationSchema.GenericMessageResponseModel, + tags=["Organizations"], +) +async def approve_role( + organization_id: str, + role_id: str, + current_user: User = Depends(get_current_active_user), +): + """Approve a role within an organization.""" + return organization.approve_role(organization_id, role_id, current_user) + + +@api_router.post( + "/organizations/{organization_id}/roles/{role_id}/remove", + dependencies=[Depends(get_current_active_user)], + response_model=OrganizationSchema.GenericMessageResponseModel, + tags=["Organizations"], +) +async def remove_role( + organization_id: str, + role_id: str, + current_user: User = Depends(get_current_active_user), +): + """Remove a role from an organization.""" + return organization.remove_role(organization_id, role_id, current_user) + + +@api_router.post( + "/organizations/{organization_id}/granularScans/{scan_id}/update", + dependencies=[Depends(get_current_active_user)], + response_model=OrganizationSchema.GetSingleOrganizationSchema, + tags=["Organizations"], +) +async def update_granular_scan( + organization_id: str, + scan_id: str, + scan_data: OrganizationSchema.NewOrgScan, + current_user: User = Depends(get_current_active_user), +): + """Update a granular scan for an organization.""" + return organization.update_org_scan( + organization_id, scan_id, scan_data, current_user + ) + + +@api_router.get( + "/v2/organizations", + dependencies=[Depends(get_current_active_user)], + response_model=List[OrganizationSchema.GetOrganizationSchema], + tags=["Organizations"], +) +async def list_organizations_v2( + state: Optional[List[str]] = Query(None), + regionId: Optional[List[str]] = Query(None), + current_user: User = Depends(get_current_active_user), +): + """Retrieve a list of all organizations (version 2).""" + return organization.list_organizations_v2(state, regionId, current_user) + + +@api_router.post( + "/search/organizations", + dependencies=[Depends(get_current_active_user)], + tags=["Organizations"], +) +async def search_organizations( + search_body: OrganizationSchema.OrganizationSearchBody, + current_user: User = Depends(get_current_active_user), +): + """Search for organizations in Elasticsearch.""" + return organization.search_organizations_task(search_body, current_user) + + +# ======================================== +# Region Endpoints +# ======================================== + + +@api_router.get( + "/regions", + dependencies=[Depends(get_current_active_user)], + response_model=List[OrganizationSchema.RegionSchema], + tags=["Regions"], +) +async def list_regions(current_user: User = Depends(get_current_active_user)): + """Retrieve a list of all regions.""" + return organization.get_all_regions(current_user) + + +# ======================================== +# Saved Search Endpoints +# ======================================== + + +# Create a new saved search +@api_router.post( + "/saved-searches", + dependencies=[Depends(get_current_active_user)], + response_model=SavedSearchSchema, + tags=["Saved Searches"], +) +async def call_create_saved_search( + saved_search: SavedSearchCreate, + current_user: User = Depends(get_current_active_user), +): + """Create a new saved search.""" + request = { + "name": saved_search.name, + "count": saved_search.count, + "sortDirection": saved_search.sortDirection, + "sortField": saved_search.sortField, + "searchTerm": saved_search.searchTerm, + "searchPath": saved_search.searchPath, + "filters": saved_search.filters, + "createdById": current_user, + } + + return create_saved_search(request) + + +# Get all existing saved searches +@api_router.get( + "/saved-searches", + dependencies=[Depends(get_current_active_user)], + response_model=SavedSearchList, + tags=["Saved Searches"], +) +async def call_list_saved_searches(user: User = Depends(get_current_active_user)): + """Retrieve a list of all saved searches.""" + return list_saved_searches(user) + + +# Get individual saved search by ID +@api_router.get( + "/saved-searches/{saved_search_id}", + dependencies=[Depends(get_current_active_user)], + response_model=SavedSearchSchema, + tags=["Saved Searches"], +) +async def call_get_saved_search( + saved_search_id: str, current_user: User = Depends(get_current_active_user) +): + """Retrieve a saved search by its ID.""" + return get_saved_search(saved_search_id, current_user) + + +# Update saved search by ID +@api_router.put( + "/saved-searches/{saved_search_id}", + dependencies=[Depends(get_current_active_user)], + response_model=SavedSearchUpdate, + tags=["Saved Searches"], +) +async def call_update_saved_search( + saved_search: SavedSearchUpdate, + saved_search_id: str, + current_user: User = Depends(get_current_active_user), +): + """Update a saved search by its ID.""" + request = { + "saved_search_id": saved_search_id, + "name": saved_search.name, + "count": saved_search.count, + "searchTerm": saved_search.searchTerm, + "sortDirection": saved_search.sortDirection, + "sortField": saved_search.sortField, + "searchPath": saved_search.searchPath, + "filters": saved_search.filters, + } + + return update_saved_search(request, current_user) + + +# Delete saved search by ID +@api_router.delete( + "/saved-searches/{saved_search_id}", + dependencies=[Depends(get_current_active_user)], + tags=["Saved Searches"], +) +async def call_delete_saved_search( + saved_search_id: str, current_user: User = Depends(get_current_active_user) +): + """Delete a saved search by its ID.""" + return delete_saved_search(saved_search_id, current_user) + + +# ======================================== +# Scan Endpoints +# ======================================== + + +@api_router.get( + "/scans", + dependencies=[Depends(get_current_active_user)], + response_model=scanSchema.GetScansResponseModel, + tags=["Scans"], +) +async def list_scans(current_user: User = Depends(get_current_active_user)): + """Retrieve a list of all scans.""" + return scan.list_scans(current_user) + + +@api_router.get( + "/granularScans", + dependencies=[Depends(get_current_active_user)], + response_model=scanSchema.GetGranularScansResponseModel, + tags=["Scans"], +) +async def list_granular_scans(current_user: User = Depends(get_current_active_user)): + """Retrieve a list of granular scans. User must be authenticated.""" + return scan.list_granular_scans(current_user) + + +@api_router.post( + "/scans", + dependencies=[Depends(get_current_active_user)], + response_model=scanSchema.CreateScanResponseModel, + tags=["Scans"], +) +async def create_scan( + scan_data: scanSchema.NewScan, current_user: User = Depends(get_current_active_user) +): + """Create a new scan.""" + return scan.create_scan(scan_data, current_user) + + +@api_router.get( + "/scans/{scan_id}", + dependencies=[Depends(get_current_active_user)], + response_model=scanSchema.GetScanResponseModel, + tags=["Scans"], +) +async def get_scan(scan_id: str, current_user: User = Depends(get_current_active_user)): + """Get a scan by its ID. User must be authenticated.""" + return scan.get_scan(scan_id, current_user) + + +@api_router.put( + "/scans/{scan_id}", + dependencies=[Depends(get_current_active_user)], + response_model=scanSchema.CreateScanResponseModel, + tags=["Scans"], +) +async def update_scan( + scan_id: str, + scan_data: scanSchema.NewScan, + current_user: User = Depends(get_current_active_user), +): + """Update a scan by its ID.""" + return scan.update_scan(scan_id, scan_data, current_user) + + +@api_router.delete( + "/scans/{scan_id}", + dependencies=[Depends(get_current_active_user)], + response_model=scanSchema.GenericMessageResponseModel, + tags=["Scans"], +) +async def delete_scan( + scan_id: str, current_user: User = Depends(get_current_active_user) +): + """Delete a scan by its ID.""" + return scan.delete_scan(scan_id, current_user) + + +@api_router.post( + "/scans/{scan_id}/run", + dependencies=[Depends(get_current_active_user)], + response_model=scanSchema.GenericMessageResponseModel, + tags=["Scans"], +) +async def run_scan(scan_id: str, current_user: User = Depends(get_current_active_user)): + """Manually run a scan by its ID.""" + return scan.run_scan(scan_id, current_user) + + +@api_router.post( + "/scheduler/invoke", dependencies=[Depends(get_current_active_user)], tags=["Scans"] +) +async def invoke_scheduler(current_user: User = Depends(get_current_active_user)): + """Manually invoke the scan scheduler.""" + response = await scan.invoke_scheduler(current_user) + return response + + +# ======================================== +# Scan Task Endpoints +# ======================================== + + +@api_router.post( + "/scan-tasks/search", + dependencies=[Depends(get_current_active_user)], + response_model=scanTaskSchema.ScanTaskListResponse, + tags=["Scan Tasks"], +) +async def list_scan_tasks( + search_data: Optional[scanTaskSchema.ScanTaskSearch] = Body(None), + current_user: User = Depends(get_current_active_user), +): + """List scan tasks based on filters.""" + return scan_tasks.list_scan_tasks(search_data, current_user) + + +@api_router.post( + "/scan-tasks/{scan_task_id}/kill", + dependencies=[Depends(get_current_active_user)], + tags=["Scan Tasks"], +) +async def kill_scan_tasks( + scan_task_id: UUID, current_user: User = Depends(get_current_active_user) +): + """Kill a scan task.""" + return scan_tasks.kill_scan_task(scan_task_id, current_user) + + +@api_router.get( + "/scan-tasks/{scan_task_id}/logs", + dependencies=[Depends(get_current_active_user)], + tags=["Scan Tasks"], +) +async def get_scan_task_logs( + scan_task_id: UUID, current_user: User = Depends(get_current_active_user) +): + """Get logs from a particular scan task.""" + return scan_tasks.get_scan_task_logs(scan_task_id, current_user) + + +# ======================================== +# Search Endpoints +# ======================================== + + +@api_router.post( + "/search", + dependencies=[Depends(get_current_active_user)], + response_model=SearchResponse, + tags=["Search"], +) +async def search( + search_body: DomainSearchBody, current_user: User = Depends(get_current_active_user) +): + """Get domains index from elastic search.""" + try: + return await search_post(search_body, current_user) + except Exception as e: + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e) + ) + + +@api_router.post( + "/search/export", dependencies=[Depends(get_current_active_user)], tags=["Search"] +) +async def export_endpoint( + search_body: DomainSearchBody, current_user: User = Depends(get_current_active_user) +): + """Search export endpoint.""" + try: + result = await search_export(search_body, current_user) + return result + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +# ======================================== +# Stat Endpoints +# ======================================== + + +@api_router.post( + "/stats", + dependencies=[Depends(get_current_active_user)], + response_model=stat_schema.StatsResponse, + tags=["Stats"], +) +async def get_stats_combined( + filter_data: OrganizationSchema.StatsPayloadSchema, + request: Request, + current_user: User = Depends(get_current_active_user), + redis_client=Depends(get_redis_client), +): + """Retrieve all stats from Elasticache filtered by user.""" + return await get_stats(filter_data, current_user, redis_client, request) + + +@api_router.post( + "/services", + response_model=List[stat_schema.ServiceStat], + dependencies=[Depends(get_current_active_user)], + tags=["Stats"], +) +async def post( + filter_data: OrganizationSchema.StatsPayloadSchema, + current_user: User = Depends(get_current_active_user), + redis_client=Depends(get_redis_client), +): + """Retrieve services from Elasticache filtered by user.""" + return await get_user_services_count(filter_data, current_user, redis_client) + + +@api_router.post( + "/ports", + dependencies=[Depends(get_current_active_user)], + response_model=List[stat_schema.PortStat], + tags=["Stats"], +) +async def get_ports_stats( + filter_data: OrganizationSchema.StatsPayloadSchema, + current_user: User = Depends(get_current_active_user), + redis_client=Depends(get_redis_client), +): + """Retrieve Port Stats from Elasticache.""" + return await get_user_ports_count(filter_data, current_user, redis_client) + + +@api_router.post( + "/num-vulns", + dependencies=[Depends(get_current_active_user)], + response_model=List[stat_schema.VulnerabilityStat], + tags=["Stats"], +) +async def get_num_vulns_stats( + filter_data: OrganizationSchema.StatsPayloadSchema, + current_user: User = Depends(get_current_active_user), + redis_client: aioredis.Redis = Depends(get_redis_client), +): + """Retrieve number of vulnerabilities stats from ElastiCache (Redis) filtered by user.""" + return await get_num_vulns(filter_data, current_user, redis_client) + + +@api_router.post( + "/latest-vulns", + dependencies=[Depends(get_current_active_user)], + response_model=List[stat_schema.LatestVulnerability], + tags=["Stats"], +) +async def get_latest_vulnerabilities( + filter_data: OrganizationSchema.StatsPayloadSchema, + request: Request, + current_user: User = Depends(get_current_active_user), + redis_client: aioredis.Redis = Depends(get_redis_client), +): + """Get latest vulnerabilities.""" + return await stats_latest_vulns(filter_data, current_user, redis_client, request) + + +@api_router.post( + "/most-common-vulns", + dependencies=[Depends(get_current_active_user)], + response_model=List[stat_schema.MostCommonVulnerability], + tags=["Stats"], +) +async def get_most_common_vulns( + filter_data: OrganizationSchema.StatsPayloadSchema, + request: Request, + current_user: User = Depends(get_current_active_user), + redis_client: aioredis.Redis = Depends(get_redis_client), +): + """Get most common vulns.""" + return await stats_most_common_vulns( + filter_data, current_user, redis_client, request + ) + + +@api_router.post( + "/severity-counts", + dependencies=[Depends(get_current_active_user)], + response_model=List[stat_schema.SeverityCountStat], + tags=["Stats"], +) +async def get_severity_counts( + filter_data: OrganizationSchema.StatsPayloadSchema, + current_user: User = Depends(get_current_active_user), + redis_client: aioredis.Redis = Depends(get_redis_client), +): + """Retrieve the count of open vulnerabilities grouped by severity from Redis.""" + return await get_severity_stats(filter_data, current_user, redis_client) + + +@api_router.post( + "/by-org", + dependencies=[Depends(get_current_active_user)], + response_model=List[stat_schema.ByOrgStat], + tags=["Stats"], +) +async def get_by_org( + filter_data: OrganizationSchema.StatsPayloadSchema, + current_user: User = Depends(get_current_active_user), + redis_client: aioredis.Redis = Depends(get_redis_client), +): + """Retrieve the count of open vulnerabilities grouped by severity from Redis.""" + return await get_by_org_stats(filter_data, current_user, redis_client) + + +# ======================================== +# Testing Endpoints +# ======================================== + + +# Healthcheck endpoint +@api_router.get("/healthcheck", tags=["Testing"]) +async def healthcheck(): + """ + Healthcheck endpoint. + + Returns: + dict: A dictionary containing the health status of the application. + """ + return {"status": "ok"} + + +# ======================================== +# User Endpoints +# ======================================== + + +@api_router.post( + "/users/me/acceptTerms", + response_model=UserSchema, + dependencies=[Depends(get_current_active_user)], + tags=["Users"], +) +async def call_accept_terms( + version_data: VersionModel, current_user: User = Depends(get_current_active_user) +): + """Accept the latest terms of service.""" + return accept_terms(version_data, current_user) + + +@api_router.get("/users/me", tags=["Users"]) +async def read_users_me(current_user: User = Depends(get_current_active_user)): + """Get current user.""" + return get_me(current_user) + + +@api_router.delete( + "/users/{userId}", + response_model=OrganizationSchema.GenericMessageResponseModel, + dependencies=[Depends(get_current_active_user)], + tags=["Users"], +) +async def call_delete_user( + userId: str, current_user: User = Depends(get_current_active_user) +): + """Delete user.""" + return delete_user(userId, current_user) + + +@api_router.get( + "/users", + response_model=List[UserResponseV2], + dependencies=[Depends(get_current_active_user)], + tags=["Users"], +) +async def call_get_users(current_user: User = Depends(get_current_active_user)): + """Get all users.""" + return get_users(current_user) + + +@api_router.get( + "/users/regionId/{regionId}", + response_model=List[UserSchema], + dependencies=[Depends(get_current_active_user)], + tags=["Users"], +) +async def call_get_users_by_region_id( + regionId, current_user: User = Depends(get_current_active_user) +): + """Call get_users_by_region_id().""" + return get_users_by_region_id(regionId, current_user) + + +@api_router.get( + "/users/state/{state}", + response_model=List[UserSchema], + dependencies=[Depends(get_current_active_user)], + tags=["Users"], +) +async def call_get_users_by_state( + state, current_user: User = Depends(get_current_active_user) +): + """Call get_users_by_state().""" + return get_users_by_state(state, current_user) + + +@api_router.get( + "/v2/users", + response_model=List[UserResponseV2], + dependencies=[Depends(get_current_active_user)], + tags=["Users"], +) +async def call_get_users_v2( + state: Optional[str] = Query(None), + regionId: Optional[str] = Query(None), + invitePending: Optional[bool] = Query(None), + current_user: User = Depends(get_current_active_user), +): + """Get users with filter.""" + return get_users_v2(state, regionId, invitePending, current_user) + + +@api_router.put( + "/v2/users/{user_id}", + dependencies=[Depends(get_current_active_user)], + response_model=UserResponseV2, + tags=["Users"], +) +async def update_user_v2_view( + user_id: str, + user_data: UpdateUserV2, + current_user: User = Depends(get_current_active_user), +): + """Update a particular user.""" + return update_user_v2(user_id, user_data, current_user) + + +@api_router.post("/users/{userId}", tags=["Users"]) +async def call_update_user( + userId, body, current_user: User = Depends(get_current_active_user) +): + """Update a user by ID.""" + return update_user(userId, body, current_user) + + +@api_router.put( + "/users/{user_id}/register/approve", + dependencies=[Depends(get_current_active_user)], + response_model=RegisterUserResponse, + tags=["Users"], +) +async def register_approve( + user_id: str, current_user: User = Depends(get_current_active_user) +): + """Approve a registered user.""" + return user.approve_user_registration(user_id, current_user) + + +@api_router.put( + "/users/{user_id}/register/deny", + dependencies=[Depends(get_current_active_user)], + response_model=RegisterUserResponse, + tags=["Users"], +) +async def register_deny( + user_id: str, current_user: User = Depends(get_current_active_user) +): + """Deny a registered user.""" + return user.deny_user_registration(user_id, current_user) + + +@api_router.post( + "/users", + dependencies=[Depends(get_current_active_user)], + response_model=NewUserResponseModel, + tags=["Users"], +) +async def invite_user( + new_user: NewUser, current_user: User = Depends(get_current_active_user) +): + """Invite a user.""" + return user.invite(new_user, current_user) + + +# ======================================== +# Vulnerability Endpoints +# ======================================== + + +@api_router.post( + "/vulnerabilities/search", + dependencies=[Depends(get_current_active_user)], + response_model=VulnerabilitySearchResponse, + tags=["Vulnerabilities"], +) +async def call_search_vulnerabilities( + vulnerability_search: VulnerabilitySearch, + current_user: User = Depends(get_current_active_user), +): + """Search vulnerabilities.""" + vulnerabilities, count = search_vulnerabilities(vulnerability_search, current_user) + + if vulnerability_search.groupBy: + # Handle grouped results appropriately + return VulnerabilitySearchResponse(result=vulnerabilities, count=count) + + try: + # Convert each ORM instance to a Pydantic model + result = [GetVulnerabilityResponse.model_validate(v) for v in vulnerabilities] + except Exception as e: + raise HTTPException(status_code=500, detail=f"Serialization error: {str(e)}") + + return VulnerabilitySearchResponse(result=result, count=count) + + +@api_router.post( + "/vulnerabilities/export", + dependencies=[Depends(get_current_active_user)], + tags=["Vulnerabilities"], +) +async def get_export_vulnerabilities( + vulnerability_search: VulnerabilitySearch, + current_user: User = Depends(get_current_active_user), +): + """Export vulnerabilities.""" + return export_vulnerabilities(vulnerability_search, current_user) + + +@api_router.get( + "/vulnerabilities/{vulnerability_id}", + dependencies=[Depends(get_current_active_user)], + response_model=GetVulnerabilityResponse, + tags=["Vulnerabilities"], +) +async def call_get_vulnerability_by_id( + vulnerability_id, current_user: User = Depends(get_current_active_user) +): + """Get vulnerability by id.""" + return get_vulnerability_by_id(vulnerability_id, current_user) + + +@api_router.put( + "/vulnerabilities/{vulnerability_id}", + dependencies=[Depends(get_current_active_user)], + response_model=VulnerabilitySchema, + tags=["Vulnerabilities"], +) +async def call_update_vulnerability( + vulnerability_id, + data: VulnerabilitySchema, + current_user: User = Depends(get_current_active_user), +): + """ + Update vulnerability by id. + + Returns: + object: a single vulnerability object that has been modified. + """ + return update_vulnerability(vulnerability_id, data, current_user) diff --git a/backend/src/xfd_django/xfd_django/__init__.py b/backend/src/xfd_django/xfd_django/__init__.py new file mode 100644 index 00000000..8d16f202 --- /dev/null +++ b/backend/src/xfd_django/xfd_django/__init__.py @@ -0,0 +1 @@ +"""Initialize.""" diff --git a/backend/src/xfd_django/xfd_django/asgi.py b/backend/src/xfd_django/xfd_django/asgi.py new file mode 100644 index 00000000..5c490588 --- /dev/null +++ b/backend/src/xfd_django/xfd_django/asgi.py @@ -0,0 +1,168 @@ +""" +ASGI config for xfd_django project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/ +""" + +# Standard Python Libraries +import asyncio +from asyncio import Semaphore +import os +import threading + +# Third-Party Libraries +import django +from django.apps import apps +from django.conf import settings +from fastapi import FastAPI, Request, Response +from fastapi.middleware.cors import CORSMiddleware +from mangum import Mangum +from redis import asyncio as aioredis +from xfd_api.tasks.scheduler import handler as scheduler_handler +from xfd_django.docker_events import listen_for_docker_events +from xfd_django.middleware.middleware import LoggingMiddleware + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" +django.setup() + +# Ensure apps are populated +apps.populate(settings.INSTALLED_APPS) + +# Define the CSP policy +CSP_POLICY = { + "default-src": ["'self'"], + "connect-src": [ + "'self'", + os.getenv("COGNITO_URL"), + os.getenv("BACKEND_DOMAIN"), + "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui-bundle.js", + ], + "frame-src": ["'self'", "https://www.dhs.gov/ntas/"], + "img-src": [ + "'self'", + "data:", + os.getenv("FRONTEND_DOMAIN"), + "https://www.ssa.gov", + "https://www.dhs.gov", + "https://fastapi.tiangolo.com/img/favicon.png", + ], + "object-src": ["'none'"], + "script-src": [ + "'self'", + os.getenv("BACKEND_DOMAIN"), + "https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js", + "https://www.ssa.gov/accessibility/andi/fandi.js", + "https://www.ssa.gov/accessibility/andi/andi.js", + "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui-bundle.js", + "'sha256-QOOQu4W1oxGqd2nbXbxiA1Di6OHQOLQD+o+G9oWL8YY='", + "https://www.dhs.gov", + ], + "style-src": [ + "'self'", + "'unsafe-inline'", + "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui.css", + ], + "frame-ancestors": ["'none'"], +} + + +def set_security_headers(response: Response): + """Apply security headers to the HTTP response.""" + # Set Content Security Policy + csp_value = "; ".join( + [ + f"{key} {' '.join(map(str, value))}" + for key, value in CSP_POLICY.items() + if isinstance(value, (list, tuple)) + ] + ) + response.headers["Content-Security-Policy"] = csp_value + response.headers["Strict-Transport-Security"] = "max-age=31536000" + response.headers["X-XSS-Protection"] = "0" + response.headers["X-Content-Type-Options"] = "nosniff" + response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" + response.headers["Access-Control-Allow-Credentials"] = "true" + + return response + + +def get_application() -> FastAPI: + """Get application.""" + # Import views after Django setup + # Third-Party Libraries + from xfd_api.views import api_router # pylint: disable=C0415 + + app = FastAPI(title=settings.PROJECT_NAME, debug=settings.DEBUG) + app.add_middleware( + CORSMiddleware, + allow_origins=settings.ALLOWED_HOSTS or ["*"], + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], + ) + + # Add security headers middleware + @app.middleware("http") + async def security_headers_middleware(request: Request, call_next): + response = await call_next(request) + return set_security_headers(response) + + app.add_middleware(LoggingMiddleware) + + app.include_router(api_router) + + @app.on_event("startup") + async def startup(): + """Start up Redis with ElastiCache.""" + # Initialize Redis with the ElastiCache endpoint + app.state.redis = await aioredis.from_url( + f"redis://{settings.ELASTICACHE_ENDPOINT}", + encoding="utf-8", + decode_responses=True, + max_connections=100, + socket_timeout=5, + ) + app.state.redis_semaphore = Semaphore(20) + + # Run scheduler during local development. When deployed on AWS, + # the scheduler runs on a separate lambda function. + if settings.IS_LOCAL: + # Start listening for Docker events + run_docker_events_listener() + + # Start the scheduler in local development + asyncio.create_task(run_scheduler()) + + @app.on_event("shutdown") + async def redis_shutdown(): + """Shut down Redis connection.""" + await app.state.redis.close() + await app.state.redis.connection_pool.disconnect() + + return app + + +def run_docker_events_listener(): + """Run the Docker events listener for local development in a separate thread.""" + thread = threading.Thread(target=listen_for_docker_events, daemon=True) + thread.start() + print("Docker events listener started in a separate thread.") + + +async def run_scheduler(): + """Run the scheduler in local development.""" + try: + print("Starting local scheduler...") + while True: + await scheduler_handler({}, {}) + await asyncio.sleep(120) # Run every 120 seconds + except Exception as e: + print(f"Error running local scheduler: {e}") + + +app = get_application() +handler = Mangum(app) diff --git a/backend/src/xfd_django/xfd_django/docker_events.py b/backend/src/xfd_django/xfd_django/docker_events.py new file mode 100644 index 00000000..82a398df --- /dev/null +++ b/backend/src/xfd_django/xfd_django/docker_events.py @@ -0,0 +1,77 @@ +"""Docker event listener.""" +# Standard Python Libraries +import asyncio +import json + +# Third-Party Libraries +from django.conf import settings + +if settings.IS_LOCAL: + # Third-Party Libraries + from docker import DockerClient + +# Import your updateScanTaskStatus handler +# Third-Party Libraries +from xfd_api.tasks.updateScanTaskStatus import handler as update_scan_task_status + + +def listen_for_docker_events(): + """Listen for Docker events.""" + try: + if not settings.IS_LOCAL: + client = DockerClient.from_env() + print("Listening for Docker events...") + else: + print("No docker client") + return + + for event in client.events(decode=True): + try: + # Extract relevant event details + status = event.get("status") + actor = event.get("Actor", {}) + attributes = actor.get("Attributes", {}) + image_name = event.get("from") + + # Only process events related to 'crossfeed-worker' + if image_name != "crossfeed-worker": + continue + + # Prepare the payload based on the event status + payload = None + if status == "start": + payload = { + "detail": { + "stopCode": "", + "stoppedReason": "", + "taskArn": attributes.get("name", ""), + "lastStatus": "RUNNING", + "containers": [{}], + } + } + elif status == "die": + payload = { + "detail": { + "stopCode": "EssentialContainerExited", + "stoppedReason": "Essential container in task exited", + "taskArn": attributes.get("name", ""), + "lastStatus": "STOPPED", + "containers": [ + { + "exitCode": int(attributes.get("exitCode", 1)), + } + ], + } + } + else: + continue + + # Log and process the event + print(f"Processing Docker event: {json.dumps(payload, indent=2)}") + # Use asyncio to process the event + asyncio.run(update_scan_task_status(payload, None)) + except Exception as e: + print(f"Error processing Docker event: {e}") + + except Exception as e: + print(f"Error connecting to Docker: {e}") diff --git a/backend/src/xfd_django/xfd_django/middleware/__init__.py b/backend/src/xfd_django/xfd_django/middleware/__init__.py new file mode 100644 index 00000000..8d16f202 --- /dev/null +++ b/backend/src/xfd_django/xfd_django/middleware/__init__.py @@ -0,0 +1 @@ +"""Initialize.""" diff --git a/backend/src/xfd_django/xfd_django/middleware/middleware.py b/backend/src/xfd_django/xfd_django/middleware/middleware.py new file mode 100644 index 00000000..87a13524 --- /dev/null +++ b/backend/src/xfd_django/xfd_django/middleware/middleware.py @@ -0,0 +1,103 @@ +"""Django middleware.""" +# Standard Python Libraries +from datetime import datetime +import json +import logging + +# Third-Party Libraries +from starlette.middleware.base import BaseHTTPMiddleware +from starlette.requests import Request + + +class LoggingMiddleware(BaseHTTPMiddleware): + """Logging middleware.""" + + def __init__(self, app): + """Initialize logger.""" + super().__init__(app) + self.logger = self._configure_logger() + + def _configure_logger(self): + """Configure logger.""" + logger = logging.getLogger("fastapi") + logger.propagate = False # Prevent duplicate logs + if not logger.handlers: + log_handler = logging.StreamHandler() + log_handler.setFormatter(logging.Formatter("%(message)s")) + logger.addHandler(log_handler) + logger.setLevel(logging.INFO) + return logger + + async def dispatch(self, request: Request, call_next): + """Dispatch logger.""" + # Extract request details + method = request.method + protocol = request.url.scheme + original_url = str(request.url) + path = request.url.path + headers = dict(request.headers) + + # Retrieve request ID + aws_context = request.scope.get("aws.context", None) + request_id = ( + getattr(aws_context, "aws_request_id", "undefined") + if aws_context + else "undefined" + ) + + # Default to "undefined" for userEmail if not provided + user_email = ( + request.state.user_email + if hasattr(request.state, "user_email") + else "undefined" + ) + + # Log the initial request + start_log = { + "httpMethod": method, + "protocol": protocol, + "originalURL": original_url, + "path": path, + "statusCode": None, # Status is not known at this point + "headers": headers, + "userEmail": user_email, + } + self.logger.info( + "INFO RequestId: %s %sZ Request Info: %s", + request_id, + datetime.utcnow().isoformat(), + json.dumps(start_log), + ) + # Process the request and capture the response + start_time = datetime.utcnow() + response = await call_next(request) + end_time = datetime.utcnow() + + # Update userEmail after endpoint execution if it was set + user_email = ( + request.state.user_email + if hasattr(request.state, "user_email") + else user_email + ) + + # Log the completed request + end_log = { + "httpMethod": method, + "protocol": protocol, + "originalURL": original_url, + "path": path, + "statusCode": response.status_code, + "headers": headers, + "userEmail": user_email, + "durationMs": round( + (end_time - start_time).total_seconds() * 1000, 2 + ), # Response time in ms + } + self.logger.info( + "INFO RequestId: %s %sZ Request Info: %s", + request_id, + end_time.isoformat(), + json.dumps(end_log), + ) + + return response diff --git a/backend/src/xfd_django/xfd_django/settings.py b/backend/src/xfd_django/xfd_django/settings.py new file mode 100644 index 00000000..9d2bd670 --- /dev/null +++ b/backend/src/xfd_django/xfd_django/settings.py @@ -0,0 +1,125 @@ +""" +Django settings for xfd_django project. + +Generated by 'django-admin startproject' using Django 4.2. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.2/ref/settings/ +""" + +# Standard Python Libraries +import mimetypes +import os + +# Python built-in +from pathlib import Path + +# Third-Party Libraries +from django.contrib.messages import constants as messages + +mimetypes.add_type("text/css", ".css", True) +mimetypes.add_type("text/html", ".html", True) + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = os.getenv("DJANGO_KEY") +CROSSFEED_SUPPORT_EMAIL_SENDER = os.getenv("CROSSFEED_SUPPORT_EMAIL_SENDER") +CROSSFEED_SUPPORT_EMAIL_REPLYTO = os.getenv("CROSSFEED_SUPPORT_EMAIL_REPLYTO") +FRONTEND_DOMAIN = os.getenv("FRONTEND_DOMAIN") +IS_LOCAL = os.getenv("IS_LOCAL") + +# JWT Secret Key +JWT_SECRET = os.getenv("JWT_SECRET") +JWT_ALGORITHM = os.getenv("JWT_ALGORITHM") +JWT_TIMEOUT_HOURS = os.getenv("JWT_TIMEOUT_HOURS") + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [ + ".execute-api.us-east-1.amazonaws.com", + os.getenv("BACKEND_DOMAIN"), + os.getenv("REACT_APP_API_URL"), + os.getenv("FRONTEND_DOMAIN"), +] + +MESSAGE_TAGS = { + messages.DEBUG: "alert-secondary", + messages.INFO: "alert-info", + messages.SUCCESS: "alert-success", + messages.WARNING: "alert-warning", + messages.ERROR: "alert-danger", +} + +# Application definition + +INSTALLED_APPS = [ + "django.contrib.contenttypes", + "xfd_api.apps.XfdApiConfig", +] + +MIDDLEWARE = [ + "django.middleware.security.SecurityMiddleware", + "django.contrib.auth.middleware.AuthenticationMiddleware", + "django.contrib.messages.middleware.MessageMiddleware", + "django.middleware.clickjacking.XFrameOptionsMiddleware", +] + + +# Database +# https://docs.djangoproject.com/en/4.2/ref/settings/#databases + +DATABASES = { + "default": { + "ENGINE": "django.db.backends.postgresql_psycopg2", + "NAME": os.getenv("DB_NAME"), + "USER": os.getenv("DB_USERNAME"), + "PASSWORD": os.getenv("DB_PASSWORD"), + "HOST": os.getenv("DB_HOST"), + "PORT": "5432", + "TEST": { + "NAME": "crossfeed_test", # Name of the test database + }, + } +} + +# ElastiCache AWS +ELASTICACHE_ENDPOINT = os.getenv("ELASTICACHE_ENDPOINT") + +# Elasticsearch +ELASTICSEARCH_ENDPOINT = os.getenv("ELASTICSEARCH_ENDPOINT") + +# Internationalization +# https://docs.djangoproject.com/en/4.2/topics/i18n/ + +LANGUAGE_CODE = "en-us" + +TIME_ZONE = "UTC" + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.2/howto/static-files/ + +STATIC_URL = "static/" + +# Default primary key field type +# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" + +PROJECT_NAME = "XFD Python API" + +DJANGO_SETTINGS_MODULE = "xfd_django.settings" diff --git a/backend/src/xfd_django/xfd_django/wsgi.py b/backend/src/xfd_django/xfd_django/wsgi.py new file mode 100644 index 00000000..bf5958c3 --- /dev/null +++ b/backend/src/xfd_django/xfd_django/wsgi.py @@ -0,0 +1,18 @@ +""" +WSGI config for xfd_django project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/ +""" + +# Standard Python Libraries +import os + +# Third-Party Libraries +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") + +application = get_wsgi_application() diff --git a/backend/webpack.backend.config.js b/backend/webpack.backend.config.js deleted file mode 100644 index 48bb572b..00000000 --- a/backend/webpack.backend.config.js +++ /dev/null @@ -1,37 +0,0 @@ -const slsw = require('serverless-webpack'); -const webpack = require('webpack'); -const path = require('path'); - -module.exports = { - entry: slsw.lib.entries, - optimization: { - minimize: false - }, - target: 'node', - // These are not used for being built, and they can't build properly, so we exclude them. - externals: ['dockerode', 'canvas', 'pg-native'], - mode: slsw.lib.webpack.isLocal ? 'development' : 'production', - module: { - rules: [ - { - test: [/\.tsx?$/], - exclude: [/node_modules/, /\.test.tsx?$/], - use: [ - { - loader: 'ts-loader' - } - ] - } - ] - }, - resolve: { - modules: ['node_modules', path.resolve(__dirname, 'scripts')], - extensions: ['.ts', '.tsx', '.json', '.js', '.jsx', '...'] - }, - plugins: [ - new webpack.IgnorePlugin({ - resourceRegExp: - /^pg-native$|^cloudflare:sockets$|^mongodb$|^react-native-sqlite-storage$|^\@sap\/hana-client$/ - }) - ] -}; diff --git a/backend/worker/requirements.txt b/backend/worker/requirements.txt index ebffb092..93ee9f87 100644 --- a/backend/worker/requirements.txt +++ b/backend/worker/requirements.txt @@ -1,38 +1,3 @@ -build==0.10.0 -certifi==2023.7.22 -charset-normalizer==3.1.0 -click==8.1.3 -dateparser==1.1.8 -dnstwist==20230509 -docopt==0.6.2 -git+https://github.com/LeapBeyond/scrubadub.git@d0e12c5d922631af3532d044196b05fb1b7c8c1c -git+https://github.com/mitmproxy/mitmproxy@e0e46f4 -# idna==3.4 -joblib==1.2.0 -mitmproxy_wireguard==0.1.23 -numpy==1.24.3 -pandas==2.1.4 -phonenumbers==8.13.8 -pip-tools==7.1.0 -pipreqs==0.4.12 -psycopg2-binary==2.9.5 -pyproject_hooks==1.0.0 -pytest==7.3.0 -python-dateutil==2.8.2 -python-dotenv==1.0.1 -pytz==2023.3 -pytz-deprecation-shim==0.1.0.post0 -regex==2023.3.23 -requests==2.32.3 +mitmproxy +python-dotenv requests-http-signature==0.2.0 -scikit-learn==1.2.2 -Scrapy==2.11.2 -setuptools==65.5.1 -six==1.16.0 -threadpoolctl==3.1.0 -tomli==2.0.1 -trustymail @ git+https://github.com/Matthew-Grayson/trustymail@production -tzdata==2023.3 -tzlocal==4.3 -wheel==0.38.1 -yarg==0.1.9 diff --git a/backend/worker/worker-entry.sh b/backend/worker/worker-entry.sh index 09ab0780..43e05eac 100755 --- a/backend/worker/worker-entry.sh +++ b/backend/worker/worker-entry.sh @@ -1,34 +1,54 @@ #!/bin/bash # Sets up an explicit proxy using mitmproxy. -set -e +set -e # Exit immediately if a command exits with a non-zero status. PROXY_PORT=8080 -# Reduce some long and unnecessary tabular output from pm2 with grep -pm2 start --interpreter none --error ~/pm2-error.log mitmdump -- -s worker/mitmproxy_sign_requests.py --set stream_large_bodies=1 --listen-port $PROXY_PORT | grep "^\[PM2\]" +echo "Starting proxy with mitmproxy..." -wait-port $PROXY_PORT -t 5000 || pm2 logs +# Start mitmproxy using Python, redirect logs to pm2-error.log +mitmdump --set stream_large_bodies=1 --listen-port $PROXY_PORT -s /app/worker/mitmproxy_sign_requests.py > ~/pm2-error.log 2>&1 & -sleep 1 +# Wait for the proxy port to be ready +echo "Waiting for mitmproxy to be ready on port $PROXY_PORT..." +for i in {1..10}; do + if nc -z localhost $PROXY_PORT; then + echo "Proxy is ready!" + break + fi + echo "Retrying... ($i/10)" + sleep 1 +done + +if ! nc -z localhost $PROXY_PORT; then + echo "Proxy failed to start. Exiting." + cat ~/pm2-error.log + exit 1 +fi # Install the mitmproxy SSL certificate so that HTTPS connections can be proxied. +echo "Installing mitmproxy SSL certificate..." cp ~/.mitmproxy/mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/mitmproxy-ca-cert.crt update-ca-certificates --fresh -# Required for node.js to trust our mitmproxy self-signed cert -export NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/mitmproxy-ca-cert.crt +# Export environment variables for Python and AWS to trust the mitmproxy self-signed certificate. export AWS_CA_BUNDLE=/usr/local/share/ca-certificates/mitmproxy-ca-cert.crt # Main code -echo "Running main code..." - -timeout 1d node --unhandled-rejections=strict worker.bundle.js - -pm2 stop all | grep "^\[PM2\]" - -echo "Printing pm2 error logs (if available):" - -cat ~/pm2-error.log - -echo "Done" +echo "Running main worker script..." +timeout 1d python worker/worker.py "$@" + +# Stop the proxy +echo "Stopping proxy..." +pkill -f mitmdump || true + +# Print logs if any errors occurred +if [ -s ~/pm2-error.log ]; then + echo "Printing error logs:" + cat ~/pm2-error.log +else + echo "No errors logged." +fi + +echo "Worker finished successfully." diff --git a/backend/worker/worker.py b/backend/worker/worker.py new file mode 100644 index 00000000..5b01ffab --- /dev/null +++ b/backend/worker/worker.py @@ -0,0 +1,63 @@ +"""Worker controller.""" +# Standard Python Libraries +import importlib +import json +import os + +# Third-Party Libraries +import django +from xfd_api.schema_models.scan import SCAN_SCHEMA + +# Set up Django environment +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xfd_django.settings") +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" + +# Initialize Django +django.setup() + + +async def main(): + """Route tasks based on command options.""" + # Parse command options from the environment + command_options = json.loads(os.getenv("CROSSFEED_COMMAND_OPTIONS", "{}")) + print("Command options:", command_options) + + # Extract key fields + scan_name = command_options.get("scanName", "test") + organizations = command_options.get("organizations", []) + + # Validate the scan name and dynamically load the appropriate handler + try: + task_module = importlib.import_module(f"xfd_api.tasks.{scan_name}") + scan_fn = task_module.handler + except ModuleNotFoundError: + raise ValueError(f"No task handler found for scan name: {scan_name}") + + # Fetch scan schema + scan_schema = SCAN_SCHEMA.get(scan_name) + if not scan_schema: + raise ValueError(f"No schema found for scan name: {scan_name}") + + # Execute the task + if getattr(scan_schema, "global_scan", False): + await scan_fn(command_options) + else: + # Non-global task: execute per organization + for org in organizations: + await scan_fn( + { + **command_options, + "organizationId": org["id"], + "organizationName": org["name"], + "organizations": [], + } + ) + + print("Task execution completed successfully.") + + +if __name__ == "__main__": + # Standard Python Libraries + import asyncio + + asyncio.run(main()) diff --git a/dev.env.example b/dev.env.example index a516ed39..a6cf8068 100644 --- a/dev.env.example +++ b/dev.env.example @@ -71,10 +71,10 @@ REACT_APP_USER_POOL_CLIENT_ID=1qf4cii9v0t9hn1hnr54f2ao0j REACT_APP_TOTP_ISSUER=Local Crossfeed AWS_REGION=us-east-1 -REACT_APP_COGNITO_DOMAIN=crossfeed-staging-okta-idp.auth.us-east-1.amazoncognito.com -REACT_APP_COGNITO_CLIENT_ID=481n0fqrjiouharsddrv94c1a2 -REACT_APP_COGNITO_USER_POOL_ID=us-east-1_iWciADuOe -REACT_APP_COGNITO_CALLBACK_URL=https://staging-cd.crossfeed.cyber.dhs.gov/okta-callback +REACT_APP_COGNITO_DOMAIN=crossfeed-local-okta-idp.auth.us-east-1.amazoncognito.com +REACT_APP_COGNITO_CLIENT_ID=anb25ktqtm07ou7674kqpfkmg +REACT_APP_COGNITO_USER_POOL_ID=us-east-1_MsIQRWm0Y +REACT_APP_COGNITO_CALLBACK_URL=http://localhost/okta-callback FARGATE_MAX_CONCURRENCY=100 SCHEDULER_ORGS_PER_SCANTASK=2 @@ -84,7 +84,12 @@ REACT_APP_TERMS_VERSION=1 REACT_APP_COOKIE_DOMAIN=localhost MATOMO_URL=http://matomo -PE_API_URL=http://localhost:5000 +PE_API_URL=http://localhost:3000/healthcheck +PE_API_KEY= +CF_API_KEY= + +XPANSE_API_KEY= +XPANSE_AUTH_ID= EXPORT_BUCKET_NAME=crossfeed-local-exports @@ -106,6 +111,18 @@ PE_SHODAN_API_KEYS= PE_FARGATE_CLUSTER_NAME=pe-staging-worker PE_FARGATE_TASK_DEFINITION_NAME=pe-staging-worker +PYTHONPATH=src/xfd_django +DJANGO_SETTINGS_MODULE=xfd_django.settings +DJANGO_KEY=CHANGE_ME + +BACKEND_DOMAIN=http://localhost:3000 +COGNITO_URL=https://cognito-idp.us-east-1.amazonaws.com + + +JWT_ALGORITHM=HS256 +JWT_TIMEOUT_HOURS=4 + +ELASTICACHE_ENDPOINT=redis WHOIS_XML_KEY=change_me QUALYS_USERNAME=change_me QUALYS_PASSWORD=change_me diff --git a/docker-compose.yml b/docker-compose.yml index bc2c9ca4..fd45cb38 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,9 +29,10 @@ services: tty: true backend: - build: ./backend + build: + context: ./backend + dockerfile: ./Dockerfile.python volumes: - - ./backend/src:/app/src - /var/run/docker.sock:/var/run/docker.sock networks: - backend @@ -90,7 +91,14 @@ services: - 9200:9200 - 9300:9300 logging: - driver: none + driver: json-file + + redis: + image: redis:7.0 + ports: + - "6379:6379" + networks: + - backend # kib: # image: docker.elastic.co/kibana/kibana:7.9.0 @@ -133,18 +141,18 @@ services: - MATOMO_GENERAL_ASSUME_SECURE_PROTOCOL=1 logging: driver: none - rabbitmq: - image: 'rabbitmq:3.8-management' - ports: - - '5672:5672' # RabbitMQ default port - - '15672:15672' # RabbitMQ management plugin - networks: - - backend - environment: - RABBITMQ_DEFAULT_USER: guest - RABBITMQ_DEFAULT_PASS: guest - volumes: - - rabbitmq-data:/var/lib/rabbitmq + # rabbitmq: + # image: 'rabbitmq:3.8-management' + # ports: + # - '5672:5672' # RabbitMQ default port + # - '15672:15672' # RabbitMQ management plugin + # networks: + # - backend + # environment: + # RABBITMQ_DEFAULT_USER: guest + # RABBITMQ_DEFAULT_PASS: guest + # volumes: + # - rabbitmq-data:/var/lib/rabbitmq volumes: postgres-data: diff --git a/docs/gatsby-config.js b/docs/gatsby-config.js index a327b5f1..34600b40 100644 --- a/docs/gatsby-config.js +++ b/docs/gatsby-config.js @@ -5,31 +5,35 @@ module.exports = { description: `Crossfeed is a tool that continuously enumerates and monitors an organization's public-facing attack surface in order to discover assets and flag potential security flaws.`, navigation: [ { - items: [{ text: 'Home', link: '/' }], + items: [{ text: 'Home', link: '/docs/' }], }, { items: [ { text: 'User Guide', - link: '/user-guide/quickstart/', + link: '/docs/user-guide/quickstart/', // If rootLink is specified, this navigation item will be // highlighted as current when the user navigates to sub-pages whose // paths start with the given rootLink. - rootLink: '/user-guide/', + rootLink: '/docs/user-guide/', }, ], }, { items: [ - { text: 'Development', link: '/dev/quickstart/', rootLink: '/dev/' }, + { + text: 'Development', + link: '/docs/dev/quickstart/', + rootLink: '/docs/dev/', + }, ], }, { - items: [{ text: 'Scanning FAQ', link: '/scans/' }], + items: [{ text: 'Scanning FAQ', link: '/docs/scans/' }], }, { title: '', - items: [{ text: 'API Reference', link: '/api-reference/' }], + items: [{ text: 'API Reference', link: '/docs/api-reference/' }], }, ], secondaryLinks: [ @@ -104,7 +108,7 @@ module.exports = { // ua: 'your-ua', }, }, - pathPrefix: process.env.BASEURL || '/', + pathPrefix: '/docs', plugins: [ `gatsby-plugin-sass`, `gatsby-plugin-sharp`, @@ -151,7 +155,7 @@ module.exports = { options: { name: `Crossfeed Documentation`, short_name: `Crossfeed`, - start_url: `/`, + start_url: `/docs/`, background_color: `#663399`, theme_color: `#663399`, display: `minimal-ui`, diff --git a/docs/gatsby-node.js b/docs/gatsby-node.js index 37bf42e5..710b5218 100644 --- a/docs/gatsby-node.js +++ b/docs/gatsby-node.js @@ -47,8 +47,8 @@ exports.createPages = async ({ actions, graphql }) => { const { createPage, createRedirect } = actions; createRedirect({ - fromPath: '/usage', - toPath: '/user-guide/quickstart', + fromPath: '/docs/usage', + toPath: '/docs/user-guide/quickstart', isPermanent: false, }); @@ -61,7 +61,7 @@ async function createMarkdownPages(createPage, graphql) { pages.forEach(({ node }) => { createPage({ - path: node.fields.slug, + path: `/docs${node.fields.slug}`, component: pageTemplate, context: { name: node.fields.slug, diff --git a/docs/src/components/highlights.js b/docs/src/components/highlights.js index 79345cab..a5742bd6 100644 --- a/docs/src/components/highlights.js +++ b/docs/src/components/highlights.js @@ -96,7 +96,7 @@ const Highlights = () => (
Get started diff --git a/docs/src/components/sidenav.js b/docs/src/components/sidenav.js index 4374f8e0..fc34d5b9 100644 --- a/docs/src/components/sidenav.js +++ b/docs/src/components/sidenav.js @@ -10,26 +10,26 @@ import classNames from 'classnames'; const SIDENAV_ITEMS = { dev: [ - { text: 'Quickstart', link: '/dev/quickstart/' }, - { text: 'Overall System Architecture', link: '/dev/architecture/' }, - { text: 'Frontend', link: '/dev/frontend/' }, - { text: 'REST API', link: '/dev/rest-api/' }, - { text: 'Database', link: '/dev/database/' }, - { text: 'Worker', link: '/dev/worker/' }, + { text: 'Quickstart', link: '/docs/dev/quickstart/' }, + { text: 'Overall System Architecture', link: '/docs/dev/architecture/' }, + { text: 'Frontend', link: '/docs/dev/frontend/' }, + { text: 'REST API', link: '/docs/dev/rest-api/' }, + { text: 'Database', link: '/docs/dev/database/' }, + { text: 'Worker', link: '/docs/dev/worker/' }, // { text: 'Scheduler', link: '/dev/scheduler/' }, - { text: 'Search', link: '/dev/search/' }, - { text: 'Analytics', link: '/dev/analytics/' }, - { text: 'Deployment', link: '/dev/deployment/' }, - { text: 'Setting up your own instance', link: '/dev/own-instance/' }, - { text: 'Contribution Guidelines', link: '/dev/guidelines/' }, + { text: 'Search', link: '/docs/dev/search/' }, + { text: 'Analytics', link: '/docs/dev/analytics/' }, + { text: 'Deployment', link: '/docs/dev/deployment/' }, + { text: 'Setting up your own instance', link: '/docs/dev/own-instance/' }, + { text: 'Contribution Guidelines', link: '/docs/dev/guidelines/' }, ], 'user-guide': [ - { text: 'Quickstart', link: '/user-guide/quickstart/' }, + { text: 'Quickstart', link: '/docs/user-guide/quickstart/' }, { text: 'Crossfeed Product Overview', - link: '/user-guide/product-overview/', + link: '/docs/user-guide/product-overview/', }, - { text: 'Administration', link: '/user-guide/administration/' }, + { text: 'Administration', link: '/docs/user-guide/administration/' }, ], }; diff --git a/docs/src/documentation-pages/dev/quickstart.md b/docs/src/documentation-pages/dev/quickstart.md index 2b420405..54596d08 100644 --- a/docs/src/documentation-pages/dev/quickstart.md +++ b/docs/src/documentation-pages/dev/quickstart.md @@ -32,19 +32,29 @@ This quickstart describes the initial setup required to run an instance of Cross ```bash cd backend # Generate schema - npm run syncdb + make syncdb # Populate sample data - npm run syncdb -- -d populate + make syncdb-populate ``` If you ever need to drop and recreate the database, you can run `npm run syncdb -- -d dangerouslyforce`. -7. Navigate to [http://localhost](http://localhost) in a browser. The first time please navigate to [http://localhost/signup](http://localhost/signup) to create account. Local accounts can be set to Global Admin to aide in development. -8. Hot reloading for source files is enabled, but after changes to non-source code files stopping and starting Docker Compose is required. The following are examples of changes that will require restarting the environment: +7. Populate the redis cache for the stats endpoint: + + ```bash + cd backend + # Populate cache + make populate-cache + ``` + + If you ever need to drop and recreate the database, you can run `npm run syncdb -- -d dangerouslyforce`. + +8. Navigate to [http://localhost](http://localhost) in a browser. The first time please navigate to [http://localhost/signup](http://localhost/signup) to create account. Local accounts can be set to Global Admin to aide in development. +9. Hot reloading for source files is enabled, but after changes to non-source code files stopping and starting Docker Compose is required. The following are examples of changes that will require restarting the environment: - Frontend or backend dependency changes - Backend changes to `serverless.yml` or `env.yml` - Environment variables in root `.env` -9. Install [Prettier](https://www.robinwieruch.de/how-to-use-prettier-vscode) in your dev environment to format code on save. +10. Install [Prettier](https://www.robinwieruch.de/how-to-use-prettier-vscode) in your dev environment to format code on save. ### Simulate SQS Process @@ -82,8 +92,11 @@ This quickstart describes the initial setup required to run an instance of Cross To run tests, first make sure you have already started Crossfeed with `npm start` (or, at bare minimum, that the database container is running). Then run: ```bash +pre-commit run --all-files + cd backend -npm test +make pytest +make pylint ``` If snapshot tests fail, update snapshots by running `npm test -- -u`. diff --git a/docs/src/documentation-pages/user-guide/product-overview.md b/docs/src/documentation-pages/user-guide/product-overview.md index 209cc4a7..00a53790 100644 --- a/docs/src/documentation-pages/user-guide/product-overview.md +++ b/docs/src/documentation-pages/user-guide/product-overview.md @@ -33,7 +33,7 @@ Tech Stack: - Backend: Node.js (TypeScript), Serverless Framework, PostgreSQL - Scans: Node.js (TypeScript), runs in AWS Fargate and Lambda -For an architectural diagram and more information, see [Architecture](/dev/architecture/). +For an architectural diagram and more information, see [Architecture](/docs/dev/architecture/). ##### Security details diff --git a/docs/src/documentation-pages/user-guide/quickstart.md b/docs/src/documentation-pages/user-guide/quickstart.md index 01fd711d..4c5a773e 100644 --- a/docs/src/documentation-pages/user-guide/quickstart.md +++ b/docs/src/documentation-pages/user-guide/quickstart.md @@ -8,7 +8,7 @@ sidenav: user-guide

Note

- While CISA's instance of Crossfeed is currently not accepting public enrollment, it is developed as an open-source tool available on GitHub. The below instructions describe how users can use Crossfeed if granted access to CISA's instance of Crossfeed. If you are a developer and want to set up your own Crossfeed instance, see Creating your own instance of Crossfeed. + While CISA's instance of Crossfeed is currently not accepting public enrollment, it is developed as an open-source tool available on GitHub. The below instructions describe how users can use Crossfeed if granted access to CISA's instance of Crossfeed. If you are a developer and want to set up your own Crossfeed instance, see Creating your own instance of Crossfeed.

diff --git a/docs/src/templates/documentation-page.js b/docs/src/templates/documentation-page.js index dfc5baec..fb33b944 100644 --- a/docs/src/templates/documentation-page.js +++ b/docs/src/templates/documentation-page.js @@ -40,7 +40,7 @@ const DocumentationPage = ({ data, location }) => { )} - {fields.slug === '/dev/architecture/' && ( + {fields.slug === '/docs/dev/architecture/' && (