diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1f97fc5b557..2f7789d44e4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -119,6 +119,8 @@ updates: # via a major version tag which automatically uses the latest minor/patch version (e.g. "actions/checkout@v6") - dependency-name: "actions/*" update-types: [ "version-update:semver-minor", "version-update:semver-patch"] + - dependency-name: "browser-actions/*" + update-types: [ "version-update:semver-minor", "version-update:semver-patch"] - dependency-name: "github/*" update-types: [ "version-update:semver-minor", "version-update:semver-patch"] - dependency-name: "docker/*" @@ -238,6 +240,8 @@ updates: # via a major version tag which automatically uses the latest minor/patch version (e.g. "actions/checkout@v6") - dependency-name: "actions/*" update-types: [ "version-update:semver-minor", "version-update:semver-patch"] + - dependency-name: "browser-actions/*" + update-types: [ "version-update:semver-minor", "version-update:semver-patch"] - dependency-name: "github/*" update-types: [ "version-update:semver-minor", "version-update:semver-patch"] - dependency-name: "docker/*" @@ -357,6 +361,8 @@ updates: # via a major version tag which automatically uses the latest minor/patch version (e.g. "actions/checkout@v6") - dependency-name: "actions/*" update-types: [ "version-update:semver-minor", "version-update:semver-patch"] + - dependency-name: "browser-actions/*" + update-types: [ "version-update:semver-minor", "version-update:semver-patch"] - dependency-name: "github/*" update-types: [ "version-update:semver-minor", "version-update:semver-patch"] - dependency-name: "docker/*" @@ -478,6 +484,8 @@ updates: # via a major version tag which automatically uses the latest minor/patch version (e.g. "actions/checkout@v6") - dependency-name: "actions/*" update-types: [ "version-update:semver-minor", "version-update:semver-patch"] + - dependency-name: "browser-actions/*" + update-types: [ "version-update:semver-minor", "version-update:semver-patch"] - dependency-name: "github/*" update-types: [ "version-update:semver-minor", "version-update:semver-patch"] - dependency-name: "docker/*" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86c8aa586fb..efb08cd6154 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,9 +54,6 @@ jobs: CYPRESS_BASE_URL: http://127.0.0.1:4000 # Disable the cookie consent banner in e2e tests to avoid errors because of elements hidden by it DSPACE_INFO_ENABLECOOKIECONSENTPOPUP: false - # When Chrome version is specified, we pin to a specific version of Chrome - # Comment this out to use the latest release - #CHROME_VERSION: "90.0.4430.212-1" # Bump Node heap size (OOM in CI after upgrading to Angular 15) NODE_OPTIONS: '--max-old-space-size=4096' # Project name to use when running "docker compose" prior to e2e tests @@ -85,22 +82,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - # If CHROME_VERSION env variable specified above, then pin to that version. - # Otherwise, just install latest version of Chrome. - - name: Install Chrome (for e2e tests) - run: | - if [[ -z "${CHROME_VERSION}" ]] - then - echo "Installing latest stable version" - sudo apt-get update - sudo apt-get --only-upgrade install google-chrome-stable -y - else - echo "Installing version ${CHROME_VERSION}" - wget -q "https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb" - sudo dpkg -i "google-chrome-stable_${CHROME_VERSION}_amd64.deb" - fi - google-chrome --version - # https://github.com/actions/cache/blob/main/examples.md#node---npm - name: Get NPM cache directory id: npm-cache-dir @@ -135,6 +116,9 @@ jobs: - name: Run specs (unit tests) run: npm run test:headless + - name: Run SSR cache unit tests + run: npm run test:ssr-cache + # Upload code coverage report to artifact (for one version of Node only), # so that it can be shared with the 'codecov' job (see below) # NOTE: Angular CLI only supports code coverage for specs. See https://github.com/angular/angular-cli/issues/6286 @@ -167,14 +151,23 @@ jobs: docker compose -f ./docker/cli.yml -f ./docker/cli.assetstore.yml run --rm dspace-cli docker container ls + # Installs "Chrome for Testing" which is a version of Chrome stabilized for automated testing + # Cypress recommends using Chrome For Testing for reliable, reproducible runs + # https://docs.cypress.io/app/references/launching-browsers + - name: Install Chrome For Testing (for e2e tests) + uses: browser-actions/setup-chrome@v2 + # To pin to a specific version of Chrome, uncomment this parameter + #with: + # chrome-version: 154 + # Run integration tests via Cypress.io # https://github.com/cypress-io/github-action # (NOTE: to run these e2e tests locally, just use 'ng e2e') - name: Run e2e tests (integration tests) - uses: cypress-io/github-action@v7.4.4 + uses: cypress-io/github-action@v7.4.7 with: - # Run tests in Chrome, headless mode (default) - browser: chrome + # Run tests in Chrome for Testing + browser: chrome-for-testing # Start app before running tests (will be stopped automatically after tests finish) start: npm run serve:ssr # Wait for backend & frontend to be available @@ -335,6 +328,22 @@ jobs: - name: Stop running app run: kill -9 $(lsof -t -i:4000) + + # If any prior step errors out, export the backend logs for help with debugging issues + - name: Export backend logs (on failure only) + if: failure() + run: | + docker compose -f ./docker/docker-compose-ci.yml logs > backend-logs-${{ matrix.node-version }}.txt + + # If any prior step errors out, upload backend logs to artifact + - name: Upload backend logs to artifact (on failure only) + uses: actions/upload-artifact@v7 + if: failure() + with: + name: backend-logs-${{ matrix.node-version }} + path: backend-logs-${{ matrix.node-version }}.txt + retention-days: 14 + - name: Shutdown Docker containers run: docker compose -f ./docker/docker-compose-ci.yml down diff --git a/.github/workflows/port_merged_pull_request.yml b/.github/workflows/port_merged_pull_request.yml index d164d0801cf..a3a44a4eb1b 100644 --- a/.github/workflows/port_merged_pull_request.yml +++ b/.github/workflows/port_merged_pull_request.yml @@ -37,7 +37,7 @@ jobs: # Port PR to other branch (ONLY if labeled with "port to") # See https://github.com/korthout/backport-action - name: Create backport pull requests - uses: korthout/backport-action@v4.6.1 + uses: korthout/backport-action@v4.7.0 with: # Trigger based on a "port to [branch]" label on PR # (This label must specify the branch name to port to) diff --git a/README.md b/README.md index 6400f698abb..976ab3de53d 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,104 @@ These configuration sources are collected **at run time**, and written to `dist/ The configuration file can be externalized by using environment variable `DSPACE_APP_CONFIG_PATH`. +#### Shared SSR cache with Redis + +To share cached SSR pages across frontend processes, enable `cache.serverSide.redis.enabled` in +`config/config.prod.yml`, or set `DSPACE_CACHE_SERVERSIDE_REDIS_ENABLED=true`. Redis replaces both +in-memory SSR caches for anonymous users and bots. It requires production mode and `ssr.enabled=true`; +authenticated requests, logout reloads and routes excluded from SSR bypass the cache. + +Set `DSPACE_CACHE_SERVERSIDE_REDIS_URL` to the Redis connection URL, for example +`redis://localhost:6379/0` or `rediss://username:password@host:6379/0` for TLS. Connection settings +remain server-side and are excluded from the browser configuration. Use a dedicated Redis instance +with a memory limit and an appropriate eviction policy. The LRU `max` settings do not +limit Redis memory. + +To let the frontend configure a dedicated Redis instance, set: + +```yaml +cache: + serverSide: + redis: + maxMemory: 512 # MiB (1024 * 1024 bytes) + evictionPolicy: allkeys-lfu # or allkeys-lru +``` + +`allkeys-lfu` removes the least frequently read entries; `allkeys-lru` removes the least recently +read entries. Redis uses approximate rankings and may evict entries before their TTL expires. +LRU does not mean the oldest entry by creation date. These are memory limits, not entry counts. + +`maxMemory` is a whole number of MiB, converted to bytes internally. It defaults to `0`, which +leaves the Redis server settings unchanged. A positive value +applies both settings using `CONFIG SET` after every connection, including reconnects. This requires +Redis 7+ and permission to run `CONFIG SET`. Cache operations are skipped until configuration succeeds; +on failure or timeout, requests render without caching until the next successful reconnect. +All frontend instances sharing Redis must use the same settings. Returning `maxMemory` to `0` +does not undo previously applied settings. The frontend does not persist them with `CONFIG REWRITE`. + +These settings affect the entire Redis instance, across all logical databases and key prefixes, +and can evict other applications' data and refresh locks. Evicted locks may allow concurrent refreshes. +Use a dedicated cache instance. For managed services or accounts without `CONFIG SET` permission, +leave `maxMemory: 0` and configure `maxmemory` and `maxmemory-policy` on the Redis server instead. +See the [Redis eviction documentation](https://redis.io/docs/latest/develop/reference/eviction/). + +Set `cache.serverSide.redis.compressHtml: true` to gzip HTML before storing it in Redis. +This is disabled by default. Compressed HTML is stored as base64 alongside the headers and status, +and decompressed on read, even if compression has since been disabled. Existing uncompressed entries +remain readable. Deploy this version to all frontend instances before enabling compression; +older versions cannot read compressed entries. This setting does not change HTTP response compression. + +Only routes explicitly listed in `routes` are cached. There are no global TTLs or built-in page +rules. Use `*` to opt into caching all eligible SSR pages, with more specific overrides: + +```yaml +cache: + serverSide: + redis: + routes: + - pattern: '*' + timeToLive: 900000 + refreshWhenTimeBelow: 300000 + - pattern: '/entities/*' + timeToLive: 30000 + refreshWhenTimeBelow: 10000 + - pattern: '/entities/service' + timeToLive: 60000 + refreshWhenTimeBelow: 20000 + - pattern: '/entities/service/*' + timeToLive: 60000 + refreshWhenTimeBelow: 20000 +``` + +Patterns match the entire router-relative path without the UI namespace or query parameters. +`*` matches any characters, including `/`; all other characters are literal and case-sensitive. +Thus `/entities/service` matches that exact path, while `/entities/service/*` matches its descendants. +Exact paths take precedence. For wildcard patterns, the longest literal prefix before the first +`*` wins, followed by more literal characters, then fewer wildcards. Equal specificity uses the +first configured rule. Reordering rules with different specificity does not change their priority. + +Each rule requires `timeToLive` in milliseconds. Omitted `refreshWhenTimeBelow` means no background +refreshing; values are never inherited from a broader matching rule. A zero TTL bypasses reads +and writes, including previously stored entries. Unmatched paths and an empty rules list also +bypass Redis. Rules do not override SSR exclusions. Patterns are compiled and durations validated +during cache initialization. Invalid rules disable the Redis cache with a warning while requests +continue to render. See `config/config.example.yml` for all Redis settings. + +On a cache hit near expiry, one worker refreshes the page in the background while the cached page +is returned immediately. Expired pages are not served. Only responses with HTTP status 200 are cached. +HTML, configured response headers (such as signposting `Link`) and the status code are stored together. +Keys isolate deployments, language preferences and full URLs, including query strings. Choose a unique `keyPrefix` for each +deployment and change it when deploying changes that should invalidate existing cached pages. + +Redis is disabled by default. When enabled but unavailable, requests are rendered without caching; +connection retries run in the background and cache operations have a bounded wait time. Disable +Redis to use the existing in-memory caches again. Set route durations according to how quickly +anonymous users need to see updates. + +Run `npm run test:ssr-cache` for the server cache unit tests. To also run integration tests against +an isolated Redis instance, use `DSPACE_TEST_REDIS_URL=redis://localhost:6379 npm run test:ssr-cache`. +The integration tests use unique temporary key prefixes and remove their keys afterward. + #### Buildtime Configuring Buildtime configuration must defined before build in order to include in transpiled JavaScript. This is primarily for the server. These settings can be found under `src/environment/` folder. @@ -414,7 +512,8 @@ dspace-angular │ ├── docker-compose.yml * │ └── README.md * ├── docs * Folder for documentation -│ └── Configuration.md * Configuration documentation +│ ├── Configuration.md * Configuration documentation +│ └── ThemeTranslations.md * Theme-specific translations documentation ├── scripts * │ ├── merge-i18n-files.ts * │ ├── serve.ts * diff --git a/angular.json b/angular.json index 333ae36bec6..48ea48ff29f 100644 --- a/angular.json +++ b/angular.json @@ -273,6 +273,7 @@ "src/**/*.html", "src/**/*.json5", "scripts/**/*.ts", + "server/**/*.ts", "webpack/**/*.ts" ] } diff --git a/config/config.example.yml b/config/config.example.yml index 1cd2d414d31..34b29b2488e 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -38,8 +38,7 @@ ssr: # may NOT be indexable by search engine crawlers (like Google Scholar). For search engine crawlers to fully index your site, # this "excludePathPatterns" should NEVER exclude SSR from the homepage, community/collection pages or item/entity pages. excludePathPatterns: - - pattern: "^/communities/[a-fA-F0-9-]{36}/browse(/.*)?$" - - pattern: "^/collections/[a-fA-F0-9-]{36}/browse(/.*)?$" + - pattern: "^/(communities|collections)/[a-fA-F0-9-]{36}/(browse|search)" - pattern: "^/browse/" - pattern: "^/search$" - pattern: "^/community-list$" @@ -112,6 +111,51 @@ cache: serverSide: # Set to true to see all cache hits/misses/refreshes in your console logs. Useful for debugging SSR caching issues. debug: false + # Shared cache for anonymous SSR pages (including bots), replacing both LRU caches below. + # Only active with production mode and ssr.enabled=true. Disabled by default. + # Redis outages cause uncached SSR; the in-memory caches are used when Redis is disabled. + redis: + enabled: false + # Supports redis:// and rediss:// (TLS), credentials and a database number. + # Prefer DSPACE_CACHE_SERVERSIDE_REDIS_URL for connection credentials. + url: redis://localhost:6379 + # Use a unique prefix per deployment; change it after deploying incompatible page changes. + keyPrefix: 'dspace:ssr:' + # Gzip HTML stored in Redis; decompressed before serving. Disabled by default. + compressHtml: false + # Applies to the ENTIRE Redis instance, including other databases and prefixes. + # Use only with a dedicated cache instance and CONFIG SET permission (Redis 7+). + # MiB (1024 * 1024 bytes). 0 leaves Redis settings unchanged; e.g. 512 = 512 MiB. + maxMemory: 0 + # Used when maxMemory > 0. LFU removes least frequently read entries; + # LRU removes least recently read entries. Both may evict entries before TTL expires. + evictionPolicy: allkeys-lfu # or allkeys-lru + connectTimeout: 1000 # milliseconds + commandTimeout: 1000 # maximum time to wait for a cache operation, in milliseconds + refreshLockTimeToLive: 60000 # milliseconds; should exceed the longest SSR render + # Only explicitly configured routes are cached. Empty or unmatched routes bypass Redis. + # Patterns match the entire router-relative path, without namespace or query parameters. + # '*' matches any characters, including '/'; other characters are literal and case-sensitive. + # Exact paths win, then the longest literal prefix before '*', then more literal characters, + # then fewer wildcards. Equal specificity uses the first configured rule. + # Each route requires timeToLive (milliseconds). Zero bypasses cache reads and writes. + # refreshWhenTimeBelow is in milliseconds; omitted or zero disables background refreshing. + # Rules do not override ssr.excludePathPatterns. + routes: [] + # Example (replace the empty list above to enable): + # routes: + # - pattern: '*' # optional catch-all; all eligible SSR pages + # timeToLive: 900000 + # refreshWhenTimeBelow: 300000 + # - pattern: '/entities/*' + # timeToLive: 30000 + # refreshWhenTimeBelow: 10000 + # - pattern: '/entities/service' # exact path; takes precedence over /entities/* + # timeToLive: 60000 + # refreshWhenTimeBelow: 20000 + # - pattern: '/entities/service/*' # service pages below this path + # timeToLive: 60000 + # refreshWhenTimeBelow: 20000 # When enabled (i.e. max > 0), known bots will be sent pages from a server side cache specific for bots. # (Keep in mind, bot detection cannot be guaranteed. It is possible some bots will bypass this cache.) botCache: @@ -406,6 +450,10 @@ homePage: pageSize: 5 # Enable or disable the Discover filters on the homepage showDiscoverFilters: false + # Disable if you don't want users to edit the homeNews section on your home-page. + editHomeNews: true + # Disable if you don't want users to edit the home header. + editHomeHeader: true # Item Config item: diff --git a/docs/ThemeTranslations.md b/docs/ThemeTranslations.md new file mode 100644 index 00000000000..749461cc385 --- /dev/null +++ b/docs/ThemeTranslations.md @@ -0,0 +1,93 @@ +# Theme-specific translations + +Themes can override individual translation keys, so a theme can rename a label or reword a +message without touching the shared language files. + +These overrides are applied **at runtime**, while the application is loading its translations. +The alternative is the build-time [`merge-i18n`](#relationship-to-merge-i18n) script, which merges +one theme's translations into the base language files before the build. Applying the overrides at +runtime means a single build - and therefore a single Docker image - can be deployed for different +themes, each with its own translations. + +## Adding translations to a theme + +Place the override files alongside the theme's other assets: + +``` +src/themes//assets/i18n/.json5 +``` + +For example: + +``` +src/assets/i18n/de.json5 * base translations (all keys) +src/themes/my-theme/assets/i18n/de.json5 * overrides for my-theme +``` + +An override file only has to contain the keys it changes; every other key falls back to the base +file. A theme also does not have to provide a file for every language. + +The build copies these files to `assets//i18n/.json5` in the output, where the +translate loaders pick them up. + +The build also records which themes provide a file for which language, so the browser only +requests override files that exist; a theme without overrides is not requested at all. That +list is collected at build time, so adding or removing a theme translation file takes effect +on the next build - as was already the case for the files themselves. + +## How keys are resolved + +Translations are merged key by key. Later sources win: + +1. the base file, `src/assets/i18n/.json5` +2. the active theme's ancestors, starting from the root of the `extends` chain +3. the active theme itself + +Given this configuration: + +```yaml +themes: + - name: child-theme + extends: parent-theme + - name: parent-theme +``` + +with `child-theme` active, translations are merged in the order `base → parent-theme → +child-theme`. A key defined only in `parent-theme` is used unless `child-theme` redefines it, and a +key defined in neither falls back to the base file. This is the same `extends` inheritance that +DSpace already uses to resolve themed components. + +## Which theme's overrides are applied + +The overrides come from the **default theme** - the entry under `themes:` that has no `regex`, +`handle` or `uuid` matching rule - together with its ancestors. + +Configured themes outside that chain are deliberately skipped. Loading every configured theme +would let keys from unrelated themes overwrite one another, because the merged result is a single +flat map of keys. + +This also means that when one instance serves several themes selected by `regex`, `handle` or +`uuid`, only the default theme's translation overrides are applied. + +## Server-side rendering + +Under SSR the server loader reads the base file and the theme overrides from disk, merges them, +and stores the result in the Angular `TransferState`. The browser reuses that state, so no extra +request for theme translations is made after the initial page load. + +When no `TransferState` is available, the browser loader fetches the base file and the theme +override files over HTTP and merges them client-side. This happens with client-side rendering +(for example `npm run start:dev`) and on pages excluded from SSR through `ssr.excludePathPatterns`, +such as `/search` in the default configuration. + +A missing override file is ignored. A file that cannot be loaded or parsed is skipped with a +warning - in the server log under SSR, and in the browser console otherwise - so a syntax error in +one theme file cannot break rendering. + +## Relationship to `merge-i18n` + +Runtime overrides need no configuration change, and existing setups do not have to be migrated: +projects that run `npm run merge-i18n` before building keep working exactly as before. + +To use runtime overrides instead, keep `src/assets/i18n/.json5` as the unmodified base file +and do not run the script. diff --git a/package-lock.json b/package-lock.json index 32cab92f9c4..1a454f72d25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,18 +11,18 @@ "dependencies": { "@4science_ng-dynamic-forms/core": "^19.1.0", "@4science_ng-dynamic-forms/ui-ng-bootstrap": "^19.1.0", - "@angular/animations": "^20.3.30", + "@angular/animations": "^20.3.34", "@angular/cdk": "^20.2.14", - "@angular/common": "^20.3.30", - "@angular/compiler": "^20.3.30", - "@angular/core": "^20.3.30", - "@angular/forms": "^20.3.30", - "@angular/localize": "^20.3.30", - "@angular/platform-browser": "^20.3.30", - "@angular/platform-browser-dynamic": "^20.3.30", - "@angular/platform-server": "^20.3.30", - "@angular/router": "^20.3.30", - "@angular/ssr": "^20.3.36", + "@angular/common": "^20.3.34", + "@angular/compiler": "^20.3.34", + "@angular/core": "^20.3.34", + "@angular/forms": "^20.3.34", + "@angular/localize": "^20.3.34", + "@angular/platform-browser": "^20.3.34", + "@angular/platform-browser-dynamic": "^20.3.34", + "@angular/platform-server": "^20.3.34", + "@angular/router": "^20.3.34", + "@angular/ssr": "^20.3.40", "@kolkov/ngx-gallery": "^2.0.1", "@ng-bootstrap/ng-bootstrap": "^15.1.2", "@ngrx/effects": "^20.1.0", @@ -37,7 +37,7 @@ "cerialize": "0.1.18", "cli-progress": "^3.12.0", "colors": "^1.4.0", - "compression": "^1.8.1", + "compression": "^1.8.2", "cookie-parser": "1.4.7", "core-js": "^3.50.0", "date-fns": "^2.29.3", @@ -48,7 +48,7 @@ "express-rate-limit": "^8.7.0", "fast-json-patch": "^3.1.1", "filesize": "^10.1.6", - "http-proxy-middleware": "^2.0.10", + "http-proxy-middleware": "^2.0.11", "http-terminator": "^3.2.0", "isbot": "^5.2.2", "js-cookie": "3.0.8", @@ -61,7 +61,7 @@ "leaflet.markercluster": "^1.5.3", "lodash-es": "^4.18.1", "lru-cache": "^11.5.2", - "markdown-it": "^14.3.1", + "markdown-it": "^14.3.3", "mirador": "^3.4.3", "mirador-dl-plugin": "^0.13.0", "mirador-share-plugin": "^0.16.0", @@ -77,15 +77,16 @@ "nouislider": "^15.7.1", "orejime": "^2.3.3", "pem": "1.14.8", + "redis": "^4.7.1", "reflect-metadata": "^0.2.2", "rxjs": "^7.8.0", - "uuid": "^14.0.2", + "uuid": "^14.0.3", "xhr2": "^0.2.1", "zone.js": "~0.15.1" }, "devDependencies": { "@angular-builders/custom-webpack": "~20.0.0", - "@angular-devkit/build-angular": "^20.3.36", + "@angular-devkit/build-angular": "^20.3.40", "@angular-eslint/builder": "^20.7.0", "@angular-eslint/bundled-angular-compiler": "^20.7.0", "@angular-eslint/eslint-plugin": "^20.7.0", @@ -93,12 +94,12 @@ "@angular-eslint/schematics": "^20.7.0", "@angular-eslint/template-parser": "^20.6.0", "@angular-eslint/utils": "^20.7.0", - "@angular/cli": "^20.3.36", - "@angular/compiler-cli": "^20.3.30", + "@angular/cli": "^20.3.40", + "@angular/compiler-cli": "^20.3.34", "@cypress/schematic": "^1.5.0", "@fortawesome/fontawesome-free": "^6.7.2", "@ngrx/store-devtools": "^20.1.0", - "@ngtools/webpack": "^20.3.30", + "@ngtools/webpack": "^20.3.34", "@smarttools/eslint-plugin-rxjs": "^1.0.22", "@stylistic/eslint-plugin": "^3.1.0", "@types/deep-freeze": "0.1.5", @@ -109,9 +110,9 @@ "@types/js-cookie": "3.0.6", "@types/lodash-es": "^4.17.12", "@types/node": "^20.19.43", - "@typescript-eslint/eslint-plugin": "^8.70.1", - "@typescript-eslint/parser": "^8.70.1", - "@typescript-eslint/rule-tester": "^8.70.1", + "@typescript-eslint/eslint-plugin": "^8.71.1", + "@typescript-eslint/parser": "^8.71.1", + "@typescript-eslint/rule-tester": "^8.71.1", "@typescript-eslint/utils": "^8.47.0", "axe-core": "^4.13.0", "chokidar": "^4.0.3", @@ -426,6 +427,7 @@ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -543,10 +545,26 @@ "@angular/compiler-cli": "^20.0.0" } }, + "node_modules/@angular-builders/custom-webpack/node_modules/@angular-devkit/architect": { + "version": "0.2003.40", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2003.40.tgz", + "integrity": "sha512-8XPEUuwzyvaBzTO4e7DZskgDyLepfJI39/blAGzKqsob3NRlbtP/2+6lk9VgwkwuKF1KPJgmU1Sa67MB0qFNUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "20.3.40", + "rxjs": "7.8.2" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, "node_modules/@angular-builders/custom-webpack/node_modules/@angular-devkit/core": { - "version": "20.3.27", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.27.tgz", - "integrity": "sha512-jBaBTT9FemIEVpjN6omSzUYv9VOSnyPilLPC83E6JxNNMO4CMVKLfGK9SaVPJHtqU6YAWNFQqcD1dP7f/m49Cw==", + "version": "20.3.40", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.40.tgz", + "integrity": "sha512-H7A7p3hP4/6rZmZGrjyipWMFMMW1iWILxAizfGNUEef2ymMIs7uX/uuCdL4BP1vDF8MorLCgeCChLJ2QZuv8UQ==", "dev": true, "license": "MIT", "dependencies": { @@ -571,14 +589,147 @@ } } }, + "node_modules/@angular-builders/custom-webpack/node_modules/@angular/build": { + "version": "20.3.40", + "resolved": "https://registry.npmjs.org/@angular/build/-/build-20.3.40.tgz", + "integrity": "sha512-lFa1DVul9/VncuoZgmhEij86jdPC77/mX5QrTB5OPFwQeBrlK1FRwEh46hrtdsW5qnVVMAf+wx5+B/N7FuvcKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "2.3.0", + "@angular-devkit/architect": "0.2003.40", + "@babel/core": "7.29.7", + "@babel/helper-annotate-as-pure": "7.27.3", + "@babel/helper-split-export-declaration": "7.24.7", + "@inquirer/confirm": "5.1.14", + "@vitejs/plugin-basic-ssl": "2.1.0", + "beasties": "0.3.5", + "browserslist": "^4.23.0", + "esbuild": "0.28.1", + "https-proxy-agent": "7.0.6", + "istanbul-lib-instrument": "6.0.3", + "jsonc-parser": "3.3.1", + "listr2": "9.0.1", + "magic-string": "0.30.17", + "mrmime": "2.0.1", + "parse5-html-rewriting-stream": "8.0.0", + "picomatch": "4.0.4", + "piscina": "5.3.2", + "rollup": "4.59.0", + "sass": "1.90.0", + "semver": "7.7.2", + "source-map-support": "0.5.21", + "tinyglobby": "0.2.14", + "vite": "7.3.6", + "watchpack": "2.4.4" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "optionalDependencies": { + "lmdb": "3.4.2" + }, + "peerDependencies": { + "@angular/compiler": "^20.0.0", + "@angular/compiler-cli": "^20.0.0", + "@angular/core": "^20.0.0", + "@angular/localize": "^20.0.0", + "@angular/platform-browser": "^20.0.0", + "@angular/platform-server": "^20.0.0", + "@angular/service-worker": "^20.0.0", + "@angular/ssr": "^20.3.40", + "karma": "^6.4.0", + "less": "^4.2.0", + "ng-packagr": "^20.0.0", + "postcss": "^8.4.0", + "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0", + "tslib": "^2.3.0", + "typescript": ">=5.8 <6.0", + "vitest": "^3.1.1" + }, + "peerDependenciesMeta": { + "@angular/core": { + "optional": true + }, + "@angular/localize": { + "optional": true + }, + "@angular/platform-browser": { + "optional": true + }, + "@angular/platform-server": { + "optional": true + }, + "@angular/service-worker": { + "optional": true + }, + "@angular/ssr": { + "optional": true + }, + "karma": { + "optional": true + }, + "less": { + "optional": true + }, + "ng-packagr": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tailwindcss": { + "optional": true + }, + "vitest": { + "optional": true + } + } + }, + "node_modules/@angular-builders/custom-webpack/node_modules/sass": { + "version": "1.90.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.90.0.tgz", + "integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^4.0.0", + "immutable": "^5.0.2", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" + } + }, + "node_modules/@angular-builders/custom-webpack/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@angular-devkit/architect": { - "version": "0.2003.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2003.36.tgz", - "integrity": "sha512-SYouO6dBbgYijy2hlao/O5qP4SfHsn1vMTK68+YO/h7XPrW4nPSNcVkqlAgTB5tcXOw+3L42YnFk5X2hTZ1cSw==", + "version": "0.2003.41", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2003.41.tgz", + "integrity": "sha512-gKZUuuNA0EY32AvdRpMKXTvjyOcxUN4ay4eo73Eq1HnO4hBrvMf6i9VptyoMp9HKzEm1mlYaRjDXykCt921ZPg==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/core": "20.3.36", + "@angular-devkit/core": "20.3.41", "rxjs": "7.8.2" }, "engines": { @@ -588,9 +739,9 @@ } }, "node_modules/@angular-devkit/architect/node_modules/@angular-devkit/core": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.36.tgz", - "integrity": "sha512-fEbY8VFXP5ODfkDQJ4pNCexvQU0lDxL7azI+qbGu7osGgORg/LJaEGAXRKBBGvpLDpHcGjdSD26/Tms7xXmMnQ==", + "version": "20.3.41", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.41.tgz", + "integrity": "sha512-zkAUfR+uH+KAOZwEAx4PAFGvdM449JoWF0JN7ViXnlSX/kNavKCZ2ZbZjeIOUiuN1KCPx81n6UbeyesmxrLudw==", "dev": true, "license": "MIT", "dependencies": { @@ -616,17 +767,17 @@ } }, "node_modules/@angular-devkit/build-angular": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-20.3.36.tgz", - "integrity": "sha512-5xmN2mwPk/mS8/f8tP4p7clUziM59lDjcWetMzPP70U9WNEAQAT4tYB07woT0q4sNLmZXUJHJv9EExe4ufv1oA==", + "version": "20.3.40", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-20.3.40.tgz", + "integrity": "sha512-+tVvDYWPlQeH+6p2RhWj59JZ+Nf5ewuUz0Cg7YU3Gc7vEA+NmLFx7PIwkNPjz65H65ts+XCfj/6pwmUqBH6CUw==", "dev": true, "license": "MIT", "dependencies": { "@ampproject/remapping": "2.3.0", - "@angular-devkit/architect": "0.2003.36", - "@angular-devkit/build-webpack": "0.2003.36", - "@angular-devkit/core": "20.3.36", - "@angular/build": "20.3.36", + "@angular-devkit/architect": "0.2003.40", + "@angular-devkit/build-webpack": "0.2003.40", + "@angular-devkit/core": "20.3.40", + "@angular/build": "20.3.40", "@babel/core": "7.29.7", "@babel/generator": "7.28.3", "@babel/helper-annotate-as-pure": "7.27.3", @@ -637,7 +788,7 @@ "@babel/preset-env": "7.28.3", "@babel/runtime": "7.28.3", "@discoveryjs/json-ext": "0.6.3", - "@ngtools/webpack": "20.3.36", + "@ngtools/webpack": "20.3.40", "ansi-colors": "4.1.3", "autoprefixer": "10.4.21", "babel-loader": "10.0.0", @@ -658,7 +809,7 @@ "open": "10.2.0", "ora": "8.2.0", "picomatch": "4.0.4", - "piscina": "5.2.0", + "piscina": "5.3.2", "postcss": "8.5.23", "postcss-loader": "8.1.1", "resolve-url-loader": "5.0.0", @@ -692,7 +843,7 @@ "@angular/platform-browser": "^20.0.0", "@angular/platform-server": "^20.0.0", "@angular/service-worker": "^20.0.0", - "@angular/ssr": "^20.3.36", + "@angular/ssr": "^20.3.40", "@web/test-runner": "^0.20.0", "browser-sync": "^3.0.2", "jest": "^29.5.0 || ^30.2.0", @@ -748,10 +899,26 @@ } } }, + "node_modules/@angular-devkit/build-angular/node_modules/@angular-devkit/architect": { + "version": "0.2003.40", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2003.40.tgz", + "integrity": "sha512-8XPEUuwzyvaBzTO4e7DZskgDyLepfJI39/blAGzKqsob3NRlbtP/2+6lk9VgwkwuKF1KPJgmU1Sa67MB0qFNUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "20.3.40", + "rxjs": "7.8.2" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, "node_modules/@angular-devkit/build-angular/node_modules/@angular-devkit/core": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.36.tgz", - "integrity": "sha512-fEbY8VFXP5ODfkDQJ4pNCexvQU0lDxL7azI+qbGu7osGgORg/LJaEGAXRKBBGvpLDpHcGjdSD26/Tms7xXmMnQ==", + "version": "20.3.40", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.40.tgz", + "integrity": "sha512-H7A7p3hP4/6rZmZGrjyipWMFMMW1iWILxAizfGNUEef2ymMIs7uX/uuCdL4BP1vDF8MorLCgeCChLJ2QZuv8UQ==", "dev": true, "license": "MIT", "dependencies": { @@ -776,6 +943,105 @@ } } }, + "node_modules/@angular-devkit/build-angular/node_modules/@angular/build": { + "version": "20.3.40", + "resolved": "https://registry.npmjs.org/@angular/build/-/build-20.3.40.tgz", + "integrity": "sha512-lFa1DVul9/VncuoZgmhEij86jdPC77/mX5QrTB5OPFwQeBrlK1FRwEh46hrtdsW5qnVVMAf+wx5+B/N7FuvcKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "2.3.0", + "@angular-devkit/architect": "0.2003.40", + "@babel/core": "7.29.7", + "@babel/helper-annotate-as-pure": "7.27.3", + "@babel/helper-split-export-declaration": "7.24.7", + "@inquirer/confirm": "5.1.14", + "@vitejs/plugin-basic-ssl": "2.1.0", + "beasties": "0.3.5", + "browserslist": "^4.23.0", + "esbuild": "0.28.1", + "https-proxy-agent": "7.0.6", + "istanbul-lib-instrument": "6.0.3", + "jsonc-parser": "3.3.1", + "listr2": "9.0.1", + "magic-string": "0.30.17", + "mrmime": "2.0.1", + "parse5-html-rewriting-stream": "8.0.0", + "picomatch": "4.0.4", + "piscina": "5.3.2", + "rollup": "4.59.0", + "sass": "1.90.0", + "semver": "7.7.2", + "source-map-support": "0.5.21", + "tinyglobby": "0.2.14", + "vite": "7.3.6", + "watchpack": "2.4.4" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "optionalDependencies": { + "lmdb": "3.4.2" + }, + "peerDependencies": { + "@angular/compiler": "^20.0.0", + "@angular/compiler-cli": "^20.0.0", + "@angular/core": "^20.0.0", + "@angular/localize": "^20.0.0", + "@angular/platform-browser": "^20.0.0", + "@angular/platform-server": "^20.0.0", + "@angular/service-worker": "^20.0.0", + "@angular/ssr": "^20.3.40", + "karma": "^6.4.0", + "less": "^4.2.0", + "ng-packagr": "^20.0.0", + "postcss": "^8.4.0", + "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0", + "tslib": "^2.3.0", + "typescript": ">=5.8 <6.0", + "vitest": "^3.1.1" + }, + "peerDependenciesMeta": { + "@angular/core": { + "optional": true + }, + "@angular/localize": { + "optional": true + }, + "@angular/platform-browser": { + "optional": true + }, + "@angular/platform-server": { + "optional": true + }, + "@angular/service-worker": { + "optional": true + }, + "@angular/ssr": { + "optional": true + }, + "karma": { + "optional": true + }, + "less": { + "optional": true + }, + "ng-packagr": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tailwindcss": { + "optional": true + }, + "vitest": { + "optional": true + } + } + }, "node_modules/@angular-devkit/build-angular/node_modules/@babel/runtime": { "version": "7.28.3", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.3.tgz", @@ -787,9 +1053,9 @@ } }, "node_modules/@angular-devkit/build-angular/node_modules/ansi-regex": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz", - "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz", + "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==", "dev": true, "license": "MIT", "engines": { @@ -1204,19 +1470,6 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/@angular-devkit/build-angular/node_modules/watchpack": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.2.tgz", - "integrity": "sha512-6i/00NBjP4yGPs+caKSyRfpTF/8Torsu0MOW3mMzIbhgISFder8i7xbqgHlLMwJrdiN8ndBV3UA1/AfzPSr+jg==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, "node_modules/@angular-devkit/build-angular/node_modules/webpack": { "version": "5.105.0", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz", @@ -1266,14 +1519,27 @@ } } }, + "node_modules/@angular-devkit/build-angular/node_modules/webpack/node_modules/watchpack": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.6.1.tgz", + "integrity": "sha512-8mk/LnXpQAiM2xKZhTkxikwly5GhL2Z+DWiLTkMa/E1Nfv9zURhHgiFyWvM4BWqW+LjIgL2AIS7JntEUx6v3vQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/@angular-devkit/build-webpack": { - "version": "0.2003.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.2003.36.tgz", - "integrity": "sha512-JmrH4H1gPB8vcpEMXzsd4KUMorbv2dPJwb99BmSr2WCR+tO0IvllEbGRPe0483J5WdOOqQhn0xn8+mjy+ta+RA==", + "version": "0.2003.40", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.2003.40.tgz", + "integrity": "sha512-ac/19cmTHTPkhAWnole0p7BcZrte+vcnfUKnaC09G8WE1O21dY/135wWI8IwrN60thvkTlCIOPAI6FxHbev4EA==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/architect": "0.2003.36", + "@angular-devkit/architect": "0.2003.40", "rxjs": "7.8.2" }, "engines": { @@ -1286,6 +1552,50 @@ "webpack-dev-server": "^5.0.2" } }, + "node_modules/@angular-devkit/build-webpack/node_modules/@angular-devkit/architect": { + "version": "0.2003.40", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2003.40.tgz", + "integrity": "sha512-8XPEUuwzyvaBzTO4e7DZskgDyLepfJI39/blAGzKqsob3NRlbtP/2+6lk9VgwkwuKF1KPJgmU1Sa67MB0qFNUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "20.3.40", + "rxjs": "7.8.2" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/build-webpack/node_modules/@angular-devkit/core": { + "version": "20.3.40", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.40.tgz", + "integrity": "sha512-H7A7p3hP4/6rZmZGrjyipWMFMMW1iWILxAizfGNUEef2ymMIs7uX/uuCdL4BP1vDF8MorLCgeCChLJ2QZuv8UQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "8.18.0", + "ajv-formats": "3.0.1", + "jsonc-parser": "3.3.1", + "picomatch": "4.0.4", + "rxjs": "7.8.2", + "source-map": "0.7.6" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "chokidar": "^4.0.0" + }, + "peerDependenciesMeta": { + "chokidar": { + "optional": true + } + } + }, "node_modules/@angular-devkit/core": { "version": "12.2.18", "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.18.tgz", @@ -1382,13 +1692,13 @@ "license": "0BSD" }, "node_modules/@angular-devkit/schematics": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.3.36.tgz", - "integrity": "sha512-SZ5n723pRWuiAy5MWMJFrMzIoX6X9mFRnEc0qAuGL/HjGgdVv3qT+FuNcpxX+pdt0tjtGVYKjhuwDtjtvNXxkA==", + "version": "20.3.41", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.3.41.tgz", + "integrity": "sha512-cDT/j0wI2GfQLBKws1icGZm3Nsn1SfvBd8FLqmwzMQrR9yyoopwPVCaoFHuFad1bMKO/YzW7z95bIcIEJ7wXwQ==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/core": "20.3.36", + "@angular-devkit/core": "20.3.41", "jsonc-parser": "3.3.1", "magic-string": "0.30.17", "ora": "8.2.0", @@ -1401,9 +1711,9 @@ } }, "node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.36.tgz", - "integrity": "sha512-fEbY8VFXP5ODfkDQJ4pNCexvQU0lDxL7azI+qbGu7osGgORg/LJaEGAXRKBBGvpLDpHcGjdSD26/Tms7xXmMnQ==", + "version": "20.3.41", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.41.tgz", + "integrity": "sha512-zkAUfR+uH+KAOZwEAx4PAFGvdM449JoWF0JN7ViXnlSX/kNavKCZ2ZbZjeIOUiuN1KCPx81n6UbeyesmxrLudw==", "dev": true, "license": "MIT", "dependencies": { @@ -1802,153 +2112,20 @@ "typescript": "*" } }, - "node_modules/@angular/animations": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-20.3.30.tgz", - "integrity": "sha512-1bmSYgstT2oVeQ7IcBeTBnT5ZRxPFccuXL1vcETl+dcPTrBwrp5ADThmExraC3tJiQPjFCwm5r6dNvJsIpHKkg==", - "deprecated": "@angular/animations is deprecated. Use `animate.enter` and `animate.leave` instead. For more information see: https://v22.angular.dev/guide/animations.", - "license": "MIT", - "dependencies": { - "tslib": "^2.3.0" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" - }, - "peerDependencies": { - "@angular/core": "20.3.30" - } - }, - "node_modules/@angular/build": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular/build/-/build-20.3.36.tgz", - "integrity": "sha512-xt+k9HKNj+uiwMAOCzCzygdLezSCI8b6WrzT5ypzk6iarlzvjB3O+I/AHdOqcw/9q+khGI3IrbZcdOFfT3bfhg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@ampproject/remapping": "2.3.0", - "@angular-devkit/architect": "0.2003.36", - "@babel/core": "7.29.7", - "@babel/helper-annotate-as-pure": "7.27.3", - "@babel/helper-split-export-declaration": "7.24.7", - "@inquirer/confirm": "5.1.14", - "@vitejs/plugin-basic-ssl": "2.1.0", - "beasties": "0.3.5", - "browserslist": "^4.23.0", - "esbuild": "0.28.1", - "https-proxy-agent": "7.0.6", - "istanbul-lib-instrument": "6.0.3", - "jsonc-parser": "3.3.1", - "listr2": "9.0.1", - "magic-string": "0.30.17", - "mrmime": "2.0.1", - "parse5-html-rewriting-stream": "8.0.0", - "picomatch": "4.0.4", - "piscina": "5.2.0", - "rollup": "4.59.0", - "sass": "1.90.0", - "semver": "7.7.2", - "source-map-support": "0.5.21", - "tinyglobby": "0.2.14", - "vite": "7.3.6", - "watchpack": "2.4.4" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0", - "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", - "yarn": ">= 1.13.0" - }, - "optionalDependencies": { - "lmdb": "3.4.2" - }, - "peerDependencies": { - "@angular/compiler": "^20.0.0", - "@angular/compiler-cli": "^20.0.0", - "@angular/core": "^20.0.0", - "@angular/localize": "^20.0.0", - "@angular/platform-browser": "^20.0.0", - "@angular/platform-server": "^20.0.0", - "@angular/service-worker": "^20.0.0", - "@angular/ssr": "^20.3.36", - "karma": "^6.4.0", - "less": "^4.2.0", - "ng-packagr": "^20.0.0", - "postcss": "^8.4.0", - "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0", - "tslib": "^2.3.0", - "typescript": ">=5.8 <6.0", - "vitest": "^3.1.1" - }, - "peerDependenciesMeta": { - "@angular/core": { - "optional": true - }, - "@angular/localize": { - "optional": true - }, - "@angular/platform-browser": { - "optional": true - }, - "@angular/platform-server": { - "optional": true - }, - "@angular/service-worker": { - "optional": true - }, - "@angular/ssr": { - "optional": true - }, - "karma": { - "optional": true - }, - "less": { - "optional": true - }, - "ng-packagr": { - "optional": true - }, - "postcss": { - "optional": true - }, - "tailwindcss": { - "optional": true - }, - "vitest": { - "optional": true - } - } - }, - "node_modules/@angular/build/node_modules/sass": { - "version": "1.90.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.90.0.tgz", - "integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==", - "dev": true, + "node_modules/@angular/animations": { + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-20.3.34.tgz", + "integrity": "sha512-HdDfbLwpxzx49wAWz4oOUQKSkZcFNRpWEGsDEgufZ3ExwxRk1/2QPJuvZ2CbhKeEcLPrLKUorQ8XlGrNsJmNiQ==", + "deprecated": "@angular/animations is deprecated. Use `animate.enter` and `animate.leave` instead. For more information see: https://v22.angular.dev/guide/animations.", "license": "MIT", "dependencies": { - "chokidar": "^4.0.0", - "immutable": "^5.0.2", - "source-map-js": ">=0.6.2 <2.0.0" - }, - "bin": { - "sass": "sass.js" + "tslib": "^2.3.0" }, "engines": { - "node": ">=14.0.0" - }, - "optionalDependencies": { - "@parcel/watcher": "^2.4.1" - } - }, - "node_modules/@angular/build/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@angular/core": "20.3.34" } }, "node_modules/@angular/cdk": { @@ -1967,19 +2144,19 @@ } }, "node_modules/@angular/cli": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-20.3.36.tgz", - "integrity": "sha512-sQc581t8j5OIlrCY5eJtWUMo7wTF78wyha7N/7pIagje2d/DqDF9dWTCIvljl94lmHysw+ctuR9WwHHhU8j4bQ==", + "version": "20.3.41", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-20.3.41.tgz", + "integrity": "sha512-mSHC//2Mi3aDk3kdGKFhwuHCEcqHW5FlbdnKB1jycOg/ptgd1lysRSGLqRBc6ZNRSAgBrfIrWRR+nnQg7o0Ozw==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/architect": "0.2003.36", - "@angular-devkit/core": "20.3.36", - "@angular-devkit/schematics": "20.3.36", + "@angular-devkit/architect": "0.2003.41", + "@angular-devkit/core": "20.3.41", + "@angular-devkit/schematics": "20.3.41", "@inquirer/prompts": "7.8.2", "@listr2/prompt-adapter-inquirer": "3.0.1", - "@modelcontextprotocol/sdk": "1.30.0", - "@schematics/angular": "20.3.36", + "@modelcontextprotocol/sdk": "1.32.1", + "@schematics/angular": "20.3.41", "@yarnpkg/lockfile": "1.1.0", "algoliasearch": "5.35.0", "ini": "5.0.0", @@ -1990,7 +2167,7 @@ "resolve": "1.22.10", "semver": "7.7.2", "yargs": "18.0.0", - "zod": "4.1.13" + "zod": "4.6.6" }, "bin": { "ng": "bin/ng.js" @@ -2002,9 +2179,9 @@ } }, "node_modules/@angular/cli/node_modules/@angular-devkit/core": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.36.tgz", - "integrity": "sha512-fEbY8VFXP5ODfkDQJ4pNCexvQU0lDxL7azI+qbGu7osGgORg/LJaEGAXRKBBGvpLDpHcGjdSD26/Tms7xXmMnQ==", + "version": "20.3.41", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.41.tgz", + "integrity": "sha512-zkAUfR+uH+KAOZwEAx4PAFGvdM449JoWF0JN7ViXnlSX/kNavKCZ2ZbZjeIOUiuN1KCPx81n6UbeyesmxrLudw==", "dev": true, "license": "MIT", "dependencies": { @@ -2171,9 +2348,9 @@ } }, "node_modules/@angular/common": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-20.3.30.tgz", - "integrity": "sha512-XDeT5lshP2tpl9/6IAPmJ5M4zzOTJSUtRxfkOrxmNnNCH4+vbBv1RYs2bnUDdZNsFxRMrV/ZvpZfO7dZTAie+Q==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-20.3.34.tgz", + "integrity": "sha512-OhB/l0cNldOvQeICqbWqRUzK5fF6zNYy44Q4cIGJZql8HXL/invGiqWLE9f+kU8z4jRisofHIGTBtyJQYYOudg==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -2182,14 +2359,14 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/core": "20.3.30", + "@angular/core": "20.3.34", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/compiler": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.3.30.tgz", - "integrity": "sha512-0nvYF7u4AmSFGWUbkm4xWgZ5m4wLr1wo6YbflZzKZfxQ2EGOqEF0jgdBoB/oSU6cFi8EqgQ+vY24g8wAKAwxmA==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.3.34.tgz", + "integrity": "sha512-8agPW384c/JER1ersPTmJJfcCOnlYcBbdj0MYRxNdiYe+7gtnspF3ORuJmxqCEpMS17AljSmk2skwUcYnHB6xA==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -2199,9 +2376,9 @@ } }, "node_modules/@angular/compiler-cli": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-20.3.30.tgz", - "integrity": "sha512-wWxScyHv3LvjEEJwOBiWSs+zRsCFBS90mGdogMmI7k2A8P6uT/zRDf9wDy1fn2kR6wteRJbGjb88eJecSc126g==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-20.3.34.tgz", + "integrity": "sha512-PKHzhSOyDUFh64Ull3fUwgFlxnsQNEAuRyz4KqQ8FsTGZ4pOpUaZntO+2Xn1nX/gT2whSyGBJhD3H37zA8ZGEQ==", "license": "MIT", "dependencies": { "@babel/core": "7.29.7", @@ -2221,7 +2398,7 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/compiler": "20.3.30", + "@angular/compiler": "20.3.34", "typescript": ">=5.8 <6.0" }, "peerDependenciesMeta": { @@ -2350,9 +2527,9 @@ } }, "node_modules/@angular/core": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-20.3.30.tgz", - "integrity": "sha512-dSjere7z2QkIipxDheRrkz3WwRUMcTrzPYt+P+OB8v/XyUzi2ynjP19LHhEAYzYmcR8J6/S1pe3bsyKKE1HCMg==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-20.3.34.tgz", + "integrity": "sha512-xOvSmGoao3SVPz//R7zTrq7+WdrIGi+WNpAdxJEvJJXuSpLGS3kSUqukjY4kOMochg2v0NCEPIdCyH+yPs8JSw==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -2361,7 +2538,7 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/compiler": "20.3.30", + "@angular/compiler": "20.3.34", "rxjs": "^6.5.3 || ^7.4.0", "zone.js": "~0.15.0" }, @@ -2375,9 +2552,9 @@ } }, "node_modules/@angular/forms": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.3.30.tgz", - "integrity": "sha512-rdpUQf6pJb8b5pZ196BwEggSl0NJYWrO0QpGvwIMYDj5bwayz5nC4elSmgnqc9FAcPlenXam/fj7vaS+w3ioMg==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.3.34.tgz", + "integrity": "sha512-DndQJEoORsdthFFVRvT9WHn8YcA85jkjMxCLtXyf+TDVk0zbqObbFDfrloRnJwsINqfDNsJrz23ko3YU6sjnTw==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -2386,16 +2563,16 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/common": "20.3.30", - "@angular/core": "20.3.30", - "@angular/platform-browser": "20.3.30", + "@angular/common": "20.3.34", + "@angular/core": "20.3.34", + "@angular/platform-browser": "20.3.34", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/localize": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-20.3.30.tgz", - "integrity": "sha512-5GAAikYYv4XtifpPHCU9T4qKUhzBif/LpkbaF6TJOETaWLI/UK9rf+s/0T8XBJPwgrsvrbrB5Hwap6k/Iwklpg==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-20.3.34.tgz", + "integrity": "sha512-cwrALDo6HvkQEOc5CyQS3ZukGq7+pSaQAPdYB84nvYXjiYwodaVkpxEhHD7ieFksZ0jIdJo82+vGzUhdHGqm4Q==", "license": "MIT", "dependencies": { "@babel/core": "7.29.7", @@ -2412,8 +2589,8 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/compiler": "20.3.30", - "@angular/compiler-cli": "20.3.30" + "@angular/compiler": "20.3.34", + "@angular/compiler-cli": "20.3.34" } }, "node_modules/@angular/localize/node_modules/ansi-regex": { @@ -2536,9 +2713,9 @@ } }, "node_modules/@angular/platform-browser": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.3.30.tgz", - "integrity": "sha512-K5UlNV6Dg6BesCIDtrXgFLERZY9YYCD8VzYxBEHZn1lVD4KpQL0Qk8NNFAx0T7ikfSuSyOrXA3RGxQobYdjH2g==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.3.34.tgz", + "integrity": "sha512-0bd2Bj05WPoBTFM0A13IwbzxKVQPstx/N+7X0ZWKCifliyydIc7DBHu+r37ybJpl8ZsCVBe7DoR9Gon4lZ+zlw==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -2547,9 +2724,9 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/animations": "20.3.30", - "@angular/common": "20.3.30", - "@angular/core": "20.3.30" + "@angular/animations": "20.3.34", + "@angular/common": "20.3.34", + "@angular/core": "20.3.34" }, "peerDependenciesMeta": { "@angular/animations": { @@ -2558,9 +2735,9 @@ } }, "node_modules/@angular/platform-browser-dynamic": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-20.3.30.tgz", - "integrity": "sha512-hLjKjre1fLD/FUBPSeeJ/XkkgASWs7iFoOLyMKnOuE/Hdsv0L8FddGAMaRp9EAVQUfH+Ej5ZCOBoZG2fT5758A==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-20.3.34.tgz", + "integrity": "sha512-vqKzExmUDf5jpIlNZRuICsLzaLWY5yTvuXsJhe97KTbC29BD71LhRGhEu7fjmR5uYy+LForpWYm5IsYlJcJAGQ==", "deprecated": "@angular/platform-browser-dynamic is deprecated. Use `@angular/platform-browser` instead.", "license": "MIT", "dependencies": { @@ -2570,16 +2747,16 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/common": "20.3.30", - "@angular/compiler": "20.3.30", - "@angular/core": "20.3.30", - "@angular/platform-browser": "20.3.30" + "@angular/common": "20.3.34", + "@angular/compiler": "20.3.34", + "@angular/core": "20.3.34", + "@angular/platform-browser": "20.3.34" } }, "node_modules/@angular/platform-server": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-20.3.30.tgz", - "integrity": "sha512-L7k5juh0sD5eBg3vJdzGmdScUVZzEBg4C19qvkJnDmBK5tiQ6we3jTMZEzGZNq83qMNZL/VrxDAMdiddapf6IA==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-20.3.34.tgz", + "integrity": "sha512-i45tIIgwx2UqDh6r9wOjIm9qJmQAWAlIECiKC7l/u4AUUUsPYSUx2K/Xoa2n4ynffG9PxK1/XfKJthwHDE+Bew==", "license": "MIT", "dependencies": { "tslib": "^2.3.0", @@ -2589,17 +2766,17 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/common": "20.3.30", - "@angular/compiler": "20.3.30", - "@angular/core": "20.3.30", - "@angular/platform-browser": "20.3.30", + "@angular/common": "20.3.34", + "@angular/compiler": "20.3.34", + "@angular/core": "20.3.34", + "@angular/platform-browser": "20.3.34", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/router": { - "version": "20.3.30", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-20.3.30.tgz", - "integrity": "sha512-QZcKFVW/WQGfBg8fQa/UUD56TojO1Wm+EBRDL6FXXGNo6Tg84mRNHgy49EtmlzfiCC94DSmAgWg6z1CX0rGSNw==", + "version": "20.3.34", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-20.3.34.tgz", + "integrity": "sha512-vQo2f/94nUoNMZaxGY0+fK1t9Oe7zJuxHhoMVYhDbCqKxINVmxMX/9uEHlHeu9UIE7JMazepQjRzBLo7bf9xCw==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -2608,16 +2785,16 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/common": "20.3.30", - "@angular/core": "20.3.30", - "@angular/platform-browser": "20.3.30", + "@angular/common": "20.3.34", + "@angular/core": "20.3.34", + "@angular/platform-browser": "20.3.34", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/ssr": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular/ssr/-/ssr-20.3.36.tgz", - "integrity": "sha512-yiG1VylUBc7TmKxslIRTNNEdsx3MruEPZCaWlg5wlxDr5qMZel0XauFF8oXrRB6sgPBhbJ8Xkt3xRjm75WJIjA==", + "version": "20.3.40", + "resolved": "https://registry.npmjs.org/@angular/ssr/-/ssr-20.3.40.tgz", + "integrity": "sha512-pOT2NTmBFrEGMfstpIRpLCw/oAYV59AS2l7r36dSLPnmitlhMxM5sSopDq1z/QDT0jAr0qCwgXRedK/+wGN08g==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -2834,14 +3011,14 @@ } }, "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.29.7.tgz", - "integrity": "sha512-907Uymvqgg1dwUA+7IGwFAOSYzQOuzPXKNJ1yxzwPffzkYFg2q2eHi1fIOs6sXkG9NbIUMunnUlkYsfRFNvomg==", + "version": "7.29.10", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.29.10.tgz", + "integrity": "sha512-/YY9soQuWa8TURtHXHT+GbklpbAA+dZErxFGHIr6qgDg96xuGWrTAs1+MfjgVJPF0YLQsOVsOYs8lhgsPbOinQ==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.29.7", - "regexpu-core": "^6.3.1", + "regexpu-core": "^6.5.3", "semver": "^6.3.1" }, "engines": { @@ -2892,14 +3069,14 @@ } }, "node_modules/@babel/helper-define-polyfill-provider/node_modules/resolve": { - "version": "1.22.12", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", - "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", + "version": "1.22.13", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.13.tgz", + "integrity": "sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "is-core-module": "^2.16.1", + "is-core-module": "^2.17.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -3121,9 +3298,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", - "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", + "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", "license": "MIT", "dependencies": { "@babel/types": "^7.29.8" @@ -3734,42 +3911,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-modules-systemjs/node_modules/@babel/generator": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", - "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.29.8", - "@babel/types": "^7.29.8", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs/node_modules/@babel/traverse": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", - "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.8", - "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.8", - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/plugin-transform-modules-umd": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.29.7.tgz", @@ -4364,17 +4505,17 @@ } }, "node_modules/@babel/traverse": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", - "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", + "version": "7.29.10", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.10.tgz", + "integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", + "@babel/generator": "^7.29.8", "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.7", + "@babel/parser": "^7.29.9", "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7", + "@babel/types": "^7.29.8", "debug": "^4.3.1" }, "engines": { @@ -4382,13 +4523,13 @@ } }, "node_modules/@babel/traverse/node_modules/@babel/generator": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", - "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", + "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7", + "@babel/parser": "^7.29.8", + "@babel/types": "^7.29.8", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -4480,9 +4621,9 @@ } }, "node_modules/@csstools/postcss-cascade-layers/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -4608,9 +4749,9 @@ } }, "node_modules/@csstools/postcss-is-pseudo-class/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -5586,16 +5727,16 @@ } }, "node_modules/@hono/node-server": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.1.tgz", - "integrity": "sha512-ELuehkj5VCBdgEw9zs+ivkKwyzzUCSQuE96YmiPvn1ECBoZCczbFXJLeEGMTYjphP6gydh4pHMqEYPVMYUVgQg==", + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.5.tgz", + "integrity": "sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==", "dev": true, "license": "MIT", "engines": { "node": ">=20" }, "peerDependencies": { - "hono": "^4" + "hono": "^4 || ^5.0.0-0" } }, "node_modules/@humanfs/core": { @@ -6259,14 +6400,14 @@ } }, "node_modules/@jsonjoy.com/fs-core": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-core/-/fs-core-4.69.1.tgz", - "integrity": "sha512-ohxv/4KZSG03UmjDo//eIjedRRQEcIc0w4IjbyBcMS4mdkvTVMQwfNm1Ivxj4z35xIwpQbJ+1sGKq3l4vTaFiA==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-core/-/fs-core-4.80.0.tgz", + "integrity": "sha512-qMKWshnyjbyhm+NbzqGE3w5y1mckFFEMj0aDPU2/JBNh1BzIjVy9esq9lBmRnNVmhMEkxwDzLZ8Gqh5G1P5Dag==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@jsonjoy.com/fs-node-builtins": "4.69.1", - "@jsonjoy.com/fs-node-utils": "4.69.1", + "@jsonjoy.com/fs-node-builtins": "4.80.0", + "@jsonjoy.com/fs-node-utils": "4.80.0", "thingies": "^2.5.0" }, "engines": { @@ -6281,15 +6422,15 @@ } }, "node_modules/@jsonjoy.com/fs-fsa": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-fsa/-/fs-fsa-4.69.1.tgz", - "integrity": "sha512-z9IfdQyZGXL9GB9gv+dXRuMjOjY8s2EmFQ8DhdxxjFJGfPITDDW1j/W84jlBr2SmCc+yv47yYiNQ3powkqWGVQ==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-fsa/-/fs-fsa-4.80.0.tgz", + "integrity": "sha512-ZBEKl7J6dbkRCfmrFV48Re211A/FHqniTUhsWCsaRteNSOqMgkX3qF1UreVgwB9oSPm81JLAwhIi6Lb/NH/PoA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@jsonjoy.com/fs-core": "4.69.1", - "@jsonjoy.com/fs-node-builtins": "4.69.1", - "@jsonjoy.com/fs-node-utils": "4.69.1", + "@jsonjoy.com/fs-core": "4.80.0", + "@jsonjoy.com/fs-node-builtins": "4.80.0", + "@jsonjoy.com/fs-node-utils": "4.80.0", "thingies": "^2.5.0" }, "engines": { @@ -6304,18 +6445,18 @@ } }, "node_modules/@jsonjoy.com/fs-node": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node/-/fs-node-4.69.1.tgz", - "integrity": "sha512-oIIXv5EfAqj2Wsck9dDa5njbTyCpef4OV+W1h7cYrlph0rRIay91DIhNk+OdiwLgKHoqyBmUWRy3GXAHGiXQZw==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node/-/fs-node-4.80.0.tgz", + "integrity": "sha512-yiBlUfkMMRFFGy8CD/h2zd5rPnrM6bjlF+nx2LRAxNV6hOSiuObQIUEE7m7y2VTMisjxCRtzINH94bFGySWL7g==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@jsonjoy.com/fs-core": "4.69.1", - "@jsonjoy.com/fs-node-builtins": "4.69.1", - "@jsonjoy.com/fs-node-utils": "4.69.1", - "@jsonjoy.com/fs-print": "4.69.1", - "@jsonjoy.com/fs-snapshot": "4.69.1", - "glob-to-regex.js": "^1.0.0", + "@jsonjoy.com/fs-core": "4.80.0", + "@jsonjoy.com/fs-node-builtins": "4.80.0", + "@jsonjoy.com/fs-node-utils": "4.80.0", + "@jsonjoy.com/fs-print": "4.80.0", + "@jsonjoy.com/fs-snapshot": "4.80.0", + "glob-to-regex.js": "^1.3.1", "thingies": "^2.5.0" }, "engines": { @@ -6330,9 +6471,9 @@ } }, "node_modules/@jsonjoy.com/fs-node-builtins": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-builtins/-/fs-node-builtins-4.69.1.tgz", - "integrity": "sha512-nJddTKNx2FrH+fNRHcHJpCD8bwZlQmYaT8SPEG86kKUae5XzWU5hXdk9T4vKU9yBoXfT2po1A3K/twf8ujBd0g==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-builtins/-/fs-node-builtins-4.80.0.tgz", + "integrity": "sha512-OIOIhqaWiwUySFMny4epIAoviXsyMaQQ63PTc3zH+5HEOvarl5hpUmZIhp2m5+OfyKAh5ylxXnQIgew1OgJDVw==", "dev": true, "license": "Apache-2.0", "engines": { @@ -6347,15 +6488,15 @@ } }, "node_modules/@jsonjoy.com/fs-node-to-fsa": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-to-fsa/-/fs-node-to-fsa-4.69.1.tgz", - "integrity": "sha512-1GTORTbZ2GcshGyaGNgqJAm/INOWyTdHMbeuj2CsBWKYEQYHW4ZvkKHaR+46SO762skZcNVja3dLIfk3s1AdcQ==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-to-fsa/-/fs-node-to-fsa-4.80.0.tgz", + "integrity": "sha512-ljeaR5xwtX1EyRmB0wvXANUMQZ3mjKcm7z8s2N8D8SLQ04CcAGtUhHFRZQXFb9mhgFyEVMydQGQtSOFS7pcrFQ==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@jsonjoy.com/fs-fsa": "4.69.1", - "@jsonjoy.com/fs-node-builtins": "4.69.1", - "@jsonjoy.com/fs-node-utils": "4.69.1" + "@jsonjoy.com/fs-fsa": "4.80.0", + "@jsonjoy.com/fs-node-builtins": "4.80.0", + "@jsonjoy.com/fs-node-utils": "4.80.0" }, "engines": { "node": ">=10.0" @@ -6369,14 +6510,14 @@ } }, "node_modules/@jsonjoy.com/fs-node-utils": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-utils/-/fs-node-utils-4.69.1.tgz", - "integrity": "sha512-45kAGpkTUKBNRguS34fdBkXbkBuZM75oU+snf3kRjfQGWHmp93aNKHdtbqrVqxpOdOvWAFnMx+UN6rRSLN2p9g==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-utils/-/fs-node-utils-4.80.0.tgz", + "integrity": "sha512-xwHeVVi3f+Khg/Fmb8i5qoYVmQ08QznE5TWhQokUmIZjz4KBPzU+zt/+bahBI6G1ghtqajt27lWuAciIxApuzA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@jsonjoy.com/fs-node-builtins": "4.69.1", - "glob-to-regex.js": "^1.0.1" + "@jsonjoy.com/fs-node-builtins": "4.80.0", + "glob-to-regex.js": "^1.3.1" }, "engines": { "node": ">=10.0" @@ -6390,13 +6531,13 @@ } }, "node_modules/@jsonjoy.com/fs-print": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-print/-/fs-print-4.69.1.tgz", - "integrity": "sha512-As9V7Ra/mHsjHQicor5PTTymcqPb2QRTonedIsMuqMz2JEAZIFdRy+qvi5O15lIe88fASxHQXLIU6H5G01kfxg==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-print/-/fs-print-4.80.0.tgz", + "integrity": "sha512-1ocZLJw/m/xlq0moaIHO7HV9nHRVBUvdc2zMzhsJGkFOrqfwWvexfCv5cYCPPLRhP+9p3yunoi4Ep5YhRORC9Q==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@jsonjoy.com/fs-node-utils": "4.69.1", + "@jsonjoy.com/fs-node-utils": "4.80.0", "tree-dump": "^1.1.0" }, "engines": { @@ -6411,14 +6552,14 @@ } }, "node_modules/@jsonjoy.com/fs-snapshot": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-snapshot/-/fs-snapshot-4.69.1.tgz", - "integrity": "sha512-wUffyQdpDSh5RVA+oubKLMcorJfpxUia+ETYPnK6LK+myJ4YVDKWX4UMSjUCapvbhjZRxr6tvwYh4zE3aBpAuA==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-snapshot/-/fs-snapshot-4.80.0.tgz", + "integrity": "sha512-3AV23Q1H228KTtJKTUE0nNq8FCtxSvtENOLrEat80wkAJCKHuqQEv8yjhpS8Bei2OEFJAnluGXp9Ri2SWBlROw==", "dev": true, "license": "Apache-2.0", "dependencies": { "@jsonjoy.com/buffers": "^17.65.0", - "@jsonjoy.com/fs-node-utils": "4.69.1", + "@jsonjoy.com/fs-node-utils": "4.80.0", "@jsonjoy.com/json-pack": "^17.65.0", "@jsonjoy.com/util": "^17.65.0" }, @@ -6966,9 +7107,9 @@ } }, "node_modules/@modelcontextprotocol/sdk": { - "version": "1.30.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.30.0.tgz", - "integrity": "sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==", + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.32.1.tgz", + "integrity": "sha512-2DdE+SJDtzLEEWzY1ZjY7Q+VcPhcV1KisD3zI4u0XZyktsjHum1mwbMI+JaulUBi2OZk+KJAi2uPXzxichPkdw==", "dev": true, "license": "MIT", "dependencies": { @@ -7021,19 +7162,19 @@ } }, "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", - "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", + "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==", "dev": true, "license": "MIT", "dependencies": { "bytes": "^3.1.2", - "content-type": "^2.0.0", + "content-type": "^2.1.0", "debug": "^4.4.3", "http-errors": "^2.0.1", - "iconv-lite": "^0.7.2", + "iconv-lite": "^0.7.3", "on-finished": "^2.4.1", - "qs": "^6.15.2", + "qs": "^6.16.1", "raw-body": "^3.0.2", "type-is": "^2.1.0" }, @@ -7060,9 +7201,9 @@ } }, "node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz", - "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz", + "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==", "dev": true, "license": "MIT", "engines": { @@ -7084,16 +7225,16 @@ } }, "node_modules/@modelcontextprotocol/sdk/node_modules/express": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", - "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", + "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==", "dev": true, "license": "MIT", "dependencies": { "accepts": "^2.0.0", - "body-parser": "^2.2.1", - "content-disposition": "^1.0.0", - "content-type": "^1.0.5", + "body-parser": "^2.3.0", + "content-disposition": "^2.0.1", + "content-type": "^2.0.0", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", @@ -7109,14 +7250,14 @@ "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", - "proxy-addr": "^2.0.7", - "qs": "^6.14.0", + "proxy-addr": "^2.0.8", + "qs": "^6.16.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", - "type-is": "^2.0.1", + "type-is": "^2.1.0", "vary": "^1.1.2" }, "engines": { @@ -7127,6 +7268,20 @@ "url": "https://opencollective.com/express" } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, "node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", @@ -7273,9 +7428,9 @@ } }, "node_modules/@modelcontextprotocol/sdk/node_modules/qs": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz", - "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==", + "version": "6.16.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.1.tgz", + "integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==", "dev": true, "license": "BSD-3-Clause", "dependencies": { @@ -7878,9 +8033,9 @@ } }, "node_modules/@ngtools/webpack": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-20.3.36.tgz", - "integrity": "sha512-nhJCavgHKEkw3ql6RtIaH8XPn9zdcoZlppmhx++IRGOIkMIChjOKQbrX35hoNuPIVZrSu2Y2CPZPgDMAGZJeSQ==", + "version": "20.3.40", + "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-20.3.40.tgz", + "integrity": "sha512-3HQVIXlkzT75AOi8odLdbK1zzM/uz21NBkAn+OHyREpyqtEUUN3+mQjYVgTn3eY337bxFxclqiSgM6zGo81wdg==", "dev": true, "license": "MIT", "engines": { @@ -7924,13 +8079,13 @@ } }, "node_modules/@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", "dev": true, "license": "MIT", "engines": { - "node": ">= 16" + "node": "^14.21.3 || >=16" }, "funding": { "url": "https://paulmillr.com/funding/" @@ -8576,15 +8731,15 @@ "optional": true }, "node_modules/@peculiar/asn1-cms": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-cms/-/asn1-cms-2.9.4.tgz", - "integrity": "sha512-cben7oxmQsUGZqotus7yt0srYdncOT6RNWcTQ77T2RFOXejYVYkXadrfePdRcrVpO9K95IRLKKglG2k38jKXuw==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-cms/-/asn1-cms-2.11.0.tgz", + "integrity": "sha512-SlAiDoT/Cd8qaNmbTt78gqyaEvu2fQd6ML6KWJkdjXGrgDKnHHrusVkfQUelkfinL2p665IIADb0JBixtT8W1g==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-schema": "^2.9.4", - "@peculiar/asn1-x509": "^2.9.4", - "@peculiar/asn1-x509-attr": "^2.9.4", + "@peculiar/asn1-schema": "^2.11.0", + "@peculiar/asn1-x509": "^2.11.0", + "@peculiar/asn1-x509-attr": "^2.11.0", "asn1js": "^3.0.10", "tslib": "^2.8.1" }, @@ -8593,14 +8748,14 @@ } }, "node_modules/@peculiar/asn1-csr": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-csr/-/asn1-csr-2.9.4.tgz", - "integrity": "sha512-xd4YN4vpRjkDAQWVfZZkeu12IEND7DOpkqaHSIHxZl1uggUNa9Ju0QxY2jHvDAS9pP0zhRBytg8ifsnGo3V0jw==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-csr/-/asn1-csr-2.11.0.tgz", + "integrity": "sha512-M/ED0yJ05qMK+UADPKnIa8vhAeewOJALSxTAZB7RQ/batRHhIJZkwznCcWAbFO5saHJ1yEQ+m4lncEcG9RnQSg==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-schema": "^2.9.4", - "@peculiar/asn1-x509": "^2.9.4", + "@peculiar/asn1-schema": "^2.11.0", + "@peculiar/asn1-x509": "^2.11.0", "asn1js": "^3.0.10", "tslib": "^2.8.1" }, @@ -8609,14 +8764,14 @@ } }, "node_modules/@peculiar/asn1-ecc": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-ecc/-/asn1-ecc-2.9.4.tgz", - "integrity": "sha512-JJXefFshRAuVAjWQo/39bkg1ywc1VaiO44S8RRC+Ykvf/u2KDmYffoDb0ZBPCR5uJy4AGKQhl8mX+Q8ShcWaXQ==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-ecc/-/asn1-ecc-2.11.0.tgz", + "integrity": "sha512-jj1alGEKev7/un+cI+exyVK9m31lmP7cCBMCZuCb0wkFQH2zmKmJzNiG4wqXFNzlcP8timHLnzf3lV3OxBpb/Q==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-schema": "^2.9.4", - "@peculiar/asn1-x509": "^2.9.4", + "@peculiar/asn1-schema": "^2.11.0", + "@peculiar/asn1-x509": "^2.11.0", "asn1js": "^3.0.10", "tslib": "^2.8.1" }, @@ -8625,16 +8780,16 @@ } }, "node_modules/@peculiar/asn1-pfx": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-pfx/-/asn1-pfx-2.9.4.tgz", - "integrity": "sha512-khuGzHTzNzk4GDlIBEILyIs6Lce0yn0ZBdoI9v93kmNncfZRhD+AQ5ODFqdhvoE8cMJF/JMTQ8yA+t1D14kqCw==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-pfx/-/asn1-pfx-2.11.0.tgz", + "integrity": "sha512-ykSAWRu8KkmzU8LRpk9ZQC3zuLmBEtoSMjIv9XHVamD5W7amqreV5wttKqnvtjWOzzSJQxA/HVT8/tHwpEEGSQ==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-cms": "^2.9.4", - "@peculiar/asn1-pkcs8": "^2.9.4", - "@peculiar/asn1-rsa": "^2.9.4", - "@peculiar/asn1-schema": "^2.9.4", + "@peculiar/asn1-cms": "^2.11.0", + "@peculiar/asn1-pkcs8": "^2.11.0", + "@peculiar/asn1-rsa": "^2.11.0", + "@peculiar/asn1-schema": "^2.11.0", "asn1js": "^3.0.10", "tslib": "^2.8.1" }, @@ -8643,14 +8798,14 @@ } }, "node_modules/@peculiar/asn1-pkcs8": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-pkcs8/-/asn1-pkcs8-2.9.4.tgz", - "integrity": "sha512-duRdotlUx9eDZe6QrQpQKl61RbWykCHBCkKayP8V8XdEFwlKHZ8qGGDMyS6Pye7OX7nLFttTTpRkJeet78ckwQ==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-pkcs8/-/asn1-pkcs8-2.11.0.tgz", + "integrity": "sha512-lragjkjQGnQ5luxC+sxoAfAO/jBiQ7hOEGlDKJUk7MC5zY3AzjB2DU0GyPUH1Sswdv10t7DurY0zylOYMLb88w==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-schema": "^2.9.4", - "@peculiar/asn1-x509": "^2.9.4", + "@peculiar/asn1-schema": "^2.11.0", + "@peculiar/asn1-x509": "^2.11.0", "asn1js": "^3.0.10", "tslib": "^2.8.1" }, @@ -8659,18 +8814,18 @@ } }, "node_modules/@peculiar/asn1-pkcs9": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-pkcs9/-/asn1-pkcs9-2.9.4.tgz", - "integrity": "sha512-kaL4cNxBpdQE2dKlyZBqz4ygCrwffO+8wfoxTEqM1Z8RadvCeELBRzcv0dzM8aY9azHMwODO5nxU65zXmhToOQ==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-pkcs9/-/asn1-pkcs9-2.11.0.tgz", + "integrity": "sha512-gDdFjpqV0weJjgNUvueUVf4D8uVbpq+VbG0TsxLAY2QGljAkJyL9qwQ7avol9j0jaYSJ7Ey7v7RZp0M3GTcQSA==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-cms": "^2.9.4", - "@peculiar/asn1-pfx": "^2.9.4", - "@peculiar/asn1-pkcs8": "^2.9.4", - "@peculiar/asn1-schema": "^2.9.4", - "@peculiar/asn1-x509": "^2.9.4", - "@peculiar/asn1-x509-attr": "^2.9.4", + "@peculiar/asn1-cms": "^2.11.0", + "@peculiar/asn1-pfx": "^2.11.0", + "@peculiar/asn1-pkcs8": "^2.11.0", + "@peculiar/asn1-schema": "^2.11.0", + "@peculiar/asn1-x509": "^2.11.0", + "@peculiar/asn1-x509-attr": "^2.11.0", "asn1js": "^3.0.10", "tslib": "^2.8.1" }, @@ -8679,14 +8834,14 @@ } }, "node_modules/@peculiar/asn1-rsa": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-rsa/-/asn1-rsa-2.9.4.tgz", - "integrity": "sha512-pZ96eD1PptovcWQ/GSmuNFXd/7EQJNlKfDaNCyE2rx3W0v6QFelkzquVqRSRyyDXXCYD69ZXJDzZ8GhIiQzKoA==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-rsa/-/asn1-rsa-2.11.0.tgz", + "integrity": "sha512-S2sBJmbfI09Kzdt9cEhE6pDNjHpVTkURs+811+PxS8AvsTLxC4woMNRhxHYaIbClkkNfAVt0tZxJdINVfUmzuA==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-schema": "^2.9.4", - "@peculiar/asn1-x509": "^2.9.4", + "@peculiar/asn1-schema": "^2.11.0", + "@peculiar/asn1-x509": "^2.11.0", "asn1js": "^3.0.10", "tslib": "^2.8.1" }, @@ -8695,9 +8850,9 @@ } }, "node_modules/@peculiar/asn1-schema": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.9.4.tgz", - "integrity": "sha512-GjzePcT9Iw8NzeOPf73iNS9xM+TBhd/FilAfP+RQGkTMQJTVWtytN3JHJACCjf/ABNau5S7mS3g+DcuxmRgYEg==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.11.0.tgz", + "integrity": "sha512-8xh4avo53/vXO6UEv9yaoJ83hY581geaLTygf61NPIXP5AeIZCPjJhpTaYU23IZkG+NpLN/C9FYzWp7hphIT9A==", "dev": true, "license": "MIT", "dependencies": { @@ -8710,13 +8865,13 @@ } }, "node_modules/@peculiar/asn1-x509": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-x509/-/asn1-x509-2.9.4.tgz", - "integrity": "sha512-CxhBo/RdEbMMob7T31ZdQjGuoyRFLVwrDzTn25bihzBasRg9kRm/0IxIPvhgQtcK/9dNcO1XQL2fuPugwELL0Q==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-x509/-/asn1-x509-2.11.0.tgz", + "integrity": "sha512-J1sHAwGNlk+8J+FeR1eLVc6Gq0T9f9ITc3HWyPYgJraoW6U8AJuQiWVJ3SCEpltfTdpOY7fHdHT5oKAsbK/jww==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-schema": "^2.9.4", + "@peculiar/asn1-schema": "^2.11.0", "@peculiar/utils": "^2.0.2", "asn1js": "^3.0.10", "tslib": "^2.8.1" @@ -8726,14 +8881,14 @@ } }, "node_modules/@peculiar/asn1-x509-attr": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-x509-attr/-/asn1-x509-attr-2.9.4.tgz", - "integrity": "sha512-ehQXbpQaQYycgu8OrvigwSPTFfVRcu0ECNYCWw+yzBp02Lw5paRqzzhUpfOgO2K38+WfFZuEz/0RPtam5g0OMg==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-x509-attr/-/asn1-x509-attr-2.11.0.tgz", + "integrity": "sha512-Fgvnd9REmLxEj/4cbDP54dNUNUXkzUksXLqEHqs1mHBuSRjSTCUSPM/WQIZYSvrdG7ND9CX1AQtPoIBekhgQSA==", "dev": true, "license": "MIT", "dependencies": { - "@peculiar/asn1-schema": "^2.9.4", - "@peculiar/asn1-x509": "^2.9.4", + "@peculiar/asn1-schema": "^2.11.0", + "@peculiar/asn1-x509": "^2.11.0", "asn1js": "^3.0.10", "tslib": "^2.8.1" }, @@ -8801,6 +8956,71 @@ "integrity": "sha512-Pc/AFTdwZwEKJxFJvlxrSmGe/di+aAOBn60sremrpLo6VI/6cmiUYNNwlI5KNYttg7uypzA3ILPMPgxB2GYZEg==", "license": "MIT" }, + "node_modules/@redis/bloom": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz", + "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==", + "license": "MIT", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/client": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@redis/client/-/client-1.6.1.tgz", + "integrity": "sha512-/KCsg3xSlR+nCK8/8ZYSknYxvXHwubJrU82F3Lm1Fp6789VQ0/3RJKfsmRXjqfaTA++23CvC3hqmqe/2GEt6Kw==", + "license": "MIT", + "dependencies": { + "cluster-key-slot": "1.1.2", + "generic-pool": "3.9.0", + "yallist": "4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@redis/client/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/@redis/graph": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.1.tgz", + "integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==", + "license": "MIT", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/json": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.7.tgz", + "integrity": "sha512-6UyXfjVaTBTJtKNG4/9Z8PSpKE6XgSyEb8iwaqDcy+uKrd/DGYHTWkUdnQDyzm727V7p21WUMhsqz5oy65kPcQ==", + "license": "MIT", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/search": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@redis/search/-/search-1.2.0.tgz", + "integrity": "sha512-tYoDBbtqOVigEDMAcTGsRlMycIIjwMCgD8eR2t0NANeQmgK/lvxNAvYyb6bZDD4frHRhIHkJu2TBRvB0ERkOmw==", + "license": "MIT", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/time-series": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-1.1.0.tgz", + "integrity": "sha512-c1Q99M5ljsIuc4YdaCwfUEXsofakb9c8+Zse2qxTadu8TalLXuAESzLvFAvNVbkmSlvlzIQOLpBCmWI9wTOt+g==", + "license": "MIT", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, "node_modules/@redux-saga/core": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@redux-saga/core/-/core-1.3.0.tgz", @@ -9220,14 +9440,14 @@ "dev": true }, "node_modules/@schematics/angular": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-20.3.36.tgz", - "integrity": "sha512-PcQSd+RXOpsdRkcf1PBlTD6334ffxTC3F+nIZC/1912VBZoN4oFxAI70IVjkhxAXJEcgILrxJKusefC3xKcvsQ==", + "version": "20.3.41", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-20.3.41.tgz", + "integrity": "sha512-aAHinMqMQup5MMiXvQgTrNeHAkyFp2QJ0TfF/cNFaW01kliKAjJFJfRwM030uvIfcYDyVnG1c5V1HUFreuiYoQ==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/core": "20.3.36", - "@angular-devkit/schematics": "20.3.36", + "@angular-devkit/core": "20.3.41", + "@angular-devkit/schematics": "20.3.41", "jsonc-parser": "3.3.1" }, "engines": { @@ -9237,9 +9457,9 @@ } }, "node_modules/@schematics/angular/node_modules/@angular-devkit/core": { - "version": "20.3.36", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.36.tgz", - "integrity": "sha512-fEbY8VFXP5ODfkDQJ4pNCexvQU0lDxL7azI+qbGu7osGgORg/LJaEGAXRKBBGvpLDpHcGjdSD26/Tms7xXmMnQ==", + "version": "20.3.41", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.41.tgz", + "integrity": "sha512-zkAUfR+uH+KAOZwEAx4PAFGvdM449JoWF0JN7ViXnlSX/kNavKCZ2ZbZjeIOUiuN1KCPx81n6UbeyesmxrLudw==", "dev": true, "license": "MIT", "dependencies": { @@ -9909,17 +10129,17 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.70.1.tgz", - "integrity": "sha512-nDNrUQ/4ruSNYbu749TRY7cfrzPtoLHEXSNBI8aaNY32LlZCajixqRf3FqcKC4p5Cam4VOHYx/t+i5+nKXvrqA==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.71.1.tgz", + "integrity": "sha512-nNlBf6HuotqMgZvSkWD5hNdemiBIxQ2NmrlgfcUIeZRs+BbakjscCQRq/Hb74EFVnFiSWWdL12JruqwBy3ERDw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.70.1", - "@typescript-eslint/type-utils": "8.70.1", - "@typescript-eslint/utils": "8.70.1", - "@typescript-eslint/visitor-keys": "8.70.1", + "@typescript-eslint/scope-manager": "8.71.1", + "@typescript-eslint/type-utils": "8.71.1", + "@typescript-eslint/utils": "8.71.1", + "@typescript-eslint/visitor-keys": "8.71.1", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -9932,22 +10152,22 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.70.1", + "@typescript-eslint/parser": "^8.71.1", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.70.1.tgz", - "integrity": "sha512-nO974WLllwhSFWQXnMLj6nDGa8f0khKEz1JzpPJ1u7Vm/4X1X6ZHajpoknU4bb41vJyMB0HHVyS2GqdhWfIXZw==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.71.1.tgz", + "integrity": "sha512-oM/5sAqz/l1v/zYK1qTOPrn2+JIrBGC1V6uNYucRO5gh6eT9vWJ/RhPbGE59byvZEUQ4VP6XkLBaS5Jti5jpvw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.70.1", - "@typescript-eslint/types": "8.70.1", - "@typescript-eslint/typescript-estree": "8.70.1", - "@typescript-eslint/visitor-keys": "8.70.1", + "@typescript-eslint/scope-manager": "8.71.1", + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/typescript-estree": "8.71.1", + "@typescript-eslint/visitor-keys": "8.71.1", "debug": "^4.4.3" }, "engines": { @@ -9963,14 +10183,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.70.1.tgz", - "integrity": "sha512-62xOgboPfwc3/IgPSX/W6oQR3ZbF04194FPGUGH8HL8iLFHbt/456/8Ph1wLNUgVF+s94FlHoipBsz+v7+LMnA==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.71.1.tgz", + "integrity": "sha512-Oijc9RUsohHjncg6iGi7gCtjnEjYt9FWv9u6ygK8uKcHK5eLjLAkqERQ9BaytbpceOFdk6kifPCS/zAZE+A99g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.70.1", - "@typescript-eslint/types": "^8.70.1", + "@typescript-eslint/tsconfig-utils": "^8.71.1", + "@typescript-eslint/types": "^8.71.1", "debug": "^4.4.3" }, "engines": { @@ -9985,15 +10205,15 @@ } }, "node_modules/@typescript-eslint/rule-tester": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/rule-tester/-/rule-tester-8.70.1.tgz", - "integrity": "sha512-HS4pIvTa4Zid4+aEUE3Zl6e4kFSDn6ieoR+ke8bZEWHMeLGv88t8qeMYPMUIKPHDPm7lnVkB3L6V7y70OZwDpg==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/rule-tester/-/rule-tester-8.71.1.tgz", + "integrity": "sha512-J5QUyV2J2AAFV4T61KiwqGcyxTlmEhhePfzVWoSbK3LWWBeYaJ5E1iz6DVKVM0IF3RqzKIF7JsmOFnKiZu47yA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/parser": "8.70.1", - "@typescript-eslint/typescript-estree": "8.70.1", - "@typescript-eslint/utils": "8.70.1", + "@typescript-eslint/parser": "8.71.1", + "@typescript-eslint/typescript-estree": "8.71.1", + "@typescript-eslint/utils": "8.71.1", "ajv": "^6.12.6", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "4.6.2", @@ -10034,14 +10254,14 @@ "dev": true }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.70.1.tgz", - "integrity": "sha512-Pa0EeSeAusQc1WbjQMac+YfenewYTBu0KjgYvkUKwhXaHUKbFog23Dm/rp0DX/6tyYOQ3Xl1a+3EcFNZynGHCw==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.71.1.tgz", + "integrity": "sha512-1YUDZXdTnXLlob03SFHBipdyMBsDVm7zoSz0ytTJ39dk5J1TgsTK03VlR/dLXG/RLLUrPcYbD4rp23BmHxHP0w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.70.1", - "@typescript-eslint/visitor-keys": "8.70.1" + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/visitor-keys": "8.71.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -10052,9 +10272,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.70.1.tgz", - "integrity": "sha512-jumze1fPI+sDOaM2TWGQdn39PDxTr7TZGeuyLkAbNyx2vtMT3uRnVKChN0hfht5V2TugphJzF6bYXvBcE09qqg==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.71.1.tgz", + "integrity": "sha512-oTvkml5SxXhgg+WWKhod5qWQICDXtOB+/Hi9VdPKFAANJ2b7YOgMffgvzXuqog7R6A/JtrzRf128dsxummyWhg==", "dev": true, "license": "MIT", "engines": { @@ -10069,15 +10289,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.70.1.tgz", - "integrity": "sha512-7zKTnyvaVWqzLZHPFQtX1hVHqgkMC+WebPWakNCSyrQVbIP1AM0L0TlBZtACldIRb6PptI8Odk+jyZ5kP3B1VA==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.71.1.tgz", + "integrity": "sha512-kH3t3jZCYv2PZSBEWPKTariLrCaoF1CLoPitYFBJOhAGEwWnSRAtGEifrfrpBa4K9JlwWNZotgA5w3/wLSk/FQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.70.1", - "@typescript-eslint/typescript-estree": "8.70.1", - "@typescript-eslint/utils": "8.70.1", + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/typescript-estree": "8.71.1", + "@typescript-eslint/utils": "8.71.1", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -10094,9 +10314,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.70.1.tgz", - "integrity": "sha512-Dm1ypdhhrGCTyyehxElhgJ6kgk8MVCv5qXdoOVqPr1uqk42jX8KjrZqhROvdShczA8qrDoYiOWn1ykWlx2k81Q==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.71.1.tgz", + "integrity": "sha512-ybYnPTUwg3VQQOFEiBPLs8Jxl1ry2vXdn1kVKguomBbvxpetdu3MKTNDqFNUrlG8ylP9MpZosmXMFYlGQHk1oQ==", "dev": true, "license": "MIT", "engines": { @@ -10108,16 +10328,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.70.1.tgz", - "integrity": "sha512-TU8PwyGN0PQJUcE96mw8eCQ44SmxGdQlJmlWakHaHQ15eIuuvye5yNtmh/i6oS88jzXVQB71xdNkbkB/fMwL0g==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.71.1.tgz", + "integrity": "sha512-pSKSEK1JJpHs6KiKVtABCE4iJK5d7FLFzDXQNBQ2oRY7LEd3UwOt3TZemTgu9syTIf56dJWlTn/pdmrO9oKUXQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.70.1", - "@typescript-eslint/tsconfig-utils": "8.70.1", - "@typescript-eslint/types": "8.70.1", - "@typescript-eslint/visitor-keys": "8.70.1", + "@typescript-eslint/project-service": "8.71.1", + "@typescript-eslint/tsconfig-utils": "8.71.1", + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/visitor-keys": "8.71.1", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -10192,16 +10412,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.70.1.tgz", - "integrity": "sha512-Esgul8MsnKnRLdYU2Eb2cRV9bS5HJYtKj1ByJnOzzG2M58DGdSUQ1jUuILxipqcpB2h9WLrbD5GijIWUjX/Tqw==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.71.1.tgz", + "integrity": "sha512-CBjT6gfAz3DW2j9Q4moFnqt208Aq+506sVGXfpRcyAeqn0EpayL0mjdWoCO2t3RC7GewNrFxdeehuEaPg6DMzQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.70.1", - "@typescript-eslint/types": "8.70.1", - "@typescript-eslint/typescript-estree": "8.70.1" + "@typescript-eslint/scope-manager": "8.71.1", + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/typescript-estree": "8.71.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -10216,13 +10436,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.70.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.70.1.tgz", - "integrity": "sha512-Vwj9lUIW5Xq3wQ9w6gv3R86g1hMK8f2zNOdGTAgeXUMMXFK78G9ruCjjqutHMNJc0+CH7LYRnHeUB9IT8wFmcw==", + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.71.1.tgz", + "integrity": "sha512-0GxiUGqMU0qXJt58cBsiG3DP8lUmBaFo2vChtUX+CT7PnR3v/VGLLrzVP4K9r1lNiZXjHYefMBbPunplr09v6w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.70.1", + "@typescript-eslint/types": "8.71.1", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -10953,14 +11173,14 @@ } }, "node_modules/asn1js": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.10.tgz", - "integrity": "sha512-S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.1.0.tgz", + "integrity": "sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==", "dev": true, "license": "BSD-3-Clause", "dependencies": { "pvtsutils": "^1.3.6", - "pvutils": "^1.1.5", + "pvutils": "^1.2.0", "tslib": "^2.8.1" }, "engines": { @@ -11315,9 +11535,9 @@ "dev": true }, "node_modules/body-parser": { - "version": "1.20.6", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.6.tgz", - "integrity": "sha512-p5tAzS57i5MV9fZFDj9LeIiTZEufbSe2eDozP+ElheSUq1m74CRq1jI4mYNDdVs9vQztXFLuk/Gd6BWTdwRJ5g==", + "version": "1.20.9", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.9.tgz", + "integrity": "sha512-FISIQxV5u91Y9gvuFq3q/tA/qTqLJn3AhRcEvyozyhJTh5OBFFtv827AdHU7Rbyct4r+Ba1/99oFa1Y3yuFsdw==", "license": "MIT", "dependencies": { "bytes": "~3.1.2", @@ -11328,7 +11548,7 @@ "http-errors": "~2.0.1", "iconv-lite": "~0.4.24", "on-finished": "~2.4.1", - "qs": "~6.15.1", + "qs": "~6.16.0", "raw-body": "~2.5.3", "type-is": "~1.6.18", "unpipe": "~1.0.0" @@ -11372,12 +11592,13 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, "node_modules/body-parser/node_modules/qs": { - "version": "6.15.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz", - "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==", + "version": "6.16.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.1.tgz", + "integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==", "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.1.0" + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" }, "engines": { "node": ">=0.6" @@ -11516,9 +11737,9 @@ "dev": true }, "node_modules/bundle-name": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", - "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz", + "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==", "dev": true, "license": "MIT", "dependencies": { @@ -12028,6 +12249,15 @@ "node": ">=6" } }, + "node_modules/cluster-key-slot": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", + "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -12112,14 +12342,15 @@ } }, "node_modules/compression": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.1.tgz", - "integrity": "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.2.tgz", + "integrity": "sha512-o8vI5RE5A6EVVOd9o41jKp41aJom+QTEO/Bx8MYNjexMo/Bv2WOjUfZr+aL0WnYSgymUy6zeguqLTsIhV0gMvQ==", "license": "MIT", "dependencies": { "bytes": "3.1.2", "compressible": "~2.0.18", "debug": "2.6.9", + "destroy": "1.2.0", "negotiator": "~0.6.4", "on-headers": "~1.1.0", "safe-buffer": "5.2.1", @@ -12127,6 +12358,10 @@ }, "engines": { "node": ">= 0.8.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/compression-webpack-plugin": { @@ -12415,40 +12650,6 @@ "url": "https://opencollective.com/core-js" } }, - "node_modules/core-js-compat/node_modules/browserslist": { - "version": "4.28.8", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.8.tgz", - "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "baseline-browser-mapping": "^2.11.12", - "caniuse-lite": "^1.0.30001809", - "electron-to-chromium": "^1.5.402", - "node-releases": "^2.0.53", - "update-browserslist-db": "^1.3.0" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -12561,9 +12762,9 @@ } }, "node_modules/css-blank-pseudo/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -12602,9 +12803,9 @@ } }, "node_modules/css-has-pseudo/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -13428,9 +13629,9 @@ } }, "node_modules/dompurify": { - "version": "3.4.16", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.16.tgz", - "integrity": "sha512-sqo+pNp3qRhCIpbgRi1y8Tgk27Bo2Ry7w0dC1NBeNTdZChWjz9Xb/KOoZbRP/R6pQZ80Qw8YhXw13hWWBbMRnQ==", + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.17.tgz", + "integrity": "sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==", "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7" @@ -14751,9 +14952,9 @@ } }, "node_modules/fast-uri": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz", - "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", "dev": true, "funding": [ { @@ -14955,9 +15156,9 @@ "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz", - "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.2.tgz", + "integrity": "sha512-/kVP2U8z596Ia0gwFrwyIeo74ta5aVmSeU1FfAUMAmcEP5EP7zydmag3SLiN64NaRKef3lxsq7i/g7ltJQDGow==", "funding": [ { "type": "individual", @@ -15152,6 +15353,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/generic-pool": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz", + "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -15295,9 +15505,9 @@ } }, "node_modules/glob-to-regex.js": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/glob-to-regex.js/-/glob-to-regex.js-1.2.0.tgz", - "integrity": "sha512-QMwlOQKU/IzqMUOAZWubUOT8Qft+Y0KQWnX9nK3ch0CJg0tTp4TvGZsTfudYKv2NzoQSyPcnA6TYeIQ3jGichQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/glob-to-regex.js/-/glob-to-regex.js-1.3.1.tgz", + "integrity": "sha512-zhWhMRsgnOym+1txhUmYJGD6eUsbUdrZv55gCYKuJX8t2p3+M8My23PD09bEIsreGUs5pnSa/idmcfp2/IlqGg==", "dev": true, "license": "Apache-2.0", "engines": { @@ -15590,9 +15800,9 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "node_modules/hono": { - "version": "4.13.5", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.5.tgz", - "integrity": "sha512-O6+/eCYRkzzzy0rPWwKLiGBR1nFuUPZynnwjxN1MBA62NNqbT0wQEzQyK2gSO5yDIDB336sXQleAhOHrzlYyKw==", + "version": "4.13.13", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.13.tgz", + "integrity": "sha512-CQ46U0ZkAGmbT/4UxdzzGJpacP2IeKgY4a5/tOI9AABbpOMfK739wfDXmv1usCk+3RkKj1hQy4/fjhiwa2xlrA==", "dev": true, "license": "MIT", "engines": { @@ -15738,9 +15948,9 @@ } }, "node_modules/http-cache-semantics": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", - "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz", + "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==", "dev": true, "license": "BSD-2-Clause" }, @@ -15801,9 +16011,9 @@ } }, "node_modules/http-proxy-middleware": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.10.tgz", - "integrity": "sha512-RKzRWNPxUZqbuk3BC5mGVJbBnWgr+diEnjJexIOytFbBzDy88Fbh/YvBr3DsNrl1jYAfjWfpATEv0NO35FDuPQ==", + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.11.tgz", + "integrity": "sha512-vTR6+QTUDDOQ3a5RI5YwSwSx3roJjLLAi+PBNFmBWDfrfk7zVteTFSMq6E8+FhnJ8yjMOTZfk71fRAFv1gl2OQ==", "license": "MIT", "dependencies": { "@types/http-proxy": "^1.17.8", @@ -16213,9 +16423,9 @@ } }, "node_modules/ip-address": { - "version": "10.5.0", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.5.0.tgz", - "integrity": "sha512-R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==", + "version": "10.7.4", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.4.tgz", + "integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==", "license": "MIT", "engines": { "node": ">= 12" @@ -16334,12 +16544,13 @@ } }, "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz", + "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==", "dev": true, + "license": "MIT", "dependencies": { - "hasown": "^2.0.2" + "hasown": "^2.0.4" }, "engines": { "node": ">= 0.4" @@ -17130,9 +17341,9 @@ } }, "node_modules/jose": { - "version": "6.2.10", - "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.10.tgz", - "integrity": "sha512-iiW7J9qRFlGxvCOIBDBDxFePQSn7ZMAnrYGhrrOo6siO/MIqwfyilLR27pkfDgUk+raLuzADS8A3S/KLBisc0g==", + "version": "6.2.13", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.13.tgz", + "integrity": "sha512-7TIg10ZE1x82YediN+lcrPNvGMKge9yFHQD+Qho/b8y2adfugU3AsvvHfxV0fzyFllT6l9xCjf4RWY9g/Z9PJQ==", "dev": true, "license": "MIT", "funding": { @@ -17884,14 +18095,14 @@ } }, "node_modules/launch-editor": { - "version": "2.14.1", - "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.14.1.tgz", - "integrity": "sha512-QWBrQsMpH7gPr965dsKD/3cKWiNoTjpATQf++Xq63N6sKRGMwlVXz41O1IZTMfZQgBctD/K5Zt06+/I6pP6+HA==", + "version": "2.14.2", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.14.2.tgz", + "integrity": "sha512-NHJEb30MGBCkmZXLZwz25t37QR4aY03ZzPYUJXOJaOa92uWwExI9SBQUuIznBYc1xkD7cJNGX7oc3Nl3sq2kQQ==", "dev": true, "license": "MIT", "dependencies": { "picocolors": "^1.1.1", - "shell-quote": "^1.8.4" + "shell-quote": "^1.10.0" } }, "node_modules/leaflet": { @@ -18615,9 +18826,9 @@ } }, "node_modules/markdown-it": { - "version": "14.3.1", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.1.tgz", - "integrity": "sha512-4Ej49aYTDFIQ+uBkfX8GBvJGccoARxxPep+7aWTs55ozbjQJpW9M26Fe53vnGgvLeVzva/amzjQQaQu9w0vMhA==", + "version": "14.3.3", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.3.tgz", + "integrity": "sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg==", "funding": [ { "type": "github", @@ -18674,23 +18885,23 @@ } }, "node_modules/memfs": { - "version": "4.69.1", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-4.69.1.tgz", - "integrity": "sha512-x4Ion23tLmo/6CTNYrKriwACRWlsw5hg+ZDYr4sRriYiZEu04UmK+7ZE/jXjAeDfe2DlL4UIFAVKllqZlWCJ+g==", + "version": "4.80.0", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-4.80.0.tgz", + "integrity": "sha512-N70W2isi44XdGn7uPo9NJ4zRukcdkwSFHlnYx42SWOH/+hzqNc8P7+tVoA2up4z7faHvNi1RSNCFjxoYQ71VPQ==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@jsonjoy.com/fs-core": "4.69.1", - "@jsonjoy.com/fs-fsa": "4.69.1", - "@jsonjoy.com/fs-node": "4.69.1", - "@jsonjoy.com/fs-node-builtins": "4.69.1", - "@jsonjoy.com/fs-node-to-fsa": "4.69.1", - "@jsonjoy.com/fs-node-utils": "4.69.1", - "@jsonjoy.com/fs-print": "4.69.1", - "@jsonjoy.com/fs-snapshot": "4.69.1", + "@jsonjoy.com/fs-core": "4.80.0", + "@jsonjoy.com/fs-fsa": "4.80.0", + "@jsonjoy.com/fs-node": "4.80.0", + "@jsonjoy.com/fs-node-builtins": "4.80.0", + "@jsonjoy.com/fs-node-to-fsa": "4.80.0", + "@jsonjoy.com/fs-node-utils": "4.80.0", + "@jsonjoy.com/fs-print": "4.80.0", + "@jsonjoy.com/fs-snapshot": "4.80.0", "@jsonjoy.com/json-pack": "^1.11.0", "@jsonjoy.com/util": "^1.9.0", - "glob-to-regex.js": "^1.0.1", + "glob-to-regex.js": "^1.3.1", "thingies": "^2.5.0", "tree-dump": "^1.0.3", "tslib": "^2.0.0" @@ -20004,9 +20215,9 @@ } }, "node_modules/ordered-binary": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.6.1.tgz", - "integrity": "sha512-QkCdPooczexPLiXIrbVOPYkR3VO3T6v2OyKRkR1Xbhpy7/LAVXwahnRCgRp78Oe/Ehf0C/HATAxfSr6eA1oX+w==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.6.2.tgz", + "integrity": "sha512-BY+qgDArmYpvvmij141xbkB4Cw8RFLBQM5Zj4MODFb1SyXBRE/xO4Xj/QWbR7aUEBxbkjuNdsFVCL2TmbYrlNg==", "dev": true, "license": "MIT", "optional": true @@ -20466,9 +20677,9 @@ } }, "node_modules/piscina": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/piscina/-/piscina-5.2.0.tgz", - "integrity": "sha512-DszUCKeVN/5G5QKo6jAVHL8fmKnkJvQ0ACiVgY7YGCq3TUB2oznAOayvZPIAdEThvhczkXR+qm3IHsNXpFCYfA==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/piscina/-/piscina-5.3.2.tgz", + "integrity": "sha512-vv7l/mM7B9WgrhDaudIqv1x6v4LOBRYYmpWGdWushhpbCmVHp11sUB2v4hj1CAeTGXVxuZFz6xOU1RalAiPKfQ==", "dev": true, "license": "MIT", "engines": { @@ -20489,13 +20700,16 @@ } }, "node_modules/pkijs": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.0.tgz", - "integrity": "sha512-emEcLuomt2j03vxD54giVB4SxTjnsqkU692xZOZXHDVoYyypEm+b3jpiTcc+Cf+myooc+/Ly0z01jqeNHVgJGw==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.1.tgz", + "integrity": "sha512-Oo/NZcSWccq8KyoG7gLE9fnltgHns+pNCjCAp/WmjsUySi+sX7y4z4Xqu4fVb42CDHzRPl33fjzT15V1wvcyhA==", "dev": true, "license": "BSD-3-Clause", + "workspaces": [ + "website" + ], "dependencies": { - "@noble/hashes": "1.4.0", + "@noble/hashes": "1.8.0", "asn1js": "^3.0.6", "bytestreamjs": "^2.0.1", "pvtsutils": "^1.3.6", @@ -20570,9 +20784,9 @@ } }, "node_modules/postcss-attribute-case-insensitive/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -20713,9 +20927,9 @@ } }, "node_modules/postcss-custom-selectors/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -20746,9 +20960,9 @@ } }, "node_modules/postcss-dir-pseudo-class/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -20810,9 +21024,9 @@ } }, "node_modules/postcss-focus-visible/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -20839,9 +21053,9 @@ } }, "node_modules/postcss-focus-within/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -21166,9 +21380,9 @@ } }, "node_modules/postcss-nesting/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -21335,9 +21549,9 @@ } }, "node_modules/postcss-pseudo-class-any-link/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -21377,9 +21591,9 @@ } }, "node_modules/postcss-selector-not/node_modules/postcss-selector-parser": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", - "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz", + "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -21391,9 +21605,9 @@ } }, "node_modules/postcss-selector-parser": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.6.tgz", - "integrity": "sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==", + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.7.tgz", + "integrity": "sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==", "dev": true, "license": "MIT", "dependencies": { @@ -21526,15 +21740,20 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", + "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", + "license": "MIT", "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" }, "engines": { "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/prr": { @@ -22147,6 +22366,23 @@ "node": ">= 10.13.0" } }, + "node_modules/redis": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/redis/-/redis-4.7.1.tgz", + "integrity": "sha512-S1bJDnqLftzHXHP8JsT5II/CtHWQrASX5K96REjWjlmWKrviSOLWmM7QnRLstAWsu1VBBV1ffV6DzCvxNP0UJQ==", + "license": "MIT", + "workspaces": [ + "./packages/*" + ], + "dependencies": { + "@redis/bloom": "1.2.0", + "@redis/client": "1.6.1", + "@redis/graph": "1.1.1", + "@redis/json": "1.0.7", + "@redis/search": "1.2.0", + "@redis/time-series": "1.1.0" + } + }, "node_modules/redux": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", @@ -22208,16 +22444,16 @@ } }, "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.5.0.tgz", + "integrity": "sha512-1s+CxXjJ71i7LNVy8nYwg47XV4y6lAnOEhsMtSKq3WpmPfhl9LuKlTqKIn/3yUpE8lBz+W+TT88Bxyhnr0U4yw==", "dev": true, "license": "MIT" }, "node_modules/regenerate-unicode-properties": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", - "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.3.0.tgz", + "integrity": "sha512-9ns8odR8e9q3otKeHj3DE80jZYKg6zVeZKE+zQmRKXFoVUcuiTGeO6iusDhPRoIQQPVPRvH+SfBhrTud4eczuw==", "dev": true, "license": "MIT", "dependencies": { @@ -22255,14 +22491,14 @@ } }, "node_modules/regexpu-core": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", - "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.5.3.tgz", + "integrity": "sha512-E8VgUoSK+LMQrLboDxavm76MTBGrQhx9RiNuomRmYnZ10Uw12HrI8fkxOOncktb2hBpzIZ9SV/347euQHG5z+g==", "dev": true, "license": "MIT", "dependencies": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.2.2", + "regenerate": "^1.5.0", + "regenerate-unicode-properties": "^10.3.0", "regjsgen": "^0.8.0", "regjsparser": "^0.13.0", "unicode-match-property-ecmascript": "^2.0.0", @@ -22280,9 +22516,9 @@ "license": "MIT" }, "node_modules/regjsparser": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.2.tgz", - "integrity": "sha512-NgRBy2Nx/bE+9F27nVHnqcN5HjyLmecqsqx2PJHu3/IEtADD4WuxuXIVExD5PoSDFVrl78dOonfcOe5O+5nbzQ==", + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.4.tgz", + "integrity": "sha512-EWV80YgFaVgFrjGCAsV7oybp4GOxbls5RzBg8OB0nKEVXsBJR1JlV8Di1JhCROg3MzTfe1RI8yitIm1eOs68iA==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -22919,9 +23155,9 @@ } }, "node_modules/sax": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.0.tgz", - "integrity": "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", + "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", "dev": true, "license": "BlueOak-1.0.0", "optional": true, @@ -23260,9 +23496,9 @@ } }, "node_modules/shell-quote": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.10.0.tgz", - "integrity": "sha512-w1aiOKwKuRgtwAReIIj89puqg+I7GvX4IbLrvmhXbzQsj1+Zwi4VO3+fa6ZF91TWSjIxoEkKnMeHcLEODK5ZXA==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.12.0.tgz", + "integrity": "sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==", "dev": true, "license": "MIT", "engines": { @@ -23553,10 +23789,11 @@ } }, "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -24027,9 +24264,9 @@ } }, "node_modules/systeminformation": { - "version": "5.33.1", - "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.33.1.tgz", - "integrity": "sha512-DEN6ICHk3Tk0Uf/hrAHh7xlt7iL5CJFBtPZinA0H62DrGG/KPKqq/Nzj6lCXPS4Ay/sf/14zNnk9LpqKzBIc+w==", + "version": "5.33.19", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.33.19.tgz", + "integrity": "sha512-Zm7wGeCG7PqfvzegMJIzrxICopWqYCeLATVmvxOOci1isLcNVKgY4Fr0hhYQzvc7cgtK3377jQVChTFAnznOiA==", "dev": true, "license": "MIT", "os": [ @@ -24658,9 +24895,9 @@ } }, "node_modules/undici": { - "version": "6.29.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz", - "integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==", + "version": "6.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz", + "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==", "dev": true, "license": "MIT", "engines": { @@ -24814,9 +25051,9 @@ } }, "node_modules/uuid": { - "version": "14.0.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.2.tgz", - "integrity": "sha512-xZe/16rV4aa+HGSOCiY2YeLT1OybRLrrkL/Rqaq7p7GMVXjFh+6wN4oMYgjFmnSnhY8t6Xpdl2l9qmnHYuMHwQ==", + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.3.tgz", + "integrity": "sha512-Sc5u1VVln93y1Xnz4R+CunOZc7R9LUcTmhj7Rc7Eg3HVcf7rVn2FOoa812fe0W8p3jD7xeoGSYbfqCGGH2B6xw==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" @@ -25272,9 +25509,9 @@ } }, "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.21.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", - "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz", + "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==", "dev": true, "license": "MIT", "engines": { @@ -25689,9 +25926,9 @@ } }, "node_modules/zod": { - "version": "4.1.13", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.13.tgz", - "integrity": "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==", + "version": "4.6.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.6.tgz", + "integrity": "sha512-4UmzQUF5fxvfcYHlbjBmejU+w+hbDnWFx4aS8kBx7nPBHcO2SqPbpAG8snbdg+Xse4pRefR98hgjFgIMCI/UhA==", "dev": true, "license": "MIT", "funding": { diff --git a/package.json b/package.json index c301eb12704..6cb7bbda8a7 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "scripts": { "ng": "ng", "test:rest": "ts-node -r tsconfig-paths/register --project ./tsconfig.ts-node.json scripts/test-rest.ts", + "test:ssr-cache": "ts-node --project tsconfig.ts-node.json --compiler-options '{\"moduleResolution\":\"node\"}' node_modules/jasmine/bin/jasmine.js --config=server/jasmine.json", "start": "npm run start:prod", "start:dev": "cross-env NODE_ENV=development npm run serve --watch", "start:prod": "npm run build:prod && cross-env NODE_ENV=production npm run serve:ssr", @@ -58,24 +59,24 @@ "private": true, "overrides": { "@kolkov/ngx-gallery": { - "@angular/animations": "^20.3.30", - "@angular/common": "^20.3.30", - "@angular/core": "^20.3.30" + "@angular/animations": "^20.3.34", + "@angular/common": "^20.3.34", + "@angular/core": "^20.3.34" }, "@ng-bootstrap/ng-bootstrap": { - "@angular/common": "^20.3.30", - "@angular/core": "^20.3.30", - "@angular/forms": "^20.3.30", - "@angular/localize": "^20.3.30" + "@angular/common": "^20.3.34", + "@angular/core": "^20.3.34", + "@angular/forms": "^20.3.34", + "@angular/localize": "^20.3.34" }, "@4science_ng-dynamic-forms/core": { - "@angular/common": "^20.3.30", - "@angular/core": "^20.3.30", - "@angular/forms": "^20.3.30" + "@angular/common": "^20.3.34", + "@angular/core": "^20.3.34", + "@angular/forms": "^20.3.34" }, "@nicky-lenaers/ngx-scroll-to": { - "@angular/common": "^20.3.30", - "@angular/core": "^20.3.30" + "@angular/common": "^20.3.34", + "@angular/core": "^20.3.34" }, "react": "16.14.0", "react-dom": "16.14.0", @@ -89,18 +90,18 @@ "dependencies": { "@4science_ng-dynamic-forms/core": "^19.1.0", "@4science_ng-dynamic-forms/ui-ng-bootstrap": "^19.1.0", - "@angular/animations": "^20.3.30", + "@angular/animations": "^20.3.34", "@angular/cdk": "^20.2.14", - "@angular/common": "^20.3.30", - "@angular/compiler": "^20.3.30", - "@angular/core": "^20.3.30", - "@angular/forms": "^20.3.30", - "@angular/localize": "^20.3.30", - "@angular/platform-browser": "^20.3.30", - "@angular/platform-browser-dynamic": "^20.3.30", - "@angular/platform-server": "^20.3.30", - "@angular/router": "^20.3.30", - "@angular/ssr": "^20.3.36", + "@angular/common": "^20.3.34", + "@angular/compiler": "^20.3.34", + "@angular/core": "^20.3.34", + "@angular/forms": "^20.3.34", + "@angular/localize": "^20.3.34", + "@angular/platform-browser": "^20.3.34", + "@angular/platform-browser-dynamic": "^20.3.34", + "@angular/platform-server": "^20.3.34", + "@angular/router": "^20.3.34", + "@angular/ssr": "^20.3.40", "@kolkov/ngx-gallery": "^2.0.1", "@ng-bootstrap/ng-bootstrap": "^15.1.2", "@ngrx/effects": "^20.1.0", @@ -115,7 +116,7 @@ "cerialize": "0.1.18", "cli-progress": "^3.12.0", "colors": "^1.4.0", - "compression": "^1.8.1", + "compression": "^1.8.2", "cookie-parser": "1.4.7", "core-js": "^3.50.0", "date-fns": "^2.29.3", @@ -126,7 +127,7 @@ "express-rate-limit": "^8.7.0", "fast-json-patch": "^3.1.1", "filesize": "^10.1.6", - "http-proxy-middleware": "^2.0.10", + "http-proxy-middleware": "^2.0.11", "http-terminator": "^3.2.0", "isbot": "^5.2.2", "js-cookie": "3.0.8", @@ -139,7 +140,7 @@ "leaflet.markercluster": "^1.5.3", "lodash-es": "^4.18.1", "lru-cache": "^11.5.2", - "markdown-it": "^14.3.1", + "markdown-it": "^14.3.3", "mirador": "^3.4.3", "mirador-dl-plugin": "^0.13.0", "mirador-share-plugin": "^0.16.0", @@ -155,15 +156,16 @@ "nouislider": "^15.7.1", "orejime": "^2.3.3", "pem": "1.14.8", + "redis": "^4.7.1", "reflect-metadata": "^0.2.2", "rxjs": "^7.8.0", - "uuid": "^14.0.2", + "uuid": "^14.0.3", "xhr2": "^0.2.1", "zone.js": "~0.15.1" }, "devDependencies": { "@angular-builders/custom-webpack": "~20.0.0", - "@angular-devkit/build-angular": "^20.3.36", + "@angular-devkit/build-angular": "^20.3.40", "@angular-eslint/builder": "^20.7.0", "@angular-eslint/bundled-angular-compiler": "^20.7.0", "@angular-eslint/eslint-plugin": "^20.7.0", @@ -171,12 +173,12 @@ "@angular-eslint/schematics": "^20.7.0", "@angular-eslint/template-parser": "^20.6.0", "@angular-eslint/utils": "^20.7.0", - "@angular/cli": "^20.3.36", - "@angular/compiler-cli": "^20.3.30", + "@angular/cli": "^20.3.40", + "@angular/compiler-cli": "^20.3.34", "@cypress/schematic": "^1.5.0", "@fortawesome/fontawesome-free": "^6.7.2", "@ngrx/store-devtools": "^20.1.0", - "@ngtools/webpack": "^20.3.30", + "@ngtools/webpack": "^20.3.34", "@smarttools/eslint-plugin-rxjs": "^1.0.22", "@stylistic/eslint-plugin": "^3.1.0", "@types/deep-freeze": "0.1.5", @@ -187,9 +189,9 @@ "@types/js-cookie": "3.0.6", "@types/lodash-es": "^4.17.12", "@types/node": "^20.19.43", - "@typescript-eslint/eslint-plugin": "^8.70.1", - "@typescript-eslint/parser": "^8.70.1", - "@typescript-eslint/rule-tester": "^8.70.1", + "@typescript-eslint/eslint-plugin": "^8.71.1", + "@typescript-eslint/parser": "^8.71.1", + "@typescript-eslint/rule-tester": "^8.71.1", "@typescript-eslint/utils": "^8.47.0", "axe-core": "^4.13.0", "chokidar": "^4.0.3", diff --git a/server.ts b/server.ts index 454db8d3c2d..14831fef4c1 100644 --- a/server.ts +++ b/server.ts @@ -17,46 +17,51 @@ import 'reflect-metadata'; import 'zone.js/node'; -/* eslint-disable import/no-namespace */ -import * as morgan from 'morgan'; -import express from 'express'; -import * as ejs from 'ejs'; +import { readFileSync } from 'node:fs'; +import { createServer } from 'node:https'; +import { join } from 'node:path'; + +import { APP_BASE_HREF } from '@angular/common'; +import { enableProdMode } from '@angular/core'; +import { CommonEngine } from '@angular/ssr/node'; +import { TOKENITEM } from '@dspace/core/auth/models/auth-token-info.model'; +import { hasValue } from '@dspace/shared/utils/empty.util'; import * as compression from 'compression'; +import { renderFile } from 'ejs'; +import express from 'express'; import expressStaticGzip from 'express-static-gzip'; -import { LRUCache } from 'lru-cache'; +import { createProxyMiddleware } from 'http-proxy-middleware'; +import { createHttpTerminator } from 'http-terminator'; import { isbot } from 'isbot'; +import { LRUCache } from 'lru-cache'; +/* eslint-disable import/no-namespace */ +import * as morgan from 'morgan'; import { createCertificate } from 'pem'; -import { createServer } from 'https'; -import { createHttpTerminator } from 'http-terminator'; -import { readFileSync } from 'fs'; -import { join } from 'path'; - -import { enableProdMode } from '@angular/core'; - - -import { environment } from './src/environments/environment'; -import { createProxyMiddleware } from 'http-proxy-middleware'; -import { hasValue } from '@dspace/shared/utils/empty.util'; -import { UIServerConfig } from './src/config/ui-server-config.interface'; -import bootstrap from './src/main.server'; -import { buildAppConfig } from './src/config/config.server'; +import { + canCacheSsrRequest, + createSsrRefreshContext, + getRedisCacheKey, + RedisSsrCache, +} from './server/redis-cache'; +import { RedisCachePolicy } from './server/redis-cache-policy'; import { APP_CONFIG, AppConfig, toClientConfig, } from './src/config/app-config.interface'; +import { buildAppConfig } from './src/config/config.server'; import { extendEnvironmentWithAppConfig } from './src/config/config.util'; -import { ServerHashedFileMapping } from './src/modules/dynamic-hash/hashed-file-mapping.server'; -import { logStartupMessage } from './startup-message'; -import { TOKENITEM } from '@dspace/core/auth/models/auth-token-info.model'; -import { CommonEngine } from '@angular/ssr/node'; -import { APP_BASE_HREF } from '@angular/common'; +import { SsrExcludePatterns } from './src/config/ssr-config.interface'; +import { UIServerConfig } from './src/config/ui-server-config.interface'; +import { environment } from './src/environments/environment'; import { REQUEST, RESPONSE, } from './src/express.tokens'; -import { SsrExcludePatterns } from './src/config/ssr-config.interface'; +import bootstrap from './src/main.server'; +import { ServerHashedFileMapping } from './src/modules/dynamic-hash/hashed-file-mapping.server'; +import { logStartupMessage } from './startup-message'; /* * Set path for the browser application's dist folder @@ -81,6 +86,9 @@ let botCache: LRUCache; // cache of SSR pages for anonymous users. Disabled by default, and only available in production mode let anonymousCache: LRUCache; +let redisCache: RedisSsrCache; +let redisCachePolicy: RedisCachePolicy; + // extend environment with app config for server extendEnvironmentWithAppConfig(environment, appConfig); @@ -91,6 +99,15 @@ const REST_BASE_URL = environment.rest.ssrBaseUrl || environment.rest.baseUrl; // Please note, that regex flags (like "i") are no longer supported. const SSR_EXCLUDE_PATTERNS: RegExp[] = environment.ssr.excludePathPatterns.map((p: SsrExcludePatterns) => new RegExp(p.pattern)); +// Create CommonEngine only once at startup instead of per request. +// Its config is derived from environment.*, which is already final at this point and never changes at runtime. +// "allowedHosts" specifies which hosts are allowed to be rendered via SSR. +// By default, this is set to the host of the UI's baseUrl. +const commonEngine = new CommonEngine({ + enablePerformanceProfiler: environment.ssr.enablePerformanceProfiler, + allowedHosts: [ new URL(environment.ui.baseUrl).hostname ], +}); + // The Express app is exported so that it can be used by serverless Functions. export function app() { @@ -139,7 +156,7 @@ export function app() { */ server.use(express.json()); - server.engine('ejs', ejs.renderFile); + server.engine('ejs', renderFile); /* * Register the view engines for html and ejs @@ -185,14 +202,14 @@ export function app() { * When it is present, the rateLimiter will be enabled. When it is undefined, the rateLimiter will be disabled. */ if (hasValue((environment.ui as UIServerConfig).rateLimiter)) { - const { rateLimit } = require('express-rate-limit') + const { rateLimit } = require('express-rate-limit'); const limiter = rateLimit({ windowMs: (environment.ui as UIServerConfig).rateLimiter.windowMs, limit: (environment.ui as UIServerConfig).rateLimiter.limit, standardHeaders: true, legacyHeaders: false, // don't log ERR_ERL_PERMISSIVE_TRUST_PROXY if we are trusting proxies - validate: {trustProxy: !environment.ui.useProxies}, + validate: { trustProxy: !environment.ui.useProxies }, }); server.use(limiter); } @@ -221,7 +238,9 @@ export function app() { * Default sending all incoming requests to ngApp() function, after first checking for a cached * copy of the page (see cacheCheck()) */ - router.get('*', cacheCheck, ngApp); + router.get('*', (req, res, next) => { + void cacheCheck(req, res, next).catch(next); + }, ngApp); server.use(environment.ui.nameSpace, router); @@ -232,7 +251,7 @@ export function app() { * The callback function to serve server side angular */ function ngApp(req, res, next) { - if (environment.ssr.enabled && req.method === 'GET' && (req.path === '/' || !isExcludedFromSsr(req.path))) { + if (environment.ssr.enabled && req.method === 'GET' && !isUserAuthenticated(req) && (req.path === '/' || !isExcludedFromSsr(req.path))) { // Render the page to user via SSR (server side rendering) serverSideRender(req, res, next); } else { @@ -249,17 +268,12 @@ function ngApp(req, res, next) { * @param res current response * @param next the next function * @param sendToUser if true (default), send the rendered content to the user. - * If false, then only save this rendered content to the in-memory cache (to refresh cache). + * If false, then only save this rendered content to the cache (to refresh cache). */ function serverSideRender(req, res, next, sendToUser: boolean = true) { const { protocol, originalUrl, baseUrl, headers } = req; - // "allowedHosts" specifies which hosts are allowed to be rendered via SSR. - // By default, this is set to the host of the UI's baseUrl. - const commonEngine = new CommonEngine({ enablePerformanceProfiler: environment.ssr.enablePerformanceProfiler, - allowedHosts: [ new URL(environment.ui.baseUrl).hostname ], - }); // Render the page via SSR (server side rendering) - commonEngine + return commonEngine .render({ bootstrap, documentFilePath: indexHtml, @@ -282,7 +296,7 @@ function serverSideRender(req, res, next, sendToUser: boolean = true) { }, ], }) - .then((html) => { + .then(async (html) => { // If headers were already sent, then do nothing else, it is probably a // redirect response if (res.headersSent) { @@ -296,7 +310,7 @@ function serverSideRender(req, res, next, sendToUser: boolean = true) { } // save server side rendered page to cache (if any are enabled) - saveToCache(req, html); + await saveToCache(req, html, res); if (sendToUser) { res.locals.ssr = true; // mark response as SSR (enables text compression) // send rendered page to user @@ -320,7 +334,9 @@ function serverSideRender(req, res, next, sendToUser: boolean = true) { clientSideRender(req, res); } } - next(err); + if (sendToUser) { + next(err); + } }); } @@ -333,7 +349,7 @@ function clientSideRender(req, res) { // Replace base href dynamically html = html.replace( //, - `` + ``, ); // Replace REST URL with UI URL @@ -364,6 +380,18 @@ function addCacheControl(req, res, next) { * Initialize server-side caching of pages rendered via SSR. */ function initCache() { + if (redisCacheEnabled()) { + if (!redisCache) { + try { + redisCachePolicy = new RedisCachePolicy(environment.cache.serverSide.redis); + redisCache = new RedisSsrCache(environment.cache.serverSide.redis, environment.cache.serverSide.debug); + void redisCache.connect(); + } catch { + console.warn('Unable to initialize Redis SSR cache; check connection settings and route rules. Requests will be rendered without caching.'); + } + } + return; + } if (botCacheEnabled()) { // Initialize a new "least-recently-used" item cache (where least recently used pages are removed first) // See https://www.npmjs.com/package/lru-cache @@ -406,18 +434,46 @@ function anonymousCacheEnabled(): boolean { return environment.ssr.enabled && environment.cache.serverSide.anonymousCache.max && (environment.cache.serverSide.anonymousCache.max > 0); } +/** Redis replaces both LRU caches and is only used for production SSR. */ +function redisCacheEnabled(): boolean { + return environment.production && environment.ssr.enabled && !!environment.cache.serverSide.redis?.enabled; +} + +/** Never serve shared pages to authenticated users, or on routes which bypass SSR. */ +function canCacheRequest(req): boolean { + return canCacheSsrRequest(req, !!environment.production, environment.ssr.enabled, TOKENITEM, isExcludedFromSsr); +} + /** - * Check if the currently requested page is in our server-side, in-memory cache. + * Check if the currently requested page is in our server-side cache. * Caching is ONLY done for SSR requests. Pages are cached base on their path (e.g. /home or /search?query=test) */ -function cacheCheck(req, res, next) { +async function cacheCheck(req, res, next) { + if (!canCacheRequest(req)) { + next(); + return; + } // Cached copy of page (if found) let cachedCopy; // If the bot cache is enabled and this request looks like a bot, check the bot cache for a cached page. - if (botCacheEnabled() && isbot(req.get('user-agent'))) { + if (redisCacheEnabled()) { + const key = getCacheKey(req); + const durations = redisCachePolicy?.getDurationsForUrl(req.url); + // A disabled rule also bypasses entries stored before the configuration changed. + const cached = durations?.timeToLive > 0 ? await redisCache?.get(key) : undefined; + cachedCopy = cached?.value; + if (environment.cache.serverSide.debug) { + console.debug(`REDIS CACHE ${cached ? 'HIT' : 'MISS'} FOR ${req.url}`); + } + const refreshTime = durations?.refreshWhenTimeBelow; + if (cached && refreshTime > 0 && cached.remainingTime < refreshTime) { + // Snapshot the request before Express restores its mounted URL after next('router'). + void redisCache.refresh(key, refreshCachedPage(req, res)); + } + } else if (botCacheEnabled() && isbot(req.get('user-agent'))) { cachedCopy = checkCacheForRequest('bot', botCache, req, res, next); - } else if (anonymousCacheEnabled() && !isUserAuthenticated(req)) { + } else if (anonymousCacheEnabled()) { cachedCopy = checkCacheForRequest('anonymous', anonymousCache, req, res, next); } @@ -433,6 +489,9 @@ function cacheCheck(req, res, next) { } }); } + if (cachedCopy.statusCode) { + res.status(cachedCopy.statusCode); + } res.locals.ssr = true; // mark response as SSR-generated (enables text compression) res.send(cachedCopy.page); @@ -446,6 +505,12 @@ function cacheCheck(req, res, next) { } } +/** Render using a separate response, since the cached response is already sent to the user. */ +function refreshCachedPage(req, res): () => Promise { + const { request, response } = createSsrRefreshContext(req, res); + return () => serverSideRender(request, response, () => undefined, false); +} + /** * Checks if the current request (i.e. page) is found in the given cache. If it is found, * the cached copy is returned. When found, this method also triggers a re-render via @@ -491,6 +556,14 @@ function checkCacheForRequest(cacheName: string, cache: LRUCache, r * @returns cache key to use for this page */ function getCacheKey(req): string { + if (redisCacheEnabled()) { + const languages = environment.languages.filter(language => language.active).map(language => language.code); + const cookieLanguage = req.cookies?.dsLanguage; + // Keep all language preferences in the key: SSR's locale matching differs from Express negotiation. + const language = languages.includes(cookieLanguage) ? cookieLanguage + : req.get('accept-language') || environment.fallbackLanguage; + return getRedisCacheKey(environment.ui.baseUrl, language, req.originalUrl); + } // NOTE: this will return the URL path *without* any baseUrl return req.url; } @@ -502,19 +575,24 @@ function getCacheKey(req): string { * @param req current page request * @param page page data to save to cache */ -function saveToCache(req, page: any) { +async function saveToCache(req, page: string, response) { // Only cache if no one is currently authenticated. This means ONLY public pages can be cached. // NOTE: It's not safe to save page data to the cache when a user is authenticated. In that situation, // the page may include sensitive or user-specific materials. As the cache is shared across all users, it can only contain public info. - if (!isUserAuthenticated(req)) { + if (canCacheRequest(req)) { const key = getCacheKey(req); // Avoid caching "/reload/[random]" paths (these are hard refreshes after logout) if (key.startsWith('/reload')) { return; } - // Avoid caching not successful responses (status code different from 2XX status) - if (hasNotSucceeded(req.res.statusCode)) { return; } + // Only cache a fully rendered 200 response. + if (response.statusCode !== 200) { return; } // Retrieve response headers to save, if any - const headers = retrieveHeaders(req.res); + const headers = retrieveHeaders(response); + if (redisCacheEnabled()) { + await redisCache?.set(key, { page, headers, statusCode: response.statusCode }, + redisCachePolicy.getDurationsForUrl(req.url).timeToLive); + return; + } // If bot cache is enabled, save it to that cache if it doesn't exist or is expired // (NOTE: has() will return false if page is expired in cache) if (botCacheEnabled() && !botCache.has(key)) { @@ -530,15 +608,6 @@ function saveToCache(req, page: any) { } } -/** - * Check if status code is different from 2XX - * @param statusCode - */ -function hasNotSucceeded(statusCode) { - const rgx = new RegExp(/^20+/); - return !rgx.test(statusCode); -} - function retrieveHeaders(response) { const headers = Object.create({}); if (Array.isArray(environment.cache.serverSide.headers) && environment.cache.serverSide.headers.length > 0) { @@ -559,7 +628,7 @@ function retrieveHeaders(response) { */ function isUserAuthenticated(req): boolean { // Check whether our DSpace authentication Cookie exists or not - return req.cookies[TOKENITEM]; + return !!req.cookies?.[TOKENITEM] || !!req.get('authorization'); } /* @@ -587,6 +656,7 @@ function createHttpsServer(keys) { void (async ()=> { console.debug('Closing HTTPS server on signal'); await terminator.terminate().catch(e => { console.error(e); }); + await redisCache?.close(); console.debug('HTTPS server closed'); })(); }); @@ -611,6 +681,7 @@ function run() { void (async () => { console.debug('Closing HTTP server on signal'); await terminator.terminate().catch(e => { console.error(e); }); + await redisCache?.close(); console.debug('HTTP server closed.');return undefined; })(); }); diff --git a/server/jasmine.json b/server/jasmine.json new file mode 100644 index 00000000000..0cf8380f8f8 --- /dev/null +++ b/server/jasmine.json @@ -0,0 +1,5 @@ +{ + "spec_dir": "server", + "spec_files": ["**/*.spec.ts"], + "random": true +} diff --git a/server/redis-cache-policy.spec.ts b/server/redis-cache-policy.spec.ts new file mode 100644 index 00000000000..e456144c9c6 --- /dev/null +++ b/server/redis-cache-policy.spec.ts @@ -0,0 +1,92 @@ +import { RedisCachePolicy } from './redis-cache-policy'; + +describe('Redis SSR cache route policy', () => { + const uncached = { timeToLive: 0, refreshWhenTimeBelow: 0 }; + + it('bypasses cache when rules are absent, empty or unmatched', () => { + for (const routes of [undefined, [], [{ pattern: '/custom-page', timeToLive: 1000 }]]) { + expect(new RedisCachePolicy({ routes }).getDurationsForUrl('/home')).toEqual(uncached); + } + }); + + it('allows an explicit catch-all without built-in route defaults', () => { + const policy = new RedisCachePolicy({ routes: [{ pattern: '*', timeToLive: 900000, refreshWhenTimeBelow: 300000 }] }); + for (const path of ['/', '/home', '/entities/service/uuid']) { + expect(policy.getDurationsForUrl(path)).toEqual({ timeToLive: 900000, refreshWhenTimeBelow: 300000 }); + } + }); + + it('prefers an exact path over a broader pattern regardless of configuration order', () => { + const routes = [ + { pattern: '*', timeToLive: 10000, refreshWhenTimeBelow: 1000 }, + { pattern: '/entities/*', timeToLive: 30000, refreshWhenTimeBelow: 5000 }, + { pattern: '/entities/service', timeToLive: 60000 }, + ]; + for (const ordered of [routes, [...routes].reverse()]) { + const policy = new RedisCachePolicy({ routes: ordered }); + expect(policy.getDurationsForUrl('/entities/service')).toEqual({ timeToLive: 60000, refreshWhenTimeBelow: 0 }); + expect(policy.getDurationsForUrl('/entities/publication')).toEqual({ timeToLive: 30000, refreshWhenTimeBelow: 5000 }); + expect(policy.getDurationsForUrl('/home')).toEqual({ timeToLive: 10000, refreshWhenTimeBelow: 1000 }); + } + }); + + it('prefers the longest literal prefix for nested wildcard rules', () => { + const routes = [ + { pattern: '/entities/*', timeToLive: 30000 }, + { pattern: '/entities/service/*', timeToLive: 60000 }, + { pattern: '/entities/service/special/*', timeToLive: 90000 }, + ]; + for (const ordered of [routes, [...routes].reverse()]) { + const policy = new RedisCachePolicy({ routes: ordered }); + expect(policy.getDurationsForUrl('/entities/service/uuid').timeToLive).toBe(60000); + expect(policy.getDurationsForUrl('/entities/service/special/uuid').timeToLive).toBe(90000); + expect(policy.getDurationsForUrl('/entities/publication/uuid').timeToLive).toBe(30000); + } + }); + + it('uses additional literal characters when wildcard prefixes have equal length', () => { + const policy = new RedisCachePolicy({ routes: [ + { pattern: '/entities/*', timeToLive: 30000 }, + { pattern: '/entities/*/details', timeToLive: 60000 }, + ] }); + expect(policy.getDurationsForUrl('/entities/service/details').timeToLive).toBe(60000); + }); + + it('matches the entire path and excludes query parameters from policy selection', () => { + const policy = new RedisCachePolicy({ routes: [{ pattern: '/entities/service', timeToLive: 60000 }] }); + expect(policy.getDurationsForUrl('/entities/service?query=anything').timeToLive).toBe(60000); + expect(policy.getDurationsForUrl('/entities/service/uuid')).toEqual(uncached); + expect(policy.getDurationsForUrl('/entities/services')).toEqual(uncached); + expect(policy.getDurationsForUrl('/other?next=/entities/service')).toEqual(uncached); + }); + + it('treats regex metacharacters in paths literally and matches case sensitively', () => { + const policy = new RedisCachePolicy({ routes: [{ pattern: '/custom.v1/[page]+(test)', timeToLive: 60000 }] }); + expect(policy.getDurationsForUrl('/custom.v1/[page]+(test)').timeToLive).toBe(60000); + expect(policy.getDurationsForUrl('/customXv1/[page]+(test)')).toEqual(uncached); + expect(policy.getDurationsForUrl('/CUSTOM.v1/[page]+(test)')).toEqual(uncached); + }); + + it('lets a specific rule disable caching even if a catch-all enables it', () => { + const policy = new RedisCachePolicy({ routes: [ + { pattern: '*', timeToLive: 900000, refreshWhenTimeBelow: 300000 }, + { pattern: '/private/*', timeToLive: 0 }, + ] }); + expect(policy.getDurationsForUrl('/private/page')).toEqual(uncached); + expect(policy.getDurationsForUrl('/home').timeToLive).toBe(900000); + }); + + it('rejects empty patterns and paths without a leading slash', () => { + for (const pattern of ['', 'entities/*', '^/entities/']) { + expect(() => new RedisCachePolicy({ routes: [{ pattern, timeToLive: 1000 }] })).toThrow(); + } + }); + + it('requires a TTL for each route and rejects invalid durations', () => { + expect(() => new RedisCachePolicy({ routes: [{ pattern: '*', timeToLive: undefined }] })).toThrow(); + for (const duration of [-1, NaN, Infinity]) { + expect(() => new RedisCachePolicy({ routes: [{ pattern: '*', timeToLive: duration }] })).toThrow(); + expect(() => new RedisCachePolicy({ routes: [{ pattern: '*', timeToLive: 1000, refreshWhenTimeBelow: duration }] })).toThrow(); + } + }); +}); diff --git a/server/redis-cache-policy.ts b/server/redis-cache-policy.ts new file mode 100644 index 00000000000..b99564b9d09 --- /dev/null +++ b/server/redis-cache-policy.ts @@ -0,0 +1,64 @@ +import { + RedisCacheConfig, + RedisCacheRouteConfig, +} from '../src/config/cache-config.interface'; + +export interface RedisCacheDurations { + timeToLive: number; + refreshWhenTimeBelow: number; +} + +/** Compile administrator-defined route rules once, when the SSR cache is initialized. */ +export class RedisCachePolicy { + private rules: { + pattern: RegExp; + durations: RedisCacheDurations; + exact: boolean; + prefixLength: number; + literalLength: number; + wildcardCount: number; + index: number; + }[]; + + constructor(config: Pick) { + this.rules = (config.routes ?? []).map((route, index) => { + if (typeof route.pattern !== 'string' || !route.pattern.length + || (route.pattern !== '*' && !route.pattern.startsWith('/'))) { + throw new Error(`Redis cache route ${index} requires a path starting with '/' or the catch-all '*'.`); + } + const parts = route.pattern.split('*'); + // Treat all characters except '*' literally, so paths are not regular expressions. + const expression = parts.map(part => part.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')).join('.*'); + return { + pattern: new RegExp(`^${expression}$`), + durations: this.getDurations(route), + exact: parts.length === 1, + prefixLength: parts[0].length, + literalLength: parts.join('').length, + wildcardCount: parts.length - 1, + index, + }; + }).sort((first, second) => Number(second.exact) - Number(first.exact) + || second.prefixLength - first.prefixLength + || second.literalLength - first.literalLength + || first.wildcardCount - second.wildcardCount + || first.index - second.index); + } + + /** Exact paths, then longest literal prefixes win. Unmatched pages bypass Redis. */ + getDurationsForUrl(url: string): RedisCacheDurations { + const path = url.split('?')[0]; + const rule = this.rules.find(({ pattern }) => pattern.test(path)); + return { ...(rule?.durations ?? { timeToLive: 0, refreshWhenTimeBelow: 0 }) }; + } + + private getDurations(config: Pick): RedisCacheDurations { + const timeToLive = config.timeToLive; + const refreshWhenTimeBelow = config.refreshWhenTimeBelow ?? 0; + if (!Number.isFinite(timeToLive) || timeToLive < 0 + || !Number.isFinite(refreshWhenTimeBelow) || refreshWhenTimeBelow < 0) { + throw new Error('Redis cache durations must be finite, non-negative numbers in milliseconds.'); + } + return { timeToLive, refreshWhenTimeBelow }; + } +} diff --git a/server/redis-cache.integration.spec.ts b/server/redis-cache.integration.spec.ts new file mode 100644 index 00000000000..070a9f27c7f --- /dev/null +++ b/server/redis-cache.integration.spec.ts @@ -0,0 +1,93 @@ +import { randomUUID } from 'node:crypto'; + +import { createClient } from 'redis'; + +import { RedisCacheConfig } from '../src/config/cache-config.interface'; +import { + CachedPage, + RedisSsrCache, +} from './redis-cache'; + +// Opt in with an isolated Redis instance. The default unit suite requires no external services. +if (process.env.DSPACE_TEST_REDIS_URL) { + describe('Redis SSR cache integration', () => { + let first: RedisSsrCache; + let second: RedisSsrCache; + let redis: ReturnType; + let prefix: string; + const value: CachedPage = { page: 'real Redis', headers: { Link: '; rel="item"' }, statusCode: 200 }; + + beforeEach(async () => { + prefix = `dspace-test:${randomUUID()}:`; + const config: RedisCacheConfig = { + enabled: true, url: process.env.DSPACE_TEST_REDIS_URL, keyPrefix: prefix, + connectTimeout: 1000, commandTimeout: 1000, refreshLockTimeToLive: 60000, + routes: [], + }; + first = new RedisSsrCache(config); + second = new RedisSsrCache(config); + redis = createClient({ url: config.url }); + redis.on('error', () => undefined); + await Promise.all([first.connect(), second.connect(), redis.connect()]); + }); + + afterEach(async () => { + const keys = await redis.keys(`${prefix}*`); + if (keys.length) { + await redis.del(keys); + } + await Promise.all([first.close(), second.close(), redis.disconnect()]); + }); + + it('shares serialized pages, headers and status between workers and expires them', async () => { + await first.set('page', value, 2000); + expect((await second.get('page'))?.value).toEqual(value); + const ttl = await redis.pTTL(`${prefix}page:page`); + expect(ttl).toBeGreaterThan(0); + expect(ttl).toBeLessThanOrEqual(2000); + const deadline = Date.now() + 4000; + while (await redis.exists(`${prefix}page:page`) && Date.now() < deadline) { + await new Promise(resolve => setTimeout(resolve, 50)); + } + expect(await redis.exists(`${prefix}page:page`)).toBe(0); + expect(await second.get('page')).toBeUndefined(); + }); + + it('permits one refresh across workers and releases the lock after completion', async () => { + let finish: () => void; + let entered: () => void; + const started = new Promise(resolve => entered = resolve); + const render = jasmine.createSpy('render').and.callFake(() => { + entered(); + return new Promise(resolve => finish = resolve); + }); + const refreshing = first.refresh('page', render); + await started; + await second.refresh('page', render); + expect(render).toHaveBeenCalledTimes(1); + finish(); + await refreshing; + expect(await redis.get(`${prefix}refresh:page`)).toBeNull(); + const nextRender = jasmine.createSpy('nextRender').and.returnValue(Promise.resolve()); + await second.refresh('page', nextRender); + expect(nextRender).toHaveBeenCalledTimes(1); + expect(await redis.get(`${prefix}refresh:page`)).toBeNull(); + }); + + it('does not delete a lock owned by another worker', async () => { + await first.refresh('page', async () => { + // Replace the owner to verify the old worker cannot release the new lock. + await redis.set(`${prefix}refresh:page`, 'new-owner', { PX: 10000 }); + }); + expect(await redis.get(`${prefix}refresh:page`)).toBe('new-owner'); + }); + + it('allows another worker to refresh after a failed render', async () => { + spyOn(console, 'warn'); + await first.refresh('page', () => Promise.reject(new Error('SSR failed'))); + const render = jasmine.createSpy('render').and.returnValue(Promise.resolve()); + await second.refresh('page', render); + expect(render).toHaveBeenCalledTimes(1); + }); + }); +} diff --git a/server/redis-cache.spec.ts b/server/redis-cache.spec.ts new file mode 100644 index 00000000000..1e06caad890 --- /dev/null +++ b/server/redis-cache.spec.ts @@ -0,0 +1,367 @@ +import { + IncomingMessage, + ServerResponse, +} from 'node:http'; +import { Socket } from 'node:net'; +import { gunzipSync } from 'node:zlib'; + +import express from 'express'; + +import { RedisCacheConfig } from '../src/config/cache-config.interface'; +import { + CachedPage, + canCacheSsrRequest, + createSsrRefreshContext, + getRedisCacheKey, + RedisSsrCache, +} from './redis-cache'; + +describe('Redis SSR cache', () => { + let cache: RedisSsrCache; + let client: any; + let config: RedisCacheConfig; + const value: CachedPage = { page: 'page', headers: { Link: ['; rel="item"'] }, statusCode: 200 }; + + beforeEach(() => { + config = { + enabled: true, url: 'redis://localhost:6379', keyPrefix: 'test:', + connectTimeout: 1000, commandTimeout: 20, refreshLockTimeToLive: 60000, + routes: [], + }; + cache = new RedisSsrCache(config); + const redisClient = (cache as any).client; + client = { + isReady: true, + isOpen: true, + get: jasmine.createSpy('get').and.returnValue(Promise.resolve(JSON.stringify(value))), + pTTL: jasmine.createSpy('pTTL').and.returnValue(Promise.resolve(10000)), + set: jasmine.createSpy('set').and.returnValue(Promise.resolve('OK')), + eval: jasmine.createSpy('eval').and.returnValue(Promise.resolve(1)), + disconnect: jasmine.createSpy('disconnect').and.returnValue(Promise.resolve()), + configSet: jasmine.createSpy('configSet').and.returnValue(Promise.resolve('OK')), + connect: jasmine.createSpy('connect').and.callFake(async () => { + redisClient.emit('ready'); + }), + }; + // Replace the unconnected client; these tests do not require a Redis server. + (cache as any).client = client; + spyOn(console, 'warn'); + }); + + it('leaves Redis memory settings unchanged by default', async () => { + await cache.connect(); + expect(client.configSet).not.toHaveBeenCalled(); + }); + + it('rejects invalid memory limits and eviction policies before connecting', () => { + for (const maxMemory of [-1, 0.5, NaN, Infinity, 2 ** 33, Number.MAX_SAFE_INTEGER + 1]) { + expect(() => new RedisSsrCache({ ...config, maxMemory })).toThrowError(/maxMemory/); + } + expect(() => new RedisSsrCache({ ...config, evictionPolicy: 'noeviction' as any })).toThrowError(/evictionPolicy/); + }); + + describe('Redis memory settings', () => { + beforeEach(() => { + config.maxMemory = 512; + cache = new RedisSsrCache(config); + const redisClient = (cache as any).client; + client.connect.and.callFake(async () => { + redisClient.emit('ready'); + }); + (cache as any).client = client; + }); + + it('converts the memory limit from MiB to bytes and defaults to LFU', async () => { + await cache.connect(); + expect(client.configSet).toHaveBeenCalledOnceWith({ maxmemory: '536870912', 'maxmemory-policy': 'allkeys-lfu' }); + }); + + it('supports LRU and reapplies settings after reconnecting', async () => { + config.evictionPolicy = 'allkeys-lru'; + await cache.connect(); + await cache.connect(); + expect(client.configSet).toHaveBeenCalledTimes(2); + expect(client.configSet).toHaveBeenCalledWith({ maxmemory: '536870912', 'maxmemory-policy': 'allkeys-lru' }); + }); + + it('waits for memory configuration before using the cache', async () => { + let finish: (result: string) => void; + client.configSet.and.returnValue(new Promise(resolve => finish = resolve)); + const connecting = cache.connect(); + const reading = cache.get('key'); + expect(client.get).not.toHaveBeenCalled(); + finish('OK'); + await connecting; + expect(await reading).toEqual({ value, remainingTime: 10000 }); + }); + + it('bypasses the cache if CONFIG SET is denied and recovers after reconnecting', async () => { + client.configSet.and.callFake(() => Promise.reject(new Error('NOPERM private details'))); + await cache.connect(); + expect(await cache.get('key')).toBeUndefined(); + await cache.set('key', value, 1000); + await cache.refresh('key', jasmine.createSpy('render')); + expect(client.get).not.toHaveBeenCalled(); + expect(client.set).not.toHaveBeenCalled(); + expect(console.warn).toHaveBeenCalledOnceWith('Redis SSR cache configure-memory failed (no error code). Continuing without cache for this operation.'); + client.configSet.and.returnValue(Promise.resolve('OK')); + await cache.connect(); + expect(await cache.get('key')).toEqual({ value, remainingTime: 10000 }); + }); + + it('bypasses the cache when memory configuration times out', async () => { + client.configSet.and.returnValue(new Promise(() => undefined)); + await cache.connect(); + expect(await cache.get('key')).toBeUndefined(); + expect(client.get).not.toHaveBeenCalled(); + expect(console.warn).toHaveBeenCalledOnceWith('Redis SSR cache configure-memory failed (ETIMEDOUT). Continuing without cache for this operation.'); + }); + }); + + it('serializes pages with a millisecond TTL and deserializes cached HTML, headers and status', async () => { + await cache.set('key', value, 900000); + expect(client.set).toHaveBeenCalledWith('test:page:key', JSON.stringify(value), { PX: 900000 }); + expect(await cache.get('key')).toEqual({ value, remainingTime: 10000 }); + expect(client.get).toHaveBeenCalledWith('test:page:key'); + }); + + it('compresses HTML without changing headers, status, TTL or the original value', async () => { + config.compressHtml = true; + const page = { ...value, page: `${'Zażółć gęślą jaźń 🌍'.repeat(1000)}` }; + await cache.set('key', page, 900000); + const [key, data, options] = client.set.calls.mostRecent().args; + const stored = JSON.parse(data); + expect(key).toBe('test:page:key'); + expect(options).toEqual({ PX: 900000 }); + expect(stored.compressed).toBe(true); + expect(stored.headers).toEqual(page.headers); + expect(stored.statusCode).toBe(200); + expect(data.length).toBeLessThan(JSON.stringify(page).length); + expect(gunzipSync(Buffer.from(stored.page, 'base64')).toString('utf8')).toBe(page.page); + expect(page).toEqual({ ...value, page: `${'Zażółć gęślą jaźń 🌍'.repeat(1000)}` }); + + client.get.and.returnValue(Promise.resolve(data)); + expect(await cache.get('key')).toEqual({ value: page, remainingTime: 10000 }); + config.compressHtml = false; + expect(await cache.get('key')).toEqual({ value: page, remainingTime: 10000 }); + await cache.set('key', page, 900000); + expect(client.set.calls.mostRecent().args[1]).toBe(JSON.stringify(page)); + }); + + it('reads existing uncompressed entries when compression is enabled', async () => { + config.compressHtml = true; + expect(await cache.get('key')).toEqual({ value, remainingTime: 10000 }); + }); + + it('ignores corrupt compressed entries without marking Redis as unavailable', async () => { + for (const compressed of [true, 'gzip']) { + client.get.and.returnValue(Promise.resolve(JSON.stringify({ ...value, compressed }))); + expect(await cache.get('key')).toBeUndefined(); + } + expect(console.warn).toHaveBeenCalledOnceWith('Redis SSR cache get failed (no error code). Invalid cached entry ignored.'); + client.get.and.returnValue(Promise.resolve(JSON.stringify(value))); + expect(await cache.get('key')).toEqual({ value, remainingTime: 10000 }); + client.get.and.callFake(() => Promise.reject(Object.assign(new Error(), { code: 'ECONNRESET' }))); + expect(await cache.get('key')).toBeUndefined(); + expect(console.warn).toHaveBeenCalledTimes(2); + }); + + it('treats missing and expired entries as cache misses', async () => { + client.get.and.returnValue(Promise.resolve(null)); + expect(await cache.get('key')).toBeUndefined(); + client.get.and.returnValue(Promise.resolve(JSON.stringify(value))); + for (const ttl of [0, -1, -2]) { + client.pTTL.and.returnValue(Promise.resolve(ttl)); + expect(await cache.get('key')).toBeUndefined(); + } + }); + + it('treats malformed entries as cache misses', async () => { + for (const data of ['not json', 'null', '""', '{}']) { + client.get.and.returnValue(Promise.resolve(data)); + expect(await cache.get('key')).toBeUndefined(); + } + expect(console.warn).toHaveBeenCalledOnceWith('Redis SSR cache get failed (no error code). Invalid cached entry ignored.'); + client.get.and.callFake(() => Promise.reject(new Error('connection failed'))); + expect(await cache.get('key')).toBeUndefined(); + expect(console.warn).toHaveBeenCalledWith('Redis SSR cache get failed (no error code). Continuing without cache for this operation.'); + }); + + it('treats entries without HTTP status 200 as cache misses', async () => { + for (const statusCode of [undefined, null, '200', 200.5, 100, 199, 201, 203, 204, 206, 299, 301, 304, 404, 500]) { + client.get.and.returnValue(Promise.resolve(JSON.stringify({ ...value, statusCode }))); + expect(await cache.get('key')).withContext(`statusCode: ${statusCode}`).toBeUndefined(); + } + }); + + it('does not cache routes with a disabled or invalid TTL', async () => { + for (const ttl of [0, -1, NaN, Infinity]) { + await cache.set('key', value, ttl); + } + expect(client.set).not.toHaveBeenCalled(); + }); + + it('does not queue operations during a Redis outage', async () => { + client.isReady = false; + expect(await cache.get('key')).toBeUndefined(); + await cache.set('key', value, 1000); + const render = jasmine.createSpy('render'); + await cache.refresh('key', render); + expect(client.get).not.toHaveBeenCalled(); + expect(client.set).not.toHaveBeenCalled(); + expect(render).not.toHaveBeenCalled(); + }); + + it('continues without cache when Redis commands reject', async () => { + client.get.and.callFake(() => Promise.reject(new Error('unavailable'))); + client.set.and.callFake(() => Promise.reject(new Error('unavailable'))); + expect(await cache.get('key')).toBeUndefined(); + await cache.set('key', value, 1000); + expect(console.warn).toHaveBeenCalledTimes(1); + }); + + it('logs error codes or a fallback without exposing error messages, URLs or keys', async () => { + const secret = 'redis://user:password@private-host:6379'; + const cases: [Error, string][] = [ + [Object.assign(new Error(secret), { code: 'ECONNREFUSED' }), 'ECONNREFUSED'], + [Object.assign(new Error(secret), { code: 'ETIMEDOUT' }), 'ETIMEDOUT'], + [new Error(secret), 'no error code'], + [Object.assign(new Error(secret), { code: '' }), 'no error code'], + [Object.assign(new Error(secret), { code: 123 }), 'no error code'], + ]; + for (const [error, code] of cases) { + const testedCache = new RedisSsrCache(config); + (testedCache as any).client = client; + client.get.and.callFake(() => Promise.reject(error)); + (console.warn as jasmine.Spy).calls.reset(); + expect(await testedCache.get(secret)).toBeUndefined(); + expect(console.warn).toHaveBeenCalledOnceWith(`Redis SSR cache get failed (${code}). Continuing without cache for this operation.`); + } + }); + + it('includes operation context in debug logs without repeating warnings', async () => { + (cache as any).debug = true; + spyOn(console, 'debug'); + client.get.and.callFake(() => Promise.reject(new Error('private details'))); + client.set.and.callFake(() => Promise.reject(Object.assign(new Error('private details'), { code: 'ETIMEDOUT' }))); + await cache.get('key'); + await cache.set('key', value, 1000); + expect(console.warn).toHaveBeenCalledTimes(1); + expect(console.debug).toHaveBeenCalledOnceWith('Redis SSR cache set failed (ETIMEDOUT).'); + }); + + it('logs connection failures once and allows a new warning after reconnecting', async () => { + const testedCache = new RedisSsrCache(config); + const redisClient = (testedCache as any).client; + const error = Object.assign(new Error('private connection details'), { code: 'ECONNREFUSED' }); + spyOn(redisClient, 'connect').and.returnValue(Promise.reject(error)); + await testedCache.connect(); + redisClient.emit('error', error); + expect(console.warn).toHaveBeenCalledOnceWith('Redis SSR cache connect failed (ECONNREFUSED). Continuing without cache for this operation.'); + redisClient.emit('ready'); + redisClient.emit('error', error); + expect(console.warn).toHaveBeenCalledTimes(2); + }); + + it('bounds the time spent waiting for an unresponsive Redis connection', async () => { + client.get.and.returnValue(new Promise(() => undefined)); + expect(await cache.get('key')).toBeUndefined(); + expect(console.warn).toHaveBeenCalledOnceWith('Redis SSR cache get failed (ETIMEDOUT). Continuing without cache for this operation.'); + }); + + it('does not refresh if another worker owns the lock', async () => { + client.set.and.returnValue(Promise.resolve(null)); + const render = jasmine.createSpy('render'); + await cache.refresh('key', render); + expect(render).not.toHaveBeenCalled(); + expect(client.eval).not.toHaveBeenCalled(); + }); + + it('disconnects the Redis connection at shutdown', async () => { + await cache.close(); + expect(client.disconnect).toHaveBeenCalledTimes(1); + client.isOpen = false; + await cache.close(); + expect(client.disconnect).toHaveBeenCalledTimes(1); + }); +}); + +describe('Redis cache keys', () => { + it('isolates deployments, languages, namespaces and query strings', () => { + const key = getRedisCacheKey('https://example.org', 'en', '/dspace/search?query=a'); + expect(key).toBe(getRedisCacheKey('https://example.org', 'en', '/dspace/search?query=a')); + for (const args of [ + ['https://another.org', 'en', '/dspace/search?query=a'], + ['https://example.org', 'pl', '/dspace/search?query=a'], + ['https://example.org', 'en', '/search?query=a'], + ['https://example.org', 'en', '/dspace/search?query=b'], + ]) { + expect(getRedisCacheKey(args[0], args[1], args[2])).not.toBe(key); + } + }); +}); + +describe('Background SSR response', () => { + it('preserves Express response methods and isolates headers, status, locals and req.res', () => { + const app = express(); + const req = new IncomingMessage(new Socket()) as express.Request; + const res = new ServerResponse(req) as express.Response; + Object.setPrototypeOf(req, app.request); + Object.setPrototypeOf(res, app.response); + Object.assign(res, { req, locals: { foreground: true } }); + req.url = '/search?query=test'; + req.baseUrl = '/dspace'; + req.res = res; + res.setHeader('Link', 'original'); + + const background = createSsrRefreshContext(req, res); + req.url = '/dspace/search?query=test'; + req.baseUrl = ''; + expect(background.request.url).toBe('/search?query=test'); + expect(background.request.baseUrl).toBe('/dspace'); + background.response.status(203).setHeader('Link', 'updated'); + background.response.locals.updated = true; + expect(background.request.res).toBe(background.response); + expect(req.res).toBe(res); + expect(res.statusCode).toBe(200); + expect(res.getHeader('Link')).toBe('original'); + expect(res.locals).toEqual({ foreground: true }); + expect(background.response.headersSent).toBe(false); + expect(background.response.getHeader('Link')).toBe('updated'); + }); +}); + +describe('SSR cache request eligibility', () => { + function request(path: string, cookie?: string, authorization?: string): express.Request { + return { + path, method: 'GET', cookies: { token: cookie }, + get: () => authorization, + } as unknown as express.Request; + } + + const excluded = (path: string) => path.startsWith('/login') || path.startsWith('/bitstreams'); + + it('allows anonymous SSR pages only in production', () => { + expect(canCacheSsrRequest(request('/search'), true, true, 'token', excluded)).toBe(true); + expect(canCacheSsrRequest(request('/search'), false, true, 'token', excluded)).toBe(false); + expect(canCacheSsrRequest(request('/search'), true, false, 'token', excluded)).toBe(false); + }); + + it('bypasses requests authenticated by cookie or Authorization header', () => { + expect(canCacheSsrRequest(request('/search', 'jwt'), true, true, 'token', excluded)).toBe(false); + expect(canCacheSsrRequest(request('/search', undefined, 'Bearer jwt'), true, true, 'token', excluded)).toBe(false); + }); + + it('bypasses reload and excluded paths, but allows the SSR root', () => { + for (const path of ['/reload/random', '/login', '/bitstreams/uuid/download']) { + expect(canCacheSsrRequest(request(path), true, true, 'token', excluded)).toBe(false); + } + expect(canCacheSsrRequest(request('/'), true, true, 'token', () => true)).toBe(true); + }); + + it('bypasses non-GET requests', () => { + const req = request('/search'); + req.method = 'POST'; + expect(canCacheSsrRequest(req, true, true, 'token', excluded)).toBe(false); + }); +}); diff --git a/server/redis-cache.ts b/server/redis-cache.ts new file mode 100644 index 00000000000..c3a605a8cd6 --- /dev/null +++ b/server/redis-cache.ts @@ -0,0 +1,207 @@ +import { + createHash, + randomUUID, +} from 'node:crypto'; +import { ServerResponse } from 'node:http'; +import { promisify } from 'node:util'; +import { + gunzip, + gzip, +} from 'node:zlib'; + +import { + Request, + Response, +} from 'express'; +import { createClient } from 'redis'; + +import { RedisCacheConfig } from '../src/config/cache-config.interface'; + +const gzipAsync = promisify(gzip); +const gunzipAsync = promisify(gunzip); + +export interface CachedPage { + page: string; + headers: Record; + statusCode: number; +} + +/** Include the deployment, negotiated language and full URL; keep Redis keys bounded. */ +export function getRedisCacheKey(baseUrl: string, language: string, url: string): string { + return createHash('sha256').update(JSON.stringify([baseUrl, language, url])).digest('hex'); +} + +/** Shared SSR pages must never contain authenticated or route-specific private responses. */ +export function canCacheSsrRequest(req: Request, production: boolean, ssrEnabled: boolean, + authenticationCookie: string, isExcluded: (path: string) => boolean): boolean { + return production && ssrEnabled && req.method === 'GET' + && !req.cookies?.[authenticationCookie] && !req.get('authorization') + && !req.path.startsWith('/reload') && (req.path === '/' || !isExcluded(req.path)); +} + +/** Keep response mutations made by a background render away from the live request. */ +export function createSsrRefreshContext(req: Request, res: Response): { request: Request; response: Response } { + const request = Object.assign(Object.create(Object.getPrototypeOf(req)), req) as Request; + const response = new ServerResponse(request) as unknown as Response; + Object.setPrototypeOf(response, Object.getPrototypeOf(res)); + Object.assign(response, { locals: {}, req: request }); + request.res = response; + return { request, response }; +} + +/** Shared SSR cache. Redis failures are cache misses and never prevent rendering. */ +export class RedisSsrCache { + private client: ReturnType; + private unavailable = false; + private invalidEntryReported = false; + private memoryConfiguration?: Promise; + + constructor(private config: RedisCacheConfig, private debug = false) { + const maxMemory = config.maxMemory ?? 0; + if (!Number.isSafeInteger(maxMemory) || maxMemory < 0 || !Number.isSafeInteger(maxMemory * 1024 * 1024)) { + throw new Error('Redis maxMemory must be a non-negative integer in MiB within the safe byte range.'); + } + if (config.evictionPolicy !== undefined && !['allkeys-lru', 'allkeys-lfu'].includes(config.evictionPolicy)) { + throw new Error('Redis evictionPolicy must be allkeys-lru or allkeys-lfu.'); + } + this.client = createClient({ + url: config.url, + disableOfflineQueue: true, + socket: { + connectTimeout: config.connectTimeout, + reconnectStrategy: retries => Math.min(100 * (retries + 1), 5000), + }, + }); + // Do not log connection errors: their messages may contain credentials from the URL. + this.client.on('error', error => this.reportFailure('connect', error)); + this.client.on('ready', () => { + this.unavailable = false; + if (maxMemory > 0) { + this.memoryConfiguration = this.execute('configure-memory', () => this.client.configSet({ + maxmemory: String(maxMemory * 1024 * 1024), + 'maxmemory-policy': config.evictionPolicy ?? 'allkeys-lfu', + })); + } + }); + } + + /** Connect in the background so an unavailable cache cannot delay server startup. */ + connect(): Promise { + return this.client.connect().then(async () => { + await this.memoryConfiguration; + }).catch(error => this.reportFailure('connect', error)); + } + + async close(): Promise { + if (this.client.isOpen) { + await this.client.disconnect(); + } + } + + async get(key: string): Promise<{ value: CachedPage; remainingTime: number } | undefined> { + return this.execute('get', async () => { + const cacheKey = this.pageKey(key); + const [data, remainingTime] = await Promise.all([this.client.get(cacheKey), this.client.pTTL(cacheKey)]); + if (!data || remainingTime <= 0) { + return undefined; + } + const value = JSON.parse(data) as CachedPage & { compressed?: boolean }; + if (typeof value?.page !== 'string' || !value.headers || typeof value.headers !== 'object' + || value.statusCode !== 200 || (value.compressed !== undefined && typeof value.compressed !== 'boolean')) { + throw new SyntaxError('Invalid cached page'); + } + if (value.compressed) { + try { + value.page = (await gunzipAsync(Buffer.from(value.page, 'base64'))).toString('utf8'); + } catch { + throw new SyntaxError('Invalid compressed cached page'); + } + } + delete value.compressed; + return { value, remainingTime }; + }); + } + + async set(key: string, value: CachedPage, timeToLive: number): Promise { + if (!Number.isFinite(timeToLive) || timeToLive <= 0) { + return; + } + await this.execute('set', async () => { + const stored = this.config.compressHtml + ? { ...value, page: (await gzipAsync(value.page)).toString('base64'), compressed: true } + : value; + return this.client.set(this.pageKey(key), JSON.stringify(stored), { PX: Math.ceil(timeToLive) }); + }); + } + + /** Only one worker may refresh a page at a time. Expiry recovers locks after crashes. */ + async refresh(key: string, render: () => Promise): Promise { + const lockKey = `${this.config.keyPrefix}refresh:${key}`; + const token = randomUUID(); + const acquired = await this.execute('refresh-lock', () => this.client.set(lockKey, token, { + NX: true, + PX: this.config.refreshLockTimeToLive, + })); + if (acquired !== 'OK') { + return; + } + try { + await render(); + } catch { + console.warn('Background SSR cache refresh failed.'); + } finally { + // A slow render must not delete a lock subsequently acquired by another worker. + await this.execute('refresh-unlock', () => this.client.eval( + 'if redis.call("GET", KEYS[1]) == ARGV[1] then return redis.call("DEL", KEYS[1]) else return 0 end', + { keys: [lockKey], arguments: [token] }, + )); + } + } + + private pageKey(key: string): string { + return `${this.config.keyPrefix}page:${key}`; + } + + private async execute(name: string, operation: () => Promise): Promise { + if (!this.client.isReady) { + return undefined; + } + if (name !== 'configure-memory' && this.config.maxMemory > 0 && await this.memoryConfiguration !== 'OK') { + return undefined; + } + let timer: ReturnType; + try { + return await Promise.race([ + operation(), + new Promise((_, reject) => { + timer = setTimeout(() => reject(Object.assign(new Error('Redis command timed out'), { code: 'ETIMEDOUT' })), this.config.commandTimeout); + }), + ]); + } catch (error) { + this.reportFailure(name, error); + return undefined; + } finally { + clearTimeout(timer); + } + } + + private reportFailure(operation: string, error: unknown): void { + const code = (error as { code?: unknown })?.code; + const context = `Redis SSR cache ${operation} failed (${typeof code === 'string' && code ? code : 'no error code'}).`; + if (error instanceof SyntaxError) { + if (!this.invalidEntryReported) { + console.warn(`${context} Invalid cached entry ignored.`); + this.invalidEntryReported = true; + } else if (this.debug) { + console.debug(context); + } + return; + } + if (!this.unavailable) { + console.warn(`${context} Continuing without cache for this operation.`); + this.unavailable = true; + } else if (this.debug) { + console.debug(context); + } + } +} diff --git a/src/app/admin/admin-edit-cms-metadata/admin-edit-cms-metadata.component.ts b/src/app/admin/admin-edit-cms-metadata/admin-edit-cms-metadata.component.ts index a3344dbdb88..37406fd3f59 100644 --- a/src/app/admin/admin-edit-cms-metadata/admin-edit-cms-metadata.component.ts +++ b/src/app/admin/admin-edit-cms-metadata/admin-edit-cms-metadata.component.ts @@ -82,6 +82,12 @@ export class AdminEditCmsMetadataComponent implements OnInit { if (md === 'dspace.cms.footer' && !environment.homePage.showTopFooter) { return; } + if (md === 'dspace.cms.home-header' && !environment.homePage.editHomeHeader) { + return; + } + if (md === 'dspace.cms.home-news' && !environment.homePage.editHomeNews) { + return; + } this.metadataList.push(md); }); this.refreshSiteWithAllLanguages(); diff --git a/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.html b/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.html index 92d015b25e3..41ee00349b0 100644 --- a/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.html +++ b/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.html @@ -1,162 +1,165 @@
-
+

{{ isNewService ? ('ldn-create-service.title' | translate) : ('ldn-edit-registered-service.title' | translate) }}

-
- - @if (!isNewService) { -
- -
- -
-
+
+ + @if (!isNewService) { +
+ +
-
+ }
- } +
-
- - +
+ + @if (formModel.get('name').invalid && formModel.get('name').touched) { -
+ {{ 'ldn-new-service.form.error.name' | translate }} -
+ }
-
- +
+ + class="form-control" formControlName="description" id="description" name="description">
-
+
-
-
- - +
+
+ + @if (formModel.get('url').invalid && formModel.get('url').touched) { -
+ {{ 'ldn-new-service.form.error.url' | translate }} -
+ }
-
- - +
+ + @if (formModel.get('score').invalid && formModel.get('score').touched) { -
+ {{ 'ldn-new-service.form.error.score' | translate }} -
+ }
-
- -
- - +
+ +
+
+ +
+
+ +
@if ((formModel.get('lowerIp').invalid && formModel.get('lowerIp').touched) || (formModel.get('upperIp').invalid && formModel.get('upperIp').touched)) { -
+ {{ 'ldn-new-service.form.error.ipRange' | translate }} -
+ + } @else { + + {{ 'ldn-new-service.form.hint.ipRange' | translate }} + } -
- {{ 'ldn-new-service.form.hint.ipRange' | translate }} -
-
- - +
+ + @if (formModel.get('ldnUrl').invalid && formModel.get('ldnUrl').touched) {
@if (formModel.get('ldnUrl').errors['required']) { -
+ {{ 'ldn-new-service.form.error.ldnurl' | translate }} -
+ } @if (formModel.get('ldnUrl').errors['ldnUrlAlreadyAssociated']) { -
+ {{ 'ldn-new-service.form.error.ldnurl.ldnUrlAlreadyAssociated' | translate }} -
+ }
}
-
- +
+
- -
-
+
+ +
-
+ {{ 'ldn-service-usesActorEmailId-description' | translate }} -
+
@if (areControlsInitialized) { -
+
- +
@if (formModel.get('notifyServiceInboundPatterns')['controls'][0]?.value?.pattern) {
- +
- +
}
@@ -175,11 +178,11 @@

{{ isNewService ? ('ldn-create-service.title' | translat
+ id="additionalInboundPattern{{i}}" + ngbDropdown placement="top-start">