diff --git a/frontend/app/.browserslistrc b/frontend/app/.browserslistrc new file mode 100644 index 00000000..80848532 --- /dev/null +++ b/frontend/app/.browserslistrc @@ -0,0 +1,12 @@ +# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries + +# You can see what browsers were selected by your queries by running: +# npx browserslist + +> 0.5% +last 2 versions +Firefox ESR +not dead +not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/frontend/app/.editorconfig b/frontend/app/.editorconfig new file mode 100644 index 00000000..51873bc7 --- /dev/null +++ b/frontend/app/.editorconfig @@ -0,0 +1,17 @@ +# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 2 + +# We recommend you to keep these unchanged +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false \ No newline at end of file diff --git a/frontend/app/.eslintignore b/frontend/app/.eslintignore new file mode 100644 index 00000000..15298306 --- /dev/null +++ b/frontend/app/.eslintignore @@ -0,0 +1 @@ +src/app/_helpers/data diff --git a/frontend/app/.eslintrc.json b/frontend/app/.eslintrc.json new file mode 100644 index 00000000..e99efd23 --- /dev/null +++ b/frontend/app/.eslintrc.json @@ -0,0 +1,74 @@ +{ + "root": true, + "ignorePatterns": ["projects/**/*"], + "overrides": [ + { + "files": ["*.ts"], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module", + "project": ["tsconfig.json", "e2e/tsconfig.e2e.json"], + "createDefaultProgram": true + }, + "extends": [ + "plugin:@typescript-eslint/recommended", + "plugin:@angular-eslint/recommended", + "plugin:@angular-eslint/template/process-inline-templates", + "plugin:jsdoc/recommended", + "plugin:unicorn/recommended", + "prettier" + ], + "plugins": ["eslint-plugin-unicorn", "eslint-plugin-jsdoc"], + "settings": { + "jsdoc": { + "mode": "typescript" + } + }, + "rules": { + "unicorn/filename-case": "error", + "unicorn/no-array-reduce": "off", + "unicorn/no-array-callback-reference": "off", + "unicorn/no-await-expression-member": "off", + "unicorn/prefer-object-from-entries": "off", + "unicorn/prefer-node-protocol": "off", + "unicorn/no-process-exit": "off", + "unicorn/prevent-abbreviations": [ + "warn", + { + "replacements": { + "ref": false, + "i": false + } + } + ], + "unicorn/no-nested-ternary": "off", + "unicorn/better-regex": "off", + + "jsdoc/no-types": "error", + "jsdoc/require-param": "off", + "jsdoc/require-param-description": "error", + "jsdoc/check-param-names": "error", + "jsdoc/require-returns": "off", + "jsdoc/require-param-type": "off", + "jsdoc/require-returns-type": "off", + + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-unused-vars": [ + "error", + { + "args": "after-used", + "argsIgnorePattern": "^_" + } + ], + "@typescript-eslint/lines-between-class-members": ["error", "always"], + "@typescript-eslint/no-explicit-any": "error", + "@angular-eslint/use-lifecycle-interface": "error" + } + }, + { + "files": ["*.html"], + "extends": ["plugin:@angular-eslint/template/recommended", "prettier"] + } + ] +} diff --git a/frontend/app/.gitignore b/frontend/app/.gitignore new file mode 100644 index 00000000..ed75d28d --- /dev/null +++ b/frontend/app/.gitignore @@ -0,0 +1,45 @@ +# Specifies intentionally untracked files to ignore when using Git +# http://git-scm.com/docs/gitignore + +*~ +*.sw[mnpcod] +*.log +*.tmp +*.tmp.* +log.txt +*.sublime-project +*.sublime-workspace +.vscode/* +npm-debug.log* + +# This file is sometimes created automatically, even though +# we actually use the capacitor.config.ts +capacitor.config.json + +.idea/ +.ionic/ +.angular/ +.sourcemaps/ +.sass-cache/ +.tmp/ +.versions/ +coverage/ +www/ +node_modules/ +tmp/ +temp/ +platforms/ +/plugins/ +$RECYCLE.BIN/ +dist/ +# ignore generated resources +resources/*/icon/ +resources/*/splash/ +android/app/src/main/res/**/*.png +ios/App/App/Assets.xcassets/**/*.png + +.DS_Store +Thumbs.db +UserInterfaceState.xcuserstate + +docs diff --git a/frontend/app/.gitlab-ci.yml b/frontend/app/.gitlab-ci.yml new file mode 100644 index 00000000..6898d8a3 --- /dev/null +++ b/frontend/app/.gitlab-ci.yml @@ -0,0 +1,226 @@ +image: registry.gitlab.com/openstapps/app + +before_script: + - npm ci + +default: + tags: + - performance + interruptible: true + +stages: + - setup + - build + - test + - publish + - deploy + - ui test + +setup: + image: registry.gitlab.com/openstapps/projectmanagement/builder + stage: setup + only: + - schedules + variables: + DOCKER_DRIVER: overlay2 + services: + - docker:dind + script: + - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com + - docker build -t registry.gitlab.com/openstapps/app . + - docker push registry.gitlab.com/openstapps/app + cache: {} # disable irrelevant cache for this job + before_script: [] # do not run irrelevant before script for this job + tags: + - dind + interruptible: false + +build: + stage: build + script: + - npm run build + artifacts: + paths: + - www + except: + - schedules + +scheduled-build: + stage: build + script: + - npm run build + only: + - schedules + +lint: + stage: build + script: + - npm run lint + +format: + stage: build + script: + - npm run format:check + +unit: + stage: test + script: + - npm run check-icons + - npm run test -- --watch=false --no-progress --code-coverage + coverage: '/Statements[^:]*\:[^:]*\s+([\d\.]+)%/' + artifacts: + paths: + - coverage + reports: + coverage_report: + coverage_format: cobertura + path: coverage/cobertura-coverage.xml + +.e2e-chrome: + image: registry.gitlab.com/openstapps/projectmanagement/cypress + stage: test + script: + - npm run e2e -- --watch=false --headless=true --browser=chrome + artifacts: + when: on_failure + paths: + - cypress/videos + - cypress/screenshots + +.e2e-firefox: + image: registry.gitlab.com/openstapps/projectmanagement/cypress + stage: test + script: + - npm run e2e -- --watch=false --headless=true --browser=firefox + artifacts: + when: on_failure + paths: + - cypress/videos + - cypress/screenshots + +ui-chrome: + extends: .e2e-chrome + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: never + - if: ($CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "main") + when: always + allow_failure: false + - if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main") + when: never + +ui-firefox: + extends: .e2e-firefox + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: never + - if: ($CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "main") + when: always + allow_failure: false + - if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main") + when: never + +e2e-chrome: + extends: .e2e-chrome + stage: ui test + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: never + - if: ($CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "main") + when: never + - if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main") + when: manual + allow_failure: false + +e2e-firefox: + extends: .e2e-firefox + stage: ui test + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: never + - if: ($CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "main") + when: never + - if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main") + when: manual + allow_failure: false + +audit: + stage: test + script: + - npm audit + allow_failure: true + except: + - schedules + +scheduled-audit: + stage: test + script: + - npm audit --production + only: + - schedules + +pages: + stage: publish + script: + - npm run documentation + - mv docs public + only: + - main + except: + - schedules + artifacts: + paths: + - public + +review: + stage: deploy + script: + - npm run build:prod + - .gitlab/ci/enableGitlabReviewToolbar.sh www/index.html "$CI_PROJECT_ID" "$CI_OPEN_MERGE_REQUESTS" + - cp www/index.html www/200.html + - ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG-$CI_ENVIRONMENT_SLUG.surge.sh/ + environment: + name: review/$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_NAME + url: https://$CI_PROJECT_PATH_SLUG-$CI_ENVIRONMENT_SLUG.surge.sh/ + on_stop: stop_review + rules: + - if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main" && $CI_MERGE_REQUEST_EVENT_TYPE != "merge_train" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")) + +stop_review: + stage: deploy + script: + - ./node_modules/.bin/surge teardown $CI_PROJECT_PATH_SLUG-$CI_ENVIRONMENT_SLUG.surge.sh + when: manual + environment: + name: review/$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_NAME + action: stop + rules: + - if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main" && $CI_MERGE_REQUEST_EVENT_TYPE != "merge_train" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")) + +staging: + stage: deploy + script: + - npm run build:prod + - cp www/index.html www/200.html + - ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG-staging.surge.sh/ + environment: + name: staging + url: https://$CI_PROJECT_PATH_SLUG-staging.surge.sh/ + only: + - develop + except: + - schedules + +production_demo: + stage: deploy + script: + - npm run build:prod + - cp www/index.html www/200.html + - ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG.surge.sh/ + environment: + name: production + url: https://$CI_PROJECT_PATH_SLUG.surge.sh/ + only: + - main + except: + - schedules diff --git a/frontend/app/.gitlab/ci/enableGitlabReviewToolbar.sh b/frontend/app/.gitlab/ci/enableGitlabReviewToolbar.sh new file mode 100644 index 00000000..e99d5b2c --- /dev/null +++ b/frontend/app/.gitlab/ci/enableGitlabReviewToolbar.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env sh + +# Adds a preedefined script tag including the merge current request id to the angular web app index.html. +# This enables the interactive gitlab review toolbar. + +MERGE_REQUEST_ID="" +if echo -n $3 | grep -Eq '[0-9]+$'; then + MERGE_REQUEST_ID="$(echo -n "$3" | grep -Eo '[0-9]+$')" +fi + +INDEX_PATH=$(dirname $1) +SCRIPT_TAG="" + +curl https://gitlab.com/assets/webpack/visual_review_toolbar.js --output "$INDEX_PATH/visual_review_toolbar.js" --silent +sed -i -e "\@@i\\$SCRIPT_TAG" $1 diff --git a/frontend/app/.gitlab/ci/getRegistryBranch.sh b/frontend/app/.gitlab/ci/getRegistryBranch.sh new file mode 100644 index 00000000..0b71943f --- /dev/null +++ b/frontend/app/.gitlab/ci/getRegistryBranch.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +# script returns string with everything after the last colon of $1 input +echo -n $1 | grep -oE '[^:]+$' diff --git a/frontend/app/.gitlab/ci/getRegistryTag.sh b/frontend/app/.gitlab/ci/getRegistryTag.sh new file mode 100644 index 00000000..29c0637a --- /dev/null +++ b/frontend/app/.gitlab/ci/getRegistryTag.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +# script returns semantical versioning string like 2.0.0 (if $1 is v2.0.0) or $1 +if echo -n $1 | grep -Eq 'v[0-9]+\.[0-9]+\.[0-9]+'; then + echo $(echo -n "$1" | cut -c 2-); +else + echo $1; +fi diff --git a/frontend/app/.gitlab/ci/pushAsLatestVersion.sh b/frontend/app/.gitlab/ci/pushAsLatestVersion.sh new file mode 100644 index 00000000..22141ee2 --- /dev/null +++ b/frontend/app/.gitlab/ci/pushAsLatestVersion.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +# If this is a pipeline of a version tag, also push this version +# as latest to the registry alias $2:latest +if echo -n $1 | grep -Eq 'v[0-9]+\.[0-9]+\.[0-9]+'; then + docker push $2:latest; +fi diff --git a/frontend/app/.gitlab/ci/testCIScripts.sh b/frontend/app/.gitlab/ci/testCIScripts.sh new file mode 100644 index 00000000..e60382fa --- /dev/null +++ b/frontend/app/.gitlab/ci/testCIScripts.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env sh + +# test all CI scripts + +SCRIPT_DIR=$(dirname "$0") + +TAG_VERSION=$(sh $SCRIPT_DIR/getRegistryTag.sh "v1.0.0") +TAG_TEST=$(sh $SCRIPT_DIR/getRegistryTag.sh "TEST") +BRANCH_NAME=$(sh $SCRIPT_DIR/getRegistryBranch.sh "very:first:test") + +# Leaving out pushAsLatestVersion.sh as its control flow +# is based on the same condition as getRegistryTag.sh + +if [ $TAG_VERSION != "1.0.0" ]; then + echo "ERROR in CI SCRIPT: $SCRIPT_DIR/getRegistryTag.sh" + return 1 +fi + +if [ $TAG_TEST != "TEST" ]; then + echo "ERROR in CI SCRIPT: $SCRIPT_DIR/getRegistryTag.sh" + return 2 +fi + +if [ $BRANCH_NAME != "test" ]; then + echo "ERROR in CI SCRIPT: $SCRIPT_DIR/getRegistryBranch.sh" + return 3 +fi + +return 0 diff --git a/frontend/app/.gitlab/issue_templates/bug.md b/frontend/app/.gitlab/issue_templates/bug.md new file mode 100644 index 00000000..dabcc5ed --- /dev/null +++ b/frontend/app/.gitlab/issue_templates/bug.md @@ -0,0 +1,32 @@ +## Summary + +(Summarize the bug encountered concisely) + +## Steps to reproduce + +(How one can reproduce the issue - this is very important) + +## Example Project + +(If possible, please create an example project here on GitLab.com that exhibits the problematic behaviour, and link to it here in the bug report) + +(If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version) + +## What is the current bug behavior? + +(What actually happens) + +## What is the expected correct behavior? + +(What you should see instead) + +## Relevant logs and/or screenshots + +(Paste any relevant logs - please use code blocks (```) to format console output, +logs, and code as it's very hard to read otherwise.) + +## Possible fixes + +(If you can, link to the line of code that might be responsible for the problem) + +/label ~bug ~meeting diff --git a/frontend/app/.gitlab/issue_templates/feature.md b/frontend/app/.gitlab/issue_templates/feature.md new file mode 100644 index 00000000..9f25786d --- /dev/null +++ b/frontend/app/.gitlab/issue_templates/feature.md @@ -0,0 +1,17 @@ +## Description + +(Describe the feature that you're requesting concisely) + +## Explanation + +(Explain why the feature is necessary) + +## Mockups/Screenshots + +(If possible, provide mockups or screenshots, which demonstrate the feature) + +## Dependencies, issues to be resolved beforehand + +(List issues or dependencies that need to be resolved before this feature can be implemented) + +/label ~feature ~meeting diff --git a/frontend/app/.gitlab/issue_templates/improvement.md b/frontend/app/.gitlab/issue_templates/improvement.md new file mode 100644 index 00000000..e5845376 --- /dev/null +++ b/frontend/app/.gitlab/issue_templates/improvement.md @@ -0,0 +1,17 @@ +## What needs to be changed? + +??? - Describe use case! + +## How is the current state not sufficient? + +??? + +## Which changes are necessary? + +??? + +## Do the proposed changes impact current use cases? + +??? + +/label ~improvement ~meeting diff --git a/frontend/app/.npmignore b/frontend/app/.npmignore new file mode 100644 index 00000000..203fae89 --- /dev/null +++ b/frontend/app/.npmignore @@ -0,0 +1,11 @@ +# Ignore all files/folders by default +# See https://stackoverflow.com/a/29932318 +/* +# Except these files/folders +!docs +!lib +!LICENSE +!package.json +!package-lock.json +!README.md +!src diff --git a/frontend/app/.npmrc b/frontend/app/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/frontend/app/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/frontend/app/.prettierignore b/frontend/app/.prettierignore new file mode 100644 index 00000000..1cbac213 --- /dev/null +++ b/frontend/app/.prettierignore @@ -0,0 +1,48 @@ +# Specifies intentionally untracked files to ignore when using Git +# http://git-scm.com/docs/gitignore + +*~ +*.sw[mnpcod] +*.log +*.tmp +*.tmp.* +log.txt +*.sublime-project +*.sublime-workspace +.vscode/* +npm-debug.log* + +# This file is sometimes created automatically, even though +# we actually use the capacitor.config.ts +capacitor.config.json + +.idea/ +.ionic/ +.angular/ +.sourcemaps/ +.sass-cache/ +.tmp/ +.versions/ +coverage/ +www/ +node_modules/ +tmp/ +temp/ +platforms/ +/plugins/ +$RECYCLE.BIN/ +dist/ +# ignore generated resources +resources/*/icon/ +resources/*/splash/ +android/app/src/main/res/**/*.png +ios/App/App/Assets.xcassets/**/*.png + +.DS_Store +Thumbs.db +UserInterfaceState.xcuserstate + +android/ +ios/ + +docs diff --git a/frontend/app/.prettierrc.js b/frontend/app/.prettierrc.js new file mode 100644 index 00000000..12d764a6 --- /dev/null +++ b/frontend/app/.prettierrc.js @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +module.exports = { + ...require('@openstapps/prettier-config'), + overrides: [ + { + files: 'src/**/*.html', + options: { + parser: 'angular', + }, + }, + ], +}; diff --git a/frontend/app/Dockerfile b/frontend/app/Dockerfile new file mode 100644 index 00000000..28750253 --- /dev/null +++ b/frontend/app/Dockerfile @@ -0,0 +1,114 @@ +### Set base image +FROM ubuntu:20.04 + +LABEL version="2.0.0" \ + description="Build environment for the StApps app." \ + maintainer="Jovan Krunić " + +### Configure versions to install +ENV ANDROID_APIS="android-30" \ + ANDROID_BUILD_TOOLS_VERSION="30.0.2" \ + NPM_VERSION="^6.0.0" \ + IONIC_VERSION="^6.0.0" \ + CORDOVA_RES_VERSION="latest" \ + ### Configure download URLs + ANDROID_SDK_TOOLS_DOWNLOAD_URL="https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip" \ + GOOGLE_SIGNING_KEY_URL="https://dl-ssl.google.com/linux/linux_signing_key.pub" \ + GOOGLE_CHROME_REPOSITORY_URL="http://dl.google.com/linux/chrome/deb/" \ + ### Android SDK path + ANDROID_SDK_ROOT="/opt/android-sdk" \ + ### Installation files + SCRIPTS_DIRECTORY="scripts" \ + NODE_SETUP_SCRIPT="node_setup.sh" \ + TMP_PROJECT_NAME="tmp-project" + +### Set $PATH +#ENV PATH=$ANDROID_SDK_ROOT/cmdline-tools/:$ANDROID_SDK_ROOT/cmdline-tools/bin:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$PATH +ENV PATH=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/cmdline-tools/tools/bin:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$PATH + +### Replace shell with bash +RUN rm /bin/sh && ln -s /bin/bash /bin/sh && \ + ### Set debconf to run non-interactively + echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + +### Install locales and base dependencies +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + locales \ + apt-transport-https \ + build-essential \ + ca-certificates \ + curl \ + libssl-dev \ + git \ + gradle \ + ca-certificates-java \ + python \ + python3-pip \ + software-properties-common \ + ssh \ + unzip \ + wget \ + gpg-agent \ + jq \ + && rm -rf /var/lib/apt/lists/* + +### Install Java Development Kit 11 +RUN add-apt-repository -y ppa:openjdk-r/ppa && apt-get update && \ + apt-get install --no-install-recommends -y openjdk-11-jdk \ + && rm -rf /var/lib/apt/lists/* + +### Setup the locale +RUN sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ + locale-gen en_US.UTF-8 +ENV LANG=en_US.UTF-8 \ + LANGUAGE=en_US \ + LC_ALL=en_US.UTF-8 +RUN dpkg-reconfigure --frontend noninteractive locales + +### add chrome repository +RUN wget -q -O - $GOOGLE_SIGNING_KEY_URL | apt-key add - +RUN echo "deb $GOOGLE_CHROME_REPOSITORY_URL stable main" >> /etc/apt/sources.list.d/google.list + +### Install Chrome +RUN apt-get update -y && \ + apt-get install -y --no-install-recommends \ + ### Install chrome and virtual frame buffer + google-chrome-stable xvfb && \ + ### Clear apt cache + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +### Workaround to fix cacerts problem (Ubuntu): +### https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty +RUN rm /etc/ssl/certs/java/cacerts && \ + update-ca-certificates -f + +### Install android +RUN curl $ANDROID_SDK_TOOLS_DOWNLOAD_URL > /tmp/android-sdk.zip && \ + unzip /tmp/android-sdk.zip && \ + mkdir -p $ANDROID_SDK_ROOT/cmdline-tools && \ + mv cmdline-tools $ANDROID_SDK_ROOT/cmdline-tools/tools && \ + ### Add licences (for "auto-accept licenses") + yes | sdkmanager --licenses && \ + ### Install platform tools + sdkmanager "platforms;$ANDROID_APIS" "build-tools;$ANDROID_BUILD_TOOLS_VERSION" + +### Copy scripts directory into the tmp folder, so it's available to the following commands +COPY $SCRIPTS_DIRECTORY/$NODE_SETUP_SCRIPT /tmp/ + +RUN bash /tmp/$NODE_SETUP_SCRIPT && apt-get install -y nodejs && \ + ### Install wanted npm version + npm install -g --unsafe-perm npm@$NPM_VERSION && \ + ### Install needed global npm packages + npm install -g --unsafe-perm @ionic/cli@$IONIC_VERSION cordova-res@$CORDOVA_RES_VERSION + +RUN cd / && ionic start $TMP_PROJECT_NAME blank --type=angular --capacitor --no-git --no-interactive && \ + cd $TMP_PROJECT_NAME && ionic capacitor add android && export NG_CLI_ANALYTICS=ci && ionic capacitor build android --no-open && \ + cd android && ./gradlew assembleDebug && \ + cd / && rm -rf $TMP_PROJECT_NAME + +### Set working directory +WORKDIR /app + +CMD [""] diff --git a/frontend/app/Dockerfile.Executable b/frontend/app/Dockerfile.Executable new file mode 100644 index 00000000..c38a9638 --- /dev/null +++ b/frontend/app/Dockerfile.Executable @@ -0,0 +1,20 @@ +# Creates a docker image with only the app as an executable unit +# Dependencies need to be installed beforehand +# Needs to be build beforehand +# docker build -t registry.gitlab.com/openstapps/app/executable:core-x.y -f Dockerfile.Executable . +FROM node:14-alpine + +WORKDIR /app +COPY . /app + +# To use ng directly +ENV PATH /app/node_modules/.bin:$PATH + +EXPOSE 8100 + +# Because the dependencies were installed from the builder-Image, +# or locally, we need to rebuild node-sass library +RUN npm rebuild node-sass + +# Starts the app +CMD ng run app:serve --host=0.0.0.0 --port=8100 diff --git a/frontend/app/ICONS.md b/frontend/app/ICONS.md new file mode 100644 index 00000000..c46227c6 --- /dev/null +++ b/frontend/app/ICONS.md @@ -0,0 +1,78 @@ +# Icons + +A few notes to our icon set, for users and future maintainers. + +## Usage + +To find icon names, visit the +[Google Material Symbols Page](https://fonts.google.com/icons?icon.style=Rounded) + +We have extended the `ion-icon` element via a directive. **Make sure your +module imports the `IonIconModule`**, you can then proceed using `ion-icon`s +as usual. + +The modified `ion-icon` comes with a few extra features: + +- `[fill]` controls the fill color of the icon. +- `[weight]` controls the font weight of the icon. +- `[size]` controls the font size of the icon. +- `[grade]` controls the font grade of the icon. + +All of these attributes are animated as described +[here](https://developers.google.com/fonts/docs/material_symbols). + +![](/readme-resources/fill-axis.gif) + +You can also control these attributes via css: + +```scss +ion-icon ::ng-deep stapps-icon { + --fill: 1; + --grade: 0; + --weight: 400; +} +``` + +Sometimes icon code points cannot be determined automatically, for whatever +reason. In this case, you will need to specify the code point manually in +the config file. + +### Icon Font Minification + +Icon font minification is done automatically, but requires you to +follow a few simple rules: + +1. Use the tagged template literal for referencing icon names in + TypeScript files and code + +```ts +SCIcon`icon_name`; +``` + +2. When using `ion-icon` in HTML, reference either icons that went through + the `SCIcon` tag or write them as one of the following: + +```html + + + + + + + +``` + +Icons that are unknown at compile time can be specified in the +`additionalIcons` property of the `icons.config.ts` file. + +The minification can then be done by running + +```shell +npm run minify-icons +``` + +Unfortunately, I was unable to find a JS package that could to the job, +and had to rely on the Python module [fonttools](https://github.com/fonttools/fonttools). + +That means that you might run into additional issues when running the +above-mentioned command. diff --git a/frontend/app/LICENSE b/frontend/app/LICENSE new file mode 100644 index 00000000..9df63ccc --- /dev/null +++ b/frontend/app/LICENSE @@ -0,0 +1,200 @@ +GNU GENERAL PUBLIC LICENSE +Version 3, 29 June 2007 + +Copyright © 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS + +0. Definitions. +"This License" refers to version 3 of the GNU General Public License. + +"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based on the Program. + +To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. +A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: +a) The work must carry prominent notices stating that you modified it, and giving a relevant date. +b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". +c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. +d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: +a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. +b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. +c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. +d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. +e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + +a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or +b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or +c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or +d) Limiting the use for publicity purposes of names of licensors or authors of the material; or +e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or +f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. +All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. +10. Automatic Licensing of Downstream Recipients. +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. +An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. +A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". +A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. +13. Use with the GNU Affero General Public License. +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. +14. Revised Versions of this License. +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. +16. Limitation of Liability. +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +17. Interpretation of Sections 15 and 16. +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + +Copyright (C) + +This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: + + Copyright (C) +This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. +This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". + +You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . + +The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/frontend/app/PITFALLS.md b/frontend/app/PITFALLS.md new file mode 100644 index 00000000..587d5101 --- /dev/null +++ b/frontend/app/PITFALLS.md @@ -0,0 +1,44 @@ +# Pitfalls + +This file is used to document problems, that occurred during development and how to fix them. + +## Ionic Framework + +### Build platform Android + +#### Problem + +After calling `ionic cordova build android` the gradle version is not set correctly (4.1 instead of 4.6) + +#### Solution + +- Go to folder `APP_FOLDER/platforms/android/cordova/lib/builders/` +- Open file `GradleBuilder.js` and change gradle version to `gradle-4.6-all.zip` + in line `var distributionUrl = process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] || 'https\\://services.gradle.org/distributions/gradle-4.1-all.zip';` +- Repeat this for file `StudioBuilder.js` + +#### Problem + +`android.support... not found` on build + +#### Solution + +``` +npm install jetifier +npx jetify +npx cap sync android +``` + +[more here](https://stackoverflow.com/questions/62195760/ionic-capacitor-build-cannot-find-symbol-android-support-v4-app-activitycompat) + +### Run platform iOS + +#### Problem + +Currently, the iOS project build with cordova uses the old build system. +The command `ionic cordova run ios` runs into the error `/platforms/ios/build/emulator/StApps.app/Info.plist file not found.` + +#### Solution + +- Either use the command: `ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"` +- Or open the iOS project in Xcode and change build system in workspace settings to `Lagacy Build System`. Then the normal run command works also. diff --git a/frontend/app/README.md b/frontend/app/README.md new file mode 100644 index 00000000..117ae404 --- /dev/null +++ b/frontend/app/README.md @@ -0,0 +1,135 @@ +# @openstapps/app + +[![pipeline status](https://img.shields.io/gitlab/pipeline/openstapps/app.svg?style=flat-square)](https://gitlab.com/openstapps/app/commits/main) +[![documentation](https://img.shields.io/badge/documentation-online-blue.svg?style=flat-square)](https://openstapps.gitlab.io/app) + +This is a hybrid mobile app which is built using [Ionic](https://github.com/ionic-team/ionic) and [Angular] (https://angular.io/). + +### Why not refactoring legacy app? + +The StApps 1.x.x (legacy app, but current app in stores) is written using Ionic 1 framework (AngularJS). For StApps 2.x.x project (this repository) we want to use the latest version of Ionic (Ionic 2+ which uses Angular 2+; at the time of writing of the documentation current versions are: Ionic 4, Angular 6), which introduces significant changes. That said, simple refactoring of the app 1.x.x was not viable solution and this project was created with goal of coding of the existing and new features, defined by in new requirements (details available in internal documents). + +## How to quickly start running the app? + +There are (`npm`) scripts defined to get the app running as quickly as possible. Those scripts (shortcuts for docker commands) are called using the syntax `npm run + `. So we have the following commands available: + +``` +npm run docker:pull +``` + +which pulls the up-to-date image ([Dockerfile](Dockerfile)) which contains all the tools needed for building, serving and deploying the app. + +``` +npm run docker:enter +``` + +which enters the container on docker builder image, where we can run `npm install` (to install the required npm packages) and `npm build` (to build the app: convert into executable files), but also any other arbitrary commands with the tools available in the docker image. + +``` +npm run docker:build +``` + +which runs `npm install` (to install the required npm packages) and `npm build` (to build the app: convert into executable files) in the docker container which runs on the docker builder image. + +``` +npm run docker:serve +``` + +which serves the app for running it in the browser. It basically runs `ionic serve` in the docker container (in the docker builder image). + +## How to build and start the app using the default backend? + +``` +npm run build +npm run start +``` + +will build and serve the app using the configuration for a default backend. + +## Further explanation of npm scripts + +All the npm scripts are defined in `package.json` [file](package.json). It is recommended to open the file and check what these scripts exactly do. + +## Most useful commands + +### Running the app + +Install the npm packages needed for running the app (as for any other node project which uses npm): + +``` +npm install +``` + +Check the code for linter issues: + +``` +npm run lint +``` + +Automatically fix linter issues (those where autofix is possible): + +``` +npm run lint:fix +``` + +Build the app (transpile etc.): + +``` +npm run build +``` + +Open the app in the browser: + +``` +ionic serve +``` + +### Android + +Run the app for testing on an android device (with live reload in the webview / device, when files are changed): + +``` +npm run build # if needed +npm run resources:android # generate needed resources (icons and splashscreens) +npm run docker:run:android # runs "ionic capacitor run android --livereload --external" on a selected device +``` + +**Troubleshooting**: The device should be listed as the docker container where the run happens gets access to the USB devices. In case your device is not listed, it is possible that Chrome is blocking the access to it. Make sure `chrome://inspect` is not opened in your Chrome or any other program, which would block access to the device by using it on the host. + +After the app is running on the android device you can use an IDE or Chrome to debug the WebView (JavaScript / Typescript) of the app (set breakpoints, watch variables, look at the call stack etc.). + +For example in Chrome: + +1. Open `chrome://inspect` +2. Click the App's WebView which is listed there (you can recognize it by the app's ID) +3. Go to `Sources` and add the app's folder to the `FileSystem` + +Besides that, it is possible to monitor processes (and so the processes related to the app itself, using its ID) using [adb logcat](https://developer.android.com/studio/command-line/logcat), which you can run inside of the running container. + +Build the (debug) app for testing on an android device (creates an APK file in the android's build outputs path): + +``` +npm run docker:build:android +``` + +The mentioned `docker:*:android` npm commands are executed in a docker container, so it is not mandatory to have the android (command line) tools installed on the host computer. Alternatively, you can install the tools and additionally Android Studio on the host machine and then run and build the app on the host (without using docker). + +### Executing tests + +Execute unit tests: + +``` +npm test +``` + +Execute e2e tests: + +``` +npm run e2e +``` + +As mentioned, we can always check the [package.json](package.json) for details on each npm script/command. + +## Using Gitlab CI as a reference + +As we use GitLab CI for building the app, running tests and deployment of the app, we can always refer to [.gitlab-ci.yml](.gitlab-ci.yml), file which shows us which commands (`script` part) should be run for each phase of the development process. We can use these commands to reproduce the same thing on our local computers in a docker container (as we can use the same docker image GitLab CI is using). diff --git a/frontend/app/__mocks__/@capacitor/geolocation.ts b/frontend/app/__mocks__/@capacitor/geolocation.ts new file mode 100644 index 00000000..eeafceae --- /dev/null +++ b/frontend/app/__mocks__/@capacitor/geolocation.ts @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export interface Position { + timestamp: number; + coords: { + latitude: number; + longitude: number; + accuracy: number; + altitudeAccuracy: number | null | undefined; + altitude: number | null; + speed: number | null; + heading: number | null; + }; +} + +const samplePosition: Position = { + coords: { + heading: 123, + latitude: 34.12, + longitude: 12.34, + accuracy: 1, + altitude: 123, + altitudeAccuracy: 1, + speed: 1, + }, + timestamp: 1_565_275_805_901, +} as Position; + +export class GeolocationMock { + // @ts-ignore + checkPermissions(): Promise { + // @ts-ignore + return Promise.resolve({}); + } + + clearWatch(_options: any): Promise { + return Promise.resolve(undefined); + } + + getCurrentPosition(_options?: any): Promise { + return Promise.resolve(samplePosition); + } + + // @ts-ignore + requestPermissions(permissions?: any): Promise { + // @ts-ignore + return Promise.resolve(undefined); + } + + watchPosition( + _options: PositionOptions, + callback: (position: Position, error?: any) => void, + ): Promise { + callback(samplePosition); + return Promise.resolve(''); + } +} + +export interface PermissionStatus { + location: PermissionState; + coarseLocation: PermissionState; +} + +export const Geolocation = new GeolocationMock(); diff --git a/frontend/app/additional-licenses.json b/frontend/app/additional-licenses.json new file mode 100644 index 00000000..71594057 --- /dev/null +++ b/frontend/app/additional-licenses.json @@ -0,0 +1,8 @@ +{ + "barlow": { + "repository": "https://github.com/jpt/barlow", + "licenses": "OFL-1.1", + "licenseFile": "./src/assets/fonts/barlow/OFL.txt", + "publisher": "JPT" + } +} diff --git a/frontend/app/android/.gitignore b/frontend/app/android/.gitignore new file mode 100644 index 00000000..63c86fe3 --- /dev/null +++ b/frontend/app/android/.gitignore @@ -0,0 +1,96 @@ +# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore + +# Built application files +*.apk +*.aar +*.ap_ +*.aab + +# Files for the ART/Dalvik VM +*.dex + +# Java class files +*.class + +# Generated files +bin/ +gen/ +out/ +# Uncomment the following line in case you need and you don't have the release build type files in your app +# release/ + +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files +*.log + +# Android Studio Navigation editor temp files +.navigation/ + +# Android Studio captures folder +captures/ + +# IntelliJ +*.iml +.idea/workspace.xml +.idea/tasks.xml +.idea/gradle.xml +.idea/assetWizardSettings.xml +.idea/dictionaries +.idea/libraries +# Android Studio 3 in .gitignore file. +.idea/caches +.idea/modules.xml +# Comment next line if keeping position of elements in Navigation Editor is relevant for you +.idea/navEditor.xml + +# Keystore files +# Uncomment the following lines if you do not want to check your keystore files in. +#*.jks +#*.keystore + +# External native build folder generated in Android Studio 2.2 and later +.externalNativeBuild +.cxx/ + +# Google Services (e.g. APIs or Firebase) +# google-services.json + +# Freeline +freeline.py +freeline/ +freeline_project_description.json + +# fastlane +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output +fastlane/readme.md + +# Version control +vcs.xml + +# lint +lint/intermediates/ +lint/generated/ +lint/outputs/ +lint/tmp/ +# lint/reports/ + +# Android Profiling +*.hprof + +# Cordova plugins for Capacitor +capacitor-cordova-android-plugins + +# Copied web assets +app/src/main/assets/public diff --git a/frontend/app/android/app/.gitignore b/frontend/app/android/app/.gitignore new file mode 100644 index 00000000..043df802 --- /dev/null +++ b/frontend/app/android/app/.gitignore @@ -0,0 +1,2 @@ +/build/* +!/build/.npmkeep diff --git a/frontend/app/android/app/build.gradle b/frontend/app/android/app/build.gradle new file mode 100644 index 00000000..24e2e07d --- /dev/null +++ b/frontend/app/android/app/build.gradle @@ -0,0 +1,53 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion rootProject.ext.compileSdkVersion + defaultConfig { + applicationId "de.anyschool.app" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + aaptOptions { + // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. + // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61 + ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~' + } + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +repositories { + flatDir{ + dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs' + } +} + +dependencies { + implementation fileTree(include: ['*.jar'], dir: 'libs') + implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" + implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion" + implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion" + implementation project(':capacitor-android') + testImplementation "junit:junit:$junitVersion" + androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" + androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" + implementation project(':capacitor-cordova-android-plugins') +} + +apply from: 'capacitor.build.gradle' + +try { + def servicesJSON = file('google-services.json') + if (servicesJSON.text) { + apply plugin: 'com.google.gms.google-services' + } +} catch(Exception e) { + logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work") +} diff --git a/frontend/app/android/app/capacitor.build.gradle b/frontend/app/android/app/capacitor.build.gradle new file mode 100644 index 00000000..4254641c --- /dev/null +++ b/frontend/app/android/app/capacitor.build.gradle @@ -0,0 +1,35 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN + +android { + compileOptions { + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 + } +} + +apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" +dependencies { + implementation project(':capacitor-app') + implementation project(':capacitor-browser') + implementation project(':capacitor-device') + implementation project(':capacitor-dialog') + implementation project(':capacitor-filesystem') + implementation project(':capacitor-geolocation') + implementation project(':capacitor-haptics') + implementation project(':capacitor-keyboard') + implementation project(':capacitor-local-notifications') + implementation project(':capacitor-network') + implementation project(':capacitor-preferences') + implementation project(':capacitor-share') + implementation project(':capacitor-splash-screen') + implementation project(':capacitor-status-bar') + implementation project(':hugotomazi-capacitor-navigation-bar') + implementation project(':transistorsoft-capacitor-background-fetch') + implementation project(':capacitor-secure-storage-plugin') + +} + + +if (hasProperty('postBuildExtras')) { + postBuildExtras() +} diff --git a/frontend/app/android/app/proguard-rules.pro b/frontend/app/android/app/proguard-rules.pro new file mode 100644 index 00000000..f1b42451 --- /dev/null +++ b/frontend/app/android/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/frontend/app/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/frontend/app/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java new file mode 100644 index 00000000..f2c2217e --- /dev/null +++ b/frontend/app/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.getcapacitor.myapp; + +import static org.junit.Assert.*; + +import android.content.Context; +import androidx.test.ext.junit.runners.AndroidJUnit4; +import androidx.test.platform.app.InstrumentationRegistry; +import org.junit.Test; +import org.junit.runner.RunWith; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + + assertEquals("com.getcapacitor.app", appContext.getPackageName()); + } +} diff --git a/frontend/app/android/app/src/main/AndroidManifest.xml b/frontend/app/android/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..4bd6c1ff --- /dev/null +++ b/frontend/app/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/app/android/app/src/main/assets/capacitor.plugins.json b/frontend/app/android/app/src/main/assets/capacitor.plugins.json new file mode 100644 index 00000000..91bf9943 --- /dev/null +++ b/frontend/app/android/app/src/main/assets/capacitor.plugins.json @@ -0,0 +1,70 @@ +[ + { + "pkg": "@capacitor/app", + "classpath": "com.capacitorjs.plugins.app.AppPlugin" + }, + { + "pkg": "@capacitor/browser", + "classpath": "com.capacitorjs.plugins.browser.BrowserPlugin" + }, + { + "pkg": "@capacitor/device", + "classpath": "com.capacitorjs.plugins.device.DevicePlugin" + }, + { + "pkg": "@capacitor/dialog", + "classpath": "com.capacitorjs.plugins.dialog.DialogPlugin" + }, + { + "pkg": "@capacitor/filesystem", + "classpath": "com.capacitorjs.plugins.filesystem.FilesystemPlugin" + }, + { + "pkg": "@capacitor/geolocation", + "classpath": "com.capacitorjs.plugins.geolocation.GeolocationPlugin" + }, + { + "pkg": "@capacitor/haptics", + "classpath": "com.capacitorjs.plugins.haptics.HapticsPlugin" + }, + { + "pkg": "@capacitor/keyboard", + "classpath": "com.capacitorjs.plugins.keyboard.KeyboardPlugin" + }, + { + "pkg": "@capacitor/local-notifications", + "classpath": "com.capacitorjs.plugins.localnotifications.LocalNotificationsPlugin" + }, + { + "pkg": "@capacitor/network", + "classpath": "com.capacitorjs.plugins.network.NetworkPlugin" + }, + { + "pkg": "@capacitor/preferences", + "classpath": "com.capacitorjs.plugins.preferences.PreferencesPlugin" + }, + { + "pkg": "@capacitor/share", + "classpath": "com.capacitorjs.plugins.share.SharePlugin" + }, + { + "pkg": "@capacitor/splash-screen", + "classpath": "com.capacitorjs.plugins.splashscreen.SplashScreenPlugin" + }, + { + "pkg": "@capacitor/status-bar", + "classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin" + }, + { + "pkg": "@hugotomazi/capacitor-navigation-bar", + "classpath": "br.com.tombus.capacitor.plugin.navigationbar.NavigationBarPlugin" + }, + { + "pkg": "@transistorsoft/capacitor-background-fetch", + "classpath": "com.transistorsoft.bgfetch.capacitor.BackgroundFetchPlugin" + }, + { + "pkg": "capacitor-secure-storage-plugin", + "classpath": "com.whitestein.securestorage.SecureStoragePluginPlugin" + } +] diff --git a/frontend/app/android/app/src/main/java/de/anyschool/app/MainActivity.java b/frontend/app/android/app/src/main/java/de/anyschool/app/MainActivity.java new file mode 100644 index 00000000..358781e4 --- /dev/null +++ b/frontend/app/android/app/src/main/java/de/anyschool/app/MainActivity.java @@ -0,0 +1,5 @@ +package de.anyschool.app; + +import com.getcapacitor.BridgeActivity; + +public class MainActivity extends BridgeActivity {} diff --git a/frontend/app/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/frontend/app/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..c7bd21db --- /dev/null +++ b/frontend/app/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/frontend/app/android/app/src/main/res/drawable/ic_launcher_background.xml b/frontend/app/android/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..d5fccc53 --- /dev/null +++ b/frontend/app/android/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/app/android/app/src/main/res/layout/activity_main.xml b/frontend/app/android/app/src/main/res/layout/activity_main.xml new file mode 100644 index 00000000..b5ad1387 --- /dev/null +++ b/frontend/app/android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/frontend/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/frontend/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..036d09bc --- /dev/null +++ b/frontend/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/frontend/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/frontend/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..036d09bc --- /dev/null +++ b/frontend/app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/frontend/app/android/app/src/main/res/values/ic_launcher_background.xml b/frontend/app/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 00000000..c5d5899f --- /dev/null +++ b/frontend/app/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/frontend/app/android/app/src/main/res/values/strings.xml b/frontend/app/android/app/src/main/res/values/strings.xml new file mode 100644 index 00000000..d13ed91e --- /dev/null +++ b/frontend/app/android/app/src/main/res/values/strings.xml @@ -0,0 +1,8 @@ + + + StApps + StApps + de.anyschool.app + de.anyschool.app + mobile.app.uni-frankfurt.de + diff --git a/frontend/app/android/app/src/main/res/values/styles.xml b/frontend/app/android/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..eab3be26 --- /dev/null +++ b/frontend/app/android/app/src/main/res/values/styles.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/frontend/app/android/app/src/main/res/xml/config.xml b/frontend/app/android/app/src/main/res/xml/config.xml new file mode 100644 index 00000000..c6dab753 --- /dev/null +++ b/frontend/app/android/app/src/main/res/xml/config.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/app/android/app/src/main/res/xml/file_paths.xml b/frontend/app/android/app/src/main/res/xml/file_paths.xml new file mode 100644 index 00000000..bd0c4d80 --- /dev/null +++ b/frontend/app/android/app/src/main/res/xml/file_paths.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/frontend/app/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/frontend/app/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java new file mode 100644 index 00000000..02973278 --- /dev/null +++ b/frontend/app/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java @@ -0,0 +1,18 @@ +package com.getcapacitor.myapp; + +import static org.junit.Assert.*; + +import org.junit.Test; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + + @Test + public void addition_isCorrect() throws Exception { + assertEquals(4, 2 + 2); + } +} diff --git a/frontend/app/android/build.gradle b/frontend/app/android/build.gradle new file mode 100644 index 00000000..747a69b5 --- /dev/null +++ b/frontend/app/android/build.gradle @@ -0,0 +1,33 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:7.2.1' + classpath 'com.google.gms:google-services:4.3.13' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +apply from: "variables.gradle" + +allprojects { + repositories { + google() + mavenCentral() + // https://github.com/transistorsoft/capacitor-background-fetch/blob/master/example/android/build.gradle + maven { + url("${project(':transistorsoft-capacitor-background-fetch').projectDir}/libs") + } + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/frontend/app/android/capacitor.settings.gradle b/frontend/app/android/capacitor.settings.gradle new file mode 100644 index 00000000..e6ea0f3d --- /dev/null +++ b/frontend/app/android/capacitor.settings.gradle @@ -0,0 +1,54 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN +include ':capacitor-android' +project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor') + +include ':capacitor-app' +project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android') + +include ':capacitor-browser' +project(':capacitor-browser').projectDir = new File('../node_modules/@capacitor/browser/android') + +include ':capacitor-device' +project(':capacitor-device').projectDir = new File('../node_modules/@capacitor/device/android') + +include ':capacitor-dialog' +project(':capacitor-dialog').projectDir = new File('../node_modules/@capacitor/dialog/android') + +include ':capacitor-filesystem' +project(':capacitor-filesystem').projectDir = new File('../node_modules/@capacitor/filesystem/android') + +include ':capacitor-geolocation' +project(':capacitor-geolocation').projectDir = new File('../node_modules/@capacitor/geolocation/android') + +include ':capacitor-haptics' +project(':capacitor-haptics').projectDir = new File('../node_modules/@capacitor/haptics/android') + +include ':capacitor-keyboard' +project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android') + +include ':capacitor-local-notifications' +project(':capacitor-local-notifications').projectDir = new File('../node_modules/@capacitor/local-notifications/android') + +include ':capacitor-network' +project(':capacitor-network').projectDir = new File('../node_modules/@capacitor/network/android') + +include ':capacitor-preferences' +project(':capacitor-preferences').projectDir = new File('../node_modules/@capacitor/preferences/android') + +include ':capacitor-share' +project(':capacitor-share').projectDir = new File('../node_modules/@capacitor/share/android') + +include ':capacitor-splash-screen' +project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capacitor/splash-screen/android') + +include ':capacitor-status-bar' +project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android') + +include ':hugotomazi-capacitor-navigation-bar' +project(':hugotomazi-capacitor-navigation-bar').projectDir = new File('../node_modules/@hugotomazi/capacitor-navigation-bar/android') + +include ':transistorsoft-capacitor-background-fetch' +project(':transistorsoft-capacitor-background-fetch').projectDir = new File('../node_modules/@transistorsoft/capacitor-background-fetch/android') + +include ':capacitor-secure-storage-plugin' +project(':capacitor-secure-storage-plugin').projectDir = new File('../node_modules/capacitor-secure-storage-plugin/android') diff --git a/frontend/app/android/gradle.properties b/frontend/app/android/gradle.properties new file mode 100644 index 00000000..0566c221 --- /dev/null +++ b/frontend/app/android/gradle.properties @@ -0,0 +1,24 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true diff --git a/frontend/app/android/gradle/wrapper/gradle-wrapper.jar b/frontend/app/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000..41d9927a Binary files /dev/null and b/frontend/app/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/frontend/app/android/gradle/wrapper/gradle-wrapper.properties b/frontend/app/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..92f06b50 --- /dev/null +++ b/frontend/app/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/frontend/app/android/gradlew b/frontend/app/android/gradlew new file mode 100644 index 00000000..1b6c7873 --- /dev/null +++ b/frontend/app/android/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/frontend/app/android/gradlew.bat b/frontend/app/android/gradlew.bat new file mode 100644 index 00000000..107acd32 --- /dev/null +++ b/frontend/app/android/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/frontend/app/android/settings.gradle b/frontend/app/android/settings.gradle new file mode 100644 index 00000000..3b4431d7 --- /dev/null +++ b/frontend/app/android/settings.gradle @@ -0,0 +1,5 @@ +include ':app' +include ':capacitor-cordova-android-plugins' +project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/') + +apply from: 'capacitor.settings.gradle' \ No newline at end of file diff --git a/frontend/app/android/variables.gradle b/frontend/app/android/variables.gradle new file mode 100644 index 00000000..777bd7e8 --- /dev/null +++ b/frontend/app/android/variables.gradle @@ -0,0 +1,16 @@ +ext { + minSdkVersion = 22 + compileSdkVersion = 32 + targetSdkVersion = 32 + androidxActivityVersion = '1.4.0' + androidxAppCompatVersion = '1.4.2' + androidxCoordinatorLayoutVersion = '1.2.0' + androidxCoreVersion = '1.8.0' + androidxFragmentVersion = '1.4.1' + coreSplashScreenVersion = '1.0.0-rc01' + androidxWebkitVersion = '1.4.0' + junitVersion = '4.13.2' + androidxJunitVersion = '1.1.3' + androidxEspressoCoreVersion = '3.4.0' + cordovaAndroidVersion = '10.1.1' +} \ No newline at end of file diff --git a/frontend/app/angular.json b/frontend/app/angular.json new file mode 100644 index 00000000..7db07c51 --- /dev/null +++ b/frontend/app/angular.json @@ -0,0 +1,217 @@ +{ + "$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json", + "version": 1, + "defaultProject": "app", + "newProjectRoot": "projects", + "projects": { + "app": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "prefix": "app", + "schematics": {}, + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "www", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "tsconfig.app.json", + "assets": [ + { + "glob": "**/*", + "input": "src/assets", + "output": "assets" + }, + { + "glob": "**/*", + "input": "./node_modules/leaflet/dist/images", + "output": "assets/" + } + ], + "styles": [ + { + "input": "src/theme/variables.scss", + "inject": true + }, + { + "input": "src/global.scss", + "inject": true + }, + "./node_modules/leaflet/dist/leaflet.css", + "./node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.production.ts" + } + ], + "outputHashing": "all", + "subresourceIntegrity": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ] + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + }, + "ci": { + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "progress": false + } + }, + "defaultConfiguration": "development" + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "app:build" + }, + "configurations": { + "production": { + "browserTarget": "app:build:production" + }, + "development": { + "browserTarget": "app:build:development" + }, + "ci": { + "progress": false, + "browserTarget": "app:build" + }, + "fake": { + "browserTarget": "app:build:fake" + } + }, + "defaultConfiguration": "development" + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "app:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "src/test.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", + "styles": [], + "scripts": [], + "assets": [ + { + "glob": "favicon.ico", + "input": "src/", + "output": "/" + }, + { + "glob": "**/*", + "input": "src/assets", + "output": "/assets" + }, + { + "glob": "**/*", + "input": "./node_modules/leaflet/dist/images", + "output": "assets/" + } + ] + }, + "configurations": { + "ci": { + "progress": false, + "watch": false + } + } + }, + "lint": { + "builder": "@angular-eslint/builder:lint", + "options": { + "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"], + "eslintConfig": ".eslintrc.json", + "ignorePath": ".eslintignore" + } + }, + "ionic-cordova-build": { + "builder": "@ionic/angular-toolkit:cordova-build", + "options": { + "browserTarget": "app:build" + }, + "configurations": { + "production": { + "browserTarget": "app:build:production" + } + } + }, + "cypress-run": { + "builder": "@cypress/schematic:cypress", + "options": { + "devServerTarget": "app:serve" + }, + "configurations": { + "production": { + "devServerTarget": "app:serve:production" + } + } + }, + "cypress-open": { + "builder": "@cypress/schematic:cypress", + "options": { + "watch": true, + "headless": false + } + }, + "e2e": { + "builder": "@cypress/schematic:cypress", + "options": { + "devServerTarget": "app:serve", + "watch": true, + "headless": false + }, + "configurations": { + "production": { + "devServerTarget": "app:serve:production" + } + } + } + } + } + }, + "cli": { + "defaultCollection": "@ionic/angular-toolkit", + "analytics": false + }, + "schematics": { + "@ionic/angular-toolkit:component": { + "styleext": "scss" + }, + "@ionic/angular-toolkit:page": { + "styleext": "scss" + } + } +} diff --git a/frontend/app/capacitor.config.ts b/frontend/app/capacitor.config.ts new file mode 100644 index 00000000..a2f39707 --- /dev/null +++ b/frontend/app/capacitor.config.ts @@ -0,0 +1,39 @@ +import {CapacitorConfig} from '@capacitor/cli'; + +const config: CapacitorConfig = { + appId: 'de.anyschool.app', + appName: 'StApps', + webDir: 'www', + bundledWebRuntime: false, + cordova: { + preferences: { + 'AndroidXEnabled': 'true', + 'android-minSdkVersion': '22', + 'BackupWebStorage': 'none', + }, + }, + plugins: { + SplashScreen: { + launchShowDuration: 6000, + launchAutoHide: false, + backgroundColor: '#ffffff', + androidSplashResourceName: 'splash', + androidScaleType: 'FIT_CENTER', + showSpinner: false, + androidSpinnerStyle: 'large', + iosSpinnerStyle: 'small', + spinnerColor: '#999999', + splashFullScreen: false, + splashImmersive: false, + useDialog: false, + }, + LocalNotifications: { + // TODO + }, + CapacitorHttp: { + enabled: false, + }, + }, +}; + +export default config; diff --git a/frontend/app/config.xml b/frontend/app/config.xml new file mode 100644 index 00000000..e5a5f84e --- /dev/null +++ b/frontend/app/config.xml @@ -0,0 +1,32 @@ + + + StApps + An awesome Ionic/Cordova app. + Ionic Framework Team + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/app/cypress.config.ts b/frontend/app/cypress.config.ts new file mode 100644 index 00000000..00f15f86 --- /dev/null +++ b/frontend/app/cypress.config.ts @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {defineConfig} from 'cypress'; + +export default defineConfig({ + e2e: { + baseUrl: 'http://localhost:4200', + supportFile: 'cypress/support/index.ts', + videosFolder: 'cypress/videos', + screenshotsFolder: 'cypress/screenshots', + fixturesFolder: 'cypress/fixtures', + defaultCommandTimeout: 20_000, + specPattern: 'cypress/integration/**/*.spec.ts', + /*setupNodeEvents(on, config) { + on('task', { + log(message) { + console.log(message); + return null; + }, + }); + },*/ + }, +}); diff --git a/frontend/app/cypress/.gitignore b/frontend/app/cypress/.gitignore new file mode 100644 index 00000000..99bd2a63 --- /dev/null +++ b/frontend/app/cypress/.gitignore @@ -0,0 +1,2 @@ +screenshots/ +videos/ diff --git a/frontend/app/cypress/fixtures/example.json b/frontend/app/cypress/fixtures/example.json new file mode 100644 index 00000000..02e42543 --- /dev/null +++ b/frontend/app/cypress/fixtures/example.json @@ -0,0 +1,5 @@ +{ + "name": "Using fixtures to represent data", + "email": "hello@cypress.io", + "body": "Fixtures are a great way to mock data for responses to routes" +} diff --git a/frontend/app/cypress/fixtures/search/multi-result.json b/frontend/app/cypress/fixtures/search/multi-result.json new file mode 100644 index 00000000..9867763b --- /dev/null +++ b/frontend/app/cypress/fixtures/search/multi-result.json @@ -0,0 +1,464 @@ +{ + "0": { + "data": [], + "facets": [], + "pagination": { + "count": 0, + "offset": 0, + "total": 0 + }, + "stats": { + "time": 17 + } + }, + "1": { + "data": [ + { + "duration": "PT2H0M0S", + "uid": "0c7b1108-5af1-5142-802a-b3cb8c53423a", + "repeatFrequency": "P1W", + "identifiers": { + "LSF": "770563" + }, + "origin": { + "indexed": "2022-06-02T10:09:30.199Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Proseminar", + "dates": [ + "2021-10-18T10:00:00+02:00", + "2021-10-25T10:00:00+02:00", + "2021-11-01T10:00:00+01:00", + "2021-11-08T10:00:00+01:00", + "2021-11-15T10:00:00+01:00", + "2021-11-22T10:00:00+01:00", + "2021-11-29T10:00:00+01:00", + "2021-12-06T10:00:00+01:00" + ], + "event": { + "categories": ["seminar"], + "identifiers": { + "LSF": "333284" + }, + "name": "Vertiefung Forschungstechnik: Quantitative Text Analysis", + "originalCategory": "Proseminar", + "type": "academic event", + "uid": "8150cab0-8c53-5cfa-a751-cdc2c550fd09" + }, + "type": "date series" + }, + { + "duration": "PT2H0M0S", + "uid": "29942a12-3e9d-5f2a-8b5a-67f3411cc344", + "repeatFrequency": "P1W", + "identifiers": { + "LSF": "770564" + }, + "origin": { + "indexed": "2022-06-02T10:09:30.201Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Proseminar", + "dates": [ + "2021-10-20T10:00:00+02:00", + "2021-10-27T10:00:00+02:00", + "2021-11-03T10:00:00+01:00", + "2021-11-10T10:00:00+01:00", + "2021-11-17T10:00:00+01:00", + "2021-11-24T10:00:00+01:00", + "2021-12-01T10:00:00+01:00", + "2021-12-08T10:00:00+01:00" + ], + "event": { + "categories": ["seminar"], + "identifiers": { + "LSF": "333284" + }, + "name": "Vertiefung Forschungstechnik: Quantitative Text Analysis", + "originalCategory": "Proseminar", + "type": "academic event", + "uid": "8150cab0-8c53-5cfa-a751-cdc2c550fd09" + }, + "type": "date series" + } + ], + "facets": [ + { + "buckets": [ + { + "count": 2, + "key": "date series" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 2, + "key": "seminar" + } + ], + "field": "event.categories", + "onlyOnType": "date series" + } + ], + "pagination": { + "count": 2, + "offset": 0, + "total": 2 + }, + "stats": { + "time": 20 + } + }, + "2": { + "data": [ + { + "duration": "PT2H0M0S", + "uid": "6cd69d5b-457d-54fe-9c9d-f2d964f922bb", + "repeatFrequency": "P1W", + "identifiers": { + "LSF": "795424" + }, + "origin": { + "indexed": "2022-06-02T10:09:17.000Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Seminar", + "dates": [ + "2022-04-25T10:00:00+02:00", + "2022-05-02T10:00:00+02:00", + "2022-05-09T10:00:00+02:00", + "2022-05-16T10:00:00+02:00", + "2022-05-23T10:00:00+02:00", + "2022-05-30T10:00:00+02:00", + "2022-06-13T10:00:00+02:00", + "2022-06-20T10:00:00+02:00", + "2022-06-27T10:00:00+02:00", + "2022-07-04T10:00:00+02:00", + "2022-07-11T10:00:00+02:00" + ], + "event": { + "categories": ["seminar"], + "identifiers": { + "LSF": "336255" + }, + "name": "Integrations-Seminar: Die Pest – eine Geißel Gottes?", + "originalCategory": "Seminar", + "type": "academic event", + "uid": "5218f814-f112-5f0d-a686-0ad32f5458d7" + }, + "type": "date series", + "inPlace": { + "alternateNames": ["NG 701", "Seminarraum, Belegungspräferenz Fb 6, Fb 7 und Fb 9"], + "categories": ["learn", "education"], + "geo": { + "point": { + "coordinates": [8.66986, 50.12624], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.669566065073013, 50.12599504439663], + [8.669351488351822, 50.12621170950345], + [8.669488281011581, 50.12626501584762], + [8.66951510310173, 50.12624094202212], + [8.669930845499039, 50.12641633675929], + [8.66990938782692, 50.12643525183961], + [8.670027405023577, 50.1264851188337], + [8.670236617326736, 50.12627361363954], + [8.669566065073013, 50.12599504439663] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "818" + }, + "name": "NG 701 (Vorbelegungsrecht Fb 06, 07, 09)", + "type": "room", + "uid": "c2832ca4-4db1-57a9-869b-29e556a574e1" + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 1, + "key": "date series" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "seminar" + } + ], + "field": "event.categories", + "onlyOnType": "date series" + }, + { + "buckets": [ + { + "count": 1, + "key": "education" + }, + { + "count": 1, + "key": "learn" + } + ], + "field": "inPlace.categories", + "onlyOnType": "date series" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 19 + } + }, + "3": { + "data": [ + { + "duration": "PT2H0M0S", + "uid": "92ea4c39-e6d9-5b3e-8c8a-08d2406daf2b", + "repeatFrequency": "P1W", + "identifiers": { + "LSF": "775246" + }, + "origin": { + "indexed": "2022-06-02T10:09:22.176Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Seminar", + "dates": [ + "2022-04-11T16:00:00+02:00", + "2022-04-25T16:00:00+02:00", + "2022-05-02T16:00:00+02:00", + "2022-05-09T16:00:00+02:00", + "2022-05-16T16:00:00+02:00", + "2022-05-23T16:00:00+02:00", + "2022-05-30T16:00:00+02:00", + "2022-06-13T16:00:00+02:00", + "2022-06-20T16:00:00+02:00", + "2022-06-27T16:00:00+02:00", + "2022-07-04T16:00:00+02:00", + "2022-07-11T16:00:00+02:00" + ], + "event": { + "categories": ["seminar"], + "identifiers": { + "LSF": "334591" + }, + "name": "Konstruktion der Wirklichkeit. Siegfried Kracauers Text-Mosaik", + "originalCategory": "Seminar", + "type": "academic event", + "uid": "9d019d9e-d26e-52a0-bf3e-56e7950784af" + }, + "type": "date series", + "inPlace": { + "alternateNames": ["SH 4.101"], + "categories": ["learn", "education"], + "geo": { + "point": { + "coordinates": [8.66836, 50.12927], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.668371140956877, 50.12907297255887], + [8.668247759342194, 50.12942717952356], + [8.668864667415619, 50.129513151692436], + [8.668977320194244, 50.1291692620903], + [8.668371140956877, 50.12907297255887] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "7378" + }, + "name": "SH 4.101", + "type": "room", + "uid": "7d603157-54a8-5a1a-94a3-a575a6cc5b47" + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 1, + "key": "date series" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "seminar" + } + ], + "field": "event.categories", + "onlyOnType": "date series" + }, + { + "buckets": [ + { + "count": 1, + "key": "education" + }, + { + "count": 1, + "key": "learn" + } + ], + "field": "inPlace.categories", + "onlyOnType": "date series" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 19 + } + }, + "4": { + "data": [ + { + "duration": "PT2H0M0S", + "uid": "9c36d466-5e59-5e45-92db-d3e50e9617ce", + "repeatFrequency": "P1W", + "identifiers": { + "LSF": "763069" + }, + "origin": { + "indexed": "2022-06-02T10:09:47.309Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Tutorium", + "dates": [ + "2021-10-25T14:00:00+02:00", + "2021-11-01T14:00:00+01:00", + "2021-11-08T14:00:00+01:00", + "2021-11-15T14:00:00+01:00", + "2021-11-22T14:00:00+01:00", + "2021-11-29T14:00:00+01:00", + "2021-12-06T14:00:00+01:00", + "2021-12-13T14:00:00+01:00", + "2022-01-10T14:00:00+01:00", + "2022-01-17T14:00:00+01:00", + "2022-01-24T14:00:00+01:00", + "2022-01-31T14:00:00+01:00", + "2022-02-07T14:00:00+01:00", + "2022-02-14T14:00:00+01:00" + ], + "event": { + "categories": ["tutorial"], + "identifiers": { + "LSF": "329884" + }, + "name": "Einführung in Text Mining mit R", + "originalCategory": "Tutorium", + "type": "academic event", + "uid": "7c1c016f-49f5-51b5-971b-9307fe1fed4f" + }, + "type": "date series", + "inPlace": { + "alternateNames": ["SH 1.105"], + "categories": ["learn", "education"], + "geo": { + "point": { + "coordinates": [8.66836, 50.12927], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.668371140956877, 50.12907297255887], + [8.668247759342194, 50.12942717952356], + [8.668864667415619, 50.129513151692436], + [8.668977320194244, 50.1291692620903], + [8.668371140956877, 50.12907297255887] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "7337" + }, + "name": "SH 1.105 (Vorbelegungsrecht FB 04, gültig für WS 22/23)", + "type": "room", + "uid": "ee1de899-2e25-5680-b7ed-e8fcad6c5408" + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 1, + "key": "date series" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "tutorial" + } + ], + "field": "event.categories", + "onlyOnType": "date series" + }, + { + "buckets": [ + { + "count": 1, + "key": "education" + }, + { + "count": 1, + "key": "learn" + } + ], + "field": "inPlace.categories", + "onlyOnType": "date series" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 21 + } + } +} diff --git a/frontend/app/cypress/fixtures/search/no-results.json b/frontend/app/cypress/fixtures/search/no-results.json new file mode 100644 index 00000000..f004b227 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/no-results.json @@ -0,0 +1,12 @@ +{ + "data": [], + "facets": [], + "pagination": { + "count": 0, + "offset": 0, + "total": 0 + }, + "stats": { + "time": 4 + } +} diff --git a/frontend/app/cypress/fixtures/search/test-2.json b/frontend/app/cypress/fixtures/search/test-2.json new file mode 100644 index 00000000..5ab5d5ce --- /dev/null +++ b/frontend/app/cypress/fixtures/search/test-2.json @@ -0,0 +1,631 @@ +{ + "data": [ + { + "uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336", + "identifiers": { + "LSF": "336024" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85523" + }, + "level": 2, + "name": "Fremdsprachen", + "type": "catalog", + "uid": "004a2be2-efad-5d14-8b6b-88701651c3fd" + } + ], + "origin": { + "indexed": "2022-06-02T10:10:13.423Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "This is the first test item", + "organizers": [ + { + "familyName": "Guzmán", + "gender": "female", + "givenName": "Evelyn", + "identifiers": { + "LSF": "15239" + }, + "jobTitles": ["ISZ-Bereich Fremdsprachen - Wissenschaftliche Mitarbeiter*innen"], + "name": "Evelyn Guzmán", + "type": "person", + "uid": "6cd47b1f-485a-50be-8ca6-7ebe71729b7d" + } + ], + "originalCategory": "Übung", + "categories": ["exercise"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "1e02b7b8-e2de-56bd-b0ad-2fe0a8ad18ca", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89659" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "8e33ae61-dfc7-5b09-8d0a-05429d8859b0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + ], + "level": 2, + "academicTerm": { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + }, + "identifiers": { + "LSF": "87868" + }, + "origin": { + "indexed": "2022-06-02T10:08:41.006Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Entrance Test", + "description": "___________________________________________________________________________________________\n\n\n\nBitte beachten Sie:\n\nDer Entrance Test für den Studienbeginn im Sommersemester 2022 ist abgeschlossen!\n\n \n\n___________________________________________________________________________________________\n\n\n \n\nInformationen zum Entrance Test für den Studienbeginn im Wintersemester 2022/23:\n\nAm Entrance Test müssen alle Bewerber/innen für die Studiengänge des Instituts für England- und Amerikastudien (IEAS) teilnehmen, die den obligatorischen Sprachnachweis nicht auf anderem Wege erbringen können, bzw. deren Sprachnachweise älter als zwei Jahre sind. Die Teilnahme am Entrance Test ist nur für künftige Bachelor- und Lehramt-Studentinnen und Studenten gedacht. Der Entrance Test dauert zwei Stunden. Am Entrance Test darf jede/r Bewerber/in nur einmal pro Semester teilnehmen.\n\n\nAlle Bewerber/innen, die sich für das \nWintersemester 2022/23 \neinschreiben und den Entrance Test als Sprachnachweis erbringen möchten, müssen sich \nfür eine \nder folgenden Sitzungen anmelden\n\n(oder extern einen von uns anerkannten Test bei TOEFL iBT, Cambridge, IELTS Academic ablegen).\n\n\nDer Termin für den Entrance Test ist der\n\n\n\nFreitag, 03. Juni 2022 um 11 Uhr (erste Sitzung)\n\nFreitag, 03. Juni 2022 um 15.30 Uhr (zweite Sitzung)\n\n\n\n\nRaum: Der Raum wird Ihnen ab dem 16. Mai 2022 (nach der Anmeldefrist)\n\nbis spätestens 30. Mai 2022 per Email mitgeteilt. \n\n!! Bitte schauen Sie regelmäßig in Ihr Postfach !!\n\n\n\n\nAnmeldung: \nDie zur Anmeldung angeforderten Daten sollten vollständig in das Anmelde-Formular (Link) eingegeben werden, unter Angabe\n \nder \nAdresse an die das Test-Ergebnis gesendet werden soll\n. Bitte wählen Sie die gewünschte Sitzung 1 \noder\n 2 aus.\n\n\nBevor Sie den Button \n„Anmelden”\n betätigen, überprüfen Sie bitte die Richtigkeit Ihrer Anmelde-Daten, da im Nachhinein \nkeine Änderung\n vorgenommen werden kann. Bei mehrfacher Anmeldung bleibt nur der neuste Datensatz bestehen.\n\n\nBitte beachten Sie: Sie erhalten \nkeine Anmeldebestätigung!\n\nLink zur Anmeldung:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n\n \n\nAnmeldungen zu den Tests sind auf der Homepage des IEAS\n\nbis spätestens um 9:00 Uhr am Mo. 16. Mai 2022 möglich.\n\n\nVor der Test-Sitzung legen Sie bitte zur Identifikation ein Ausweisdokument mit Foto vor. \n\n\n\n\n\n!!! Der Sprachnachweis muss bis zur Einschreibung eingereicht werden !!!\n\n\nBei Nichtbestehen des Entrance Tests ist ein alternativer Nachweis über einen standardisierten Test (TOEFL iBT, Cambridge, IELTS Academic) zu erbringen.\n\n \n\n\nInformationen zur sprachlichen Selbsteinschätzung: \nWer seine Englischkenntnisse vorab einschätzen möchte, kann mit dem Online-Sprachtest Dialang arbeiten, um die Stärken und Schwächen seiner Englischkenntnisse herauszufiltern. Das Programm bietet zudem verschiedene Vorschläge zur Verbesserung der Englischkenntnisse an. Besuchen Sie \nDialang\n und testen auch Sie Ihre Englischkenntnisse.\n\n\nTest-Beispiele für die Sektion Leseverständnis und für die Sektion Grammatik \nkönnen Sie unter den folgenden Links als PDF herunterladen:\n\nTest-Beispiel zum grammatikalischen Verständnis [PDF]\n \nTest-Beispiel zum Lese-Verständnis [PDF]\n\n  \n\n\n\n________________________________________________________________________\n\n\n\nPlease note: The obligatory entrance test for the Summer Semester 2022 is terminated!\n\n________________________________________________________________________ \n\n\n \n\nObligatory Entrance Test for the Winter Semester 2022/23\n\n\nAll non-exempt students wishing to study English and/or American Studies at the Institut für England- und Amerikastudien (Bachelor as well as Lehramt) are required to take a written entrance test. The entrance test will take about two hours. All incoming students who have to take the test need to sign-up for \none\n of the two test sittings  (i.e. who have not been exempted).\n\n\n \n\nThe date for the entrance test is\n\n\n\nFriday, June 3, 2022 at 11:00 a.m. - (Sitting 1)  \n\nFriday, June 3, 2022 at 3:30 p.m. - (Sitting 2) \n\nRoom: Between May 16, 2022 (after closing date for registration) \n\nand May 30, 2022 you will receive an Email for room details. \n\n\n\nPlease check your inbox regularly! \n\n\n\n\n  \nRegistration:\n The students wishing to take this test need to sign up for one of the sittings using the online form.\n\nEnter the required data and choose \none\n of the sittings by using the drop-down menu. \n\n\nPlease double check your entries (recheck the proper address) before you click on the \"Anmelden\" button. \n\nIt is not possible to make any changes afterwards. \n\nPlease note: You will not receive a confirmation!\n   \n\nEntrance Test Registration:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n  \n\nClosing date for registration is at 9:00 a.m. on May 16, 2022.  \n\n\n\nAt the test sitting, a photo identification must be presented prior to admission to the test.  \n\n\nPassing the test is an entrance requirement for all non-exempt students.\n\n\n \n\n!!! You will have to provide your proof of English until the deadline for enrollment !!! \n\n\nShould you fail the entrance test, you have to provide an alternative certificate (TOEFL iBT, Cambridge, IELTS Academic).\n\n\n________________________________________________________________________________\n\nSample test items\n for both the reading comprehension section (RC) and the grammar section can be downloaded:\n\n\n\nExample for the grammar section [PDF]\n\n\nExample for comprehension section [PDF]\n\n\n\nSelf-assessment information:\n\n\nStudents can self-assess their own level of English via the Internet with Dialang. \nDialang\n is a free language assessment system that gives you feedback on the strengths and weaknesses in your foreign language proficiency. In addition, it provides general advice and information on language learning.\n\n\n \n\n \n\n _________________________________________________________\n\n\n\n\nFremdsprachliche Kommunikation:\n\nDear Student,\n\nYou have decided to study English either as part of an Bachelor degree or as part of a teacher training programme.  \n\nWhile we welcome your decision, we must point out that it is absolutely essential that you have a very good command of English before you start your studies. Bearing in mind the fact that the Abitur still tends to vary considerably from school to school, we would like to help you arrive at a realistic assessment of your competence in English before you enrol in the department.\n\n\nTo begin English studies at this university, you must demonstrate at least a B2 level.\n\nIf you aim to teach at a Gymnasium or want to take a Bachelor course, you should ideally start out at the C1 level, or you may encounter difficulties.\n\nAt the same time, if you have assessed your language at a lower level, you should reconsider your choice of subject. Should you decide you still want to study English, then you should first improve your English either at a language school or by spending a reasonable amount of time in an English-speaking country before you enrol in the department. Please note that even a good grade in English in the Abitur (Leistungskurs) does not necessarily mean that your English knowledge is sufficient for you to start your studies. \n\n\nThe description below is designed to help you judge your own communication skills. \n\nThere are six levels of linguistic competence ranging from elementary (A1) to 'near native' (C2). \n\nStart at A1 in each section and tick all the levels you think you have reached.  \n\n_________________________________________________________\n \n\n\nUnderstanding Texts\n\n\nListening\n\n\nA1 \n\nI can recognise familiar words and very basic phrases concerning myself, my family and immediate concrete surroundings when people speak slowly and clearly.\n\n\n\nA2 \n\nI can understand phrases and the highest frequency vocabulary related to areas of most immediate personal relevance (e.g. very basic personal and family information, shopping, local geography, employment). I can catch the main point in short, clear, simple messages and announcements.\n\n\n\nB1 \n\nI can understand the main points of clear standard speech on familiar matters regularly encountered in work, school, leisure, etc. I can understand the main point of many radio or TV programmes on current affairs or topics of personal or professional interest when the delivery is relatively slow and clear.\n\n\n\nB2 \n\nI can understand extended speech and lectures and follow even complex lines of argument provided the topic is reasonably familiar. I can understand most TV news and current affairs programmes. I can understand the majority of films in standard dialect.\n\n\n\nC1 \n\nI can understand extended speech even when it is not clearly structured and when relationships are only implied and not signalled explicitly. I can understand television programmes and films without too much effort.\n\n\n\nC2 \n\nI have no difficulty in understanding any kind of spoken language, whether live or broadcast, even when delivered at fast native speed, provided. I have some time to get familiar with the accent.\n\n\n\n\n\n\n\n\nReading\n\n\nA1 \n\nI can understand familiar names, words and very simple sentences, for example on notices and posters or in catalogues.\n\n\n\nA2 \n\nI can read very short, simple texts. I can find specific, predictable information in simple everyday material such as advertisements, prospectuses, menus and timetables and I can understand short simple personal letters.\n\n\n\nB1 \n\nI can understand texts that consist mainly of high frequency everyday or job-related language. I can understand the description of events, feelings and wishes in personal letters.\n\n\n\nB2 \n\nI can read articles and reports concerned with contemporary problems in which the writers adopt particular stances or viewpoints. I can understand contemporary literary prose.\n\n\n\nC1 \n\nI can understand long and complex factual and literary texts, appreciating distinctions of style. I can understand specialised articles and longer technical instructions, even when they do not relate to my field.\n\n\n\nC2 \n\nI can read with ease virtually all forms of the written language, including abstract, structurally or linguistically complex texts such as manuals, specialised articles and literary works.\n\n\n\n\n\n\n\n \n\nInteraction and Text Production\n\n\nInteraction\n\n\nA1 \n\nI can interact in a simple way provided the other person is prepared to repeat or rephrase things at a slower rate of speech and help me formulate what I'm trying to say. I can ask and answer simple questions in areas of immediate need or on very familiar topics.\n\n\n\nA2\n\n I can communicate in simple and routine tasks requiring a simple and direct exchange of information on familiar topics and activities. I can handle very short social exchanges, even though I can't usually understand enough to keep the conversation going myself.\n\n\n\nB1 \n\nI can deal with most situations likely to arise whilst travelling in an area where the language is spoken. I can enter unprepared into conversation on topics that are familiar, of personal interest or pertinent to everyday life (e.g. family, hobbies, work, travel and current events).\n\n\nB2 \nI can interact with a degree of fluency and spontaneity that makes regular interaction with native speakers quite possible. I can take an active part in discussion in familiar contexts, accounting for and sustaining my views.\n\n\n\nC1 \n\nI can express myself fluently and spontaneously without much obvious searching for expressions. I can use language flexibly and effectively for social and professional purposes. I can formulate ideas and opinions with precision and relate my contribution skilfully to those of other speakers.\n\n\nC2 \nI can take part effortlessly in any conversation of discussion and have a good familiarity with idiomatic expressions and colloquialisms. I can express myself fluently and convey finer shades of meaning precisely. If I do have a problem I can backtrack and restructure around the difficulty so smoothly that other people are hardly aware of it.\n\n\n\n\n\nOral Production\n\n\nA1 \n\nI can use simple phrases and sentences to describe where I live and people I know.\n\n\n\nA2 \n\nI can use a series of phrases and sentences to describe in simple terms my family and other people, living conditions, my educational background and my present or most recent job.\n\n\n\nB1 \n\nI can connect phrases in a simple way in order to describe experiences and events, my dreams, hopes and ambitions. I can briefly give reasons and explanations for opinions and plans. I can narrate a story or relate the plot of a book or film and describe my reactions.\n\n\n\nB2 \n\nI can present clear, detailed descriptions on a wide range of subjects related to my field of interest. I can explain a viewpoint on a topical issue giving the advantages and disadvantages of various options.\n\n\n\nC1 \n\nI can present clear, detailed descriptions of complex subjects integrating sub-themes, developing particular points and rounding off with an appropriate conclusion.\n\n\n\nC2 \n\nI can present a clear, smoothly-flowing description or argument in a style appropriate to the context and with an effective logical structure which helps the recipient to notice and remember significant points.\n\n\n\n\n \n\n\nWriting\n\n\nA1 \n\nI can write a short, simple postcard, for examples sending holiday greetings. I can fill in forms with personal details, for example entering my name, nationality and address on a hotel registration form.\n\n\nA2 \nI can write short, simple notes and messages relating to matters in areas of immediate need. I can write a very simple personal letter, for example thanking someone for something.\n\n\nB1 \nI can write simple connected text on topics which are familiar or of personal interest. I can write personal letters describing experiences and impressions.\n\n\n\nB2 \n\nI can write clear, detailed text on a wide range of subjects related to my interests. I can write an essay or report, passing on information or giving reasons in support of or against a particular point of view. I can write letters highlighting the personal significance of events and experiences.\n\n\n\nC1\n\n I can express myself in clear, well-structured text, expressing points of view at some length. I can write detailed expositions of complex subjects in a letter, an essay or a report, underlining what I consider to be the salient issues. I can write different kinds of texts in an assured, personal, style appropriate to the reader in mind.\n\n\nC2 \nI can write clear, smoothly-flowing text in an appropriate style. I can write complex letters, reports or articles which present a case with an effective logical structure which helps the recipient to notice and remember significant points. I can write summaries and reviews of professional or literary works.", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + }, + { + "uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336", + "identifiers": { + "LSF": "336024" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85523" + }, + "level": 2, + "name": "Fremdsprachen", + "type": "catalog", + "uid": "004a2be2-efad-5d14-8b6b-88701651c3fd" + } + ], + "origin": { + "indexed": "2022-06-02T10:10:13.423Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "This is the first test item", + "organizers": [ + { + "familyName": "Guzmán", + "gender": "female", + "givenName": "Evelyn", + "identifiers": { + "LSF": "15239" + }, + "jobTitles": ["ISZ-Bereich Fremdsprachen - Wissenschaftliche Mitarbeiter*innen"], + "name": "Evelyn Guzmán", + "type": "person", + "uid": "6cd47b1f-485a-50be-8ca6-7ebe71729b7d" + } + ], + "originalCategory": "Übung", + "categories": ["exercise"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "1e02b7b8-e2de-56bd-b0ad-2fe0a8ad18ca", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89659" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "8e33ae61-dfc7-5b09-8d0a-05429d8859b0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + ], + "level": 2, + "academicTerm": { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + }, + "identifiers": { + "LSF": "87868" + }, + "origin": { + "indexed": "2022-06-02T10:08:41.006Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Entrance Test", + "description": "___________________________________________________________________________________________\n\n\n\nBitte beachten Sie:\n\nDer Entrance Test für den Studienbeginn im Sommersemester 2022 ist abgeschlossen!\n\n \n\n___________________________________________________________________________________________\n\n\n \n\nInformationen zum Entrance Test für den Studienbeginn im Wintersemester 2022/23:\n\nAm Entrance Test müssen alle Bewerber/innen für die Studiengänge des Instituts für England- und Amerikastudien (IEAS) teilnehmen, die den obligatorischen Sprachnachweis nicht auf anderem Wege erbringen können, bzw. deren Sprachnachweise älter als zwei Jahre sind. Die Teilnahme am Entrance Test ist nur für künftige Bachelor- und Lehramt-Studentinnen und Studenten gedacht. Der Entrance Test dauert zwei Stunden. Am Entrance Test darf jede/r Bewerber/in nur einmal pro Semester teilnehmen.\n\n\nAlle Bewerber/innen, die sich für das \nWintersemester 2022/23 \neinschreiben und den Entrance Test als Sprachnachweis erbringen möchten, müssen sich \nfür eine \nder folgenden Sitzungen anmelden\n\n(oder extern einen von uns anerkannten Test bei TOEFL iBT, Cambridge, IELTS Academic ablegen).\n\n\nDer Termin für den Entrance Test ist der\n\n\n\nFreitag, 03. Juni 2022 um 11 Uhr (erste Sitzung)\n\nFreitag, 03. Juni 2022 um 15.30 Uhr (zweite Sitzung)\n\n\n\n\nRaum: Der Raum wird Ihnen ab dem 16. Mai 2022 (nach der Anmeldefrist)\n\nbis spätestens 30. Mai 2022 per Email mitgeteilt. \n\n!! Bitte schauen Sie regelmäßig in Ihr Postfach !!\n\n\n\n\nAnmeldung: \nDie zur Anmeldung angeforderten Daten sollten vollständig in das Anmelde-Formular (Link) eingegeben werden, unter Angabe\n \nder \nAdresse an die das Test-Ergebnis gesendet werden soll\n. Bitte wählen Sie die gewünschte Sitzung 1 \noder\n 2 aus.\n\n\nBevor Sie den Button \n„Anmelden”\n betätigen, überprüfen Sie bitte die Richtigkeit Ihrer Anmelde-Daten, da im Nachhinein \nkeine Änderung\n vorgenommen werden kann. Bei mehrfacher Anmeldung bleibt nur der neuste Datensatz bestehen.\n\n\nBitte beachten Sie: Sie erhalten \nkeine Anmeldebestätigung!\n\nLink zur Anmeldung:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n\n \n\nAnmeldungen zu den Tests sind auf der Homepage des IEAS\n\nbis spätestens um 9:00 Uhr am Mo. 16. Mai 2022 möglich.\n\n\nVor der Test-Sitzung legen Sie bitte zur Identifikation ein Ausweisdokument mit Foto vor. \n\n\n\n\n\n!!! Der Sprachnachweis muss bis zur Einschreibung eingereicht werden !!!\n\n\nBei Nichtbestehen des Entrance Tests ist ein alternativer Nachweis über einen standardisierten Test (TOEFL iBT, Cambridge, IELTS Academic) zu erbringen.\n\n \n\n\nInformationen zur sprachlichen Selbsteinschätzung: \nWer seine Englischkenntnisse vorab einschätzen möchte, kann mit dem Online-Sprachtest Dialang arbeiten, um die Stärken und Schwächen seiner Englischkenntnisse herauszufiltern. Das Programm bietet zudem verschiedene Vorschläge zur Verbesserung der Englischkenntnisse an. Besuchen Sie \nDialang\n und testen auch Sie Ihre Englischkenntnisse.\n\n\nTest-Beispiele für die Sektion Leseverständnis und für die Sektion Grammatik \nkönnen Sie unter den folgenden Links als PDF herunterladen:\n\nTest-Beispiel zum grammatikalischen Verständnis [PDF]\n \nTest-Beispiel zum Lese-Verständnis [PDF]\n\n  \n\n\n\n________________________________________________________________________\n\n\n\nPlease note: The obligatory entrance test for the Summer Semester 2022 is terminated!\n\n________________________________________________________________________ \n\n\n \n\nObligatory Entrance Test for the Winter Semester 2022/23\n\n\nAll non-exempt students wishing to study English and/or American Studies at the Institut für England- und Amerikastudien (Bachelor as well as Lehramt) are required to take a written entrance test. The entrance test will take about two hours. All incoming students who have to take the test need to sign-up for \none\n of the two test sittings  (i.e. who have not been exempted).\n\n\n \n\nThe date for the entrance test is\n\n\n\nFriday, June 3, 2022 at 11:00 a.m. - (Sitting 1)  \n\nFriday, June 3, 2022 at 3:30 p.m. - (Sitting 2) \n\nRoom: Between May 16, 2022 (after closing date for registration) \n\nand May 30, 2022 you will receive an Email for room details. \n\n\n\nPlease check your inbox regularly! \n\n\n\n\n  \nRegistration:\n The students wishing to take this test need to sign up for one of the sittings using the online form.\n\nEnter the required data and choose \none\n of the sittings by using the drop-down menu. \n\n\nPlease double check your entries (recheck the proper address) before you click on the \"Anmelden\" button. \n\nIt is not possible to make any changes afterwards. \n\nPlease note: You will not receive a confirmation!\n   \n\nEntrance Test Registration:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n  \n\nClosing date for registration is at 9:00 a.m. on May 16, 2022.  \n\n\n\nAt the test sitting, a photo identification must be presented prior to admission to the test.  \n\n\nPassing the test is an entrance requirement for all non-exempt students.\n\n\n \n\n!!! You will have to provide your proof of English until the deadline for enrollment !!! \n\n\nShould you fail the entrance test, you have to provide an alternative certificate (TOEFL iBT, Cambridge, IELTS Academic).\n\n\n________________________________________________________________________________\n\nSample test items\n for both the reading comprehension section (RC) and the grammar section can be downloaded:\n\n\n\nExample for the grammar section [PDF]\n\n\nExample for comprehension section [PDF]\n\n\n\nSelf-assessment information:\n\n\nStudents can self-assess their own level of English via the Internet with Dialang. \nDialang\n is a free language assessment system that gives you feedback on the strengths and weaknesses in your foreign language proficiency. In addition, it provides general advice and information on language learning.\n\n\n \n\n \n\n _________________________________________________________\n\n\n\n\nFremdsprachliche Kommunikation:\n\nDear Student,\n\nYou have decided to study English either as part of an Bachelor degree or as part of a teacher training programme.  \n\nWhile we welcome your decision, we must point out that it is absolutely essential that you have a very good command of English before you start your studies. Bearing in mind the fact that the Abitur still tends to vary considerably from school to school, we would like to help you arrive at a realistic assessment of your competence in English before you enrol in the department.\n\n\nTo begin English studies at this university, you must demonstrate at least a B2 level.\n\nIf you aim to teach at a Gymnasium or want to take a Bachelor course, you should ideally start out at the C1 level, or you may encounter difficulties.\n\nAt the same time, if you have assessed your language at a lower level, you should reconsider your choice of subject. Should you decide you still want to study English, then you should first improve your English either at a language school or by spending a reasonable amount of time in an English-speaking country before you enrol in the department. Please note that even a good grade in English in the Abitur (Leistungskurs) does not necessarily mean that your English knowledge is sufficient for you to start your studies. \n\n\nThe description below is designed to help you judge your own communication skills. \n\nThere are six levels of linguistic competence ranging from elementary (A1) to 'near native' (C2). \n\nStart at A1 in each section and tick all the levels you think you have reached.  \n\n_________________________________________________________\n \n\n\nUnderstanding Texts\n\n\nListening\n\n\nA1 \n\nI can recognise familiar words and very basic phrases concerning myself, my family and immediate concrete surroundings when people speak slowly and clearly.\n\n\n\nA2 \n\nI can understand phrases and the highest frequency vocabulary related to areas of most immediate personal relevance (e.g. very basic personal and family information, shopping, local geography, employment). I can catch the main point in short, clear, simple messages and announcements.\n\n\n\nB1 \n\nI can understand the main points of clear standard speech on familiar matters regularly encountered in work, school, leisure, etc. I can understand the main point of many radio or TV programmes on current affairs or topics of personal or professional interest when the delivery is relatively slow and clear.\n\n\n\nB2 \n\nI can understand extended speech and lectures and follow even complex lines of argument provided the topic is reasonably familiar. I can understand most TV news and current affairs programmes. I can understand the majority of films in standard dialect.\n\n\n\nC1 \n\nI can understand extended speech even when it is not clearly structured and when relationships are only implied and not signalled explicitly. I can understand television programmes and films without too much effort.\n\n\n\nC2 \n\nI have no difficulty in understanding any kind of spoken language, whether live or broadcast, even when delivered at fast native speed, provided. I have some time to get familiar with the accent.\n\n\n\n\n\n\n\n\nReading\n\n\nA1 \n\nI can understand familiar names, words and very simple sentences, for example on notices and posters or in catalogues.\n\n\n\nA2 \n\nI can read very short, simple texts. I can find specific, predictable information in simple everyday material such as advertisements, prospectuses, menus and timetables and I can understand short simple personal letters.\n\n\n\nB1 \n\nI can understand texts that consist mainly of high frequency everyday or job-related language. I can understand the description of events, feelings and wishes in personal letters.\n\n\n\nB2 \n\nI can read articles and reports concerned with contemporary problems in which the writers adopt particular stances or viewpoints. I can understand contemporary literary prose.\n\n\n\nC1 \n\nI can understand long and complex factual and literary texts, appreciating distinctions of style. I can understand specialised articles and longer technical instructions, even when they do not relate to my field.\n\n\n\nC2 \n\nI can read with ease virtually all forms of the written language, including abstract, structurally or linguistically complex texts such as manuals, specialised articles and literary works.\n\n\n\n\n\n\n\n \n\nInteraction and Text Production\n\n\nInteraction\n\n\nA1 \n\nI can interact in a simple way provided the other person is prepared to repeat or rephrase things at a slower rate of speech and help me formulate what I'm trying to say. I can ask and answer simple questions in areas of immediate need or on very familiar topics.\n\n\n\nA2\n\n I can communicate in simple and routine tasks requiring a simple and direct exchange of information on familiar topics and activities. I can handle very short social exchanges, even though I can't usually understand enough to keep the conversation going myself.\n\n\n\nB1 \n\nI can deal with most situations likely to arise whilst travelling in an area where the language is spoken. I can enter unprepared into conversation on topics that are familiar, of personal interest or pertinent to everyday life (e.g. family, hobbies, work, travel and current events).\n\n\nB2 \nI can interact with a degree of fluency and spontaneity that makes regular interaction with native speakers quite possible. I can take an active part in discussion in familiar contexts, accounting for and sustaining my views.\n\n\n\nC1 \n\nI can express myself fluently and spontaneously without much obvious searching for expressions. I can use language flexibly and effectively for social and professional purposes. I can formulate ideas and opinions with precision and relate my contribution skilfully to those of other speakers.\n\n\nC2 \nI can take part effortlessly in any conversation of discussion and have a good familiarity with idiomatic expressions and colloquialisms. I can express myself fluently and convey finer shades of meaning precisely. If I do have a problem I can backtrack and restructure around the difficulty so smoothly that other people are hardly aware of it.\n\n\n\n\n\nOral Production\n\n\nA1 \n\nI can use simple phrases and sentences to describe where I live and people I know.\n\n\n\nA2 \n\nI can use a series of phrases and sentences to describe in simple terms my family and other people, living conditions, my educational background and my present or most recent job.\n\n\n\nB1 \n\nI can connect phrases in a simple way in order to describe experiences and events, my dreams, hopes and ambitions. I can briefly give reasons and explanations for opinions and plans. I can narrate a story or relate the plot of a book or film and describe my reactions.\n\n\n\nB2 \n\nI can present clear, detailed descriptions on a wide range of subjects related to my field of interest. I can explain a viewpoint on a topical issue giving the advantages and disadvantages of various options.\n\n\n\nC1 \n\nI can present clear, detailed descriptions of complex subjects integrating sub-themes, developing particular points and rounding off with an appropriate conclusion.\n\n\n\nC2 \n\nI can present a clear, smoothly-flowing description or argument in a style appropriate to the context and with an effective logical structure which helps the recipient to notice and remember significant points.\n\n\n\n\n \n\n\nWriting\n\n\nA1 \n\nI can write a short, simple postcard, for examples sending holiday greetings. I can fill in forms with personal details, for example entering my name, nationality and address on a hotel registration form.\n\n\nA2 \nI can write short, simple notes and messages relating to matters in areas of immediate need. I can write a very simple personal letter, for example thanking someone for something.\n\n\nB1 \nI can write simple connected text on topics which are familiar or of personal interest. I can write personal letters describing experiences and impressions.\n\n\n\nB2 \n\nI can write clear, detailed text on a wide range of subjects related to my interests. I can write an essay or report, passing on information or giving reasons in support of or against a particular point of view. I can write letters highlighting the personal significance of events and experiences.\n\n\n\nC1\n\n I can express myself in clear, well-structured text, expressing points of view at some length. I can write detailed expositions of complex subjects in a letter, an essay or a report, underlining what I consider to be the salient issues. I can write different kinds of texts in an assured, personal, style appropriate to the reader in mind.\n\n\nC2 \nI can write clear, smoothly-flowing text in an appropriate style. I can write complex letters, reports or articles which present a case with an effective logical structure which helps the recipient to notice and remember significant points. I can write summaries and reviews of professional or literary works.", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + }, + { + "uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336", + "identifiers": { + "LSF": "336024" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85523" + }, + "level": 2, + "name": "Fremdsprachen", + "type": "catalog", + "uid": "004a2be2-efad-5d14-8b6b-88701651c3fd" + } + ], + "origin": { + "indexed": "2022-06-02T10:10:13.423Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "This is the first test item", + "organizers": [ + { + "familyName": "Guzmán", + "gender": "female", + "givenName": "Evelyn", + "identifiers": { + "LSF": "15239" + }, + "jobTitles": ["ISZ-Bereich Fremdsprachen - Wissenschaftliche Mitarbeiter*innen"], + "name": "Evelyn Guzmán", + "type": "person", + "uid": "6cd47b1f-485a-50be-8ca6-7ebe71729b7d" + } + ], + "originalCategory": "Übung", + "categories": ["exercise"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "1e02b7b8-e2de-56bd-b0ad-2fe0a8ad18ca", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89659" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "8e33ae61-dfc7-5b09-8d0a-05429d8859b0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + ], + "level": 2, + "academicTerm": { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + }, + "identifiers": { + "LSF": "87868" + }, + "origin": { + "indexed": "2022-06-02T10:08:41.006Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Entrance Test", + "description": "___________________________________________________________________________________________\n\n\n\nBitte beachten Sie:\n\nDer Entrance Test für den Studienbeginn im Sommersemester 2022 ist abgeschlossen!\n\n \n\n___________________________________________________________________________________________\n\n\n \n\nInformationen zum Entrance Test für den Studienbeginn im Wintersemester 2022/23:\n\nAm Entrance Test müssen alle Bewerber/innen für die Studiengänge des Instituts für England- und Amerikastudien (IEAS) teilnehmen, die den obligatorischen Sprachnachweis nicht auf anderem Wege erbringen können, bzw. deren Sprachnachweise älter als zwei Jahre sind. Die Teilnahme am Entrance Test ist nur für künftige Bachelor- und Lehramt-Studentinnen und Studenten gedacht. Der Entrance Test dauert zwei Stunden. Am Entrance Test darf jede/r Bewerber/in nur einmal pro Semester teilnehmen.\n\n\nAlle Bewerber/innen, die sich für das \nWintersemester 2022/23 \neinschreiben und den Entrance Test als Sprachnachweis erbringen möchten, müssen sich \nfür eine \nder folgenden Sitzungen anmelden\n\n(oder extern einen von uns anerkannten Test bei TOEFL iBT, Cambridge, IELTS Academic ablegen).\n\n\nDer Termin für den Entrance Test ist der\n\n\n\nFreitag, 03. Juni 2022 um 11 Uhr (erste Sitzung)\n\nFreitag, 03. Juni 2022 um 15.30 Uhr (zweite Sitzung)\n\n\n\n\nRaum: Der Raum wird Ihnen ab dem 16. Mai 2022 (nach der Anmeldefrist)\n\nbis spätestens 30. Mai 2022 per Email mitgeteilt. \n\n!! Bitte schauen Sie regelmäßig in Ihr Postfach !!\n\n\n\n\nAnmeldung: \nDie zur Anmeldung angeforderten Daten sollten vollständig in das Anmelde-Formular (Link) eingegeben werden, unter Angabe\n \nder \nAdresse an die das Test-Ergebnis gesendet werden soll\n. Bitte wählen Sie die gewünschte Sitzung 1 \noder\n 2 aus.\n\n\nBevor Sie den Button \n„Anmelden”\n betätigen, überprüfen Sie bitte die Richtigkeit Ihrer Anmelde-Daten, da im Nachhinein \nkeine Änderung\n vorgenommen werden kann. Bei mehrfacher Anmeldung bleibt nur der neuste Datensatz bestehen.\n\n\nBitte beachten Sie: Sie erhalten \nkeine Anmeldebestätigung!\n\nLink zur Anmeldung:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n\n \n\nAnmeldungen zu den Tests sind auf der Homepage des IEAS\n\nbis spätestens um 9:00 Uhr am Mo. 16. Mai 2022 möglich.\n\n\nVor der Test-Sitzung legen Sie bitte zur Identifikation ein Ausweisdokument mit Foto vor. \n\n\n\n\n\n!!! Der Sprachnachweis muss bis zur Einschreibung eingereicht werden !!!\n\n\nBei Nichtbestehen des Entrance Tests ist ein alternativer Nachweis über einen standardisierten Test (TOEFL iBT, Cambridge, IELTS Academic) zu erbringen.\n\n \n\n\nInformationen zur sprachlichen Selbsteinschätzung: \nWer seine Englischkenntnisse vorab einschätzen möchte, kann mit dem Online-Sprachtest Dialang arbeiten, um die Stärken und Schwächen seiner Englischkenntnisse herauszufiltern. Das Programm bietet zudem verschiedene Vorschläge zur Verbesserung der Englischkenntnisse an. Besuchen Sie \nDialang\n und testen auch Sie Ihre Englischkenntnisse.\n\n\nTest-Beispiele für die Sektion Leseverständnis und für die Sektion Grammatik \nkönnen Sie unter den folgenden Links als PDF herunterladen:\n\nTest-Beispiel zum grammatikalischen Verständnis [PDF]\n \nTest-Beispiel zum Lese-Verständnis [PDF]\n\n  \n\n\n\n________________________________________________________________________\n\n\n\nPlease note: The obligatory entrance test for the Summer Semester 2022 is terminated!\n\n________________________________________________________________________ \n\n\n \n\nObligatory Entrance Test for the Winter Semester 2022/23\n\n\nAll non-exempt students wishing to study English and/or American Studies at the Institut für England- und Amerikastudien (Bachelor as well as Lehramt) are required to take a written entrance test. The entrance test will take about two hours. All incoming students who have to take the test need to sign-up for \none\n of the two test sittings  (i.e. who have not been exempted).\n\n\n \n\nThe date for the entrance test is\n\n\n\nFriday, June 3, 2022 at 11:00 a.m. - (Sitting 1)  \n\nFriday, June 3, 2022 at 3:30 p.m. - (Sitting 2) \n\nRoom: Between May 16, 2022 (after closing date for registration) \n\nand May 30, 2022 you will receive an Email for room details. \n\n\n\nPlease check your inbox regularly! \n\n\n\n\n  \nRegistration:\n The students wishing to take this test need to sign up for one of the sittings using the online form.\n\nEnter the required data and choose \none\n of the sittings by using the drop-down menu. \n\n\nPlease double check your entries (recheck the proper address) before you click on the \"Anmelden\" button. \n\nIt is not possible to make any changes afterwards. \n\nPlease note: You will not receive a confirmation!\n   \n\nEntrance Test Registration:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n  \n\nClosing date for registration is at 9:00 a.m. on May 16, 2022.  \n\n\n\nAt the test sitting, a photo identification must be presented prior to admission to the test.  \n\n\nPassing the test is an entrance requirement for all non-exempt students.\n\n\n \n\n!!! You will have to provide your proof of English until the deadline for enrollment !!! \n\n\nShould you fail the entrance test, you have to provide an alternative certificate (TOEFL iBT, Cambridge, IELTS Academic).\n\n\n________________________________________________________________________________\n\nSample test items\n for both the reading comprehension section (RC) and the grammar section can be downloaded:\n\n\n\nExample for the grammar section [PDF]\n\n\nExample for comprehension section [PDF]\n\n\n\nSelf-assessment information:\n\n\nStudents can self-assess their own level of English via the Internet with Dialang. \nDialang\n is a free language assessment system that gives you feedback on the strengths and weaknesses in your foreign language proficiency. In addition, it provides general advice and information on language learning.\n\n\n \n\n \n\n _________________________________________________________\n\n\n\n\nFremdsprachliche Kommunikation:\n\nDear Student,\n\nYou have decided to study English either as part of an Bachelor degree or as part of a teacher training programme.  \n\nWhile we welcome your decision, we must point out that it is absolutely essential that you have a very good command of English before you start your studies. Bearing in mind the fact that the Abitur still tends to vary considerably from school to school, we would like to help you arrive at a realistic assessment of your competence in English before you enrol in the department.\n\n\nTo begin English studies at this university, you must demonstrate at least a B2 level.\n\nIf you aim to teach at a Gymnasium or want to take a Bachelor course, you should ideally start out at the C1 level, or you may encounter difficulties.\n\nAt the same time, if you have assessed your language at a lower level, you should reconsider your choice of subject. Should you decide you still want to study English, then you should first improve your English either at a language school or by spending a reasonable amount of time in an English-speaking country before you enrol in the department. Please note that even a good grade in English in the Abitur (Leistungskurs) does not necessarily mean that your English knowledge is sufficient for you to start your studies. \n\n\nThe description below is designed to help you judge your own communication skills. \n\nThere are six levels of linguistic competence ranging from elementary (A1) to 'near native' (C2). \n\nStart at A1 in each section and tick all the levels you think you have reached.  \n\n_________________________________________________________\n \n\n\nUnderstanding Texts\n\n\nListening\n\n\nA1 \n\nI can recognise familiar words and very basic phrases concerning myself, my family and immediate concrete surroundings when people speak slowly and clearly.\n\n\n\nA2 \n\nI can understand phrases and the highest frequency vocabulary related to areas of most immediate personal relevance (e.g. very basic personal and family information, shopping, local geography, employment). I can catch the main point in short, clear, simple messages and announcements.\n\n\n\nB1 \n\nI can understand the main points of clear standard speech on familiar matters regularly encountered in work, school, leisure, etc. I can understand the main point of many radio or TV programmes on current affairs or topics of personal or professional interest when the delivery is relatively slow and clear.\n\n\n\nB2 \n\nI can understand extended speech and lectures and follow even complex lines of argument provided the topic is reasonably familiar. I can understand most TV news and current affairs programmes. I can understand the majority of films in standard dialect.\n\n\n\nC1 \n\nI can understand extended speech even when it is not clearly structured and when relationships are only implied and not signalled explicitly. I can understand television programmes and films without too much effort.\n\n\n\nC2 \n\nI have no difficulty in understanding any kind of spoken language, whether live or broadcast, even when delivered at fast native speed, provided. I have some time to get familiar with the accent.\n\n\n\n\n\n\n\n\nReading\n\n\nA1 \n\nI can understand familiar names, words and very simple sentences, for example on notices and posters or in catalogues.\n\n\n\nA2 \n\nI can read very short, simple texts. I can find specific, predictable information in simple everyday material such as advertisements, prospectuses, menus and timetables and I can understand short simple personal letters.\n\n\n\nB1 \n\nI can understand texts that consist mainly of high frequency everyday or job-related language. I can understand the description of events, feelings and wishes in personal letters.\n\n\n\nB2 \n\nI can read articles and reports concerned with contemporary problems in which the writers adopt particular stances or viewpoints. I can understand contemporary literary prose.\n\n\n\nC1 \n\nI can understand long and complex factual and literary texts, appreciating distinctions of style. I can understand specialised articles and longer technical instructions, even when they do not relate to my field.\n\n\n\nC2 \n\nI can read with ease virtually all forms of the written language, including abstract, structurally or linguistically complex texts such as manuals, specialised articles and literary works.\n\n\n\n\n\n\n\n \n\nInteraction and Text Production\n\n\nInteraction\n\n\nA1 \n\nI can interact in a simple way provided the other person is prepared to repeat or rephrase things at a slower rate of speech and help me formulate what I'm trying to say. I can ask and answer simple questions in areas of immediate need or on very familiar topics.\n\n\n\nA2\n\n I can communicate in simple and routine tasks requiring a simple and direct exchange of information on familiar topics and activities. I can handle very short social exchanges, even though I can't usually understand enough to keep the conversation going myself.\n\n\n\nB1 \n\nI can deal with most situations likely to arise whilst travelling in an area where the language is spoken. I can enter unprepared into conversation on topics that are familiar, of personal interest or pertinent to everyday life (e.g. family, hobbies, work, travel and current events).\n\n\nB2 \nI can interact with a degree of fluency and spontaneity that makes regular interaction with native speakers quite possible. I can take an active part in discussion in familiar contexts, accounting for and sustaining my views.\n\n\n\nC1 \n\nI can express myself fluently and spontaneously without much obvious searching for expressions. I can use language flexibly and effectively for social and professional purposes. I can formulate ideas and opinions with precision and relate my contribution skilfully to those of other speakers.\n\n\nC2 \nI can take part effortlessly in any conversation of discussion and have a good familiarity with idiomatic expressions and colloquialisms. I can express myself fluently and convey finer shades of meaning precisely. If I do have a problem I can backtrack and restructure around the difficulty so smoothly that other people are hardly aware of it.\n\n\n\n\n\nOral Production\n\n\nA1 \n\nI can use simple phrases and sentences to describe where I live and people I know.\n\n\n\nA2 \n\nI can use a series of phrases and sentences to describe in simple terms my family and other people, living conditions, my educational background and my present or most recent job.\n\n\n\nB1 \n\nI can connect phrases in a simple way in order to describe experiences and events, my dreams, hopes and ambitions. I can briefly give reasons and explanations for opinions and plans. I can narrate a story or relate the plot of a book or film and describe my reactions.\n\n\n\nB2 \n\nI can present clear, detailed descriptions on a wide range of subjects related to my field of interest. I can explain a viewpoint on a topical issue giving the advantages and disadvantages of various options.\n\n\n\nC1 \n\nI can present clear, detailed descriptions of complex subjects integrating sub-themes, developing particular points and rounding off with an appropriate conclusion.\n\n\n\nC2 \n\nI can present a clear, smoothly-flowing description or argument in a style appropriate to the context and with an effective logical structure which helps the recipient to notice and remember significant points.\n\n\n\n\n \n\n\nWriting\n\n\nA1 \n\nI can write a short, simple postcard, for examples sending holiday greetings. I can fill in forms with personal details, for example entering my name, nationality and address on a hotel registration form.\n\n\nA2 \nI can write short, simple notes and messages relating to matters in areas of immediate need. I can write a very simple personal letter, for example thanking someone for something.\n\n\nB1 \nI can write simple connected text on topics which are familiar or of personal interest. I can write personal letters describing experiences and impressions.\n\n\n\nB2 \n\nI can write clear, detailed text on a wide range of subjects related to my interests. I can write an essay or report, passing on information or giving reasons in support of or against a particular point of view. I can write letters highlighting the personal significance of events and experiences.\n\n\n\nC1\n\n I can express myself in clear, well-structured text, expressing points of view at some length. I can write detailed expositions of complex subjects in a letter, an essay or a report, underlining what I consider to be the salient issues. I can write different kinds of texts in an assured, personal, style appropriate to the reader in mind.\n\n\nC2 \nI can write clear, smoothly-flowing text in an appropriate style. I can write complex letters, reports or articles which present a case with an effective logical structure which helps the recipient to notice and remember significant points. I can write summaries and reviews of professional or literary works.", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + }, + { + "uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336", + "identifiers": { + "LSF": "336024" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85523" + }, + "level": 2, + "name": "Fremdsprachen", + "type": "catalog", + "uid": "004a2be2-efad-5d14-8b6b-88701651c3fd" + } + ], + "origin": { + "indexed": "2022-06-02T10:10:13.423Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "This is the first test item", + "organizers": [ + { + "familyName": "Guzmán", + "gender": "female", + "givenName": "Evelyn", + "identifiers": { + "LSF": "15239" + }, + "jobTitles": ["ISZ-Bereich Fremdsprachen - Wissenschaftliche Mitarbeiter*innen"], + "name": "Evelyn Guzmán", + "type": "person", + "uid": "6cd47b1f-485a-50be-8ca6-7ebe71729b7d" + } + ], + "originalCategory": "Übung", + "categories": ["exercise"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "1e02b7b8-e2de-56bd-b0ad-2fe0a8ad18ca", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89659" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "8e33ae61-dfc7-5b09-8d0a-05429d8859b0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + ], + "level": 2, + "academicTerm": { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + }, + "identifiers": { + "LSF": "87868" + }, + "origin": { + "indexed": "2022-06-02T10:08:41.006Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Entrance Test", + "description": "___________________________________________________________________________________________\n\n\n\nBitte beachten Sie:\n\nDer Entrance Test für den Studienbeginn im Sommersemester 2022 ist abgeschlossen!\n\n \n\n___________________________________________________________________________________________\n\n\n \n\nInformationen zum Entrance Test für den Studienbeginn im Wintersemester 2022/23:\n\nAm Entrance Test müssen alle Bewerber/innen für die Studiengänge des Instituts für England- und Amerikastudien (IEAS) teilnehmen, die den obligatorischen Sprachnachweis nicht auf anderem Wege erbringen können, bzw. deren Sprachnachweise älter als zwei Jahre sind. Die Teilnahme am Entrance Test ist nur für künftige Bachelor- und Lehramt-Studentinnen und Studenten gedacht. Der Entrance Test dauert zwei Stunden. Am Entrance Test darf jede/r Bewerber/in nur einmal pro Semester teilnehmen.\n\n\nAlle Bewerber/innen, die sich für das \nWintersemester 2022/23 \neinschreiben und den Entrance Test als Sprachnachweis erbringen möchten, müssen sich \nfür eine \nder folgenden Sitzungen anmelden\n\n(oder extern einen von uns anerkannten Test bei TOEFL iBT, Cambridge, IELTS Academic ablegen).\n\n\nDer Termin für den Entrance Test ist der\n\n\n\nFreitag, 03. Juni 2022 um 11 Uhr (erste Sitzung)\n\nFreitag, 03. Juni 2022 um 15.30 Uhr (zweite Sitzung)\n\n\n\n\nRaum: Der Raum wird Ihnen ab dem 16. Mai 2022 (nach der Anmeldefrist)\n\nbis spätestens 30. Mai 2022 per Email mitgeteilt. \n\n!! Bitte schauen Sie regelmäßig in Ihr Postfach !!\n\n\n\n\nAnmeldung: \nDie zur Anmeldung angeforderten Daten sollten vollständig in das Anmelde-Formular (Link) eingegeben werden, unter Angabe\n \nder \nAdresse an die das Test-Ergebnis gesendet werden soll\n. Bitte wählen Sie die gewünschte Sitzung 1 \noder\n 2 aus.\n\n\nBevor Sie den Button \n„Anmelden”\n betätigen, überprüfen Sie bitte die Richtigkeit Ihrer Anmelde-Daten, da im Nachhinein \nkeine Änderung\n vorgenommen werden kann. Bei mehrfacher Anmeldung bleibt nur der neuste Datensatz bestehen.\n\n\nBitte beachten Sie: Sie erhalten \nkeine Anmeldebestätigung!\n\nLink zur Anmeldung:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n\n \n\nAnmeldungen zu den Tests sind auf der Homepage des IEAS\n\nbis spätestens um 9:00 Uhr am Mo. 16. Mai 2022 möglich.\n\n\nVor der Test-Sitzung legen Sie bitte zur Identifikation ein Ausweisdokument mit Foto vor. \n\n\n\n\n\n!!! Der Sprachnachweis muss bis zur Einschreibung eingereicht werden !!!\n\n\nBei Nichtbestehen des Entrance Tests ist ein alternativer Nachweis über einen standardisierten Test (TOEFL iBT, Cambridge, IELTS Academic) zu erbringen.\n\n \n\n\nInformationen zur sprachlichen Selbsteinschätzung: \nWer seine Englischkenntnisse vorab einschätzen möchte, kann mit dem Online-Sprachtest Dialang arbeiten, um die Stärken und Schwächen seiner Englischkenntnisse herauszufiltern. Das Programm bietet zudem verschiedene Vorschläge zur Verbesserung der Englischkenntnisse an. Besuchen Sie \nDialang\n und testen auch Sie Ihre Englischkenntnisse.\n\n\nTest-Beispiele für die Sektion Leseverständnis und für die Sektion Grammatik \nkönnen Sie unter den folgenden Links als PDF herunterladen:\n\nTest-Beispiel zum grammatikalischen Verständnis [PDF]\n \nTest-Beispiel zum Lese-Verständnis [PDF]\n\n  \n\n\n\n________________________________________________________________________\n\n\n\nPlease note: The obligatory entrance test for the Summer Semester 2022 is terminated!\n\n________________________________________________________________________ \n\n\n \n\nObligatory Entrance Test for the Winter Semester 2022/23\n\n\nAll non-exempt students wishing to study English and/or American Studies at the Institut für England- und Amerikastudien (Bachelor as well as Lehramt) are required to take a written entrance test. The entrance test will take about two hours. All incoming students who have to take the test need to sign-up for \none\n of the two test sittings  (i.e. who have not been exempted).\n\n\n \n\nThe date for the entrance test is\n\n\n\nFriday, June 3, 2022 at 11:00 a.m. - (Sitting 1)  \n\nFriday, June 3, 2022 at 3:30 p.m. - (Sitting 2) \n\nRoom: Between May 16, 2022 (after closing date for registration) \n\nand May 30, 2022 you will receive an Email for room details. \n\n\n\nPlease check your inbox regularly! \n\n\n\n\n  \nRegistration:\n The students wishing to take this test need to sign up for one of the sittings using the online form.\n\nEnter the required data and choose \none\n of the sittings by using the drop-down menu. \n\n\nPlease double check your entries (recheck the proper address) before you click on the \"Anmelden\" button. \n\nIt is not possible to make any changes afterwards. \n\nPlease note: You will not receive a confirmation!\n   \n\nEntrance Test Registration:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n  \n\nClosing date for registration is at 9:00 a.m. on May 16, 2022.  \n\n\n\nAt the test sitting, a photo identification must be presented prior to admission to the test.  \n\n\nPassing the test is an entrance requirement for all non-exempt students.\n\n\n \n\n!!! You will have to provide your proof of English until the deadline for enrollment !!! \n\n\nShould you fail the entrance test, you have to provide an alternative certificate (TOEFL iBT, Cambridge, IELTS Academic).\n\n\n________________________________________________________________________________\n\nSample test items\n for both the reading comprehension section (RC) and the grammar section can be downloaded:\n\n\n\nExample for the grammar section [PDF]\n\n\nExample for comprehension section [PDF]\n\n\n\nSelf-assessment information:\n\n\nStudents can self-assess their own level of English via the Internet with Dialang. \nDialang\n is a free language assessment system that gives you feedback on the strengths and weaknesses in your foreign language proficiency. In addition, it provides general advice and information on language learning.\n\n\n \n\n \n\n _________________________________________________________\n\n\n\n\nFremdsprachliche Kommunikation:\n\nDear Student,\n\nYou have decided to study English either as part of an Bachelor degree or as part of a teacher training programme.  \n\nWhile we welcome your decision, we must point out that it is absolutely essential that you have a very good command of English before you start your studies. Bearing in mind the fact that the Abitur still tends to vary considerably from school to school, we would like to help you arrive at a realistic assessment of your competence in English before you enrol in the department.\n\n\nTo begin English studies at this university, you must demonstrate at least a B2 level.\n\nIf you aim to teach at a Gymnasium or want to take a Bachelor course, you should ideally start out at the C1 level, or you may encounter difficulties.\n\nAt the same time, if you have assessed your language at a lower level, you should reconsider your choice of subject. Should you decide you still want to study English, then you should first improve your English either at a language school or by spending a reasonable amount of time in an English-speaking country before you enrol in the department. Please note that even a good grade in English in the Abitur (Leistungskurs) does not necessarily mean that your English knowledge is sufficient for you to start your studies. \n\n\nThe description below is designed to help you judge your own communication skills. \n\nThere are six levels of linguistic competence ranging from elementary (A1) to 'near native' (C2). \n\nStart at A1 in each section and tick all the levels you think you have reached.  \n\n_________________________________________________________\n \n\n\nUnderstanding Texts\n\n\nListening\n\n\nA1 \n\nI can recognise familiar words and very basic phrases concerning myself, my family and immediate concrete surroundings when people speak slowly and clearly.\n\n\n\nA2 \n\nI can understand phrases and the highest frequency vocabulary related to areas of most immediate personal relevance (e.g. very basic personal and family information, shopping, local geography, employment). I can catch the main point in short, clear, simple messages and announcements.\n\n\n\nB1 \n\nI can understand the main points of clear standard speech on familiar matters regularly encountered in work, school, leisure, etc. I can understand the main point of many radio or TV programmes on current affairs or topics of personal or professional interest when the delivery is relatively slow and clear.\n\n\n\nB2 \n\nI can understand extended speech and lectures and follow even complex lines of argument provided the topic is reasonably familiar. I can understand most TV news and current affairs programmes. I can understand the majority of films in standard dialect.\n\n\n\nC1 \n\nI can understand extended speech even when it is not clearly structured and when relationships are only implied and not signalled explicitly. I can understand television programmes and films without too much effort.\n\n\n\nC2 \n\nI have no difficulty in understanding any kind of spoken language, whether live or broadcast, even when delivered at fast native speed, provided. I have some time to get familiar with the accent.\n\n\n\n\n\n\n\n\nReading\n\n\nA1 \n\nI can understand familiar names, words and very simple sentences, for example on notices and posters or in catalogues.\n\n\n\nA2 \n\nI can read very short, simple texts. I can find specific, predictable information in simple everyday material such as advertisements, prospectuses, menus and timetables and I can understand short simple personal letters.\n\n\n\nB1 \n\nI can understand texts that consist mainly of high frequency everyday or job-related language. I can understand the description of events, feelings and wishes in personal letters.\n\n\n\nB2 \n\nI can read articles and reports concerned with contemporary problems in which the writers adopt particular stances or viewpoints. I can understand contemporary literary prose.\n\n\n\nC1 \n\nI can understand long and complex factual and literary texts, appreciating distinctions of style. I can understand specialised articles and longer technical instructions, even when they do not relate to my field.\n\n\n\nC2 \n\nI can read with ease virtually all forms of the written language, including abstract, structurally or linguistically complex texts such as manuals, specialised articles and literary works.\n\n\n\n\n\n\n\n \n\nInteraction and Text Production\n\n\nInteraction\n\n\nA1 \n\nI can interact in a simple way provided the other person is prepared to repeat or rephrase things at a slower rate of speech and help me formulate what I'm trying to say. I can ask and answer simple questions in areas of immediate need or on very familiar topics.\n\n\n\nA2\n\n I can communicate in simple and routine tasks requiring a simple and direct exchange of information on familiar topics and activities. I can handle very short social exchanges, even though I can't usually understand enough to keep the conversation going myself.\n\n\n\nB1 \n\nI can deal with most situations likely to arise whilst travelling in an area where the language is spoken. I can enter unprepared into conversation on topics that are familiar, of personal interest or pertinent to everyday life (e.g. family, hobbies, work, travel and current events).\n\n\nB2 \nI can interact with a degree of fluency and spontaneity that makes regular interaction with native speakers quite possible. I can take an active part in discussion in familiar contexts, accounting for and sustaining my views.\n\n\n\nC1 \n\nI can express myself fluently and spontaneously without much obvious searching for expressions. I can use language flexibly and effectively for social and professional purposes. I can formulate ideas and opinions with precision and relate my contribution skilfully to those of other speakers.\n\n\nC2 \nI can take part effortlessly in any conversation of discussion and have a good familiarity with idiomatic expressions and colloquialisms. I can express myself fluently and convey finer shades of meaning precisely. If I do have a problem I can backtrack and restructure around the difficulty so smoothly that other people are hardly aware of it.\n\n\n\n\n\nOral Production\n\n\nA1 \n\nI can use simple phrases and sentences to describe where I live and people I know.\n\n\n\nA2 \n\nI can use a series of phrases and sentences to describe in simple terms my family and other people, living conditions, my educational background and my present or most recent job.\n\n\n\nB1 \n\nI can connect phrases in a simple way in order to describe experiences and events, my dreams, hopes and ambitions. I can briefly give reasons and explanations for opinions and plans. I can narrate a story or relate the plot of a book or film and describe my reactions.\n\n\n\nB2 \n\nI can present clear, detailed descriptions on a wide range of subjects related to my field of interest. I can explain a viewpoint on a topical issue giving the advantages and disadvantages of various options.\n\n\n\nC1 \n\nI can present clear, detailed descriptions of complex subjects integrating sub-themes, developing particular points and rounding off with an appropriate conclusion.\n\n\n\nC2 \n\nI can present a clear, smoothly-flowing description or argument in a style appropriate to the context and with an effective logical structure which helps the recipient to notice and remember significant points.\n\n\n\n\n \n\n\nWriting\n\n\nA1 \n\nI can write a short, simple postcard, for examples sending holiday greetings. I can fill in forms with personal details, for example entering my name, nationality and address on a hotel registration form.\n\n\nA2 \nI can write short, simple notes and messages relating to matters in areas of immediate need. I can write a very simple personal letter, for example thanking someone for something.\n\n\nB1 \nI can write simple connected text on topics which are familiar or of personal interest. I can write personal letters describing experiences and impressions.\n\n\n\nB2 \n\nI can write clear, detailed text on a wide range of subjects related to my interests. I can write an essay or report, passing on information or giving reasons in support of or against a particular point of view. I can write letters highlighting the personal significance of events and experiences.\n\n\n\nC1\n\n I can express myself in clear, well-structured text, expressing points of view at some length. I can write detailed expositions of complex subjects in a letter, an essay or a report, underlining what I consider to be the salient issues. I can write different kinds of texts in an assured, personal, style appropriate to the reader in mind.\n\n\nC2 \nI can write clear, smoothly-flowing text in an appropriate style. I can write complex letters, reports or articles which present a case with an effective logical structure which helps the recipient to notice and remember significant points. I can write summaries and reviews of professional or literary works.", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 27, + "key": "academic event" + }, + { + "count": 5, + "key": "room" + }, + { + "count": 4, + "key": "catalog" + }, + { + "count": 1, + "key": "message" + }, + { + "count": 1, + "key": "person" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 16, + "key": "WiSe 2021/22" + }, + { + "count": 11, + "key": "SoSe 2022" + } + ], + "field": "academicTerms.acronym", + "onlyOnType": "academic event" + }, + { + "buckets": [ + { + "count": 27, + "key": "university events" + } + ], + "field": "catalogs.categories", + "onlyOnType": "academic event" + }, + { + "buckets": [ + { + "count": 17, + "key": "seminar" + }, + { + "count": 3, + "key": "exercise" + }, + { + "count": 3, + "key": "practicum" + }, + { + "count": 2, + "key": "special" + }, + { + "count": 1, + "key": "lecture" + }, + { + "count": 1, + "key": "tutorial" + } + ], + "field": "categories", + "onlyOnType": "academic event" + }, + { + "buckets": [ + { + "count": 2, + "key": "SoSe 2022" + }, + { + "count": 2, + "key": "WiSe 2021/22" + } + ], + "field": "academicTerm.acronym", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 4, + "key": "university events" + } + ], + "field": "categories", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 4, + "key": "university events" + } + ], + "field": "superCatalog.categories", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 4, + "key": "university events" + } + ], + "field": "superCatalogs.categories", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 1, + "key": "news" + } + ], + "field": "categories", + "onlyOnType": "message" + }, + { + "buckets": [ + { + "count": 4, + "key": "education" + }, + { + "count": 1, + "key": "office" + } + ], + "field": "categories", + "onlyOnType": "room" + }, + { + "buckets": [ + { + "count": 5, + "key": "education" + } + ], + "field": "inPlace.categories", + "onlyOnType": "room" + } + ], + "pagination": { + "count": 30, + "offset": 0, + "total": 38 + }, + "stats": { + "time": 8 + } +} diff --git a/frontend/app/cypress/fixtures/search/test.json b/frontend/app/cypress/fixtures/search/test.json new file mode 100644 index 00000000..e71a969c --- /dev/null +++ b/frontend/app/cypress/fixtures/search/test.json @@ -0,0 +1,2910 @@ +{ + "data": [ + { + "uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336", + "identifiers": { + "LSF": "336024" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85523" + }, + "level": 2, + "name": "Fremdsprachen", + "type": "catalog", + "uid": "004a2be2-efad-5d14-8b6b-88701651c3fd" + } + ], + "origin": { + "indexed": "2022-06-02T10:10:13.423Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "This is the first test item", + "organizers": [ + { + "familyName": "Guzmán", + "gender": "female", + "givenName": "Evelyn", + "identifiers": { + "LSF": "15239" + }, + "jobTitles": ["ISZ-Bereich Fremdsprachen - Wissenschaftliche Mitarbeiter*innen"], + "name": "Evelyn Guzmán", + "type": "person", + "uid": "6cd47b1f-485a-50be-8ca6-7ebe71729b7d" + } + ], + "originalCategory": "Übung", + "categories": ["exercise"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "1e02b7b8-e2de-56bd-b0ad-2fe0a8ad18ca", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89659" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "8e33ae61-dfc7-5b09-8d0a-05429d8859b0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + ], + "level": 2, + "academicTerm": { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + }, + "identifiers": { + "LSF": "87868" + }, + "origin": { + "indexed": "2022-06-02T10:08:41.006Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Entrance Test", + "description": "___________________________________________________________________________________________\n\n\n\nBitte beachten Sie:\n\nDer Entrance Test für den Studienbeginn im Sommersemester 2022 ist abgeschlossen!\n\n \n\n___________________________________________________________________________________________\n\n\n \n\nInformationen zum Entrance Test für den Studienbeginn im Wintersemester 2022/23:\n\nAm Entrance Test müssen alle Bewerber/innen für die Studiengänge des Instituts für England- und Amerikastudien (IEAS) teilnehmen, die den obligatorischen Sprachnachweis nicht auf anderem Wege erbringen können, bzw. deren Sprachnachweise älter als zwei Jahre sind. Die Teilnahme am Entrance Test ist nur für künftige Bachelor- und Lehramt-Studentinnen und Studenten gedacht. Der Entrance Test dauert zwei Stunden. Am Entrance Test darf jede/r Bewerber/in nur einmal pro Semester teilnehmen.\n\n\nAlle Bewerber/innen, die sich für das \nWintersemester 2022/23 \neinschreiben und den Entrance Test als Sprachnachweis erbringen möchten, müssen sich \nfür eine \nder folgenden Sitzungen anmelden\n\n(oder extern einen von uns anerkannten Test bei TOEFL iBT, Cambridge, IELTS Academic ablegen).\n\n\nDer Termin für den Entrance Test ist der\n\n\n\nFreitag, 03. Juni 2022 um 11 Uhr (erste Sitzung)\n\nFreitag, 03. Juni 2022 um 15.30 Uhr (zweite Sitzung)\n\n\n\n\nRaum: Der Raum wird Ihnen ab dem 16. Mai 2022 (nach der Anmeldefrist)\n\nbis spätestens 30. Mai 2022 per Email mitgeteilt. \n\n!! Bitte schauen Sie regelmäßig in Ihr Postfach !!\n\n\n\n\nAnmeldung: \nDie zur Anmeldung angeforderten Daten sollten vollständig in das Anmelde-Formular (Link) eingegeben werden, unter Angabe\n \nder \nAdresse an die das Test-Ergebnis gesendet werden soll\n. Bitte wählen Sie die gewünschte Sitzung 1 \noder\n 2 aus.\n\n\nBevor Sie den Button \n„Anmelden”\n betätigen, überprüfen Sie bitte die Richtigkeit Ihrer Anmelde-Daten, da im Nachhinein \nkeine Änderung\n vorgenommen werden kann. Bei mehrfacher Anmeldung bleibt nur der neuste Datensatz bestehen.\n\n\nBitte beachten Sie: Sie erhalten \nkeine Anmeldebestätigung!\n\nLink zur Anmeldung:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n\n \n\nAnmeldungen zu den Tests sind auf der Homepage des IEAS\n\nbis spätestens um 9:00 Uhr am Mo. 16. Mai 2022 möglich.\n\n\nVor der Test-Sitzung legen Sie bitte zur Identifikation ein Ausweisdokument mit Foto vor. \n\n\n\n\n\n!!! Der Sprachnachweis muss bis zur Einschreibung eingereicht werden !!!\n\n\nBei Nichtbestehen des Entrance Tests ist ein alternativer Nachweis über einen standardisierten Test (TOEFL iBT, Cambridge, IELTS Academic) zu erbringen.\n\n \n\n\nInformationen zur sprachlichen Selbsteinschätzung: \nWer seine Englischkenntnisse vorab einschätzen möchte, kann mit dem Online-Sprachtest Dialang arbeiten, um die Stärken und Schwächen seiner Englischkenntnisse herauszufiltern. Das Programm bietet zudem verschiedene Vorschläge zur Verbesserung der Englischkenntnisse an. Besuchen Sie \nDialang\n und testen auch Sie Ihre Englischkenntnisse.\n\n\nTest-Beispiele für die Sektion Leseverständnis und für die Sektion Grammatik \nkönnen Sie unter den folgenden Links als PDF herunterladen:\n\nTest-Beispiel zum grammatikalischen Verständnis [PDF]\n \nTest-Beispiel zum Lese-Verständnis [PDF]\n\n  \n\n\n\n________________________________________________________________________\n\n\n\nPlease note: The obligatory entrance test for the Summer Semester 2022 is terminated!\n\n________________________________________________________________________ \n\n\n \n\nObligatory Entrance Test for the Winter Semester 2022/23\n\n\nAll non-exempt students wishing to study English and/or American Studies at the Institut für England- und Amerikastudien (Bachelor as well as Lehramt) are required to take a written entrance test. The entrance test will take about two hours. All incoming students who have to take the test need to sign-up for \none\n of the two test sittings  (i.e. who have not been exempted).\n\n\n \n\nThe date for the entrance test is\n\n\n\nFriday, June 3, 2022 at 11:00 a.m. - (Sitting 1)  \n\nFriday, June 3, 2022 at 3:30 p.m. - (Sitting 2) \n\nRoom: Between May 16, 2022 (after closing date for registration) \n\nand May 30, 2022 you will receive an Email for room details. \n\n\n\nPlease check your inbox regularly! \n\n\n\n\n  \nRegistration:\n The students wishing to take this test need to sign up for one of the sittings using the online form.\n\nEnter the required data and choose \none\n of the sittings by using the drop-down menu. \n\n\nPlease double check your entries (recheck the proper address) before you click on the \"Anmelden\" button. \n\nIt is not possible to make any changes afterwards. \n\nPlease note: You will not receive a confirmation!\n   \n\nEntrance Test Registration:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n  \n\nClosing date for registration is at 9:00 a.m. on May 16, 2022.  \n\n\n\nAt the test sitting, a photo identification must be presented prior to admission to the test.  \n\n\nPassing the test is an entrance requirement for all non-exempt students.\n\n\n \n\n!!! You will have to provide your proof of English until the deadline for enrollment !!! \n\n\nShould you fail the entrance test, you have to provide an alternative certificate (TOEFL iBT, Cambridge, IELTS Academic).\n\n\n________________________________________________________________________________\n\nSample test items\n for both the reading comprehension section (RC) and the grammar section can be downloaded:\n\n\n\nExample for the grammar section [PDF]\n\n\nExample for comprehension section [PDF]\n\n\n\nSelf-assessment information:\n\n\nStudents can self-assess their own level of English via the Internet with Dialang. \nDialang\n is a free language assessment system that gives you feedback on the strengths and weaknesses in your foreign language proficiency. In addition, it provides general advice and information on language learning.\n\n\n \n\n \n\n _________________________________________________________\n\n\n\n\nFremdsprachliche Kommunikation:\n\nDear Student,\n\nYou have decided to study English either as part of an Bachelor degree or as part of a teacher training programme.  \n\nWhile we welcome your decision, we must point out that it is absolutely essential that you have a very good command of English before you start your studies. Bearing in mind the fact that the Abitur still tends to vary considerably from school to school, we would like to help you arrive at a realistic assessment of your competence in English before you enrol in the department.\n\n\nTo begin English studies at this university, you must demonstrate at least a B2 level.\n\nIf you aim to teach at a Gymnasium or want to take a Bachelor course, you should ideally start out at the C1 level, or you may encounter difficulties.\n\nAt the same time, if you have assessed your language at a lower level, you should reconsider your choice of subject. Should you decide you still want to study English, then you should first improve your English either at a language school or by spending a reasonable amount of time in an English-speaking country before you enrol in the department. Please note that even a good grade in English in the Abitur (Leistungskurs) does not necessarily mean that your English knowledge is sufficient for you to start your studies. \n\n\nThe description below is designed to help you judge your own communication skills. \n\nThere are six levels of linguistic competence ranging from elementary (A1) to 'near native' (C2). \n\nStart at A1 in each section and tick all the levels you think you have reached.  \n\n_________________________________________________________\n \n\n\nUnderstanding Texts\n\n\nListening\n\n\nA1 \n\nI can recognise familiar words and very basic phrases concerning myself, my family and immediate concrete surroundings when people speak slowly and clearly.\n\n\n\nA2 \n\nI can understand phrases and the highest frequency vocabulary related to areas of most immediate personal relevance (e.g. very basic personal and family information, shopping, local geography, employment). I can catch the main point in short, clear, simple messages and announcements.\n\n\n\nB1 \n\nI can understand the main points of clear standard speech on familiar matters regularly encountered in work, school, leisure, etc. I can understand the main point of many radio or TV programmes on current affairs or topics of personal or professional interest when the delivery is relatively slow and clear.\n\n\n\nB2 \n\nI can understand extended speech and lectures and follow even complex lines of argument provided the topic is reasonably familiar. I can understand most TV news and current affairs programmes. I can understand the majority of films in standard dialect.\n\n\n\nC1 \n\nI can understand extended speech even when it is not clearly structured and when relationships are only implied and not signalled explicitly. I can understand television programmes and films without too much effort.\n\n\n\nC2 \n\nI have no difficulty in understanding any kind of spoken language, whether live or broadcast, even when delivered at fast native speed, provided. I have some time to get familiar with the accent.\n\n\n\n\n\n\n\n\nReading\n\n\nA1 \n\nI can understand familiar names, words and very simple sentences, for example on notices and posters or in catalogues.\n\n\n\nA2 \n\nI can read very short, simple texts. I can find specific, predictable information in simple everyday material such as advertisements, prospectuses, menus and timetables and I can understand short simple personal letters.\n\n\n\nB1 \n\nI can understand texts that consist mainly of high frequency everyday or job-related language. I can understand the description of events, feelings and wishes in personal letters.\n\n\n\nB2 \n\nI can read articles and reports concerned with contemporary problems in which the writers adopt particular stances or viewpoints. I can understand contemporary literary prose.\n\n\n\nC1 \n\nI can understand long and complex factual and literary texts, appreciating distinctions of style. I can understand specialised articles and longer technical instructions, even when they do not relate to my field.\n\n\n\nC2 \n\nI can read with ease virtually all forms of the written language, including abstract, structurally or linguistically complex texts such as manuals, specialised articles and literary works.\n\n\n\n\n\n\n\n \n\nInteraction and Text Production\n\n\nInteraction\n\n\nA1 \n\nI can interact in a simple way provided the other person is prepared to repeat or rephrase things at a slower rate of speech and help me formulate what I'm trying to say. I can ask and answer simple questions in areas of immediate need or on very familiar topics.\n\n\n\nA2\n\n I can communicate in simple and routine tasks requiring a simple and direct exchange of information on familiar topics and activities. I can handle very short social exchanges, even though I can't usually understand enough to keep the conversation going myself.\n\n\n\nB1 \n\nI can deal with most situations likely to arise whilst travelling in an area where the language is spoken. I can enter unprepared into conversation on topics that are familiar, of personal interest or pertinent to everyday life (e.g. family, hobbies, work, travel and current events).\n\n\nB2 \nI can interact with a degree of fluency and spontaneity that makes regular interaction with native speakers quite possible. I can take an active part in discussion in familiar contexts, accounting for and sustaining my views.\n\n\n\nC1 \n\nI can express myself fluently and spontaneously without much obvious searching for expressions. I can use language flexibly and effectively for social and professional purposes. I can formulate ideas and opinions with precision and relate my contribution skilfully to those of other speakers.\n\n\nC2 \nI can take part effortlessly in any conversation of discussion and have a good familiarity with idiomatic expressions and colloquialisms. I can express myself fluently and convey finer shades of meaning precisely. If I do have a problem I can backtrack and restructure around the difficulty so smoothly that other people are hardly aware of it.\n\n\n\n\n\nOral Production\n\n\nA1 \n\nI can use simple phrases and sentences to describe where I live and people I know.\n\n\n\nA2 \n\nI can use a series of phrases and sentences to describe in simple terms my family and other people, living conditions, my educational background and my present or most recent job.\n\n\n\nB1 \n\nI can connect phrases in a simple way in order to describe experiences and events, my dreams, hopes and ambitions. I can briefly give reasons and explanations for opinions and plans. I can narrate a story or relate the plot of a book or film and describe my reactions.\n\n\n\nB2 \n\nI can present clear, detailed descriptions on a wide range of subjects related to my field of interest. I can explain a viewpoint on a topical issue giving the advantages and disadvantages of various options.\n\n\n\nC1 \n\nI can present clear, detailed descriptions of complex subjects integrating sub-themes, developing particular points and rounding off with an appropriate conclusion.\n\n\n\nC2 \n\nI can present a clear, smoothly-flowing description or argument in a style appropriate to the context and with an effective logical structure which helps the recipient to notice and remember significant points.\n\n\n\n\n \n\n\nWriting\n\n\nA1 \n\nI can write a short, simple postcard, for examples sending holiday greetings. I can fill in forms with personal details, for example entering my name, nationality and address on a hotel registration form.\n\n\nA2 \nI can write short, simple notes and messages relating to matters in areas of immediate need. I can write a very simple personal letter, for example thanking someone for something.\n\n\nB1 \nI can write simple connected text on topics which are familiar or of personal interest. I can write personal letters describing experiences and impressions.\n\n\n\nB2 \n\nI can write clear, detailed text on a wide range of subjects related to my interests. I can write an essay or report, passing on information or giving reasons in support of or against a particular point of view. I can write letters highlighting the personal significance of events and experiences.\n\n\n\nC1\n\n I can express myself in clear, well-structured text, expressing points of view at some length. I can write detailed expositions of complex subjects in a letter, an essay or a report, underlining what I consider to be the salient issues. I can write different kinds of texts in an assured, personal, style appropriate to the reader in mind.\n\n\nC2 \nI can write clear, smoothly-flowing text in an appropriate style. I can write complex letters, reports or articles which present a case with an effective logical structure which helps the recipient to notice and remember significant points. I can write summaries and reviews of professional or literary works.", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "90884" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "65263411-2486-51bc-bd25-f5ccc27385a4", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + }, + { + "uid": "53fa6b96-9bf8-573b-a2ea-3881bc4da170", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85788" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "035dad96-13f1-5c92-937d-02cd69be08a4" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87085" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "6898a599-e08b-5a37-a216-d3d91a509be5", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + ], + "level": 2, + "academicTerm": { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + }, + "identifiers": { + "LSF": "87179" + }, + "origin": { + "indexed": "2022-06-02T10:09:25.665Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Entrance Test", + "description": "___________________________________________________________________________________________\n\n\n\nBitte beachten Sie:\n\nDer Entrance Test für den Studienbeginn im Sommersemester 2022 ist abgeschlossen!\n\n \n\n___________________________________________________________________________________________\n\n\n \n\nInformationen zum Entrance Test für den Studienbeginn im Wintersemester 2022/23:\n\nAm Entrance Test müssen alle Bewerber/innen für die Studiengänge des Instituts für England- und Amerikastudien (IEAS) teilnehmen, die den obligatorischen Sprachnachweis nicht auf anderem Wege erbringen können, bzw. deren Sprachnachweise älter als zwei Jahre sind. Die Teilnahme am Entrance Test ist nur für künftige Bachelor- und Lehramt-Studentinnen und Studenten gedacht. Der Entrance Test dauert zwei Stunden. Am Entrance Test darf jede/r Bewerber/in nur einmal pro Semester teilnehmen.\n\n\nAlle Bewerber/innen, die sich für das\nWintersemester 2022/23\neinschreiben und den Entrance Test als Sprachnachweis erbringen möchten, müssen sich\nfür eine\nder folgenden Sitzungen anmelden\n\n(oder extern einen von uns anerkannten Test bei TOEFL iBT, Cambridge, IELTS Academic ablegen).\n\n\nDer Termin für den Entrance Test ist der\n\n\n\nFreitag, 03. Juni 2022 um 11 Uhr (erste Sitzung)\n\nFreitag, 03. Juni 2022 um 15.30 Uhr (zweite Sitzung)\n\n\n\n\nRaum: Der Raum wird Ihnen ab dem 16. Mai 2022 (nach der Anmeldefrist)\n\nbis spätestens 30. Mai 2022 per Email mitgeteilt. \n\n!! Bitte schauen Sie regelmäßig in Ihr Postfach !!\n\n\n\n\nAnmeldung:\nDie zur Anmeldung angeforderten Daten sollten vollständig in das Anmelde-Formular (Link) eingegeben werden, unter Angabe\n \nder \nAdresse an die das Test-Ergebnis gesendet werden soll\n. Bitte wählen Sie die gewünschte Sitzung 1\noder\n2 aus.\n\n\nBevor Sie den Button\n„Anmelden”\nbetätigen, überprüfen Sie bitte die Richtigkeit Ihrer Anmelde-Daten, da im Nachhinein \nkeine Änderung\n vorgenommen werden kann. Bei mehrfacher Anmeldung bleibt nur der neuste Datensatz bestehen.\n\n\nBitte beachten Sie: Sie erhalten\nkeine Anmeldebestätigung!\n\nLink zur Anmeldung:\nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n\n\nAnmeldungen zu den Tests sind auf der Homepage des IEAS\n\nbis spätestens um 9:00 Uhr am Mo. 16. Mai 2022 möglich.\n\n\nVor der Test-Sitzung legen Sie bitte zur Identifikation ein Ausweisdokument mit Foto vor. \n\n\n\n\n\n!!! Der Sprachnachweis muss bis zur Einschreibung eingereicht werden !!!\n\n\nBei Nichtbestehen des Entrance Tests ist ein alternativer Nachweis über einen standardisierten Test (TOEFL iBT, Cambridge, IELTS Academic) zu erbringen.\n\n \n\n\nInformationen zur sprachlichen Selbsteinschätzung: \nWer seine Englischkenntnisse vorab einschätzen möchte, kann mit dem Online-Sprachtest Dialang arbeiten, um die Stärken und Schwächen seiner Englischkenntnisse herauszufiltern. Das Programm bietet zudem verschiedene Vorschläge zur Verbesserung der Englischkenntnisse an. Besuchen Sie \nDialang\n und testen auch Sie Ihre Englischkenntnisse.\n\n\nTest-Beispiele für die Sektion Leseverständnis und für die Sektion Grammatik \nkönnen Sie unter den folgenden Links als PDF herunterladen:\n\nTest-Beispiel zum grammatikalischen Verständnis [PDF]\n \nTest-Beispiel zum Lese-Verständnis [PDF]\n\n  \n\n\n\n________________________________________________________________________\n\n\n\nPlease note: The obligatory entrance test for the Summer Semester 2022 is terminated!\n\n________________________________________________________________________ \n\n\n \n\nObligatory Entrance Test for the Winter Semester 2022/23\n\n\nAll non-exempt students wishing to study English and/or American Studies at the Institut für England- und Amerikastudien (Bachelor as well as Lehramt) are required to take a written entrance test. The entrance test will take about two hours. All incoming students who have to take the test need to sign-up for \none\n of the two test sittings  (i.e. who have not been exempted).\n\n\n \n\nThe date for the entrance test is\n\n\n\nFriday, June 3, 2022 at 11:00 a.m. - (Sitting 1)  \n\nFriday, June 3, 2022 at 3:30 p.m. - (Sitting 2) \n\nRoom: Between May 16, 2022 (after closing date for registration) \n\nand May 30, 2022 you will receive an Email for room details. \n\n\n\nPlease check your inbox regularly! \n\n\n\n\n  \nRegistration:\n The students wishing to take this test need to sign up for one of the sittings using the online form.\n\nEnter the required data and choose \none\n of the sittings by using the drop-down menu. \n\n\nPlease double check your entries (recheck the proper address) before you click on the \"Anmelden\" button. \n\nIt is not possible to make any changes afterwards. \n\nPlease note: You will not receive a confirmation!\n   \n\nEntrance Test Registration:\n \nhttps://www.ieas.uni-frankfurt.de/EntranceTest\n\n\n \n  \n\nClosing date for registration is at 9:00 a.m. on May 16, 2022.  \n\n\n\nAt the test sitting, a photo identification must be presented prior to admission to the test.  \n\n\nPassing the test is an entrance requirement for all non-exempt students.\n\n\n \n\n!!! You will have to provide your proof of English until the deadline for enrollment !!! \n\n\nShould you fail the entrance test, you have to provide an alternative certificate (TOEFL iBT, Cambridge, IELTS Academic).\n\n\n________________________________________________________________________________\n\nSample test items\n for both the reading comprehension section (RC) and the grammar section can be downloaded:\n\n\n\nExample for the grammar section [PDF]\n\n\nExample for comprehension section [PDF]\n\n\n\nSelf-assessment information:\n\n\nStudents can self-assess their own level of English via the Internet with Dialang. \nDialang\n is a free language assessment system that gives you feedback on the strengths and weaknesses in your foreign language proficiency. In addition, it provides general advice and information on language learning.\n\n\n \n\n \n\n\n\n _________________________________________________________\n\n\n\n\n\n\n\n\n\nFremdsprachliche Kommunikation:\n\n\nDear Student,\n\n\nYou have decided to study English either as part of an Bachelor degree or as part of a teacher training programme.  \n\nWhile we welcome your decision, we must point out that it is absolutely essential that you have a very good command of English before you start your studies. Bearing in mind the fact that the Abitur still tends to vary considerably from school to school, we would like to help you arrive at a realistic assessment of your competence in English before you enrol in the department.\n\n\nTo begin English studies at this university, you must demonstrate at least a B2 level.\n\nIf you aim to teach at a Gymnasium or want to take a Bachelor course, you should ideally start out at the C1 level, or you may encounter difficulties.\n\nAt the same time, if you have assessed your language at a lower level, you should reconsider your choice of subject. Should you decide you still want to study English, then you should first improve your English either at a language school or by spending a reasonable amount of time in an English-speaking country before you enrol in the department. Please note that even a good grade in English in the Abitur (Leistungskurs) does not necessarily mean that your English knowledge is sufficient for you to start your studies. \n\n\nThe description below is designed to help you judge your own communication skills. \n\nThere are six levels of linguistic competence ranging from elementary (A1) to 'near native' (C2). \n\nStart at A1 in each section and tick all the levels you think you have reached.  \n\n\n\n_________________________________________________________\n\n\n \n\n\n\n\nUnderstanding Texts\n\n\nListening\n\n\nA1\n\nI can recognise familiar words and very basic phrases concerning myself, my family and immediate concrete surroundings when people speak slowly and clearly.\n\n\n\n\n\nA2\n\nI can understand phrases and the highest frequency vocabulary related to areas of most immediate personal relevance (e.g. very basic personal and family information, shopping, local geography, employment). I can catch the main point in short, clear, simple messages and announcements.\n\n\n\n\n\nB1\n\nI can understand the main points of clear standard speech on familiar matters regularly encountered in work, school, leisure, etc. I can understand the main point of many radio or TV programmes on current affairs or topics of personal or professional interest when the delivery is relatively slow and clear.\n\n\n\n\n\nB2\n\nI can understand extended speech and lectures and follow even complex lines of argument provided the topic is reasonably familiar. I can understand most TV news and current affairs programmes. I can understand the majority of films in standard dialect.\n\n\n\n\n\nC1\n\nI can understand extended speech even when it is not clearly structured and when relationships are only implied and not signalled explicitly. I can understand television programmes and films without too much effort.\n\n\n\nC2\n\nI have no difficulty in understanding any kind of spoken language, whether live or broadcast, even when delivered at fast native speed, provided. I have some time to get familiar with the accent.\n\n\n\n\n\n\n\n\n\n\n\n\nReading\n\n\nA1\n\nI can understand familiar names, words and very simple sentences, for example on notices and posters or in catalogues.\n\n\n\n\n\nA2\n\nI can read very short, simple texts. I can find specific, predictable information in simple everyday material such as advertisements, prospectuses, menus and timetables and I can understand short simple personal letters.\n\n\n\n\n\nB1\n\nI can understand texts that consist mainly of high frequency everyday or job-related language. I can understand the description of events, feelings and wishes in personal letters.\n\n\n\nB2\n\nI can read articles and reports concerned with contemporary problems in which the writers adopt particular stances or viewpoints. I can understand contemporary literary prose.\n\n\n\nC1\n\nI can understand long and complex factual and literary texts, appreciating distinctions of style. I can understand specialised articles and longer technical instructions, even when they do not relate to my field.\n\n\n\nC2\n\nI can read with ease virtually all forms of the written language, including abstract, structurally or linguistically complex texts such as manuals, specialised articles and literary works.\n\n\n\n\n\n\n\n\n\n\n\n \n\nInteraction and Text Production\n\n\nInteraction\n\n\nA1\n\nI can interact in a simple way provided the other person is prepared to repeat or rephrase things at a slower rate of speech and help me formulate what I'm trying to say. I can ask and answer simple questions in areas of immediate need or on very familiar topics.\n\n\n\n\n\nA2\n\nI can communicate in simple and routine tasks requiring a simple and direct exchange of information on familiar topics and activities. I can handle very short social exchanges, even though I can't usually understand enough to keep the conversation going myself.\n\n\n\n\n\nB1\n\nI can deal with most situations likely to arise whilst travelling in an area where the language is spoken. I can enter unprepared into conversation on topics that are familiar, of personal interest or pertinent to everyday life (e.g. family, hobbies, work, travel and current events).\n\n\n\n\nB2\nI can interact with a degree of fluency and spontaneity that makes regular interaction with native speakers quite possible. I can take an active part in discussion in familiar contexts, accounting for and sustaining my views.\n\n\n\n\n\nC1\n\nI can express myself fluently and spontaneously without much obvious searching for expressions. I can use language flexibly and effectively for social and professional purposes. I can formulate ideas and opinions with precision and relate my contribution skilfully to those of other speakers.\n\n\n\n\nC2\nI can take part effortlessly in any conversation of discussion and have a good familiarity with idiomatic expressions and colloquialisms. I can express myself fluently and convey finer shades of meaning precisely. If I do have a problem I can backtrack and restructure around the difficulty so smoothly that other people are hardly aware of it.\n\n\n\n\n\n\n\nOral Production\n\n\nA1\n\nI can use simple phrases and sentences to describe where I live and people I know.\n\n\n\n\n\nA2\n\nI can use a series of phrases and sentences to describe in simple terms my family and other people, living conditions, my educational background and my present or most recent job.\n\n\n\n\n\nB1\n\nI can connect phrases in a simple way in order to describe experiences and events, my dreams, hopes and ambitions. I can briefly give reasons and explanations for opinions and plans. I can narrate a story or relate the plot of a book or film and describe my reactions.\n\n\n\n\n\nB2\n\nI can present clear, detailed descriptions on a wide range of subjects related to my field of interest. I can explain a viewpoint on a topical issue giving the advantages and disadvantages of various options.\n\n\n\n\n\nC1\n\nI can present clear, detailed descriptions of complex subjects integrating sub-themes, developing particular points and rounding off with an appropriate conclusion.\n\n\n\n\n\nC2\n\nI can present a clear, smoothly-flowing description or argument in a style appropriate to the context and with an effective logical structure which helps the recipient to notice and remember significant points.\n\n\n\n\n\n\n \n\n\nWriting\n\n\nA1\n\nI can write a short, simple postcard, for examples sending holiday greetings. I can fill in forms with personal details, for example entering my name, nationality and address on a hotel registration form.\n\n\n\n\nA2\nI can write short, simple notes and messages relating to matters in areas of immediate need. I can write a very simple personal letter, for example thanking someone for something.\n\n\n\n\nB1\nI can write simple connected text on topics which are familiar or of personal interest. I can write personal letters describing experiences and impressions.\n\n\n\n\n\nB2\n\nI can write clear, detailed text on a wide range of subjects related to my interests. I can write an essay or report, passing on information or giving reasons in support of or against a particular point of view. I can write letters highlighting the personal significance of events and experiences.\n\n\n\n\n\nC1\n\nI can express myself in clear, well-structured text, expressing points of view at some length. I can write detailed expositions of complex subjects in a letter, an essay or a report, underlining what I consider to be the salient issues. I can write different kinds of texts in an assured, personal, style appropriate to the reader in mind.\n\n\n\n\nC2\nI can write clear, smoothly-flowing text in an appropriate style. I can write complex letters, reports or articles which present a case with an effective logical structure which helps the recipient to notice and remember significant points. I can write summaries and reviews of professional or literary works.", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "87085" + }, + "level": 1, + "name": "Amerikanistik und Anglistik", + "type": "catalog", + "uid": "6898a599-e08b-5a37-a216-d3d91a509be5", + "description": "ACHTUNG: \"Lehrveranstaltungen für Lehramtsstudiengänge (Modulstruktur)\" finden Sie unter diesem Titel direkt unter der Ebene \"Vorlesungsverzeichnis\"\n(direkt nach des Lehrveranstaltungen des Fachbereichs 16)\neinsortiert." + } + }, + { + "uid": "4ca852da-ba65-539d-9837-badd4da0bc06", + "identifiers": { + "LSF": "335779" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "84661" + }, + "level": 1, + "name": "Islamische Studien", + "type": "catalog", + "uid": "d438522b-dcb4-50aa-a1ef-1e2d0729dc78" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:42.876Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Arabisch I - Wiederholung Test", + "organizers": [ + { + "familyName": "Aboulenein", + "gender": "female", + "givenName": "Nadja", + "identifiers": { + "LSF": "19862" + }, + "jobTitles": [ + "Institut für Studien der Kultur und Religion des Islam - Wissenschaftliche Mitarbeiter*innen,Lektorin für Arabisch" + ], + "name": "Nadja Aboulenein", + "type": "person", + "uid": "2972b5cd-df7b-54d3-89c3-c2588278c4fb" + } + ], + "originalCategory": "Klausur", + "categories": ["special"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "507b36f6-258e-54e8-8505-f2d98ff0ee36", + "identifiers": { + "LSF": "336373" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "84661" + }, + "level": 1, + "name": "Islamische Studien", + "type": "catalog", + "uid": "d438522b-dcb4-50aa-a1ef-1e2d0729dc78" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:42.878Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Arabisch I - Wiederholung Test 2", + "organizers": [ + { + "familyName": "Aboulenein", + "gender": "female", + "givenName": "Nadja", + "identifiers": { + "LSF": "19862" + }, + "jobTitles": [ + "Institut für Studien der Kultur und Religion des Islam - Wissenschaftliche Mitarbeiter*innen,Lektorin für Arabisch" + ], + "name": "Nadja Aboulenein", + "type": "person", + "uid": "2972b5cd-df7b-54d3-89c3-c2588278c4fb" + } + ], + "originalCategory": "Klausur", + "categories": ["special"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "d65576a9-da8a-5c3f-828d-ef8fb749b47e", + "identifiers": { + "LSF": "333339" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "90887" + }, + "level": 3, + "name": "Empirische Forschungsmethoden II - Vertiefung (EW-BA 7)", + "type": "catalog", + "uid": "cc509f14-1a54-5500-a48e-57c1965aac09" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88474" + }, + "level": 3, + "name": "Empirische Forschungsverfahren und ihre Anwendung (alt) / Empirische Foschungsmethoden II - Vertiefung (neu) (EW-BA 7)", + "type": "catalog", + "uid": "6d7018f8-8a7c-50ff-9504-c5ec3c978e8b" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "91137" + }, + "level": 1, + "name": "Pädagogik der Elementar- und Primarstufe", + "type": "catalog", + "uid": "991c01fa-674f-58c1-add8-54317fee2c27" + } + ], + "origin": { + "indexed": "2022-06-02T10:08:48.404Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion", + "organizers": [ + { + "familyName": "Jurecka", + "gender": "female", + "givenName": "Astrid", + "honorificPrefix": "Dr.", + "identifiers": { + "LSF": "10608" + }, + "jobTitles": [ + "Institut für Pädagogik der Elementar- und Primarstufe (WE II) - Wissenschaftliche Mitarbeiter*innen" + ], + "name": "Astrid Jurecka", + "type": "person", + "uid": "92ad2023-5c9d-5fcf-8c42-58b476ae24ba" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "b5d50b98-1ac1-5590-8512-0eef6b9afba0", + "identifiers": { + "LSF": "333986" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "90352" + }, + "level": 3, + "name": "Experimentelle Physik", + "type": "catalog", + "uid": "e94b8db5-3ba8-5cd3-af8f-36a5a4d85db1" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90478" + }, + "level": 3, + "name": "Experimentelle Physik", + "type": "catalog", + "uid": "22a01c18-0a39-57b9-8226-64023a5416a7" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90476" + }, + "level": 1, + "name": "Nebenfach Astronomie", + "type": "catalog", + "uid": "e5b80724-eeb4-531a-b8d2-93c31bb87f27" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:08.148Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Experimentelle Tests der Relativitätstheorie", + "organizers": [ + { + "familyName": "Reifarth", + "gender": "male", + "givenName": "René", + "honorificPrefix": "Prof. Dr.", + "identifiers": { + "LSF": "2153" + }, + "jobTitles": ["Institut für Angewandte Physik - Professor*innen"], + "name": "René Reifarth", + "type": "person", + "uid": "a428e6d4-1bb9-5eac-9a6f-b1f4c9fa7d65" + } + ], + "originalCategory": "Vorlesung", + "categories": ["lecture"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "b004301c-6eae-5417-bb16-2c379478b2ff", + "identifiers": { + "LSF": "320608" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "87084" + }, + "level": 3, + "name": "Empirische Forschungsmethoden II - Vertiefung (EW-BA 7)", + "type": "catalog", + "uid": "107963bf-6920-5789-be56-e477237be6c0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85451" + }, + "level": 3, + "name": "Empirische Forschungsverfahren und ihre Anwendung (alt) / Empirische Foschungsmethoden II - Vertiefung (neu) (EW-BA 7)", + "type": "catalog", + "uid": "50929097-a123-5ee5-b3cb-52ed3a87b0c2" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86559" + }, + "level": 1, + "name": "Pädagogik der Elementar- und Primarstufe", + "type": "catalog", + "uid": "26942c36-a3ff-5369-8b20-8f200c6d3bc8" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:32.282Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion (Jurecka)", + "organizers": [ + { + "familyName": "Jurecka", + "gender": "female", + "givenName": "Astrid", + "honorificPrefix": "Dr.", + "identifiers": { + "LSF": "10608" + }, + "jobTitles": [ + "Institut für Pädagogik der Elementar- und Primarstufe (WE II) - Wissenschaftliche Mitarbeiter*innen" + ], + "name": "Astrid Jurecka", + "type": "person", + "uid": "92ad2023-5c9d-5fcf-8c42-58b476ae24ba" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "26e2cf27-8560-5291-a886-e6943365a954", + "identifiers": { + "LSF": "321506" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "87084" + }, + "level": 3, + "name": "Empirische Forschungsmethoden II - Vertiefung (EW-BA 7)", + "type": "catalog", + "uid": "107963bf-6920-5789-be56-e477237be6c0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85451" + }, + "level": 3, + "name": "Empirische Forschungsverfahren und ihre Anwendung (alt) / Empirische Foschungsmethoden II - Vertiefung (neu) (EW-BA 7)", + "type": "catalog", + "uid": "50929097-a123-5ee5-b3cb-52ed3a87b0c2" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86559" + }, + "level": 1, + "name": "Pädagogik der Elementar- und Primarstufe", + "type": "catalog", + "uid": "26942c36-a3ff-5369-8b20-8f200c6d3bc8" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:32.298Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion (List)", + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "944c0fea-a72f-5b49-8f80-84dc36c0be66", + "identifiers": { + "LSF": "335245" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89695" + }, + "level": 3, + "name": "Digital Humanities", + "type": "catalog", + "uid": "96da8beb-79d2-5dec-bd49-9d3d508bae37" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90462" + }, + "level": 2, + "name": "Informatik (B.Sc.) PO 2019", + "type": "catalog", + "uid": "508b8c71-2a3b-5c87-810a-9de3fb063d1a" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89351" + }, + "level": 2, + "name": "Informatik (B.Sc.) PO 2011", + "type": "catalog", + "uid": "5184091f-5342-57eb-9c75-81b586e7e70b" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89791" + }, + "level": 3, + "name": "Allgemeine Informatik/(vertieftes) Anwendungsfach", + "type": "catalog", + "uid": "8d4d64ba-7d8b-5c37-8cbe-7e026f98a2ff" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89845" + }, + "level": 3, + "name": "Spezialisierung Data Science", + "type": "catalog", + "uid": "423bd6b9-9fa5-5228-9cad-fe74eac27948" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89301" + }, + "level": 3, + "name": "Spezialisierung Educational Technologies", + "type": "catalog", + "uid": "02dfb8ef-8d9f-5410-b4e1-c1b2bad39fa4" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90313" + }, + "level": 3, + "name": "Spezialisierung Künstliche Intelligenz", + "type": "catalog", + "uid": "b4e91ea1-ac29-5861-8e0d-95963f9e2a6b" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88502" + }, + "level": 3, + "name": "Angewandte Informatik", + "type": "catalog", + "uid": "39bbc62e-f4bb-5622-ac4b-f8192279bdf8" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88137" + }, + "level": 3, + "name": "Vertiefungsbereich Informatik", + "type": "catalog", + "uid": "c45fa750-96dd-5f04-9f26-b3ba9d8f971f" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90602" + }, + "level": 3, + "name": "Vertiefungsbereich Wirtschaftsinformatik", + "type": "catalog", + "uid": "3cfd95f3-bdea-576d-b849-ac4ef029d98b" + } + ], + "origin": { + "indexed": "2022-06-02T10:08:58.930Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Seminar Text Analytics", + "organizers": [ + { + "familyName": "Mehler", + "gender": "male", + "givenName": "Alexander", + "honorificPrefix": "Prof. Dr.", + "identifiers": { + "LSF": "8769" + }, + "jobTitles": [ + "Fachbereich 12 - Informatik und Mathematik - Gremien,Mitglied des Fachbereichsrats", + "Institut für Informatik (IfI) - Geschäftsführende*r Direktor*in", + "Texttechnologie - Professor*innen" + ], + "name": "Alexander Mehler", + "type": "person", + "uid": "e9d4f7b3-3e5a-539a-8030-17e24f339a62" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "c8e9454e-8b20-572c-a857-57b2e98d844a", + "identifiers": { + "LSF": "336656" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89755" + }, + "level": 4, + "name": "Klinikumsinternes Lehrangebot", + "type": "catalog", + "uid": "c785703a-83b7-53a7-8610-104bf3b8981b" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:12.368Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Durchführung von antiviralen Tests", + "organizers": [ + { + "familyName": "Cinatl", + "gender": "male", + "givenName": "Jindrich", + "honorificPrefix": "Prof. Dr.", + "identifiers": { + "LSF": "4225" + }, + "jobTitles": ["Institut für Medizinische Virologie - apl. Professor*innen"], + "name": "Jindrich Cinatl", + "type": "person", + "uid": "2d922764-67eb-5573-9330-b29c7841b8b6" + } + ], + "originalCategory": "Praktikum", + "categories": ["practicum"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "ad675fd0-7c4b-591c-ae6f-fd9115dd6305", + "identifiers": { + "LSF": "325760" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "84483" + }, + "level": 3, + "name": "Digital Humanities", + "type": "catalog", + "uid": "83e6ebc5-7cb9-5670-9ebb-b5a26c5cdfce" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85168" + }, + "level": 2, + "name": "Informatik (B.Sc.) PO 2019", + "type": "catalog", + "uid": "2c09edf2-8682-5a0c-a361-d2bd1dd4b7ba" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86926" + }, + "level": 2, + "name": "Informatik (B.Sc.) PO 2011", + "type": "catalog", + "uid": "21491239-16d4-53c3-9ceb-540b475d0363" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84402" + }, + "level": 3, + "name": "Allgemeine Informatik/(vertieftes) Anwendungsfach", + "type": "catalog", + "uid": "84452aca-b404-5fd4-97b5-8b83cff9d5dc" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84410" + }, + "level": 3, + "name": "Spezialisierung Data Science", + "type": "catalog", + "uid": "de84a81b-d798-5ccb-be11-61101504f7ba" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84380" + }, + "level": 3, + "name": "Spezialisierung Educational Technologies", + "type": "catalog", + "uid": "0f4ac8ea-126d-545d-ae07-1f458b7b574a" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85840" + }, + "level": 3, + "name": "Spezialisierung Künstliche Intelligenz", + "type": "catalog", + "uid": "f4608f96-3361-5013-837a-218442cf63ca" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85472" + }, + "level": 3, + "name": "Angewandte Informatik", + "type": "catalog", + "uid": "40ef0446-820a-520f-9ea1-433b191ed575" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86689" + }, + "level": 3, + "name": "Vertiefungsbereich Informatik", + "type": "catalog", + "uid": "d7fa0f05-e79b-5a7c-8244-a65633d8e968" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86412" + }, + "level": 3, + "name": "Vertiefungsbereich Wirtschaftsinformatik", + "type": "catalog", + "uid": "dee08ec9-81c1-5d29-9533-09f91edd6d66" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:42.452Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Seminar Text Analytics", + "organizers": [ + { + "familyName": "Mehler", + "gender": "male", + "givenName": "Alexander", + "honorificPrefix": "Prof. Dr.", + "identifiers": { + "LSF": "8769" + }, + "jobTitles": [ + "Fachbereich 12 - Informatik und Mathematik - Gremien,Mitglied des Fachbereichsrats", + "Institut für Informatik (IfI) - Geschäftsführende*r Direktor*in", + "Texttechnologie - Professor*innen" + ], + "name": "Alexander Mehler", + "type": "person", + "uid": "e9d4f7b3-3e5a-539a-8030-17e24f339a62" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "3f7fff08-b01e-58af-8896-5bc47b0f538d", + "identifiers": { + "LSF": "324552" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "84494" + }, + "level": 4, + "name": "Klinikumsinternes Lehrangebot", + "type": "catalog", + "uid": "8ca2ebd6-46fb-5d49-bdc0-13574eabc100" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:58.078Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Durchführung von antiviralen Tests", + "organizers": [ + { + "familyName": "Cinatl", + "gender": "male", + "givenName": "Jindrich", + "honorificPrefix": "Prof. Dr.", + "identifiers": { + "LSF": "4225" + }, + "jobTitles": ["Institut für Medizinische Virologie - apl. Professor*innen"], + "name": "Jindrich Cinatl", + "type": "person", + "uid": "2d922764-67eb-5573-9330-b29c7841b8b6" + } + ], + "originalCategory": "Praktikum", + "categories": ["practicum"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "8150cab0-8c53-5cfa-a751-cdc2c550fd09", + "identifiers": { + "LSF": "333284" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "86162" + }, + "level": 2, + "name": "Forschungskompetenzen 2 (PW-BA-F2, nur HF)", + "type": "catalog", + "uid": "43b210b4-de22-541e-8d10-3986c52dc094", + "description": "Die in diesem Modul angebotenen Lehrveranstaltungen haben einen Methodenschwerpunkt.\n \nFür Studierende nach der Prüfungsordnung 2014 ist die\n\n„Einführung in die Methoden der empirischen Sozialforschung” / 2 SWS\n\n\nVERPFLICHTEND!\n\nDiese Veranstaltung wird jedes Semester angeboten.\n\nZusätzlich besuchen Studierende vertiefende Veranstaltungen (2x 2 SWS oder 1x 4 SWS). In einem der belegten vertiefenden Proseminare findet die Modulabschlussprüfung statt." + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86769" + }, + "level": 3, + "name": "Methodenvertiefung (SOZ-BA-S5)", + "type": "catalog", + "uid": "0bf6e261-6e21-5d28-884f-c2131e4ded18" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:29.651Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Vertiefung Forschungstechnik: Quantitative Text Analysis", + "organizers": [ + { + "familyName": "Bruinsma", + "gender": "male", + "givenName": "Bastiaan", + "identifiers": { + "LSF": "24931" + }, + "jobTitles": [ + "Politikwissenschaft mit dem Schwerpunkt Methoden der Qualitativen Empirischen Sozialforschung - Wissenschaftliche Mitarbeiter*innen" + ], + "name": "Bastiaan Bruinsma", + "type": "person", + "uid": "f4cdfb3c-ace4-5d9c-a9b5-1dc792df1c7b" + } + ], + "originalCategory": "Proseminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "5218f814-f112-5f0d-a686-0ad32f5458d7", + "identifiers": { + "LSF": "336255" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "90327" + }, + "level": 1, + "name": "Einführungsveranstaltungen und Sprachkurse", + "type": "catalog", + "uid": "64ac0283-6b95-5c44-8686-06a48d217cda" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88260" + }, + "level": 1, + "name": "Kolloquien und Sozietäten", + "type": "catalog", + "uid": "75baf720-7fbb-5e36-b0c9-a2b3576ba356" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88942" + }, + "level": 2, + "name": "026 - Religions- und Kulturgeschichte", + "type": "catalog", + "uid": "040c2875-f336-5bbb-8cee-26188a96830e" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90554" + }, + "level": 2, + "name": "020 - Diskurse, Methoden, Ansätze in der RW", + "type": "catalog", + "uid": "b188b2e0-bcb1-5ef7-88dc-6cfdbf30c49a" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90671" + }, + "level": 2, + "name": "022 - Religion und Gesellschaft", + "type": "catalog", + "uid": "dd2c31e0-be4c-537b-acdc-1c764af02b99" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89222" + }, + "level": 3, + "name": "Studienschwerpunkt und Studienintegration (SSP/SI)", + "type": "catalog", + "uid": "6397ecb2-e2d9-5ceb-8ec9-72397ecc723a" + } + ], + "origin": { + "indexed": "2022-06-02T10:08:51.394Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Integrations-Seminar: Die Pest – eine Geißel Gottes?", + "organizers": [ + { + "familyName": "Rydryck", + "gender": "male", + "givenName": "Michael", + "honorificPrefix": "Dr.", + "identifiers": { + "LSF": "9477" + }, + "jobTitles": [ + "Fachbereich 6 - Evangelische Theologie - Wissenschaftliche Mitarbeiter*innen,Projektkoordination \"Master of Theological Studies\"", + "Fachbereich 6 - Evangelische Theologie - Referent*in,Studium und Lehre" + ], + "name": "Michael Rydryck", + "type": "person", + "uid": "eccfaf57-e3ce-5bdd-82d6-3c6e1c233dec" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "9d019d9e-d26e-52a0-bf3e-56e7950784af", + "identifiers": { + "LSF": "334591" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "88388" + }, + "level": 4, + "name": "GER Q-2: Qualifizierungsmodul Neuere deutsche Literatur I", + "type": "catalog", + "uid": "d16ac944-80c5-5817-94e8-856d40414ba8" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89533" + }, + "level": 4, + "name": "GER O-2: Neuere deutsche Literatur III", + "type": "catalog", + "uid": "0eb5dfe0-2560-51a9-9b1f-7f0dfff6faf5" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88593" + }, + "level": 4, + "name": "Basismodul Literaturwissenschaft (L1-D-FW 2)", + "type": "catalog", + "uid": "5506de10-f9dd-5036-b8b9-ed7d98339d2d" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88797" + }, + "level": 4, + "name": "Aufbau- und Qualifizierungsmodul Literatur (FD/FW 2)", + "type": "catalog", + "uid": "41e30a2d-4aff-5e5c-8c45-8a2ccdfed2f1" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88920" + }, + "level": 4, + "name": "Aufbau- und Qualifizierungsmodul Literaturwissenschaft Deutsch (L2-D-FW 4)", + "type": "catalog", + "uid": "145670d9-b9b0-5a0b-ab12-06d9af16170c" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90907" + }, + "level": 4, + "name": "Aufbaumodul Literaturwissenschaft (FW 3)", + "type": "catalog", + "uid": "d057506c-1fbc-5058-ae76-f0f42c0f0378" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88203" + }, + "level": 4, + "name": "Basismodul Literaturwissenschaft NdL: Einführung in die Literaturwissenschaft: Neuere deutsche Literatur (L3-D-FW 3)", + "type": "catalog", + "uid": "17776aa1-f112-5989-9724-f3bafb686b7f" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88871" + }, + "level": 4, + "name": "Einführung in die Literaturwissenschaft: Neuere deutsche Literatur (FW2)", + "type": "catalog", + "uid": "aa4def0b-0201-5e58-b884-a9d84bc045e2" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88343" + }, + "level": 4, + "name": "Aufbau- und Qualifizierungsmodul Literaturwissenschaft Deutsch (L5-D-FW 4)", + "type": "catalog", + "uid": "e6c3154c-1e99-5506-aa78-057e0fca663f" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90947" + }, + "level": 4, + "name": "Aufbaumodul Literaturwissenschaft (FW 3)", + "type": "catalog", + "uid": "2b7fefc5-c93b-54fe-b079-d61579cc1ce8" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:00.277Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Konstruktion der Wirklichkeit. Siegfried Kracauers Text-Mosaik", + "organizers": [ + { + "familyName": "Koch", + "gender": "male", + "givenName": "Maximilian", + "identifiers": { + "LSF": "25526" + }, + "jobTitles": [ + "Institut für deutsche Literatur und ihre Didaktik - Wissenschaftliche Mitarbeiter*innen,Poetikdozentur" + ], + "name": "Maximilian Koch", + "type": "person", + "uid": "9cc717a6-d96e-54f2-af48-d6e3f76678a4" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "7c1c016f-49f5-51b5-971b-9307fe1fed4f", + "identifiers": { + "LSF": "329884" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85788" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "035dad96-13f1-5c92-937d-02cd69be08a4" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:47.307Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Einführung in Text Mining mit R", + "organizers": [ + { + "familyName": "Heise", + "gender": "female", + "givenName": "Patricia", + "identifiers": { + "LSF": "24687" + }, + "name": "Patricia Heise", + "type": "person", + "uid": "2c4fef8c-9a92-5022-b623-7e36aed46350" + } + ], + "originalCategory": "Tutorium", + "categories": ["tutorial"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "8426219d-f746-54e9-90fb-46a07bb9f776", + "identifiers": { + "LSF": "335248" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "90462" + }, + "level": 2, + "name": "Informatik (B.Sc.) PO 2019", + "type": "catalog", + "uid": "508b8c71-2a3b-5c87-810a-9de3fb063d1a" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89351" + }, + "level": 2, + "name": "Informatik (B.Sc.) PO 2011", + "type": "catalog", + "uid": "5184091f-5342-57eb-9c75-81b586e7e70b" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89791" + }, + "level": 3, + "name": "Allgemeine Informatik/(vertieftes) Anwendungsfach", + "type": "catalog", + "uid": "8d4d64ba-7d8b-5c37-8cbe-7e026f98a2ff" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89838" + }, + "level": 3, + "name": "Spezialisierung Algorithmen und Komplexität", + "type": "catalog", + "uid": "63dd5049-44ef-53e8-8bd9-e96de4e630c4" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89845" + }, + "level": 3, + "name": "Spezialisierung Data Science", + "type": "catalog", + "uid": "423bd6b9-9fa5-5228-9cad-fe74eac27948" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89301" + }, + "level": 3, + "name": "Spezialisierung Educational Technologies", + "type": "catalog", + "uid": "02dfb8ef-8d9f-5410-b4e1-c1b2bad39fa4" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90313" + }, + "level": 3, + "name": "Spezialisierung Künstliche Intelligenz", + "type": "catalog", + "uid": "b4e91ea1-ac29-5861-8e0d-95963f9e2a6b" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88502" + }, + "level": 3, + "name": "Angewandte Informatik", + "type": "catalog", + "uid": "39bbc62e-f4bb-5622-ac4b-f8192279bdf8" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88137" + }, + "level": 3, + "name": "Vertiefungsbereich Informatik", + "type": "catalog", + "uid": "c45fa750-96dd-5f04-9f26-b3ba9d8f971f" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88003" + }, + "level": 3, + "name": "Vertiefungsbereich Informatik", + "type": "catalog", + "uid": "f3fbe179-d91d-55e0-9e99-cafb912657e2" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:05.118Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Praktikum Deep Learning for Text Imaging", + "organizers": [ + { + "familyName": "Mehler", + "gender": "male", + "givenName": "Alexander", + "honorificPrefix": "Prof. Dr.", + "identifiers": { + "LSF": "8769" + }, + "jobTitles": [ + "Fachbereich 12 - Informatik und Mathematik - Gremien,Mitglied des Fachbereichsrats", + "Institut für Informatik (IfI) - Geschäftsführende*r Direktor*in", + "Texttechnologie - Professor*innen" + ], + "name": "Alexander Mehler", + "type": "person", + "uid": "e9d4f7b3-3e5a-539a-8030-17e24f339a62" + }, + { + "familyName": "Abrami", + "gender": "male", + "givenName": "Giuseppe", + "identifiers": { + "LSF": "17641" + }, + "jobTitles": ["Texttechnologie - Wissenschaftliche Mitarbeiter*innen"], + "name": "Giuseppe Abrami", + "type": "person", + "uid": "1dbd67c3-881e-5ba3-ad1e-0f2ef1e0befd" + } + ], + "originalCategory": "Praktikum", + "categories": ["practicum"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "5ce0a8c5-5113-5a21-8ff3-5bbde58749e8", + "identifiers": { + "LSF": "328929" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "86639" + }, + "level": 2, + "name": "Seminare", + "type": "catalog", + "uid": "f9e0d432-929b-5601-b60b-af2dd56fa166" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87651" + }, + "level": 4, + "name": "Mittelalterliche Geschichte (GE-BA-HF-VM2)", + "type": "catalog", + "uid": "8794b769-7063-5b23-9753-74bfcf8586ee" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87625" + }, + "level": 4, + "name": "Politikgeschichte (GE-BA-HF-PM1)", + "type": "catalog", + "uid": "9ae8da33-121e-595c-8410-fe36d394887c" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87145" + }, + "level": 4, + "name": "Sozial- und Wirtschaftsgeschichte (GE-BA-HF-PM3)", + "type": "catalog", + "uid": "b40a8216-cc81-5b17-b528-6c2448286ab0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84956" + }, + "level": 3, + "name": "GE-BA-INF-PB3c", + "type": "catalog", + "uid": "19353c04-bea0-50cc-ae21-99fbc0be61d1" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87459" + }, + "level": 3, + "name": "GE-BA-INF-PB4-PM1", + "type": "catalog", + "uid": "21f48eb2-efe3-5e75-8331-fbe0030ea5bb" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84843" + }, + "level": 3, + "name": "GE-BA-INF-PB4-PM3", + "type": "catalog", + "uid": "6d7baaed-b4c0-5062-a3e0-15de7b994387" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87253" + }, + "level": 4, + "name": "Politikgeschichte (GE-BA-NF-PM1)", + "type": "catalog", + "uid": "7b3c82cd-dadf-5ad3-9452-7c3dbe33ea3b" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87712" + }, + "level": 4, + "name": "Sozial- und Wirtschaftsgeschichte (GE-BA-NF-PM3)", + "type": "catalog", + "uid": "9d98aa28-ee9f-50aa-98e4-df0327676fa3" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85402" + }, + "level": 4, + "name": "Mittelalterliche Geschichte (GE-BA-HF-VM2)", + "type": "catalog", + "uid": "f51f5717-e104-5269-8bec-f57baf376d0f" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86658" + }, + "level": 4, + "name": "Politikgeschichte (GE-BA-HF-PM1)", + "type": "catalog", + "uid": "5c841793-1898-5c66-a07b-0ce597e05c9c" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84637" + }, + "level": 4, + "name": "Sozial- und Wirtschaftsgeschichte (GE-BA-HF-PM3)", + "type": "catalog", + "uid": "3de7b4ec-207e-5dd3-94fe-7aa807d82959" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87606" + }, + "level": 4, + "name": "Mittelalterliche Geschichte (GE-BA-NF-VM2)", + "type": "catalog", + "uid": "206de9e8-d2db-563d-a14b-65ffb12d9e36" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84904" + }, + "level": 4, + "name": "Politikgeschichte (GE-BA-NF-PM1)", + "type": "catalog", + "uid": "075189b2-c7e9-5cfe-8ec8-c563d63e14e1" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85988" + }, + "level": 4, + "name": "Sozial- und Wirtschaftsgeschichte (GE-BA-NF-PM3)", + "type": "catalog", + "uid": "f31bba5d-9d86-5d03-9ee8-b38ab96406cb" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85391" + }, + "level": 4, + "name": "Vertiefungsmodul Mittelalterliche Geschichte (Modul 6b)", + "type": "catalog", + "uid": "72b56a47-b93f-5f87-bd62-a564e9dd86de" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86627" + }, + "level": 4, + "name": "Epochenübergreifendes Vertiefungsmodul Geschichte der Herrschaft (Modul 7a)", + "type": "catalog", + "uid": "6e7d0ff4-736a-5f42-afba-2846c2b7a909" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84486" + }, + "level": 4, + "name": "Epochenübergreifendes Vertiefungsmodul Sozial- und Wirtschaftsgeschichte (Modul 7c)", + "type": "catalog", + "uid": "3c18bc5b-2fd3-5692-87c2-d3c44f170c49" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84805" + }, + "level": 4, + "name": "Vertiefungsmodul Mittelalterliche Geschichte (Modul 6b)", + "type": "catalog", + "uid": "6167ec5f-45d5-5b3e-b0f4-7f0686406f12" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84570" + }, + "level": 4, + "name": "Vertiefungsmodul Politikgeschichte (Modul 7a)", + "type": "catalog", + "uid": "53385051-5fab-5194-a8a1-b8a4bcc7a0e2" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87624" + }, + "level": 4, + "name": "Vertiefungsmodul Sozial- und Wirtschaftsgeschichte (Modul 7c)", + "type": "catalog", + "uid": "4978948b-af2e-575e-ba7d-71eea09ce32f" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:36.932Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Die justinianische Pest (6.-8. Jh.)", + "organizers": [ + { + "familyName": "Brandes", + "gender": "male", + "givenName": "Wolfram", + "honorificPrefix": "Apl. Prof. Dr.", + "identifiers": { + "LSF": "6323" + }, + "jobTitles": [ + "Mittelalterliche Geschichte - Professor*innen", + "Historisches Seminar - Professor*innen" + ], + "name": "Wolfram Brandes", + "type": "person", + "uid": "af3403e7-9a35-509d-8ede-2b2b1a0981ba" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "04c92194-bc00-50a0-8195-581685c87e39", + "workLocations": [ + { + "email": "vest@em.uni-frankfurt.de", + "name": "Dienstadresse", + "telephone": "069/798-32426", + "type": "contact point", + "uid": "294e82c6-15cf-5c7b-a80c-2a95e8706bc6" + } + ], + "gender": "male", + "identifiers": { + "LSF": "23718" + }, + "familyName": "Vest", + "givenName": "Bernd Andreas", + "origin": { + "indexed": "2022-06-02T10:07:02.663Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "jobTitles": [ + "Mittelalterliche Geschichte - Wissenschaftliche Mitarbeiter*innen", + "Historisches Seminar - Wissenschaftliche Mitarbeiter*innen" + ], + "name": "Bernd Andreas Vest", + "affiliations": [ + { + "name": "Mittelalterliche Geschichte", + "type": "organization", + "uid": "12cdc6d0-054e-5182-a6ea-f3e9b2cf917a" + }, + { + "name": "Historisches Seminar", + "type": "organization", + "uid": "5a571088-56d8-54bb-9cc8-d0924e7a630f" + } + ], + "honorificPrefix": "Dr.", + "type": "person" + }, + { + "geo": { + "point": { + "coordinates": [8.66755, 50.12897], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.667227178812025, 50.12897668283372], + [8.667924553155897, 50.12907985038899], + [8.667962104082106, 50.12895948821952], + [8.667264729738235, 50.12886147880084], + [8.667227178812025, 50.12897668283372] + ] + ], + "type": "Polygon" + } + }, + "uid": "39df5465-f802-50e8-876c-83f64e0140ea", + "alternateNames": ["EG, West", "Architekten Althauser + König"], + "identifiers": { + "LSF": "7172" + }, + "origin": { + "indexed": "2022-06-02T10:05:38.250Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "EG, West", + "categories": ["office"], + "type": "room", + "inPlace": { + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Theodor-W.-Adorno-Platz" + }, + "alternateNames": ["Cont. Lüb"], + "categories": ["education"], + "geo": { + "point": { + "coordinates": [8.66755, 50.12897], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.667227178812025, 50.12897668283372], + [8.667924553155897, 50.12907985038899], + [8.667962104082106, 50.12895948821952], + [8.667264729738235, 50.12886147880084], + [8.667227178812025, 50.12897668283372] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "10042" + }, + "name": "Container ehem. Lübecker Straße", + "type": "building", + "uid": "f8a5ad51-a776-5cb1-9d34-a7f7214824f8" + } + }, + { + "uid": "34c0e0cb-217c-5fd3-982d-b3de49fd5179", + "identifiers": { + "LSF": "335690" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "90241" + }, + "level": 2, + "name": "Proseminare", + "type": "catalog", + "uid": "22790231-5d9c-5f20-af4c-4fc5c4e39fd7" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89972" + }, + "level": 4, + "name": "Neuere und Neueste Geschichte (GE-BA-HF-BM3)", + "type": "catalog", + "uid": "0e21afd5-e3ec-58b4-b8e2-f8ecd2a0282d" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90262" + }, + "level": 4, + "name": "Neuere und Neueste Geschichte (GE-BA-NF-BM3)", + "type": "catalog", + "uid": "441ceb41-0ccd-5237-a21b-d0486d114d62" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88685" + }, + "level": 4, + "name": "Geschichte (GPHW-BA-NF-BM1)", + "type": "catalog", + "uid": "980fd58b-63b7-5e9e-b3c0-f33690eb5c15" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88880" + }, + "level": 4, + "name": "Neuere Geschichte (GE-BA-HF-BM3)", + "type": "catalog", + "uid": "92c64313-c6ed-5877-aa50-e34405516edf" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90658" + }, + "level": 4, + "name": "Neuere Geschichte (GE-BA-NF-BM3)", + "type": "catalog", + "uid": "33827682-b1fb-5146-89c8-13fa5620b377" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88336" + }, + "level": 4, + "name": "Geschichte (GPHW-BA-NF-BM1)", + "type": "catalog", + "uid": "100db308-b947-5538-8ca5-c595c7853a17" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88643" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (Modul 1)", + "type": "catalog", + "uid": "4c06f3a0-49bb-5e33-b9b1-1a05f67500b2" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89419" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (M3)", + "type": "catalog", + "uid": "aa47831b-1eeb-57d9-b0b3-e8f58bdf311f" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88113" + }, + "level": 4, + "name": "Einführung in die Geschichtswissenschaft (I) (Modul 1)", + "type": "catalog", + "uid": "315322c5-08e9-5d68-a7af-0c2bf160b5a4" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "90608" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (Modul 3)", + "type": "catalog", + "uid": "08806c8f-4c87-591e-8bc4-553d438c46b5" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88812" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (M3)", + "type": "catalog", + "uid": "6a510d2a-3bf5-5e64-ac93-547263d21919" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88902" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (Modul 1)", + "type": "catalog", + "uid": "2a2d3c2f-9942-581a-805a-cbd128aff481" + } + ], + "origin": { + "indexed": "2022-06-02T10:08:53.289Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Einführung in das Studium der Neueren Geschichte: Demokratisierung und Entnazifizierung der (west-) deutschen Gesellschaft nach 1945", + "organizers": [ + { + "familyName": "Favre", + "gender": "female", + "givenName": "Muriel", + "honorificPrefix": "Dr.", + "identifiers": { + "LSF": "16152" + }, + "jobTitles": ["Historisches Seminar - Wissenschaftliche Mitarbeiter*innen"], + "name": "Muriel Favre", + "type": "person", + "uid": "b9d773df-8ce6-5fb4-ab9b-86f22a86dea6" + } + ], + "originalCategory": "Proseminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "cfefb9aa-a4f5-5ccf-a54e-c40f6277a6e1", + "identifiers": { + "LSF": "330843" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "91040" + }, + "level": 2, + "name": "Master", + "type": "catalog", + "uid": "7080758a-431a-54d1-8dbe-09c47c13bd88" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "91013" + }, + "level": 3, + "name": "Sprachen und Kulturen Südostasiens", + "type": "catalog", + "uid": "4a25ec03-978a-5601-b97d-1a68e9c610c6" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "91027" + }, + "level": 3, + "name": "Language Courses for Advanced Learners (MEAS 1c)", + "type": "catalog", + "uid": "85f322c8-d3f0-5ac8-b660-a7407e66fcd1" + } + ], + "origin": { + "indexed": "2022-06-02T10:08:58.192Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Menulis Esai - Essay Writing and Text Analysis [SEAS 6.2 / MA-SOA 2.1]", + "organizers": [ + { + "familyName": "Holzwarth", + "gender": "female", + "givenName": "Hedy Chandra", + "identifiers": { + "LSF": "7000" + }, + "jobTitles": ["Südostasienwissenschaften - Lehrbeauftragte"], + "name": "Hedy Chandra Holzwarth", + "type": "person", + "uid": "90ffdf9a-d5ce-5e7a-8617-7efe730346e5" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "5b51f95d-79b2-5003-8249-352a242b7c97", + "identifiers": { + "LSF": "335613" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89616" + }, + "level": 3, + "name": "Mediale Kontexte", + "type": "catalog", + "uid": "9622df4e-0426-5f75-9649-6f2b559dec03" + } + ], + "origin": { + "indexed": "2022-06-02T10:08:57.275Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Glucks Opern in Partitur und auf der Bühne. Transformation von Text zu audiovisuellem Ereignis", + "organizers": [ + { + "familyName": "Philippi", + "gender": "female", + "givenName": "Daniela", + "honorificPrefix": "Prof'in. Dr.", + "identifiers": { + "LSF": "13459" + }, + "jobTitles": ["Institut für Musikwissenschaft - Professor*innen"], + "name": "Daniela Philippi", + "type": "person", + "uid": "592c663f-b56a-5a1f-b046-62d992e0beb1" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "uid": "6f42557a-75dd-5aff-9cb1-14f451e8ced1", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "89659" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "8e33ae61-dfc7-5b09-8d0a-05429d8859b0" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89043" + }, + "level": 1, + "name": "Germanistik / Deutsch", + "type": "catalog", + "uid": "5f8f4109-a815-5ea7-a8e4-65f45185d65a", + "description": "Anmeldemodalitäten zu den Lehrveranstaltungen der Lehreinheit Germanistik finden Sie dort, wo eine Anmeldung erforderlich ist, bei den einzelnen Lehrveranstaltungen. Ansonsten erscheinen Sie bitte am ersten Lehrveranstaltungstermin." + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "89303" + }, + "level": 2, + "name": "Master Deutsche Literatur", + "type": "catalog", + "uid": "9cd91bbe-335b-5e98-a366-72fe4620a827", + "description": "Modulbeauftragte/-koordinatoren: \n\n\n\nGER MA.1: Prof. Dr. Franziska Wenzel\nGER MA-2: Prof. Dr. Robert Seidel\nGER MA-3: Prof. Dr. Roland Borgards\nGER MA-4: Prof. Dr. Susanne Komfort-Hein\nGER MA-5: Prof. Dr. Heinz Drügh\nGER MA-6: Prof. Dr. Susanne Komfort-Hein\nGER MA-7: Prof. Dr. Robert Seidel\nGER MA-8: Apl.-Prof. Dr. Bernd Zegowitz\nGER MA-9: Prof. Dr. Susanne Komfort-Hein\n\n \n\n \nGER MA-1: Dt. Literatur des Mittelalters\nGER MA-2: Dt. Literatur von der frühen Neuzeit bis zum 19. Jhdt.\nGER MA-3: Dt. Literatur vom 19. Jhdt. bis zur Gegenwart\nGER MA-4: Vertiefung Literaturgeschichte\nGER MA-5: Text- und Medientheorie, Poetologie und Ästhetik\nGER MA-6: Literatur- und Kulturtheorie\n \n\n\n\n\n \n\n\nFür die MASTER-Module gibt es dort, wo \"Platzvergabe\" steht, eine Zentrale Online-Anmeldung. Die Anmeldetermine sind identisch mit denen für den BACHELOR Germanistik.\n\n\n\nVerfahren  für die reguläre Anmeldephase:\n\n\nSie können nur an einer Gruppe teilnehmen, haben jedoch die Möglichkeit, drei Prioritäten zu setzen.\nDie Vergabe der Plätze erfolgt erst nach Ende der Anmeldefrist über eine elektronische Zu- bzw. Absage.\n \n\nSie können sich hier in der Detailansicht direkt über den Link  'jetzt belegen/abmelden' anmelden, übersichtlicher ist es aber, wenn Sie im Vorlesungsverzeichnis rechts den Link 'belegen/anmelden' anklicken.\nDie 'Belegungsinformationenen' zeigen Ihnen, wieviel Personen zur jeweiligen Gruppe angemeldet sind.\n\nEine Zu- bzw. Absage ersehen Sie im LSF unter \"Meine Funktionen\", und darin bitte auf \"Meine Veranstaltungen\" gehen.\n\n\n\nBitte nutzen Sie die\nAbmelden-Funktion\n, wenn Sie sich nach erfolgreicher Anmeldung dazu entschließen, doch nicht an der Veranstaltung teilzunehmen.\n\n\n\n\n\nTechnische Hilfestellung erhalten Sie unter\n: qis-admin@rz.uni-frankfurt.de\n\n\n\n\n\n\n\nStudienrelevante Fragen beantworten Ihnen die Fachberater_innen: \n\nhttp://www.uni-frankfurt.de/42788822/Studienberatung, sowie die Modulbeauftragten.\n\n\n\n\n\n\n\nWer entweder im Rahmen der Online-Anmeldungen keinen Platz im Seminar erhält oder zu spät von der Online-Anmeldung erfahren hat, wende sich bitte an die jeweiligen Modulbeauftragten (s.o.)." + } + ], + "level": 3, + "academicTerm": { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + }, + "identifiers": { + "LSF": "89922" + }, + "origin": { + "indexed": "2022-06-02T10:08:40.974Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "GER MA-5: Text- und Medientheorie, Poetologie und Ästhetik", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "89303" + }, + "level": 2, + "name": "Master Deutsche Literatur", + "type": "catalog", + "uid": "9cd91bbe-335b-5e98-a366-72fe4620a827", + "description": "Modulbeauftragte/-koordinatoren: \n\n\n\nGER MA.1: Prof. Dr. Franziska Wenzel\nGER MA-2: Prof. Dr. Robert Seidel\nGER MA-3: Prof. Dr. Roland Borgards\nGER MA-4: Prof. Dr. Susanne Komfort-Hein\nGER MA-5: Prof. Dr. Heinz Drügh\nGER MA-6: Prof. Dr. Susanne Komfort-Hein\nGER MA-7: Prof. Dr. Robert Seidel\nGER MA-8: Apl.-Prof. Dr. Bernd Zegowitz\nGER MA-9: Prof. Dr. Susanne Komfort-Hein\n\n \n\n \nGER MA-1: Dt. Literatur des Mittelalters\nGER MA-2: Dt. Literatur von der frühen Neuzeit bis zum 19. Jhdt.\nGER MA-3: Dt. Literatur vom 19. Jhdt. bis zur Gegenwart\nGER MA-4: Vertiefung Literaturgeschichte\nGER MA-5: Text- und Medientheorie, Poetologie und Ästhetik\nGER MA-6: Literatur- und Kulturtheorie\n \n\n\n\n\n \n\n\nFür die MASTER-Module gibt es dort, wo \"Platzvergabe\" steht, eine Zentrale Online-Anmeldung. Die Anmeldetermine sind identisch mit denen für den BACHELOR Germanistik.\n\n\n\nVerfahren  für die reguläre Anmeldephase:\n\n\nSie können nur an einer Gruppe teilnehmen, haben jedoch die Möglichkeit, drei Prioritäten zu setzen.\nDie Vergabe der Plätze erfolgt erst nach Ende der Anmeldefrist über eine elektronische Zu- bzw. Absage.\n \n\nSie können sich hier in der Detailansicht direkt über den Link  'jetzt belegen/abmelden' anmelden, übersichtlicher ist es aber, wenn Sie im Vorlesungsverzeichnis rechts den Link 'belegen/anmelden' anklicken.\nDie 'Belegungsinformationenen' zeigen Ihnen, wieviel Personen zur jeweiligen Gruppe angemeldet sind.\n\nEine Zu- bzw. Absage ersehen Sie im LSF unter \"Meine Funktionen\", und darin bitte auf \"Meine Veranstaltungen\" gehen.\n\n\n\nBitte nutzen Sie die\nAbmelden-Funktion\n, wenn Sie sich nach erfolgreicher Anmeldung dazu entschließen, doch nicht an der Veranstaltung teilzunehmen.\n\n\n\n\n\nTechnische Hilfestellung erhalten Sie unter\n: qis-admin@rz.uni-frankfurt.de\n\n\n\n\n\n\n\nStudienrelevante Fragen beantworten Ihnen die Fachberater_innen: \n\nhttp://www.uni-frankfurt.de/42788822/Studienberatung, sowie die Modulbeauftragten.\n\n\n\n\n\n\n\nWer entweder im Rahmen der Online-Anmeldungen keinen Platz im Seminar erhält oder zu spät von der Online-Anmeldung erfahren hat, wende sich bitte an die jeweiligen Modulbeauftragten (s.o.)." + } + }, + { + "uid": "a31f1a31-36e5-52ba-8db8-d559167a7746", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85788" + }, + "level": 0, + "name": "FB 10 - Neuere Philologien", + "type": "catalog", + "uid": "035dad96-13f1-5c92-937d-02cd69be08a4" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87432" + }, + "level": 1, + "name": "Germanistik / Deutsch", + "type": "catalog", + "uid": "0430cb1a-bb71-59f7-b54f-3e8290cbf5e2", + "description": "Anmeldemodalitäten zu den Lehrveranstaltungen der Lehreinheit Germanistik finden Sie dort, wo eine Anmeldung erforderlich ist, bei den einzelnen Lehrveranstaltungen. Ansonsten erscheinen Sie bitte am ersten Lehrveranstaltungstermin." + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87419" + }, + "level": 2, + "name": "Master Deutsche Literatur", + "type": "catalog", + "uid": "95bdac39-8480-5b15-85ed-bb83ba221d48", + "description": "Modulbeauftragte/-koordinatoren: \n\n\n\nGER MA.1: Prof. Dr. Franziska Wenzel\nGER MA-2: Prof. Dr. Robert Seidel\nGER MA-3: Prof. Dr. Roland Borgards\nGER MA-4: Prof. Dr. Susanne Komfort-Hein\nGER MA-5: Prof. Dr. Heinz Drügh\nGER MA-6: Prof. Dr. Susanne Komfort-Hein\nGER MA-7: Prof. Dr. Robert Seidel\nGER MA-8: Apl.-Prof. Dr. Bernd Zegowitz\nGER MA-9: Prof. Dr. Susanne Komfort-Hein\n\n \n\n \nGER MA-1: Dt. Literatur des Mittelalters\nGER MA-2: Dt. Literatur von der frühen Neuzeit bis zum 19. Jhdt.\nGER MA-3: Dt. Literatur vom 19. Jhdt. bis zur Gegenwart\nGER MA-4: Vertiefung Literaturgeschichte\nGER MA-5: Text- und Medientheorie, Poetologie und Ästhetik\nGER MA-6: Literatur- und Kulturtheorie\n \n\n\n\n\n \n\n\nFür die MASTER-Module gibt es dort, wo \"Platzvergabe\" steht, eine Zentrale Online Anmeldung. Die Anmeldetermine sind identisch mit denen für den BACHELOR Germanistik.\n\n\n\nVerfahren  für die reguläre Anmeldephase:\n\n\nSie können nur an einer Gruppe teilnehmen, haben jedoch die Möglichkeit, drei Prioritäten zu setzen.\nDie Vergabe der Plätze erfolgt erst nach Ende der Anmeldefrist über eine elektronische Zu- bzw. Absage.\n \n\nSie können sich hier in der Detailansicht direkt über den Link  'jetzt belegen/abmelden' anmelden, übersichtlicher ist es aber, wenn Sie im Vorlesungsverzeichnis rechts den Link 'belegen/anmelden' anklicken.\nDie 'Belegungsinformationenen' zeigen Ihnen, wieviel Personen zur jeweiligen Gruppe angemeldet sind.\n\nEine Zu- bzw. Absage ersehen Sie im LSF unter \"Meine Funktionen\", und darin bitte auf \"Meine Veranstaltungen\" gehen.\n\n\n\nBitte nutzen Sie die\nAbmelden-Funktion\n, wenn Sie sich nach erfolgreicher Anmeldung dazu entschließen, doch nicht an der Veranstaltung teilzunehmen.\n\n\n\n\n\nTechnische Hilfestellung erhalten Sie unter\n: qis-admin@rz.uni-frankfurt.de\n\n\n\n\n\n\n\nStudienrelevante Fragen beantworten Ihnen die Fachberater_innen: \n\nhttp://www.uni-frankfurt.de/42788822/Studienberatung, sowie die Modulbeauftragten.\n\n\n\n\n\n\n\nWer weder im Rahmen der online-Anmeldungen keinen Platz im Seminar erhält oder zu spät von der online-Anmeldung erfahren hat, wende sich bitte an die jeweiligen Modulbeauftragten (s.o.)." + } + ], + "level": 3, + "academicTerm": { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + }, + "identifiers": { + "LSF": "85007" + }, + "origin": { + "indexed": "2022-06-02T10:09:25.683Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "GER MA-5: Text- und Medientheorie, Poetologie und Ästhetik", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "87419" + }, + "level": 2, + "name": "Master Deutsche Literatur", + "type": "catalog", + "uid": "95bdac39-8480-5b15-85ed-bb83ba221d48", + "description": "Modulbeauftragte/-koordinatoren: \n\n\n\nGER MA.1: Prof. Dr. Franziska Wenzel\nGER MA-2: Prof. Dr. Robert Seidel\nGER MA-3: Prof. Dr. Roland Borgards\nGER MA-4: Prof. Dr. Susanne Komfort-Hein\nGER MA-5: Prof. Dr. Heinz Drügh\nGER MA-6: Prof. Dr. Susanne Komfort-Hein\nGER MA-7: Prof. Dr. Robert Seidel\nGER MA-8: Apl.-Prof. Dr. Bernd Zegowitz\nGER MA-9: Prof. Dr. Susanne Komfort-Hein\n\n \n\n \nGER MA-1: Dt. Literatur des Mittelalters\nGER MA-2: Dt. Literatur von der frühen Neuzeit bis zum 19. Jhdt.\nGER MA-3: Dt. Literatur vom 19. Jhdt. bis zur Gegenwart\nGER MA-4: Vertiefung Literaturgeschichte\nGER MA-5: Text- und Medientheorie, Poetologie und Ästhetik\nGER MA-6: Literatur- und Kulturtheorie\n \n\n\n\n\n \n\n\nFür die MASTER-Module gibt es dort, wo \"Platzvergabe\" steht, eine Zentrale Online Anmeldung. Die Anmeldetermine sind identisch mit denen für den BACHELOR Germanistik.\n\n\n\nVerfahren  für die reguläre Anmeldephase:\n\n\nSie können nur an einer Gruppe teilnehmen, haben jedoch die Möglichkeit, drei Prioritäten zu setzen.\nDie Vergabe der Plätze erfolgt erst nach Ende der Anmeldefrist über eine elektronische Zu- bzw. Absage.\n \n\nSie können sich hier in der Detailansicht direkt über den Link  'jetzt belegen/abmelden' anmelden, übersichtlicher ist es aber, wenn Sie im Vorlesungsverzeichnis rechts den Link 'belegen/anmelden' anklicken.\nDie 'Belegungsinformationenen' zeigen Ihnen, wieviel Personen zur jeweiligen Gruppe angemeldet sind.\n\nEine Zu- bzw. Absage ersehen Sie im LSF unter \"Meine Funktionen\", und darin bitte auf \"Meine Veranstaltungen\" gehen.\n\n\n\nBitte nutzen Sie die\nAbmelden-Funktion\n, wenn Sie sich nach erfolgreicher Anmeldung dazu entschließen, doch nicht an der Veranstaltung teilzunehmen.\n\n\n\n\n\nTechnische Hilfestellung erhalten Sie unter\n: qis-admin@rz.uni-frankfurt.de\n\n\n\n\n\n\n\nStudienrelevante Fragen beantworten Ihnen die Fachberater_innen: \n\nhttp://www.uni-frankfurt.de/42788822/Studienberatung, sowie die Modulbeauftragten.\n\n\n\n\n\n\n\nWer weder im Rahmen der online-Anmeldungen keinen Platz im Seminar erhält oder zu spät von der online-Anmeldung erfahren hat, wende sich bitte an die jeweiligen Modulbeauftragten (s.o.)." + } + }, + { + "uid": "06b58350-9bee-5613-9d10-cfc8d427c319", + "identifiers": { + "LSF": "337735" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "88907" + }, + "level": 3, + "name": "Geländeveranstaltungen (BP/BWp)", + "type": "catalog", + "uid": "023b2203-77b4-5334-aa57-61cc78b2881f" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:03.891Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Geländeübung West Eifel, 3-tägig; [PO 2020: BP 7; PO 2012: BP11]", + "organizers": [ + { + "familyName": "Woodland", + "gender": "male", + "givenName": "Alan B.", + "honorificPrefix": "Univ.-Prof. Dr.", + "identifiers": { + "LSF": "1551" + }, + "jobTitles": ["Mineralogie - Professor*innen,Physikalisch-Chemische Mineralogie"], + "name": "Alan B. Woodland", + "type": "person", + "uid": "aeac5f94-0689-54c5-b197-89cd30d40669" + }, + { + "familyName": "Klimm", + "gender": "male", + "givenName": "Kevin", + "honorificPrefix": "Dr.", + "identifiers": { + "LSF": "1462" + }, + "jobTitles": ["Mineralogie - Wissenschaftliche Mitarbeiter*innen"], + "name": "Kevin Klimm", + "type": "person", + "uid": "d93d79e4-f6f2-5217-8a20-1e0fb0170b79" + } + ], + "originalCategory": "Übung", + "categories": ["exercise"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + }, + { + "geo": { + "point": { + "coordinates": [8.66703, 50.12669], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.666863068938254, 50.12653756509903], + [8.666904643177984, 50.12642579430042], + [8.666637763381004, 50.12638452501645], + [8.666500970721243, 50.12675508752042], + [8.666585460305214, 50.12676970361605], + [8.666542544960974, 50.12688147361155], + [8.666939511895178, 50.12694337688137], + [8.66690196096897, 50.12702505468434], + [8.666420504450796, 50.12695197455139], + [8.666330650448797, 50.12718669034666], + [8.667347207665443, 50.12734488642377], + [8.667437061667442, 50.127108451876154], + [8.66697572171688, 50.127037951166784], + [8.667009249329567, 50.126953694085216], + [8.667394146323204, 50.127011298432535], + [8.667437396943567, 50.12689179082878], + [8.667529933154581, 50.126905976998785], + [8.667665049433708, 50.12653928464775], + [8.667372688651085, 50.12649543613634], + [8.667331114411354, 50.12660720677238], + [8.667101785540583, 50.12657367560897], + [8.666863068938254, 50.12653756509903] + ] + ], + "type": "Polygon" + } + }, + "uid": "68f40f0f-795e-597d-a426-95c53c8fee6b", + "alternateNames": ["xRasenW"], + "identifiers": { + "LSF": "5246" + }, + "origin": { + "indexed": "2022-06-02T10:05:38.394Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "xRasenfläche Brunnen West", + "categories": ["education"], + "type": "room", + "inPlace": { + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Nina-Rubinstein-Weg 1" + }, + "alternateNames": ["Cas", "Casino"], + "categories": ["education"], + "geo": { + "point": { + "coordinates": [8.66703, 50.12669], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.666863068938254, 50.12653756509903], + [8.666904643177984, 50.12642579430042], + [8.666637763381004, 50.12638452501645], + [8.666500970721243, 50.12675508752042], + [8.666585460305214, 50.12676970361605], + [8.666542544960974, 50.12688147361155], + [8.666939511895178, 50.12694337688137], + [8.66690196096897, 50.12702505468434], + [8.666420504450796, 50.12695197455139], + [8.666330650448797, 50.12718669034666], + [8.667347207665443, 50.12734488642377], + [8.667437061667442, 50.127108451876154], + [8.66697572171688, 50.127037951166784], + [8.667009249329567, 50.126953694085216], + [8.667394146323204, 50.127011298432535], + [8.667437396943567, 50.12689179082878], + [8.667529933154581, 50.126905976998785], + [8.667665049433708, 50.12653928464775], + [8.667372688651085, 50.12649543613634], + [8.667331114411354, 50.12660720677238], + [8.667101785540583, 50.12657367560897], + [8.666863068938254, 50.12653756509903] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "2003" + }, + "name": "Casino", + "type": "building", + "uid": "5074a760-1bcd-51e4-bf3c-115aa343add7" + } + }, + { + "uid": "1c226dd9-25c1-560f-a3e8-295282c03dcf", + "identifiers": { + "LSF": "329389" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "86829" + }, + "level": 2, + "name": "Globalisierung und internationale Politik (PT-MA-4)", + "type": "catalog", + "uid": "5e645364-2d55-5e2f-a4ea-ce86315bf424" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "84949" + }, + "level": 2, + "name": "Weltordnung und Zivilisierung (IS-MA-2)", + "type": "catalog", + "uid": "0dc2c4df-43c5-5063-bf96-f00a7e4a3265" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86084" + }, + "level": 2, + "name": "Theorie und politische Philosophie globaler Vergesellschaftung (IS-MA-6)", + "type": "catalog", + "uid": "1d261724-9f8f-5a15-9d00-e4f4291fe4e8" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:30.946Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "On the Concept of Iran and the Iranian Cultural Sphere: Iran in West-Asia (TUDa)", + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "677ee9e6-fc43-54a7-8c59-ca840f2414b7", + "identifiers": { + "LSF": "333164" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85800" + }, + "level": 2, + "name": "Proseminare", + "type": "catalog", + "uid": "2c7c0416-6e13-501a-81db-e5229110ab40" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85027" + }, + "level": 4, + "name": "Neuere und Neueste Geschichte (GE-BA-HF-BM3)", + "type": "catalog", + "uid": "13fca220-4306-5e70-a2ab-301cd0386844" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85816" + }, + "level": 4, + "name": "Neuere und Neueste Geschichte (GE-BA-NF-BM3)", + "type": "catalog", + "uid": "4ebccec0-2138-521a-a9c0-dd42737e4953" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87312" + }, + "level": 4, + "name": "Geschichte (GPHW-BA-NF-BM1)", + "type": "catalog", + "uid": "523975fa-d788-5d1d-9607-d25b4fac2c92" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86872" + }, + "level": 4, + "name": "Neuere Geschichte (GE-BA-HF-BM3)", + "type": "catalog", + "uid": "56cc9966-dbed-5ff2-8489-372443c89ef5" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85931" + }, + "level": 4, + "name": "Neuere Geschichte (GE-BA-NF-BM3)", + "type": "catalog", + "uid": "49022d67-fbbb-5ef5-9e9a-434ac27e137a" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87238" + }, + "level": 4, + "name": "Geschichte (GPHW-BA-NF-BM1)", + "type": "catalog", + "uid": "caeb31a0-8b06-5cd2-9246-487db38b268e" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86963" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (M3)", + "type": "catalog", + "uid": "9ab7bfb4-eaa8-5b08-b1b2-deb847fd6b91" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "87384" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (Modul 1)", + "type": "catalog", + "uid": "6354d74c-9774-5620-b8e4-e59062e66a80" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85116" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (Modul 3)", + "type": "catalog", + "uid": "6c117939-d8c1-5af3-9c8e-32c7b650e89c" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86661" + }, + "level": 4, + "name": "Einführung in die Geschichtswissenschaft (I) (Modul 1)", + "type": "catalog", + "uid": "2316bd27-4c1c-5ed1-af58-901da2dfa0ba" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "86864" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (M3)", + "type": "catalog", + "uid": "0c0620f0-eec5-5f22-961f-d15508d8d388" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "85565" + }, + "level": 4, + "name": "Einführung in die Neue Geschichte (Modul 1)", + "type": "catalog", + "uid": "6d300e03-829e-54b0-b3eb-b94fd20906ca" + } + ], + "origin": { + "indexed": "2022-06-02T10:09:36.818Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Einführung in das Studium der neueren Geschichte: Kriegsende und unmittelbare Nachkriegszeit. (West-)Deutschland nach 1945", + "organizers": [ + { + "familyName": "Favre", + "gender": "female", + "givenName": "Muriel", + "honorificPrefix": "Dr.", + "identifiers": { + "LSF": "16152" + }, + "jobTitles": ["Historisches Seminar - Wissenschaftliche Mitarbeiter*innen"], + "name": "Muriel Favre", + "type": "person", + "uid": "b9d773df-8ce6-5fb4-ab9b-86f22a86dea6" + } + ], + "originalCategory": "Proseminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2021/22", + "alternateNames": ["Winter 2021/22"], + "endDate": "2022-03-31T21:59:59.999Z", + "eventsEndDate": "2022-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + } + ], + "facets": [ + { + "buckets": [ + { + "count": 27, + "key": "academic event" + }, + { + "count": 5, + "key": "room" + }, + { + "count": 4, + "key": "catalog" + }, + { + "count": 1, + "key": "message" + }, + { + "count": 1, + "key": "person" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 16, + "key": "WiSe 2021/22" + }, + { + "count": 11, + "key": "SoSe 2022" + } + ], + "field": "academicTerms.acronym", + "onlyOnType": "academic event" + }, + { + "buckets": [ + { + "count": 27, + "key": "university events" + } + ], + "field": "catalogs.categories", + "onlyOnType": "academic event" + }, + { + "buckets": [ + { + "count": 17, + "key": "seminar" + }, + { + "count": 3, + "key": "exercise" + }, + { + "count": 3, + "key": "practicum" + }, + { + "count": 2, + "key": "special" + }, + { + "count": 1, + "key": "lecture" + }, + { + "count": 1, + "key": "tutorial" + } + ], + "field": "categories", + "onlyOnType": "academic event" + }, + { + "buckets": [ + { + "count": 2, + "key": "SoSe 2022" + }, + { + "count": 2, + "key": "WiSe 2021/22" + } + ], + "field": "academicTerm.acronym", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 4, + "key": "university events" + } + ], + "field": "categories", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 4, + "key": "university events" + } + ], + "field": "superCatalog.categories", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 4, + "key": "university events" + } + ], + "field": "superCatalogs.categories", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 1, + "key": "news" + } + ], + "field": "categories", + "onlyOnType": "message" + }, + { + "buckets": [ + { + "count": 4, + "key": "education" + }, + { + "count": 1, + "key": "office" + } + ], + "field": "categories", + "onlyOnType": "room" + }, + { + "buckets": [ + { + "count": 5, + "key": "education" + } + ], + "field": "inPlace.categories", + "onlyOnType": "room" + } + ], + "pagination": { + "count": 30, + "offset": 0, + "total": 38 + }, + "stats": { + "time": 8 + } +} diff --git a/frontend/app/cypress/fixtures/search/types/academic-event/event-1.json b/frontend/app/cypress/fixtures/search/types/academic-event/event-1.json new file mode 100644 index 00000000..8823c649 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/academic-event/event-1.json @@ -0,0 +1,208 @@ +{ + "data": [ + { + "uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336", + "identifiers": { + "LSF": "336024" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "85523" + }, + "level": 2, + "name": "Fremdsprachen", + "type": "catalog", + "uid": "004a2be2-efad-5d14-8b6b-88701651c3fd" + } + ], + "origin": { + "indexed": "2059-06-03T10:10:13.841Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "UNIcert (Test)", + "organizers": [ + { + "familyName": "Guzmán", + "gender": "female", + "givenName": "Evelyn", + "identifiers": { + "LSF": "15239" + }, + "jobTitles": ["ISZ-Bereich Fremdsprachen - Wissenschaftliche Mitarbeiter*innen"], + "name": "Evelyn Guzmán", + "type": "person", + "uid": "6cd47b1f-485a-50be-8ca6-7ebe71729b7d" + } + ], + "originalCategory": "Übung", + "categories": ["exercise"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "WiSe 2058/59", + "alternateNames": ["Winter 2058/59"], + "endDate": "2059-03-31T21:59:59.999Z", + "eventsEndDate": "2059-02-18T22:59:59.999Z", + "eventsStartDate": "2021-10-17T22:00:00.000Z", + "name": "Wintersemester 2021/22", + "startDate": "2021-09-30T22:00:00.000Z", + "type": "semester", + "uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4" + } + ] + }, + { + "uid": "d65576a9-da8a-5c3f-828d-ef8fb749b47e", + "identifiers": { + "LSF": "333339" + }, + "catalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "90887" + }, + "level": 3, + "name": "Empirische Forschungsmethoden II - Vertiefung (EW-BA 7)", + "type": "catalog", + "uid": "cc509f14-1a54-5500-a48e-57c1965aac09" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "88474" + }, + "level": 3, + "name": "Empirische Forschungsverfahren und ihre Anwendung (alt) / Empirische Foschungsmethoden II - Vertiefung (neu) (EW-BA 7)", + "type": "catalog", + "uid": "6d7018f8-8a7c-50ff-9504-c5ec3c978e8b" + }, + { + "categories": ["university events"], + "identifiers": { + "LSF": "91137" + }, + "level": 1, + "name": "Pädagogik der Elementar- und Primarstufe", + "type": "catalog", + "uid": "991c01fa-674f-58c1-add8-54317fee2c27" + } + ], + "origin": { + "indexed": "2059-06-03T10:08:49.850Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion", + "organizers": [ + { + "familyName": "Jurecka", + "gender": "female", + "givenName": "Astrid", + "honorificPrefix": "Dr.", + "identifiers": { + "LSF": "10608" + }, + "jobTitles": [ + "Institut für Pädagogik der Elementar- und Primarstufe (WE II) - Wissenschaftliche Mitarbeiter*innen" + ], + "name": "Astrid Jurecka", + "type": "person", + "uid": "92ad2023-5c9d-5fcf-8c42-58b476ae24ba" + } + ], + "originalCategory": "Seminar", + "categories": ["seminar"], + "type": "academic event", + "academicTerms": [ + { + "acronym": "SoSe 2059", + "alternateNames": ["Sommer 2059"], + "endDate": "2059-09-30T21:59:59.999Z", + "eventsEndDate": "2059-07-15T21:59:59.999Z", + "eventsStartDate": "2059-04-10T22:00:00.000Z", + "name": "Sommersemester 2059", + "startDate": "2059-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + } + ] + } + ], + "facets": [ + { + "buckets": [ + { + "count": 2, + "key": "academic event" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "WiSe 2058/59" + }, + { + "count": 1, + "key": "SoSe 2059" + } + ], + "field": "academicTerms.acronym", + "onlyOnType": "academic event" + }, + { + "buckets": [ + { + "count": 2, + "key": "university events" + } + ], + "field": "catalogs.categories", + "onlyOnType": "academic event" + }, + { + "buckets": [ + { + "count": 17, + "key": "seminar" + }, + { + "count": 3, + "key": "exercise" + }, + { + "count": 3, + "key": "practicum" + }, + { + "count": 2, + "key": "special" + }, + { + "count": 1, + "key": "lecture" + }, + { + "count": 1, + "key": "tutorial" + } + ], + "field": "categories", + "onlyOnType": "academic event" + } + ], + "pagination": { + "count": 2, + "offset": 0, + "total": 2 + }, + "stats": { + "time": 69 + } +} diff --git a/frontend/app/cypress/fixtures/search/types/canteen/canteen-1.json b/frontend/app/cypress/fixtures/search/types/canteen/canteen-1.json new file mode 100644 index 00000000..09972d44 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/canteen/canteen-1.json @@ -0,0 +1,59 @@ +{ + "data": [ + { + "geo": { + "point": { + "coordinates": [8.666987121105194, 50.12725203226799], + "type": "Point" + } + }, + "uid": "86464b64-da1e-5578-a5c4-eec23457f596", + "alternateNames": ["Alfredo Anbau Casino"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Kaffeebar Alfredo/Cocktailbar Theodor-W.-Adorno-Platz 2" + }, + "origin": { + "indexed": "2022-06-08T18:45:04.280Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Alfredo Anbau Casino", + "openingHours": "Mo-Fr 08:30-22:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 10:00-21:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off", + "categories": ["cafe"], + "type": "room" + } + ], + "facets": [ + { + "buckets": [ + { + "count": 1, + "key": "room" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "cafe" + } + ], + "field": "categories", + "onlyOnType": "room" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 2 + } +} diff --git a/frontend/app/cypress/fixtures/search/types/canteen/canteen-search-result.json b/frontend/app/cypress/fixtures/search/types/canteen/canteen-search-result.json new file mode 100644 index 00000000..a916ce0c --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/canteen/canteen-search-result.json @@ -0,0 +1,323 @@ +{ + "data": [ + { + "geo": { + "point": { + "coordinates": [8.666987121105194, 50.12725203226799], + "type": "Point" + } + }, + "uid": "86464b64-da1e-5578-a5c4-eec23457f596", + "alternateNames": ["Alfredo Anbau Casino"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Kaffeebar Alfredo/Cocktailbar Theodor-W.-Adorno-Platz 2" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.173Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Alfredo Anbau Casino", + "openingHours": "Mo-Fr 08:30-22:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 10:00-21:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off", + "categories": ["cafe"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.6441518, 50.131335], + "type": "Point" + } + }, + "uid": "c77576af-1633-5465-ba12-6089d1d8919d", + "alternateNames": ["Cafe Hochform"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60487", + "streetAddress": "Institut für Sportwissenschaften Ginnheimer Landstrasse 39" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.173Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Cafe Hochform", + "openingHours": "Mo-Fr 09:00-16:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 09:00-15:30; 2022 Feb 21 - 2022 Apr 08 Sa-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.651551008224486, 50.11935877057829], + "type": "Point" + } + }, + "uid": "7a3270e5-6af1-58cd-b2d9-6bce2bf8fffb", + "alternateNames": ["Cafeteria Bockenheim"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60325", + "streetAddress": "Sozialzentrum Bockenheimer Landstrasse 133" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.168Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Cafeteria Bockenheim", + "openingHours": "Mo-Fr 08:00-16:00; Sa-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.6266007, 50.172658], + "type": "Point" + } + }, + "uid": "9d7596b1-102b-5003-91d8-aa0b411cc0e8", + "alternateNames": ["Cafeteria Darwins"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60438", + "streetAddress": "Biologicum Max-von-Laue-Str. 13" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.174Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Cafeteria Darwins", + "openingHours": "Mo-Fr 08:30-17:00; Sa-Su off; 2021 Oct 15 - 2022 Apr 08 Mo-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.6285375, 50.1743717], + "type": "Point" + } + }, + "uid": "2da7eb88-768f-5881-9e84-8dc0d767c8b7", + "alternateNames": ["Cafeteria LEVEL"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60438", + "streetAddress": "Otto-Stern-Zentrum Ruth-Moufang-Straße 2" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.174Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Cafeteria LEVEL", + "openingHours": "Mo-Fr 09:00-16:00; Sa-Su off; 2021 Dec 20 - 2022 Jan 07 Mo-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.666908666491508, 50.12685997940193], + "type": "Point" + } + }, + "uid": "01d3e4fb-779a-5ee5-8067-d77a44a33e1a", + "alternateNames": ["Casino Cafeteria"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Cafeteria Casino Theodor-W.-Adorno-Platz 2" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.174Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Casino Cafeteria", + "openingHours": "Mo-Th 11:00-17:00; Fr 11:00-14:30; Sa-Su off; 2020 May 18 - 2022 Oct 14 Mo-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.668776154518127, 50.12844708588227], + "type": "Point" + } + }, + "uid": "74e6a230-56fe-5c0e-b529-1c126df98595", + "alternateNames": ["DASEIN"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "PEG Theodor-W.-Adorno-Platz 6" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.174Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "DASEIN", + "openingHours": "Mo-Fr 07:30-17:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 08:00-16:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.666871786117554, 50.127181531770134], + "type": "Point" + } + }, + "uid": "41f2bac9-ea46-5643-a354-49b1d5539a09", + "alternateNames": ["Mensa Anbau Casino"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Anbau Casino Theodor-W.-Adorno-Platz 2" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.173Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Mensa Anbau Casino", + "openingHours": "Mo-Fr 11:00-15:30; Sa-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.667021989822388, 50.12683762541366], + "type": "Point" + } + }, + "uid": "254b10c1-8a79-53ad-98dc-3e0e30d92a88", + "alternateNames": ["Mensa Casino"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Casinogebäude Theodor-W.-Adorno-Platz 2a" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.173Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Mensa Casino", + "openingHours": "Mo-Fr 12:00-15:00; Sa-Su off; 2022 Mar 24 - 2022 Apr 14 Mo-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.6300707, 50.17189], + "type": "Point" + } + }, + "uid": "a307c74a-40c1-57bb-a065-15bb9c505b9d", + "alternateNames": ["Mensa Pi x Gaumen"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60438", + "streetAddress": "Max-von-Laue-Str. 9" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.174Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Mensa Pi x Gaumen", + "openingHours": "Mo-Fr 11:00-15:00; Sa-Su off", + "categories": ["restaurant"], + "type": "room" + }, + { + "geo": { + "point": { + "coordinates": [8.666126132011412, 50.1266751288006], + "type": "Point" + } + }, + "uid": "be3f4727-5ed2-5470-aa45-6bf7eb7e30d4", + "alternateNames": ["Sommergarten Westend"], + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Sommergarten Theodor-W.-Adorno-Platz 2a" + }, + "origin": { + "indexed": "2022-07-07T08:15:04.173Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Sommergarten Westend", + "openingHours": "Mo-Fr 15:30-22:00; Sa-Su off; 2021 Sep 27 - 2022 Apr 14 Mo-Su off", + "categories": ["restaurant"], + "type": "room" + } + ], + "facets": [ + { + "buckets": [ + { + "count": 11, + "key": "room" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 10, + "key": "restaurant" + }, + { + "count": 1, + "key": "cafe" + } + ], + "field": "categories", + "onlyOnType": "room" + } + ], + "pagination": { + "count": 11, + "offset": 0, + "total": 11 + }, + "stats": { + "time": 4 + } +} diff --git a/frontend/app/cypress/fixtures/search/types/catalog/catalog-1.json b/frontend/app/cypress/fixtures/search/types/catalog/catalog-1.json new file mode 100644 index 00000000..36a38f54 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/catalog/catalog-1.json @@ -0,0 +1,113 @@ +{ + "data": [ + { + "uid": "ae3cf884-4dc4-526b-9213-6850135591ab", + "superCatalogs": [ + { + "categories": ["university events"], + "identifiers": { + "LSF": "88418" + }, + "level": 0, + "name": "FB 1 - Rechtswissenschaft", + "type": "catalog", + "uid": "401169e8-92d8-575b-8fa9-bf49ede63b0e", + "description": "Das stets aktuelle Vorlesungsverzeichnis des Fachbereichs Rechtswissenschaft finden Sie hier! Ein Ausdruck mit allen aktuellen Änderungen hängt außerdem vor dem Dekanat des Fachbereichs (1. OG, Gebäude RuW) aus. Nähere Informationen über den Aufbau des Studiums der Rechtswissenschaft erhalten Sie über unsere Studien- und Prüfungsordnung, die Sie im Dekanat bekommen. Das gedruckte VORLESUNGSVERZEICHNIS kann zudem während der Öffnungszeiten im Hörsaalgebäude am Verkaufsstand der Buchhandlung Hector erworben werden.\n\nDas Veranstaltungsangebot orientiert sich am Studienplan des Fachbereichs Rechtswissenschaft. Die Lehrveranstaltungen beginnen in der ersten Vorlesungswoche. Die Pflichtveranstaltungen enden an unserem Fachbereich\neine Woche vor Vorlesungsende\n, anschließend beginnt die zweiwöchige Klausurenphase.\n\nDie wöchentlichen Veranstaltungen im Schwerpunktbereichsstudium enden bereits zwei Wochen vor dem allgemeinen Vorlesungsende der Universität. Anschließend werden Blockveranstaltungen angeboten.\n\nAchtung:\nIm Schwerpunktbereichsstudium dürfen insgesamt nur maximal zwei rechtsmedizinische und arztrechtliche Veranstaltungen des Insituts für Rechtsmedizin zur Erbringung des Pflichtprogramms gem. § 25 Abs. 3 genutzt werden!\n\n\n\n\n \n\nFür Studienanfänger wird eine spezielle dreitägige Orientierungsveranstaltung in der Woche vor Vorlesungsbeginn angeboten; Einzelheiten hierzu werden brieflich mitgeteilt. Für Fragen und Sorgen steht die Studienberatung des Fachbereichs für Studierende aller Semester zur Verfügung und zwar während der Vorlesungszeit Mo, Di, Do, 9.30-11.30 Uhr und Mi, 9.30-11.30 und 13.30-15.30 Uhr in den Räumen des Dekanats, für Berufstätige nach Vereinbarung.\nIn der vorlesungsfreien Zeit ausschließlich Mi 9.30-11.30 Uhr!\n\nDer Fachbereich bietet einen Aufbaustudiengang für im Ausland graduierte Juristinnen und Juristen (LL.M.), einen Aufbaustudiengang \"Europäisches und Internationales Wirtschaftsrecht\" (LL.M. Eur.), einen Weiterbildungsstudiengang \"Law and Finance\" (LL.M. Finance), ein Masterprogramm \"LL.M. Legal Theory\" sowie zusammen mit der Universität Lumière Lyon II das Studienprogramm zum französischen Recht \"Diplôme Universitaire de Droit Français\" (DUDF) an. Veranstaltungen zu den Studiengängen siehe Vorlesungsverzeichnis und Aushänge." + } + ], + "level": 1, + "academicTerm": { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + }, + "identifiers": { + "LSF": "88412" + }, + "origin": { + "indexed": "2022-06-03T10:08:42.803Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Studium der Pflichtfächer (1. bis 5. Semester)", + "categories": ["university events"], + "type": "catalog", + "superCatalog": { + "categories": ["university events"], + "identifiers": { + "LSF": "88418" + }, + "level": 0, + "name": "FB 1 - Rechtswissenschaft", + "type": "catalog", + "uid": "401169e8-92d8-575b-8fa9-bf49ede63b0e", + "description": "Das stets aktuelle Vorlesungsverzeichnis des Fachbereichs Rechtswissenschaft finden Sie hier! Ein Ausdruck mit allen aktuellen Änderungen hängt außerdem vor dem Dekanat des Fachbereichs (1. OG, Gebäude RuW) aus. Nähere Informationen über den Aufbau des Studiums der Rechtswissenschaft erhalten Sie über unsere Studien- und Prüfungsordnung, die Sie im Dekanat bekommen. Das gedruckte VORLESUNGSVERZEICHNIS kann zudem während der Öffnungszeiten im Hörsaalgebäude am Verkaufsstand der Buchhandlung Hector erworben werden.\n\nDas Veranstaltungsangebot orientiert sich am Studienplan des Fachbereichs Rechtswissenschaft. Die Lehrveranstaltungen beginnen in der ersten Vorlesungswoche. Die Pflichtveranstaltungen enden an unserem Fachbereich\neine Woche vor Vorlesungsende\n, anschließend beginnt die zweiwöchige Klausurenphase.\n\nDie wöchentlichen Veranstaltungen im Schwerpunktbereichsstudium enden bereits zwei Wochen vor dem allgemeinen Vorlesungsende der Universität. Anschließend werden Blockveranstaltungen angeboten.\n\nAchtung:\nIm Schwerpunktbereichsstudium dürfen insgesamt nur maximal zwei rechtsmedizinische und arztrechtliche Veranstaltungen des Insituts für Rechtsmedizin zur Erbringung des Pflichtprogramms gem. § 25 Abs. 3 genutzt werden!\n\n\n\n\n \n\nFür Studienanfänger wird eine spezielle dreitägige Orientierungsveranstaltung in der Woche vor Vorlesungsbeginn angeboten; Einzelheiten hierzu werden brieflich mitgeteilt. Für Fragen und Sorgen steht die Studienberatung des Fachbereichs für Studierende aller Semester zur Verfügung und zwar während der Vorlesungszeit Mo, Di, Do, 9.30-11.30 Uhr und Mi, 9.30-11.30 und 13.30-15.30 Uhr in den Räumen des Dekanats, für Berufstätige nach Vereinbarung.\nIn der vorlesungsfreien Zeit ausschließlich Mi 9.30-11.30 Uhr!\n\nDer Fachbereich bietet einen Aufbaustudiengang für im Ausland graduierte Juristinnen und Juristen (LL.M.), einen Aufbaustudiengang \"Europäisches und Internationales Wirtschaftsrecht\" (LL.M. Eur.), einen Weiterbildungsstudiengang \"Law and Finance\" (LL.M. Finance), ein Masterprogramm \"LL.M. Legal Theory\" sowie zusammen mit der Universität Lumière Lyon II das Studienprogramm zum französischen Recht \"Diplôme Universitaire de Droit Français\" (DUDF) an. Veranstaltungen zu den Studiengängen siehe Vorlesungsverzeichnis und Aushänge." + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 1, + "key": "catalog" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "SoSe 2022" + } + ], + "field": "academicTerm.acronym", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 1, + "key": "university events" + } + ], + "field": "categories", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 1, + "key": "university events" + } + ], + "field": "superCatalog.categories", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 1, + "key": "university events" + } + ], + "field": "superCatalogs.categories", + "onlyOnType": "catalog" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 2 + } +} diff --git a/frontend/app/cypress/fixtures/search/types/catalog/catalog-2.json b/frontend/app/cypress/fixtures/search/types/catalog/catalog-2.json new file mode 100644 index 00000000..1664d61e --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/catalog/catalog-2.json @@ -0,0 +1,70 @@ +{ + "data": [ + { + "uid": "401169e8-92d8-575b-8fa9-bf49ede63b0e", + "level": 0, + "academicTerm": { + "acronym": "SoSe 2022", + "alternateNames": ["Sommer 2022"], + "endDate": "2022-09-30T21:59:59.999Z", + "eventsEndDate": "2022-07-15T21:59:59.999Z", + "eventsStartDate": "2022-04-10T22:00:00.000Z", + "name": "Sommersemester 2022", + "startDate": "2022-03-31T22:00:00.000Z", + "type": "semester", + "uid": "4b2766cb-e16d-5698-b5b3-e650613d497a" + }, + "identifiers": { + "LSF": "88418" + }, + "origin": { + "indexed": "2022-06-03T10:08:42.796Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "FB 1 - Rechtswissenschaft", + "description": "Das stets aktuelle Vorlesungsverzeichnis des Fachbereichs Rechtswissenschaft finden Sie hier! Ein Ausdruck mit allen aktuellen Änderungen hängt außerdem vor dem Dekanat des Fachbereichs (1. OG, Gebäude RuW) aus. Nähere Informationen über den Aufbau des Studiums der Rechtswissenschaft erhalten Sie über unsere Studien- und Prüfungsordnung, die Sie im Dekanat bekommen. Das gedruckte VORLESUNGSVERZEICHNIS kann zudem während der Öffnungszeiten im Hörsaalgebäude am Verkaufsstand der Buchhandlung Hector erworben werden.\n\nDas Veranstaltungsangebot orientiert sich am Studienplan des Fachbereichs Rechtswissenschaft. Die Lehrveranstaltungen beginnen in der ersten Vorlesungswoche. Die Pflichtveranstaltungen enden an unserem Fachbereich\neine Woche vor Vorlesungsende\n, anschließend beginnt die zweiwöchige Klausurenphase.\n\nDie wöchentlichen Veranstaltungen im Schwerpunktbereichsstudium enden bereits zwei Wochen vor dem allgemeinen Vorlesungsende der Universität. Anschließend werden Blockveranstaltungen angeboten.\n\nAchtung:\nIm Schwerpunktbereichsstudium dürfen insgesamt nur maximal zwei rechtsmedizinische und arztrechtliche Veranstaltungen des Insituts für Rechtsmedizin zur Erbringung des Pflichtprogramms gem. § 25 Abs. 3 genutzt werden!\n\n\n\n\n \n\nFür Studienanfänger wird eine spezielle dreitägige Orientierungsveranstaltung in der Woche vor Vorlesungsbeginn angeboten; Einzelheiten hierzu werden brieflich mitgeteilt. Für Fragen und Sorgen steht die Studienberatung des Fachbereichs für Studierende aller Semester zur Verfügung und zwar während der Vorlesungszeit Mo, Di, Do, 9.30-11.30 Uhr und Mi, 9.30-11.30 und 13.30-15.30 Uhr in den Räumen des Dekanats, für Berufstätige nach Vereinbarung.\nIn der vorlesungsfreien Zeit ausschließlich Mi 9.30-11.30 Uhr!\n\nDer Fachbereich bietet einen Aufbaustudiengang für im Ausland graduierte Juristinnen und Juristen (LL.M.), einen Aufbaustudiengang \"Europäisches und Internationales Wirtschaftsrecht\" (LL.M. Eur.), einen Weiterbildungsstudiengang \"Law and Finance\" (LL.M. Finance), ein Masterprogramm \"LL.M. Legal Theory\" sowie zusammen mit der Universität Lumière Lyon II das Studienprogramm zum französischen Recht \"Diplôme Universitaire de Droit Français\" (DUDF) an. Veranstaltungen zu den Studiengängen siehe Vorlesungsverzeichnis und Aushänge.", + "categories": ["university events"], + "type": "catalog" + } + ], + "facets": [ + { + "buckets": [ + { + "count": 1, + "key": "catalog" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "SoSe 2022" + } + ], + "field": "academicTerm.acronym", + "onlyOnType": "catalog" + }, + { + "buckets": [ + { + "count": 1, + "key": "university events" + } + ], + "field": "categories", + "onlyOnType": "catalog" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 3 + } +} diff --git a/frontend/app/cypress/fixtures/search/types/date-series/date-series-1.json b/frontend/app/cypress/fixtures/search/types/date-series/date-series-1.json new file mode 100644 index 00000000..10b0d49c --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/date-series/date-series-1.json @@ -0,0 +1,108 @@ +{ + "data": [ + { + "duration": "PT1H0M0S", + "uid": "c010f7d6-5a32-522a-8316-045e032ea25e", + "identifiers": { + "LSF": "779352" + }, + "origin": { + "indexed": "2059-06-03T10:10:13.842Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Übung", + "dates": ["2059-01-19T14:00:00+01:00"], + "event": { + "categories": ["exercise"], + "identifiers": { + "LSF": "336024" + }, + "name": "UNIcert (Test)", + "originalCategory": "Übung", + "type": "academic event", + "uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336" + }, + "type": "date series", + "inPlace": { + "alternateNames": ["H I", "Hörsaal I"], + "categories": ["learn", "education"], + "geo": { + "point": { + "coordinates": [8.64988, 50.11825], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.650173693895338, 50.11768192973537], + [8.649645298719406, 50.1177214866573], + [8.649690896272658, 50.11794334878755], + [8.649795502424238, 50.11793646935709], + [8.649822324514389, 50.11810845482188], + [8.64978477358818, 50.118110174673404], + [8.649827688932419, 50.11833375484596], + [8.650490194559096, 50.11828559920474], + [8.650428503751753, 50.11806029895402], + [8.65011468529701, 50.11808265704158], + [8.650082498788832, 50.11792615020954], + [8.650203198194502, 50.117914111201316], + [8.650173693895338, 50.11768192973537] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "706" + }, + "name": "H I (Vorbelegungsrecht Kunstgeschichte)", + "type": "room", + "uid": "07ccd06f-2f58-52ce-bcdd-2341f79b5893" + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 1, + "key": "date series" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "exercise" + } + ], + "field": "event.categories", + "onlyOnType": "date series" + }, + { + "buckets": [ + { + "count": 1, + "key": "education" + }, + { + "count": 1, + "key": "learn" + } + ], + "field": "inPlace.categories", + "onlyOnType": "date series" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 5 + } +} diff --git a/frontend/app/cypress/fixtures/search/types/date-series/date-series-for-event-1.json b/frontend/app/cypress/fixtures/search/types/date-series/date-series-for-event-1.json new file mode 100644 index 00000000..668668c7 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/date-series/date-series-for-event-1.json @@ -0,0 +1,297 @@ +{ + "1": { + "data": [ + { + "duration": "PT2H0M0S", + "uid": "f50aab9a-ce14-57e2-a3f1-e0d2da600bb7", + "repeatFrequency": "P1W", + "identifiers": { + "LSF": "797371" + }, + "origin": { + "indexed": "2059-06-03T10:08:50.850Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Seminar", + "dates": [ + "2059-04-14T12:00:00+02:00", + "2059-04-21T12:00:00+02:00", + "2059-04-28T12:00:00+02:00", + "2059-05-05T12:00:00+02:00", + "2059-05-12T12:00:00+02:00", + "2059-05-19T12:00:00+02:00", + "2059-06-02T12:00:00+02:00", + "2059-06-09T12:00:00+02:00", + "2059-06-23T12:00:00+02:00", + "2059-06-30T12:00:00+02:00", + "2059-07-07T12:00:00+02:00", + "2059-07-14T12:00:00+02:00" + ], + "event": { + "categories": ["seminar"], + "identifiers": { + "LSF": "333339" + }, + "name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion", + "originalCategory": "Seminar", + "type": "academic event", + "uid": "d65576a9-da8a-5c3f-828d-ef8fb749b47e" + }, + "type": "date series", + "inPlace": { + "alternateNames": ["SH 1.106"], + "categories": ["learn", "education"], + "geo": { + "point": { + "coordinates": [8.66836, 50.12927], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.668371140956877, 50.12907297255887], + [8.668247759342194, 50.12942717952356], + [8.668864667415619, 50.129513151692436], + [8.668977320194244, 50.1291692620903], + [8.668371140956877, 50.12907297255887] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "7340" + }, + "name": "SH 1.106", + "type": "room", + "uid": "56e6632a-415a-542f-93a1-69adf34d5d0c" + } + }, + { + "duration": "PT2H0M0S", + "uid": "b572671f-c713-5f1e-ab2b-d0e6b54091a8", + "repeatFrequency": "P1W", + "identifiers": { + "LSF": "770743" + }, + "origin": { + "indexed": "2059-06-03T10:08:50.848Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Seminar", + "dates": [ + "2059-04-14T12:00:00+02:00", + "2059-04-21T12:00:00+02:00", + "2059-04-28T12:00:00+02:00", + "2059-05-05T12:00:00+02:00", + "2059-05-12T12:00:00+02:00", + "2059-05-19T12:00:00+02:00", + "2059-06-02T12:00:00+02:00", + "2059-06-09T12:00:00+02:00", + "2059-06-23T12:00:00+02:00", + "2059-06-30T12:00:00+02:00", + "2059-07-07T12:00:00+02:00", + "2059-07-14T12:00:00+02:00" + ], + "event": { + "categories": ["seminar"], + "identifiers": { + "LSF": "333339" + }, + "name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion", + "originalCategory": "Seminar", + "type": "academic event", + "uid": "d65576a9-da8a-5c3f-828d-ef8fb749b47e" + }, + "type": "date series", + "inPlace": { + "alternateNames": ["PEG 2G 089", "PC-Pool / Seminar"], + "categories": ["computer"], + "geo": { + "point": { + "coordinates": [8.66919, 50.12834], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.66911545395851, 50.128080835212074], + [8.668997436761854, 50.128419574192236], + [8.668603152036665, 50.1283851845574], + [8.668450266122816, 50.128827089483565], + [8.669802099466322, 50.129014510963145], + [8.670357316732405, 50.128266540127555], + [8.66911545395851, 50.128080835212074] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "6086" + }, + "name": "PEG 2.G 089", + "type": "room", + "uid": "25dbedd7-0471-536d-8e48-e9d21ccea172" + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 2, + "key": "date series" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 2, + "key": "seminar" + } + ], + "field": "event.categories", + "onlyOnType": "date series" + }, + { + "buckets": [ + { + "count": 1, + "key": "computer" + }, + { + "count": 1, + "key": "education" + }, + { + "count": 1, + "key": "learn" + } + ], + "field": "inPlace.categories", + "onlyOnType": "date series" + } + ], + "pagination": { + "count": 2, + "offset": 0, + "total": 2 + }, + "stats": { + "time": 17 + } + }, + "0": { + "data": [ + { + "duration": "PT1H0M0S", + "uid": "c010f7d6-5a32-522a-8316-045e032ea25e", + "identifiers": { + "LSF": "779352" + }, + "origin": { + "indexed": "2059-06-03T10:10:13.842Z", + "name": "Goethe-Uni QIS / LSF", + "type": "remote" + }, + "name": "Übung", + "dates": ["2059-01-19T14:00:00+01:00"], + "event": { + "categories": ["exercise"], + "identifiers": { + "LSF": "336024" + }, + "name": "UNIcert (Test)", + "originalCategory": "Übung", + "type": "academic event", + "uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336" + }, + "type": "date series", + "inPlace": { + "alternateNames": ["H I", "Hörsaal I"], + "categories": ["learn", "education"], + "geo": { + "point": { + "coordinates": [8.64988, 50.11825], + "type": "Point" + }, + "polygon": { + "coordinates": [ + [ + [8.650173693895338, 50.11768192973537], + [8.649645298719406, 50.1177214866573], + [8.649690896272658, 50.11794334878755], + [8.649795502424238, 50.11793646935709], + [8.649822324514389, 50.11810845482188], + [8.64978477358818, 50.118110174673404], + [8.649827688932419, 50.11833375484596], + [8.650490194559096, 50.11828559920474], + [8.650428503751753, 50.11806029895402], + [8.65011468529701, 50.11808265704158], + [8.650082498788832, 50.11792615020954], + [8.650203198194502, 50.117914111201316], + [8.650173693895338, 50.11768192973537] + ] + ], + "type": "Polygon" + } + }, + "identifiers": { + "LSF": "706" + }, + "name": "H I (Vorbelegungsrecht Kunstgeschichte)", + "type": "room", + "uid": "07ccd06f-2f58-52ce-bcdd-2341f79b5893" + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 1, + "key": "date series" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 1, + "key": "exercise" + } + ], + "field": "event.categories", + "onlyOnType": "date series" + }, + { + "buckets": [ + { + "count": 1, + "key": "education" + }, + { + "count": 1, + "key": "learn" + } + ], + "field": "inPlace.categories", + "onlyOnType": "date series" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 5 + } + } +} diff --git a/frontend/app/cypress/fixtures/search/types/dish/dish-1.json b/frontend/app/cypress/fixtures/search/types/dish/dish-1.json new file mode 100644 index 00000000..dde02034 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/dish/dish-1.json @@ -0,0 +1,129 @@ +{ + "2022-06-08T18:56:17.052Z": { + "data": [ + { + "offers": [ + { + "availability": "in stock", + "availabilityRange": { + "gte": "2022-06-08T06:30:00.000Z", + "lte": "2022-06-08T20:00:00.000Z" + }, + "inPlace": { + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Kaffeebar Alfredo/Cocktailbar Theodor-W.-Adorno-Platz 2" + }, + "alternateNames": ["Alfredo Anbau Casino"], + "categories": ["cafe"], + "geo": { + "point": { + "coordinates": [8.666987121105194, 50.12725203226799], + "type": "Point" + } + }, + "name": "Alfredo Anbau Casino", + "openingHours": "Mo-Fr 08:30-22:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 10:00-21:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off", + "type": "room", + "uid": "86464b64-da1e-5578-a5c4-eec23457f596" + }, + "prices": { + "default": 4.4, + "employee": 1.1, + "guest": 2.2, + "student": 3.3 + }, + "provider": { + "name": "Studentenwerk Frankfurt am Main", + "type": "organization", + "uid": "b7b50ecd-2c33-5a62-adb0-2a7c6c0ab04c" + } + } + ], + "uid": "d8a0b68b-4bfc-5780-9d33-a29b2ac0fae2", + "nutrition": { + "calories": 863, + "carbohydrateContent": 103.5, + "fatContent": 39, + "proteinContent": 33.1, + "saltContent": 4.1, + "saturatedFatContent": 3.1, + "sugarContent": 11.8 + }, + "additives": [ + "preserved (2)", + "with antioxidants (3)", + "gluten (A)", + "milk (G)", + "celery (I)", + "sulphur dioxide / sulphite (L)" + ], + "translations": { + "de": { + "additives": [ + "konserviert (2)", + "mit Antioxidationsmittel (3)", + "Glutenhaltige Getreide (A)", + "Milch u. Milcherzeugnisse (G)", + "Sellerie u. Sellerieerzeugnisse (I)", + "Schwefeldioxid / Sulfit (L)" + ], + "description": "Pizza Antipasti (2,3,A,G,I,L,A1)", + "name": "Pizza Antipasti" + } + }, + "origin": { + "indexed": "2022-06-08T18:45:04.736Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Antipasti pizza", + "description": "Antipasti pizza (2,3,A,G,I,L,A1)", + "categories": ["main dish"], + "type": "dish" + } + ], + "facets": [ + { + "buckets": [ + { + "count": 10, + "key": "dish" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 10, + "key": "main dish" + } + ], + "field": "categories", + "onlyOnType": "dish" + }, + { + "buckets": [ + { + "count": 10, + "key": "cafe" + } + ], + "field": "offers.inPlace.categories", + "onlyOnType": "dish" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 8 + } + } +} diff --git a/frontend/app/cypress/fixtures/search/types/dish/dish-2.json b/frontend/app/cypress/fixtures/search/types/dish/dish-2.json new file mode 100644 index 00000000..d04af4d1 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/dish/dish-2.json @@ -0,0 +1,369 @@ +{ + "2022-06-08T18:56:17.052Z": { + "data": [ + { + "offers": [ + { + "availability": "in stock", + "availabilityRange": { + "gte": "2022-06-08T06:30:00.000Z", + "lte": "2022-06-08T20:00:00.000Z" + }, + "inPlace": { + "address": { + "addressCountry": "Deutschland", + "addressLocality": "Frankfurt am Main", + "addressRegion": "Hessen", + "postalCode": "60323", + "streetAddress": "Kaffeebar Alfredo/Cocktailbar Theodor-W.-Adorno-Platz 2" + }, + "alternateNames": ["Alfredo Anbau Casino"], + "categories": ["cafe"], + "geo": { + "point": { + "coordinates": [8.666987121105194, 50.12725203226799], + "type": "Point" + } + }, + "name": "Alfredo Anbau Casino", + "openingHours": "Mo-Fr 08:30-22:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 10:00-21:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off", + "type": "room", + "uid": "86464b64-da1e-5578-a5c4-eec23457f596" + }, + "prices": { + "default": 4.4, + "employee": 1.1, + "guest": 2.2, + "student": 3.3 + }, + "provider": { + "name": "Studentenwerk Frankfurt am Main", + "type": "organization", + "uid": "b7b50ecd-2c33-5a62-adb0-2a7c6c0ab04c" + } + } + ], + "uid": "d8a0b68b-4bfc-5780-9d33-a29b2ac0fae2", + "nutrition": { + "calories": 863, + "carbohydrateContent": 103.5, + "fatContent": 39, + "proteinContent": 33.1, + "saltContent": 4.1, + "saturatedFatContent": 3.1, + "sugarContent": 11.8 + }, + "additives": [ + "preserved (2)", + "with antioxidants (3)", + "gluten (A)", + "milk (G)", + "celery (I)", + "sulphur dioxide / sulphite (L)" + ], + "translations": { + "de": { + "additives": [ + "konserviert (2)", + "mit Antioxidationsmittel (3)", + "Glutenhaltige Getreide (A)", + "Milch u. Milcherzeugnisse (G)", + "Sellerie u. Sellerieerzeugnisse (I)", + "Schwefeldioxid / Sulfit (L)" + ], + "description": "Pizza Antipasti (2,3,A,G,I,L,A1)", + "name": "Pizza Antipasti" + } + }, + "origin": { + "indexed": "2022-06-08T18:45:04.736Z", + "name": "Studentenwerk Frankfurt am Main", + "type": "remote" + }, + "name": "Antipasti pizza", + "description": "Antipasti pizza (2,3,A,G,I,L,A1)", + "categories": ["main dish"], + "type": "dish" + }, + { + "type": "dish", + "name": "Pizza mit Geflügelsalami und Champignons", + "categories": ["main dish"], + "characteristics": [], + "additives": [ + "konserviert", + "Antioxidationsmittel", + "Farbstoff", + "Weizen", + "Milch(Laktose; Milcheiweiß)", + "Nitritpökelsalz", + "Hefe" + ], + "offers": [ + { + "availability": "in stock", + "availabilityRange": { + "gte": "2017-01-30T00:00:00.000Z", + "lte": "2017-01-30T23:59:59.999Z" + }, + "prices": { + "default": 4.85, + "student": 2.85, + "employee": 3.85, + "guest": 4.85 + }, + "provider": { + "name": "Studentenwerk", + "type": "organization", + "uid": "3b9b3df6-3a7a-58cc-922f-c7335c002634" + }, + "inPlace": { + "geo": { + "point": { + "type": "Point", + "coordinates": [13.32612, 52.50978] + } + }, + "type": "building", + "categories": ["restaurant"], + "openingHours": "Mo-Fr 11:00-14:30", + "name": "TU-Mensa", + "alternateNames": ["MensaHardenberg"], + "uid": "72fbc8a3-ebd1-58f9-9526-ad65cba2e402", + "address": { + "addressCountry": "Germany", + "addressLocality": "Berlin", + "addressRegion": "Berlin", + "postalCode": "10623", + "streetAddress": "Hardenbergstraße 34" + } + } + } + ], + "uid": "c9f32915-8ed5-5960-b850-3f7375a89922", + "origin": { + "indexed": "2018-09-11T12:30:00Z", + "name": "Dummy", + "type": "remote" + } + }, + { + "type": "dish", + "name": "Sahne-Bärlauchsauce", + "description": "Nudelauswahl", + "categories": ["main dish"], + "offers": [ + { + "prices": { + "default": 3.45, + "student": 2.45, + "employee": 3.45 + }, + "provider": { + "name": "Studentenwerk", + "type": "organization", + "uid": "3b9b3df6-3a7a-58cc-922f-c7335c002634" + }, + "availability": "in stock", + "availabilityRange": { + "gte": "2017-01-30T00:00:00.000Z", + "lte": "2017-01-30T23:59:59.999Z" + }, + "inPlace": { + "geo": { + "point": { + "type": "Point", + "coordinates": [13.32612, 52.50978] + } + }, + "type": "building", + "categories": ["restaurant"], + "openingHours": "Mo-Fr 11:00-14:30", + "name": "TU-Mensa", + "alternateNames": ["MensaHardenberg"], + "uid": "072db1e5-e479-5040-88e0-4a98d731e443", + "address": { + "addressCountry": "Germany", + "addressLocality": "Berlin", + "addressRegion": "Berlin", + "postalCode": "10623", + "streetAddress": "Hardenbergstraße 34" + } + } + } + ], + "characteristics": [ + { + "name": "bad" + }, + { + "name": "vegetarian", + "image": "https://backend/res/img/characteristic_small_vegetarian.png" + } + ], + "additives": ["Weizen", "Milch(Laktose; Milcheiweiß)"], + "uid": "3222631f-82b3-5faf-a8e8-9c10719cc95b", + "origin": { + "indexed": "2018-09-11T12:30:00Z", + "name": "Dummy", + "type": "remote" + } + }, + { + "additives": [ + "1 = mit Farbstoff", + "2 = konserviert", + "3 = mit Antioxidationsmittel", + "9 = mit Süßungsmittel", + "A = Glutenhaltige Getreide", + "G = Milch u. Milcherzeugnisse" + ], + "offers": [ + { + "availability": "in stock", + "availabilityRange": { + "gte": "2017-03-27T00:00:00.000Z", + "lte": "2017-03-27T23:59:59.000Z" + }, + "inPlace": { + "type": "room", + "name": "Cafeteria LEVEL", + "categories": ["cafe"], + "uid": "e5492c9c-064e-547c-8633-c8fc8955cfcf", + "alternateNames": ["Cafeteria LEVEL"], + "openingHours": "Mo-Fr 08:30-17:00", + "geo": { + "point": { + "type": "Point", + "coordinates": [8.6285375, 50.1743717] + } + } + }, + "prices": { + "default": 6.5, + "student": 4.9, + "employee": 6.5 + }, + "provider": { + "name": "Studentenwerk", + "type": "organization", + "uid": "3b9b3df6-3a7a-58cc-922f-c7335c002634" + } + } + ], + "categories": ["main dish"], + "characteristics": [ + { + "name": "Rind", + "image": "https://backend/res/img/characteristic_small_rind.png" + } + ], + "description": "Salsa Burger (1,2,3,9,A,G)", + "name": "Salsa Burger", + "dishAddOns": [ + { + "characteristics": [ + { + "name": "Vegan", + "image": "https://backend/res/img/characteristic_small_vegan.png" + } + ], + "description": "Pommes frites", + "type": "dish", + "uid": "db0caac1-062c-5333-9fcb-cfaf0ff7d799", + "nutrition": { + "calories": 106, + "fatContent": 5.4, + "saturatedFatContent": 1.8, + "carbohydrateContent": 6.8, + "sugarContent": 6.1, + "proteinContent": 6.9, + "saltContent": 3.7 + }, + "additives": ["3 = mit Antioxidationsmittel", "5 = geschwefelt"], + "name": "Pommes frites", + "categories": ["side dish"] + }, + { + "characteristics": [ + { + "name": "Vegan", + "image": "https://backend/res/img/characteristic_small_vegan.png" + } + ], + "description": "Glasierte Karotten", + "type": "dish", + "uid": "f702fd43-1551-53b2-b35a-b5916e1cf9a1", + "nutrition": { + "calories": 106, + "fatContent": 5.4, + "saturatedFatContent": 1.8, + "carbohydrateContent": 6.8, + "sugarContent": 6.1, + "proteinContent": 6.9, + "saltContent": 3.7 + }, + "additives": ["F = Soja u. Sojaerzeugnisse"], + "name": "Glasierte Karotten", + "categories": ["side dish", "salad"] + } + ], + "type": "dish", + "uid": "1c99689c-c6ec-551f-8ad8-f13c5fa812c2", + "nutrition": { + "calories": 600, + "fatContent": 30.5, + "saturatedFatContent": 9.9, + "carbohydrateContent": 42.2, + "sugarContent": 5.7, + "proteinContent": 38.6, + "saltContent": 3.5 + }, + "origin": { + "indexed": "2018-09-11T12:30:00Z", + "name": "Dummy", + "type": "remote" + } + } + ], + "facets": [ + { + "buckets": [ + { + "count": 10, + "key": "dish" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 10, + "key": "main dish" + } + ], + "field": "categories", + "onlyOnType": "dish" + }, + { + "buckets": [ + { + "count": 10, + "key": "cafe" + } + ], + "field": "offers.inPlace.categories", + "onlyOnType": "dish" + } + ], + "pagination": { + "count": 1, + "offset": 0, + "total": 1 + }, + "stats": { + "time": 8 + } + } +} diff --git a/frontend/app/cypress/fixtures/search/types/message/message-1.json b/frontend/app/cypress/fixtures/search/types/message/message-1.json new file mode 100644 index 00000000..8e824bc5 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/message/message-1.json @@ -0,0 +1,141 @@ +{ + "data": [ + { + "datePublished": "2022-06-07T09:42:00.000Z", + "uid": "c90c7d30-410f-5aea-a67b-ea1f98929b93", + "messageBody": "DE for Students and Employees", + "origin": { + "indexed": "2022-06-08T19:30:08.640Z", + "name": "Goethe-Uni Online", + "type": "remote", + "url": "https://aktuelles.uni-frankfurt.de/feed" + }, + "name": "DE for Students and Employees", + "image": "https://robohash.org/de_for_students_and_employees?size=264x183&set=set4&bgset=bg1", + "audiences": ["students", "employees"], + "inLanguage": "de", + "categories": ["news"], + "type": "message", + "sameAs": "https://aktuelles.uni-frankfurt.de/?p=59273" + }, + { + "datePublished": "2022-06-03T06:45:00.000Z", + "uid": "5de64e1a-e0d1-5a18-bdb9-f31af54ec838", + "messageBody": "DE for Students", + "origin": { + "indexed": "2022-06-08T19:30:08.645Z", + "name": "Goethe-Uni Online", + "type": "remote", + "url": "https://aktuelles.uni-frankfurt.de/feed" + }, + "name": "DE for Students", + "image": "https://robohash.org/de_for_students?size=264x183&set=set4&bgset=bg1", + "audiences": ["students"], + "inLanguage": "de", + "categories": ["news"], + "type": "message", + "sameAs": "https://aktuelles.uni-frankfurt.de/?p=59258" + }, + { + "datePublished": "2022-06-03T06:45:00.000Z", + "uid": "5de64e1a-e0d1-5a18-bdb9-f31af54ec838", + "messageBody": "DE for Employees", + "origin": { + "indexed": "2022-06-08T19:30:08.645Z", + "name": "Goethe-Uni Online", + "type": "remote", + "url": "https://aktuelles.uni-frankfurt.de/feed" + }, + "name": "DE for Employees", + "image": "https://robohash.org/de_for_employees?size=264x183&set=set4&bgset=bg1", + "audiences": ["employees"], + "inLanguage": "de", + "categories": ["news"], + "type": "message", + "sameAs": "https://aktuelles.uni-frankfurt.de/?p=59258" + }, + { + "datePublished": "2022-06-07T09:42:00.000Z", + "uid": "c90c7d30-410f-5aea-a67b-ea1f98929b93", + "messageBody": "EN for Students and Employees", + "origin": { + "indexed": "2022-06-08T19:30:08.640Z", + "name": "Goethe-Uni Online", + "type": "remote", + "url": "https://aktuelles.uni-frankfurt.de/feed" + }, + "name": "EN for Students and Employees", + "image": "https://robohash.org/en_for_students_and_employees?size=264x183&set=set4&bgset=bg1", + "audiences": ["students", "employees"], + "inLanguage": "en", + "categories": ["news"], + "type": "message", + "sameAs": "https://aktuelles.uni-frankfurt.de/?p=59273" + }, + { + "datePublished": "2022-06-03T06:45:00.000Z", + "uid": "5de64e1a-e0d1-5a18-bdb9-f31af54ec838", + "messageBody": "EN for Students", + "origin": { + "indexed": "2022-06-08T19:30:08.645Z", + "name": "Goethe-Uni Online", + "type": "remote", + "url": "https://aktuelles.uni-frankfurt.de/feed" + }, + "name": "EN for Students", + "image": "https://robohash.org/en_for_students?size=264x183&set=set4&bgset=bg1", + "audiences": ["students"], + "inLanguage": "en", + "categories": ["news"], + "type": "message", + "sameAs": "https://aktuelles.uni-frankfurt.de/?p=59258" + }, + { + "datePublished": "2022-06-03T06:45:00.000Z", + "uid": "5de64e1a-e0d1-5a18-bdb9-f31af54ec838", + "messageBody": "EN for Employees", + "origin": { + "indexed": "2022-06-08T19:30:08.645Z", + "name": "Goethe-Uni Online", + "type": "remote", + "url": "https://aktuelles.uni-frankfurt.de/feed" + }, + "name": "EN for Employees", + "image": "https://robohash.org/en_for_employees?size=264x183&set=set4&bgset=bg1", + "audiences": ["employees"], + "inLanguage": "en", + "categories": ["news"], + "type": "message", + "sameAs": "https://aktuelles.uni-frankfurt.de/?p=59258" + } + ], + "facets": [ + { + "buckets": [ + { + "count": 85, + "key": "message" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 85, + "key": "news" + } + ], + "field": "categories", + "onlyOnType": "message" + } + ], + "pagination": { + "count": 10, + "offset": 0, + "total": 85 + }, + "stats": { + "time": 2 + } +} diff --git a/frontend/app/cypress/fixtures/search/types/message/single-message.json b/frontend/app/cypress/fixtures/search/types/message/single-message.json new file mode 100644 index 00000000..95e11488 --- /dev/null +++ b/frontend/app/cypress/fixtures/search/types/message/single-message.json @@ -0,0 +1,51 @@ +{ + "data": [ + { + "datePublished": "2022-06-07T09:42:00.000Z", + "uid": "c90c7d30-410f-5aea-a67b-ea1f98929b93", + "messageBody": "DE for Students and Employees", + "origin": { + "indexed": "2022-06-08T19:30:08.640Z", + "name": "Goethe-Uni Online", + "type": "remote", + "url": "https://aktuelles.uni-frankfurt.de/feed" + }, + "name": "DE for Students and Employees", + "image": "https://robohash.org/de_for_students_and_employees?size=264x183&set=set4&bgset=bg1", + "audiences": ["students", "employees"], + "inLanguage": "de", + "categories": ["news"], + "type": "message", + "sameAs": "https://aktuelles.uni-frankfurt.de/?p=59273" + } + ], + "facets": [ + { + "buckets": [ + { + "count": 85, + "key": "message" + } + ], + "field": "type" + }, + { + "buckets": [ + { + "count": 85, + "key": "news" + } + ], + "field": "categories", + "onlyOnType": "message" + } + ], + "pagination": { + "count": 10, + "offset": 0, + "total": 85 + }, + "stats": { + "time": 2 + } +} diff --git a/frontend/app/cypress/integration/app.spec.ts b/frontend/app/cypress/integration/app.spec.ts new file mode 100644 index 00000000..cb92312c --- /dev/null +++ b/frontend/app/cypress/integration/app.spec.ts @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +describe('App', () => { + it('should have a proper title', () => { + cy.visit('/'); + + cy.title().should('equal', 'StApps'); + }); + + it('should have a proper working navigation', () => { + cy.visit('/'); + + cy.contains('Einstellungen').click(); + cy.get('ion-title').contains('Einstellungen'); + }); +}); diff --git a/frontend/app/cypress/integration/assessments.spec.ts b/frontend/app/cypress/integration/assessments.spec.ts new file mode 100644 index 00000000..44ac6b96 --- /dev/null +++ b/frontend/app/cypress/integration/assessments.spec.ts @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('assessments', function () { + /*it('should have default back navigation', function () { + // TODO: Implement this + cy.visit( + 'assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock', + ); + cy.get('ion-back-button').click(); + });*/ + + it('should always have a path', function () { + cy.visit('/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock'); + + cy.get('stapps-data-path').should('contain', 'Basismodule').should('contain', 'Modellierung'); + }); + + it('should have a collapsed path', function () { + cy.visit('/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock'); + + cy.get('.breadcrumb-collapsed').click(); + cy.get('ion-breadcrumb').should('have.length', 3); + }); +}); diff --git a/frontend/app/cypress/integration/canteen.spec.ts b/frontend/app/cypress/integration/canteen.spec.ts new file mode 100644 index 00000000..2c7004f7 --- /dev/null +++ b/frontend/app/cypress/integration/canteen.spec.ts @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('canteen', function () { + beforeEach(function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/canteen/canteen-1.json', + }).as('search'); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', { + fixture: 'search/types/dish/dish-1.json', + }); + }); + + it('should not utilize the default price', function () { + cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596'); + cy.contains('4,40 €').should('not.exist'); + }); + + it('should have a student price', function () { + cy.visit('/settings'); + cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click(); + cy.get('ion-popover').contains('ion-item', 'Studierende').click(); + cy.wait(2000); + cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596'); + cy.contains('3,30 €').should('exist'); + }); + + it('should have an employee price', function () { + cy.visit('/settings'); + cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click(); + cy.get('ion-popover').contains('ion-item', 'Angestellte').click(); + cy.wait(2000); + cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596'); + cy.contains('1,10 €').should('exist'); + }); + + it('should have a guest price', function () { + cy.visit('/settings'); + cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click(); + cy.get('ion-popover').contains('ion-item', 'Gäste').click(); + cy.wait(2000); + cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596'); + cy.contains('2,20 €').should('exist'); + }); +}); diff --git a/frontend/app/cypress/integration/catalog.spec.ts b/frontend/app/cypress/integration/catalog.spec.ts new file mode 100644 index 00000000..c5583d11 --- /dev/null +++ b/frontend/app/cypress/integration/catalog.spec.ts @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +describe('catalog', function () { + it('should have path', function () { + cy.visit('/data-detail/ae3cf884-4dc4-526b-9213-6850135591ab'); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/catalog/catalog-1.json', + }); + + cy.get('stapps-data-path').within(() => { + cy.get('ion-breadcrumb').first().should('contain', 'FB 1 - Rechtswissenschaft'); + cy.get('ion-breadcrumb').last().should('contain', 'Studium der Pflichtfächer (1. bis 5. Semester)'); + }); + }); +}); diff --git a/frontend/app/cypress/integration/context-menu.spec.ts b/frontend/app/cypress/integration/context-menu.spec.ts new file mode 100644 index 00000000..af21800c --- /dev/null +++ b/frontend/app/cypress/integration/context-menu.spec.ts @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('context menu', function () { + beforeEach(function () { + cy.visit('/search'); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/test.json', + }).as('search'); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', { + fixture: 'search/multi-result.json', + }); + cy.get('ion-searchbar').type('test'); + cy.wait('@search'); + cy.get('ion-searchbar > ion-menu-button').click(); + }); + + it('should sort', function () { + cy.get('stapps-context').within(() => { + cy.contains('ion-item', 'Name').click(); + cy.wait('@search'); + }); + }); + + it('should filter', function () { + cy.get('stapps-context').within(() => { + cy.contains('ion-item', '(27) Akademische Veranstaltung').click(); + cy.wait('@search'); + }); + }); + + it('should have a working delete button', function () { + cy.get('stapps-context').within(() => { + cy.contains('ion-item', '(27) Akademische Veranstaltung').click(); + + cy.get('.checkbox-checked').should('have.length', 1); + cy.contains('ion-list-header', 'Filter').find('ion-button').click(); + cy.wait('@search'); + cy.get('.checkbox-checked').should('have.length', 0); + }); + }); + + it('should truncate categories', function () { + cy.get('stapps-context').within(() => { + cy.contains('ion-item', '(4) Universitätsveranstaltung').should('not.exist'); + cy.get('.context-filter > ion-button').click(); + cy.contains('ion-item', '(4) Universitätsveranstaltung').should('exist'); + }); + }); + + it('should truncate long category items', function () { + cy.contains('ion-list', 'Kategorien | Akademische Veranstaltung').within(() => { + cy.contains('ion-item', '(1) Tutorium').should('not.exist'); + cy.get('div > ion-button').click(); + cy.contains('ion-item', '(1) Tutorium').should('exist'); + }); + }); +}); diff --git a/frontend/app/cypress/integration/dashboard.spec.ts b/frontend/app/cypress/integration/dashboard.spec.ts new file mode 100644 index 00000000..1a8868e2 --- /dev/null +++ b/frontend/app/cypress/integration/dashboard.spec.ts @@ -0,0 +1,182 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-explicit-any */ +//import {ScheduleProvider} from '../../src/app/modules/calendar/schedule.provider'; + +describe('dashboard', async function () { + describe('schedule section', function () { + it('should lead to the schedule', function () { + cy.visit('/overview'); + cy.get('.schedule').contains('a', 'Stundenplan').click(); + cy.url().should('include', '/schedule/recurring'); + + cy.visit('/overview'); + cy.get('.schedule').contains('a', 'Kein Eintrag gefunden').click(); + cy.url().should('include', '/schedule/recurring'); + }); + + // TODO: Reenable and stabilize tests + //it('should display the next unit', function () { + // let angular: any; + // cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + // fixture: 'search/types/date-series/date-series-1.json', + // }).as('search'); + // cy.visit('/overview'); + // cy.get('.schedule-item-button').should('exist'); + // cy.window() + // .then(win => (angular = (win as any).ng)) + // .then(() => + // cy.get('app-dashboard').then($dashboard => { + // const appComponent = angular.getComponent($dashboard[0]); + // const scheduleProvider = + // appComponent.scheduleProvider as ScheduleProvider; + + // scheduleProvider.restore(['abc']); + // }), + // ); + // cy.wait('@search'); + // cy.visit('/overview'); + // cy.get('.schedule-item-button').should('contain', 'UNIcert (Test)'); + //}); + }); + + describe('mensa section', function () { + it('should have info when nothing is added', function () { + cy.visit('/overview'); + + cy.get('stapps-mensa-section').within(() => { + cy.get('swiper').should('not.exist'); + cy.get('.nothing-selected > ion-label > a').should('have.text', 'Übersicht der Mensen'); + }); + }); + + it('should add a mensa', function () { + cy.clock(new Date('2022-06-08'), ['Date']); + cy.visit('/overview'); + cy.get('stapps-mensa-section').find('.nothing-selected > ion-label > a').click(); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/canteen/canteen-search-result.json', + }); + cy.get('stapps-favorite-button').first().click(); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', { + fixture: 'search/types/dish/dish-2.json', + }); + cy.get('ion-back-button').click(); + cy.get('stapps-mensa-section').find('simple-swiper > *').should('have.length.greaterThan', 1); + }); + }); + + describe('news section', function () { + beforeEach(function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/message/message-1.json', + }).as('search'); + }); + + // TODO: Cypress has no real way of setting the presence of a pointing device, + // which means the behavior is undefined and depends on the testing device + // it('should have desktop navigation buttons', function () { + // cy.visit('/overview'); + // + // cy.get('stapps-news-section').within(function () { + // cy.get('.swiper-button').should('not.have.css', 'display: none'); + // }); + // }); + + // it('should not have desktop navigation buttons on mobile', function () { + // cy.visit('/overview'); + // + // cy.get('stapps-news-section').within(function () { + // cy.get('.swiper-button').should('have.css', 'display: none'); + // }); + // }); + + it('should have working desktop navigation', function () { + cy.visit('/overview'); + + cy.get('stapps-news-section').within(function () { + cy.get('simple-swiper > *').eq(0).should('be.visible'); + + // TODO: see tests above, button will be visible or invisible + // depending on the testing device + cy.get('.swiper-button > ion-button').eq(1).click({scrollBehavior: false, force: true}); + + cy.get('simple-swiper > *').eq(0).should('not.be.visible'); + }); + }); + + it('should have a link to the news page', function () { + cy.visit('/overview'); + cy.wait('@search'); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/message/single-message.json', + }).as('search'); + + cy.get('stapps-news-section').contains('ion-item', 'Mehr Nachrichten').click(); + cy.url().should('include', '/news'); + }); + }); + + // TODO: Reenable tests after update of component + // describe('navigation section', function () { + // it('should have editable dashboard sections', function () { + // cy.visit('/overview'); + + // const section = 'Vorlesungsv.'; + + // cy.get('stapps-navigation-section').within(() => { + // cy.get('.card').should('contain.text', section); + + // cy.get('ion-icon[name=edit_square]').click(); + // }); + + // cy.get('stapps-dashboard-edit-modal').within(() => { + // cy.contains('ion-item', section).find('ion-toggle').click(); + + // cy.contains('ion-button', 'Bestätigen').click(); + // }); + + // cy.get('stapps-navigation-section').within(() => { + // cy.get('.card').should('not.contain.text', section); + + // cy.get('ion-icon[name=edit_square]').click({scrollBehavior: false}); + // }); + + // cy.get('stapps-dashboard-edit-modal').within(() => { + // cy.contains('ion-item', section).find('ion-toggle').click(); + + // cy.contains('ion-button', 'Bestätigen').click(); + // }); + + // cy.get('stapps-navigation-section') + // .find('.card') + // .should('contain.text', section); + // }); + // }); + + describe('search section', function () { + it('should go to search', function () { + cy.visit('/overview'); + + cy.get('ion-searchbar').click({scrollBehavior: 'center'}); + cy.url().should('eq', Cypress.config().baseUrl + '/search'); + cy.get('ion-searchbar').should('not.have.value'); + cy.get('ion-searchbar input.searchbar-input').should('have.focus'); + + cy.get('stapps-data-list-item').should('have.length', 0); + }); + }); +}); diff --git a/frontend/app/cypress/integration/favorites.spec.ts b/frontend/app/cypress/integration/favorites.spec.ts new file mode 100644 index 00000000..1bad5a20 --- /dev/null +++ b/frontend/app/cypress/integration/favorites.spec.ts @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('favorites', function () { + it('should add a favorite', function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/test.json', + }).as('search'); + + cy.visit('/search'); + cy.get('ion-searchbar').type('test'); + let text!: string; + cy.get('stapps-data-list-item') + .first() + .within(() => { + cy.get('.title') + .invoke('text') + .then(it => { + text = it; + }); + cy.get('stapps-favorite-button').click(); + cy.get('stapps-favorite-button > ion-button > ion-icon') + .invoke('attr', 'ng-reflect-fill') + .should('eq', 'true'); + }); + cy.visit('/favorites'); + cy.get('stapps-data-list-item').within(() => { + cy.get('.title').should('contain', text); + cy.get('stapps-favorite-button').click(); + }); + cy.get('cdk-virtual-scroll-viewport').should('be.not.visible'); + cy.get('stapps-data-list').contains('Keine Ergebnisse').should('be.visible'); + }); +}); diff --git a/frontend/app/cypress/integration/feedback.spec.ts b/frontend/app/cypress/integration/feedback.spec.ts new file mode 100644 index 00000000..f86e8e82 --- /dev/null +++ b/frontend/app/cypress/integration/feedback.spec.ts @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('feedback', function () { + it('should send feedback', function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/*').as('feedback'); + + cy.visit('/feedback'); + + cy.get('input[name=name]').type('test'); + cy.get('input[name=email]').type('aaa@bbb.com'); + cy.get('textarea[name=message]').type(Array.from({length: 50}, () => 'a').join('')); + + cy.get('ion-button[type=submit]').should('have.attr', 'disabled'); + cy.get('ion-checkbox[name=termsAgree]').click(); + cy.get('ion-button[type=submit]').should('not.have.attr', 'disabled'); + + // cy.get('ion-button[type=submit]').click(); + // cy.wait('@feedback'); + }); +}); diff --git a/frontend/app/cypress/integration/ical.spec.ts b/frontend/app/cypress/integration/ical.spec.ts new file mode 100644 index 00000000..1a0f5c7a --- /dev/null +++ b/frontend/app/cypress/integration/ical.spec.ts @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('ical', function () { + beforeEach(function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/academic-event/event-1.json', + }).as('search'); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', { + fixture: 'search/types/date-series/date-series-for-event-1.json', + }); + }); + + it('should export a single event', function () { + cy.visit('/search?query=test'); + cy.wait('@search'); + cy.contains('ion-chip', 'Termine Auswählen').first().click(); + + cy.get('ion-app > ion-modal').within(() => { + cy.get('ion-footer > ion-toolbar > ion-button').should('have.attr', 'disabled'); + cy.contains('ion-item', /eine Stunde um 19. Jan. 2059, \d+:00/).click(); + cy.get('ion-footer > ion-toolbar > ion-button').should('not.have.attr', 'disabled'); + cy.get('ion-footer > ion-toolbar > ion-button').click(); + }); + + cy.get('add-event-review-modal').within(() => { + cy.get('ion-item-group').should('contain', 'UNIcert (Test)'); + cy.contains('ion-item-group', /19. Jan. 2059, \d+:00/); + }); + }); +}); diff --git a/frontend/app/cypress/integration/news.spec.ts b/frontend/app/cypress/integration/news.spec.ts new file mode 100644 index 00000000..efc51ab9 --- /dev/null +++ b/frontend/app/cypress/integration/news.spec.ts @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('news', function () { + beforeEach(function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/message/message-1.json', + }).as('search'); + }); + + it('should show all articles by default', function () { + cy.visit('/news'); + cy.get('stapps-news-item').should('have.length', 6); + }); + + it('should reload on filter change', function () { + cy.visit('/news'); + cy.get('stapps-news-item').should('have.length', 6); + cy.get('stapps-news-settings-filter').first().click({force: true}); + cy.wait('@search'); + }); + + it('should have an external link indicator on detail pages', function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/message/single-message.json', + }).as('search'); + cy.visit('/data-detail/c90c7d30-410f-5aea-a67b-ea1f98929b93'); + cy.contains('ion-card', 'Ursprünglicher Link').find('ion-icon[name="open_in_browser"]').should('exist'); + }); +}); diff --git a/frontend/app/cypress/integration/schedule.spec.ts b/frontend/app/cypress/integration/schedule.spec.ts new file mode 100644 index 00000000..f55c3f45 --- /dev/null +++ b/frontend/app/cypress/integration/schedule.spec.ts @@ -0,0 +1,114 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('schedule', function () { + beforeEach(function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/types/academic-event/event-1.json', + }).as('search'); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', { + fixture: 'search/types/date-series/date-series-for-event-1.json', + }); + }); + + it('should respect the url', function () { + cy.visit('/schedule/calendar/2022-01-19'); + cy.get('#date-select-button0').should('contain', '19.01.22'); + }); + + it('should navigate a full page', function () { + cy.visit('/schedule/calendar/2022-01-19'); + + cy.get('.swiper-slide-active').should('contain', 'Mi'); + + cy.get('.left-button').click(); + cy.wait(2000); + cy.get('.swiper-slide-active').should('contain', 'So'); + + cy.get('.right-button').click(); + cy.wait(2000); + cy.get('.swiper-slide-active').should('contain', 'Mi'); + + cy.get('.right-button').click(); + cy.wait(2000); + cy.get('.swiper-slide-active').should('contain', 'Sa'); + }); + + for (const [width, count] of [ + [760, 3], + [770, 3], + [1700, 7], + ]) { + const slideMultiplier = 3; + it(`should have ${count} slides for ${width}px`, function () { + cy.visit('/schedule/calendar/2022-01-59'); + cy.viewport(width, 550); + cy.get('.schedule-wrapper > .infinite-swiper-wrapper') + .find('.swiper-slide') + .should('have.length', slideMultiplier * count) + .first() + .invoke('outerWidth') + .should('be.gt', 140); + }); + } + + it('should navigate to a specific date', function () { + cy.visit('/schedule/calendar/2059-01-19'); + cy.contains('#date-select-button0', '19.01.59').click(); + cy.wait(2000); + cy.get('button[data-day=1][data-month=1][data-year=2059]', { + includeShadowDom: true, + }).click(); + cy.wait(2000); + cy.contains('#date-select-button0', '01.01.59').click(); + }); + + // TODO: Reenable and stabilize tests + //it('should add events', function () { + // cy.visit('/schedule/calendar/2059-01-19'); + // cy.get('stapps-schedule-card').should('not.exist'); + + // cy.get('ion-fab-button').click(); + // cy.wait(2000); + // cy.get('ion-modal').within(() => { + // cy.get('ion-searchbar').click().type('test'); + // cy.contains('ion-item', 'UNIcert (Test)') + // .contains('stapps-add-event-action-chip', 'Termine Auswählen') + // .click(); + // cy.wait(2000); + // }); + + // cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + // fixture: 'search/types/date-series/date-series-1.json', + // }); + + // cy.get('ion-app > ion-modal').within(() => { + // cy.contains('ion-item', /eine Stunde um 19. Jan. 2059, \d+:00/).click(); + // cy.wait(2000); + // cy.contains('ion-button', 'Bestätigen').click(); + // cy.wait(2000); + // }); + + // cy.get('ion-modal').within(() => { + // cy.contains('ion-item', 'UNIcert (Test)') + // .contains('stapps-add-event-action-chip', 'Hinzugefügt') + // .should('exist'); + // cy.contains('ion-button', 'Schließen').click(); + // cy.wait(2000); + // }); + + // cy.get('stapps-schedule-card').should('exist'); + //}); +}); diff --git a/frontend/app/cypress/integration/search.spec.ts b/frontend/app/cypress/integration/search.spec.ts new file mode 100644 index 00000000..2b0b7e7d --- /dev/null +++ b/frontend/app/cypress/integration/search.spec.ts @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +describe('search', function () { + beforeEach(function () { + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/test.json', + }); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', { + fixture: 'search/multi-result.json', + }); + }); + + it('should have search results', function () { + cy.visit('/search'); + cy.get('ion-searchbar').type('test'); + cy.get('stapps-data-list-item').should('have.length.greaterThan', 1); + }); + + it('should display an error message when no results are found', function () { + cy.visit('/search'); + cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', { + fixture: 'search/no-results.json', + }); + cy.get('ion-searchbar').type(Array.from({length: 10}, () => 'a').join('')); + cy.get('stapps-data-list-item').should('have.length', 0); + cy.get('stapps-data-list').contains('Keine Ergebnisse'); + }); + + it('should have a working clear button', function () { + cy.visit('/search'); + cy.get('ion-searchbar').type('test'); + cy.get('ion-searchbar').should('have.value', 'test'); + cy.get('stapps-data-list-item').should('have.length.greaterThan', 1); + cy.get('.searchbar-clear-button').click(); + cy.get('ion-searchbar').should('have.value', ''); + }); +}); diff --git a/frontend/app/cypress/integration/settings.spec.ts b/frontend/app/cypress/integration/settings.spec.ts new file mode 100644 index 00000000..5c53bfd3 --- /dev/null +++ b/frontend/app/cypress/integration/settings.spec.ts @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +describe('Settings Page', () => { + it('should have a proper title', () => { + cy.visit('/settings'); + + cy.get('ion-title').contains('Einstellungen'); + }); + + it('should change language', () => { + cy.visit('/settings'); + cy.contains('ion-select', 'Deutsch').should('be.visible').click({force: true}); + cy.get('ion-popover').contains('ion-item', 'English').click(); + cy.get('ion-popover').should('not.exist'); + cy.get('ion-title').contains('Settings'); + cy.contains('ion-select', 'English').click(); + cy.get('ion-popover').contains('ion-item', 'Deutsch').click(); + cy.get('ion-title').contains('Einstellungen'); + }); +}); diff --git a/frontend/app/cypress/integration/translations.spec.ts b/frontend/app/cypress/integration/translations.spec.ts new file mode 100644 index 00000000..81fbf5ac --- /dev/null +++ b/frontend/app/cypress/integration/translations.spec.ts @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Something akin to a.b.c a.b.C but never a... or a.AbC + */ +const probablyBadTranslationPattern = /^\s*([a-z_]+|[A-Z_]+)\.(([a-z_]+|[A-Z_]+)\.)([a-z_]+|[A-Z_]+)$/; + +// TODO: Reenable and stabilize tests +//describe('translations', function () { +// for (const path of [ +// 'settings', +// 'news', +// [ +// 'search', +// () => { +// cy.visit('/search'); +// cy.get('ion-searchbar').type('test'); +// cy.get('stapps-data-list-item').should('have.length.greaterThan', 1); +// }, +// ], +// [ +// 'context-menu', +// () => { +// cy.visit('/search'); +// cy.get('ion-searchbar').type('test'); +// cy.get('stapps-data-list-item').should('have.length.greaterThan', 1); +// cy.get('ion-menu-button[menu=context]').click(); +// cy.get('stapps-context'); +// }, +// ], +// 'map', +// 'feedback', +// 'about', +// 'canteen', +// 'catalog', +// 'schedule', +// 'dashboard', +// [ +// 'schedule add modal', +// () => { +// cy.visit('/schedule'); +// cy.get('ion-fab').click(); +// cy.get('ion-modal'); +// }, +// ], +// 'profile', +// 'favorites', +// ] as [string, () => void][]) { +// const name = Array.isArray(path) ? path[0] : path; +// const method = Array.isArray(path) ? path[1] : undefined; +// +// describe(name, function () { +// it('should not contain failed translation paths', function () { +// if (method) { +// method(); +// } else { +// cy.visit(`/${path}`); +// } +// +// cy.wait(500); +// +// cy.get('ion-app *').each($element => { +// const text = $element.text(); +// if (text) { +// expect(text).not.to.match(probablyBadTranslationPattern); +// } +// }); +// }); +// }); +// } +//}); diff --git a/frontend/app/cypress/support/commands.ts b/frontend/app/cypress/support/commands.ts new file mode 100644 index 00000000..af1f44a0 --- /dev/null +++ b/frontend/app/cypress/support/commands.ts @@ -0,0 +1,43 @@ +// *********************************************** +// This example namespace declaration will help +// with Intellisense and code completion in your +// IDE or Text Editor. +// *********************************************** +// declare namespace Cypress { +// interface Chainable { +// customCommand(param: any): typeof customCommand; +// } +// } +// +// function customCommand(param: any): void { +// console.warn(param); +// } +// +// NOTE: You can use it like so: +// Cypress.Commands.add('customCommand', customCommand); +// +// *********************************************** +// This example commands.js shows you how to +// create various custom commands and overwrite +// existing commands. +// +// For more comprehensive examples of custom +// commands please read more here: +// https://on.cypress.io/custom-commands +// *********************************************** +// +// +// -- This is a parent command -- +// Cypress.Commands.add("login", (email, password) => { ... }) +// +// +// -- This is a child command -- +// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) +// +// +// -- This is a dual command -- +// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) +// +// +// -- This will overwrite an existing command -- +// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) diff --git a/frontend/app/cypress/support/index.ts b/frontend/app/cypress/support/index.ts new file mode 100644 index 00000000..f86d0401 --- /dev/null +++ b/frontend/app/cypress/support/index.ts @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +// *********************************************************** +// This example support/index.js is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// When a command from ./commands is ready to use, import with `import './commands'` syntax +// import './commands'; + +beforeEach(async function () { + let databases: string[]; + if (window.indexedDB.databases) { + databases = (await window.indexedDB.databases()).map(it => it.name); + console.log('Trying to clear all databases'); + } else { + console.log("Browser doesn't support database enumeration, deleting just ionic storage"); + databases = ['_ionicstorage']; + } + for (const database of databases) { + if (database) { + console.log(`Deleting database ${database}`); + await new Promise(resolve => (window.indexedDB.deleteDatabase(database).onsuccess = resolve)); + console.log(`Deleted database ${database}`); + } + } +}); + +Cypress.on('window:before:load', window => { + // Fake that user is using its browser in german language + Object.defineProperty(window.navigator, 'language', {value: 'de-DE'}); + Object.defineProperty(window.navigator, 'languages', [{value: 'de-DE'}]); + + // Fail tests on console error + cy.stub(window.console, 'error').callsFake(message => { + // log out to the terminal + cy.now('task', 'error', message); + // log to Command Log and fail the test + throw new Error(message); + }); +}); + +Cypress.on('uncaught:exception', error => { + return !error.message.includes('ResizeObserver loop limit exceeded'); +}); diff --git a/frontend/app/cypress/tsconfig.json b/frontend/app/cypress/tsconfig.json new file mode 100644 index 00000000..79d78d7e --- /dev/null +++ b/frontend/app/cypress/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "include": ["**/*.ts"], + "compilerOptions": { + "sourceMap": false, + "types": ["cypress"] + } +} diff --git a/frontend/app/gradle.properties b/frontend/app/gradle.properties new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/icons.config.ts b/frontend/app/icons.config.ts new file mode 100644 index 00000000..0ba30ecc --- /dev/null +++ b/frontend/app/icons.config.ts @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import type {IconConfig} from './scripts/icon-config'; + +const config: IconConfig = { + inputPath: 'node_modules/material-symbols/material-symbols-rounded.woff2', + outputPath: 'src/assets/icons.min.woff2', + htmlGlob: 'src/**/*.html', + scriptGlob: 'src/**/*.ts', + additionalIcons: { + about: ['copyright', 'campaign', 'policy', 'description', 'text_snippet'], + navigation: [ + 'home', + 'newspaper', + 'search', + 'calendar_month', + 'local_cafe', + 'local_library', + 'inventory_2', + 'map', + 'grade', + 'account_circle', + 'settings', + 'info', + 'rate_review', + ], + }, + codePoints: { + ios_share: 'e6b8', + fact_check: 'f0c5', + }, +}; + +export default config; diff --git a/frontend/app/ionic.config.json b/frontend/app/ionic.config.json new file mode 100644 index 00000000..02c0cd54 --- /dev/null +++ b/frontend/app/ionic.config.json @@ -0,0 +1,8 @@ +{ + "name": "StApps", + "integrations": { + "cordova": {}, + "capacitor": {} + }, + "type": "angular" +} diff --git a/frontend/app/ios/.gitignore b/frontend/app/ios/.gitignore new file mode 100644 index 00000000..75e8c5ae --- /dev/null +++ b/frontend/app/ios/.gitignore @@ -0,0 +1,9 @@ +App/build +App/Pods +App/Podfile.lock +App/App/public +DerivedData +xcuserdata + +# Cordova plugins for Capacitor +capacitor-cordova-ios-plugins diff --git a/frontend/app/ios/App/App.xcodeproj/project.pbxproj b/frontend/app/ios/App/App.xcodeproj/project.pbxproj new file mode 100644 index 00000000..99b78ad0 --- /dev/null +++ b/frontend/app/ios/App/App.xcodeproj/project.pbxproj @@ -0,0 +1,412 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; }; + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; }; + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; }; + 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; }; + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; }; + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; }; + 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; }; + A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = ""; }; + 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = ""; }; + 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; }; + AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = ""; }; + E2D249FB277CB255005492AC /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = ""; }; + FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 504EC3011FED79650016851F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = { + isa = PBXGroup; + children = ( + AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 504EC2FB1FED79650016851F = { + isa = PBXGroup; + children = ( + 504EC3061FED79650016851F /* App */, + 504EC3051FED79650016851F /* Products */, + 7F8756D8B27F46E3366F6CEA /* Pods */, + 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */, + ); + sourceTree = ""; + }; + 504EC3051FED79650016851F /* Products */ = { + isa = PBXGroup; + children = ( + 504EC3041FED79650016851F /* App.app */, + ); + name = Products; + sourceTree = ""; + }; + 504EC3061FED79650016851F /* App */ = { + isa = PBXGroup; + children = ( + E2D249FB277CB255005492AC /* App.entitlements */, + 50379B222058CBB4000EE86E /* capacitor.config.json */, + 504EC3071FED79650016851F /* AppDelegate.swift */, + 504EC30B1FED79650016851F /* Main.storyboard */, + 504EC30E1FED79650016851F /* Assets.xcassets */, + 504EC3101FED79650016851F /* LaunchScreen.storyboard */, + 504EC3131FED79650016851F /* Info.plist */, + 2FAD9762203C412B000D30F8 /* config.xml */, + 50B271D01FEDC1A000F3C39B /* public */, + ); + path = App; + sourceTree = ""; + }; + 7F8756D8B27F46E3366F6CEA /* Pods */ = { + isa = PBXGroup; + children = ( + FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */, + AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 504EC3031FED79650016851F /* App */ = { + isa = PBXNativeTarget; + buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */; + buildPhases = ( + 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */, + 504EC3001FED79650016851F /* Sources */, + 504EC3011FED79650016851F /* Frameworks */, + 504EC3021FED79650016851F /* Resources */, + 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = App; + productName = App; + productReference = 504EC3041FED79650016851F /* App.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 504EC2FC1FED79650016851F /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0920; + TargetAttributes = { + 504EC3031FED79650016851F = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 504EC2FB1FED79650016851F; + productRefGroup = 504EC3051FED79650016851F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 504EC3031FED79650016851F /* App */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 504EC3021FED79650016851F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */, + 50B271D11FEDC1A000F3C39B /* public in Resources */, + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */, + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */, + 504EC30D1FED79650016851F /* Main.storyboard in Resources */, + 2FAD9763203C412B000D30F8 /* config.xml in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 504EC3001FED79650016851F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 504EC30B1FED79650016851F /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC30C1FED79650016851F /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC3111FED79650016851F /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 504EC3141FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 504EC3151FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 504EC3171FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = App/App.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = QN788YUV45; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\""; + PRODUCT_BUNDLE_IDENTIFIER = de.anyschool.app; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 504EC3181FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = App/App.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = QN788YUV45; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = de.anyschool.app; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3141FED79650016851F /* Debug */, + 504EC3151FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3171FED79650016851F /* Debug */, + 504EC3181FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 504EC2FC1FED79650016851F /* Project object */; +} diff --git a/frontend/app/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/frontend/app/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..42daef8a --- /dev/null +++ b/frontend/app/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/frontend/app/ios/App/App.xcworkspace/contents.xcworkspacedata b/frontend/app/ios/App/App.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..b301e824 --- /dev/null +++ b/frontend/app/ios/App/App.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/frontend/app/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/frontend/app/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/frontend/app/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/frontend/app/ios/App/App/App.entitlements b/frontend/app/ios/App/App/App.entitlements new file mode 100644 index 00000000..9f7be42c --- /dev/null +++ b/frontend/app/ios/App/App/App.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.developer.associated-domains + + applinks:mobile.app.uni-frankfurt.de + + + diff --git a/frontend/app/ios/App/App/AppDelegate.swift b/frontend/app/ios/App/App/AppDelegate.swift new file mode 100644 index 00000000..fc4ad93a --- /dev/null +++ b/frontend/app/ios/App/App/AppDelegate.swift @@ -0,0 +1,59 @@ +import UIKit +import Capacitor +import TSBackgroundFetch + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + let fetchManager = TSBackgroundFetch.sharedInstance(); + fetchManager?.didFinishLaunching(); + return true + } + + // [capacitor-background-fetch-plugin] + func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { + print("BackgroundFetchPlugin AppDelegate received fetch event"); + let fetchManager = TSBackgroundFetch.sharedInstance(); + fetchManager?.perform(completionHandler: completionHandler, applicationState: application.applicationState); + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool { + // Called when the app was launched with a url. Feel free to add additional processing here, + // but if you want the App API to support tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(app, open: url, options: options) + } + + func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { + // Called when the app was launched with an activity, including Universal Links. + // Feel free to add additional processing here, but if you want the App API to support + // tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler) + } + +} diff --git a/frontend/app/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/frontend/app/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..90eea7ec --- /dev/null +++ b/frontend/app/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,116 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "AppIcon-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "AppIcon-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "AppIcon-29x29@2x-1.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "AppIcon-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "AppIcon-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "AppIcon-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "AppIcon-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "AppIcon-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "AppIcon-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "AppIcon-20x20@2x-1.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "AppIcon-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "AppIcon-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "AppIcon-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "AppIcon-40x40@2x-1.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "AppIcon-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "AppIcon-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "AppIcon-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "AppIcon-512@2x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/frontend/app/ios/App/App/Assets.xcassets/Contents.json b/frontend/app/ios/App/App/Assets.xcassets/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/frontend/app/ios/App/App/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/frontend/app/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json b/frontend/app/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json new file mode 100644 index 00000000..d7d96a67 --- /dev/null +++ b/frontend/app/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "splash-2732x2732-2.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732-1.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/frontend/app/ios/App/App/Base.lproj/LaunchScreen.storyboard b/frontend/app/ios/App/App/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..e7ae5d78 --- /dev/null +++ b/frontend/app/ios/App/App/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/app/ios/App/App/Base.lproj/Main.storyboard b/frontend/app/ios/App/App/Base.lproj/Main.storyboard new file mode 100644 index 00000000..b44df7be --- /dev/null +++ b/frontend/app/ios/App/App/Base.lproj/Main.storyboard @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/frontend/app/ios/App/App/Info.plist b/frontend/app/ios/App/App/Info.plist new file mode 100644 index 00000000..a2313763 --- /dev/null +++ b/frontend/app/ios/App/App/Info.plist @@ -0,0 +1,75 @@ + + + + + BGTaskSchedulerPermittedIdentifiers + + com.transistorsoft.fetch + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + StApps + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 2.0.0 + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + de.anyschool.app + CFBundleURLSchemes + + de.anyschool.app + + + + + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSCalendarsUsageDescription + Calendar access is needed to sync your schedule with the device + NSLocationWhenInUseUsageDescription + Location services are used to enable all map and search features + UIBackgroundModes + + fetch + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UIStatusBarStyle + UIStatusBarStyleLightContent + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/frontend/app/ios/App/App/config.xml b/frontend/app/ios/App/App/config.xml new file mode 100644 index 00000000..74c32d84 --- /dev/null +++ b/frontend/app/ios/App/App/config.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/app/ios/App/Podfile b/frontend/app/ios/App/Podfile new file mode 100644 index 00000000..a20e073c --- /dev/null +++ b/frontend/app/ios/App/Podfile @@ -0,0 +1,41 @@ +require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers' + +platform :ios, '13.0' +use_frameworks! + +# workaround to avoid Xcode caching of Pods that requires +# Product -> Clean Build Folder after new Cordova plugins installed +# Requires CocoaPods 1.6 or newer +install! 'cocoapods', :disable_input_output_paths => true + +def capacitor_pods + pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' + pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' + pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app' + pod 'CapacitorBrowser', :path => '../../node_modules/@capacitor/browser' + pod 'CapacitorDevice', :path => '../../node_modules/@capacitor/device' + pod 'CapacitorDialog', :path => '../../node_modules/@capacitor/dialog' + pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem' + pod 'CapacitorGeolocation', :path => '../../node_modules/@capacitor/geolocation' + pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics' + pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard' + pod 'CapacitorLocalNotifications', :path => '../../node_modules/@capacitor/local-notifications' + pod 'CapacitorNetwork', :path => '../../node_modules/@capacitor/network' + pod 'CapacitorPreferences', :path => '../../node_modules/@capacitor/preferences' + pod 'CapacitorShare', :path => '../../node_modules/@capacitor/share' + pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen' + pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar' + pod 'HugotomaziCapacitorNavigationBar', :path => '../../node_modules/@hugotomazi/capacitor-navigation-bar' + pod 'TransistorsoftCapacitorBackgroundFetch', :path => '../../node_modules/@transistorsoft/capacitor-background-fetch' + pod 'CapacitorSecureStoragePlugin', :path => '../../node_modules/capacitor-secure-storage-plugin' + pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins' +end + +target 'App' do + capacitor_pods + # Add your Pods here +end + +post_install do |installer| + assertDeploymentTarget(installer) +end diff --git a/frontend/app/karma.conf.js b/frontend/app/karma.conf.js new file mode 100644 index 00000000..449e893d --- /dev/null +++ b/frontend/app/karma.conf.js @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +// Karma configuration file, see link for more information +// https://karma-runner.github.io/1.0/config/configuration-file.html +var isDocker = require('is-docker'); + +module.exports = function (config) { + config.set({ + basePath: '', + frameworks: ['jasmine', '@angular-devkit/build-angular'], + plugins: [ + require('karma-jasmine'), + require('karma-chrome-launcher'), + require('karma-coverage-istanbul-reporter'), + require('@angular-devkit/build-angular/plugins/karma'), + require('karma-mocha-reporter'), + ], + client: { + clearContext: false, // leave Jasmine Spec Runner output visible in browser + }, + coverageIstanbulReporter: { + dir: require('path').join(__dirname, './coverage'), + reports: ['html', 'lcovonly', 'text-summary', 'cobertura'], + fixWebpackSourcePaths: true, + }, + reporters: config.buildWebpack.options.codeCoverage ? ['mocha', 'coverage-istanbul'] : ['mocha'], + port: 9876, + colors: true, + logLevel: config.LOG_INFO, + autoWatch: true, + browsers: ['ChromeNoSandbox'], + customLaunchers: { + ChromeNoSandbox: { + base: 'ChromeHeadless', + // We must disable the Chrome sandbox when running Chrome inside Docker, + // see https://hackernoon.com/running-karma-tests-with-headless-chrome-inside-docker-ae4aceb06ed3 + flags: isDocker ? ['--no-sandbox'] : [], + }, + }, + singleRun: false, + }); +}; diff --git a/frontend/app/package-lock.json b/frontend/app/package-lock.json new file mode 100644 index 00000000..56803a9a --- /dev/null +++ b/frontend/app/package-lock.json @@ -0,0 +1,18230 @@ +{ + "name": "@openstapps/app", + "version": "2.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@aduh95/viz.js": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@aduh95/viz.js/-/viz.js-3.7.0.tgz", + "integrity": "sha512-20Pk2Z98fbPLkECcrZSJszKos/OgtvJJR3NcbVfgCJ6EQjDNzW2P1BKqImOz3tJ952dvO2DWEhcLhQ1Wz1e9ng==", + "dev": true + }, + "@ampproject/remapping": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@angular-devkit/architect": { + "version": "0.1303.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1303.9.tgz", + "integrity": "sha512-RMHqCGDxbLqT+250A0a8vagsoTdqGjAxjhrvTeq7PJmClI7uJ/uA1Fs18+t85toIqVKn2hovdY9sNf42nBDD2Q==", + "dev": true, + "requires": { + "@angular-devkit/core": "13.3.9", + "rxjs": "6.6.7" + }, + "dependencies": { + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "@angular-devkit/build-angular": { + "version": "13.3.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-13.3.9.tgz", + "integrity": "sha512-1LqcMizeabx3yOkx3tptCSAoEhG6nO6hPgI/B3EJ07G/ZcoxunMWSeN3P3zT10dZMEHhcxl+8cSStSXaXj9hfA==", + "dev": true, + "requires": { + "@ampproject/remapping": "2.2.0", + "@angular-devkit/architect": "0.1303.9", + "@angular-devkit/build-webpack": "0.1303.9", + "@angular-devkit/core": "13.3.9", + "@babel/core": "7.16.12", + "@babel/generator": "7.16.8", + "@babel/helper-annotate-as-pure": "7.16.7", + "@babel/plugin-proposal-async-generator-functions": "7.16.8", + "@babel/plugin-transform-async-to-generator": "7.16.8", + "@babel/plugin-transform-runtime": "7.16.10", + "@babel/preset-env": "7.16.11", + "@babel/runtime": "7.16.7", + "@babel/template": "7.16.7", + "@discoveryjs/json-ext": "0.5.6", + "@ngtools/webpack": "13.3.9", + "ansi-colors": "4.1.1", + "babel-loader": "8.2.5", + "babel-plugin-istanbul": "6.1.1", + "browserslist": "^4.9.1", + "cacache": "15.3.0", + "circular-dependency-plugin": "5.2.2", + "copy-webpack-plugin": "10.2.1", + "core-js": "3.20.3", + "critters": "0.0.16", + "css-loader": "6.5.1", + "esbuild": "0.14.22", + "esbuild-wasm": "0.14.22", + "glob": "7.2.0", + "https-proxy-agent": "5.0.0", + "inquirer": "8.2.0", + "jsonc-parser": "3.0.0", + "karma-source-map-support": "1.4.0", + "less": "4.1.2", + "less-loader": "10.2.0", + "license-webpack-plugin": "4.0.2", + "loader-utils": "3.2.0", + "mini-css-extract-plugin": "2.5.3", + "minimatch": "3.0.5", + "open": "8.4.0", + "ora": "5.4.1", + "parse5-html-rewriting-stream": "6.0.1", + "piscina": "3.2.0", + "postcss": "8.4.5", + "postcss-import": "14.0.2", + "postcss-loader": "6.2.1", + "postcss-preset-env": "7.2.3", + "regenerator-runtime": "0.13.9", + "resolve-url-loader": "5.0.0", + "rxjs": "6.6.7", + "sass": "1.49.9", + "sass-loader": "12.4.0", + "semver": "7.3.5", + "source-map-loader": "3.0.1", + "source-map-support": "0.5.21", + "stylus": "0.56.0", + "stylus-loader": "6.2.0", + "terser": "5.14.2", + "text-table": "0.2.0", + "tree-kill": "1.2.2", + "tslib": "2.3.1", + "webpack": "5.70.0", + "webpack-dev-middleware": "5.3.0", + "webpack-dev-server": "4.7.3", + "webpack-merge": "5.8.0", + "webpack-subresource-integrity": "5.1.0" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.7.tgz", + "integrity": "sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ==", + "dev": true, + "requires": { + "regenerator-runtime": "^0.13.4" + } + }, + "@npmcli/fs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", + "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", + "dev": true, + "requires": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + } + }, + "@npmcli/move-file": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", + "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "dev": true, + "requires": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + } + }, + "cacache": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", + "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", + "dev": true, + "requires": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + } + }, + "esbuild": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.22.tgz", + "integrity": "sha512-CjFCFGgYtbFOPrwZNJf7wsuzesx8kqwAffOlbYcFDLFuUtP8xloK1GH+Ai13Qr0RZQf9tE7LMTHJ2iVGJ1SKZA==", + "dev": true, + "optional": true, + "requires": { + "esbuild-android-arm64": "0.14.22", + "esbuild-darwin-64": "0.14.22", + "esbuild-darwin-arm64": "0.14.22", + "esbuild-freebsd-64": "0.14.22", + "esbuild-freebsd-arm64": "0.14.22", + "esbuild-linux-32": "0.14.22", + "esbuild-linux-64": "0.14.22", + "esbuild-linux-arm": "0.14.22", + "esbuild-linux-arm64": "0.14.22", + "esbuild-linux-mips64le": "0.14.22", + "esbuild-linux-ppc64le": "0.14.22", + "esbuild-linux-riscv64": "0.14.22", + "esbuild-linux-s390x": "0.14.22", + "esbuild-netbsd-64": "0.14.22", + "esbuild-openbsd-64": "0.14.22", + "esbuild-sunos-64": "0.14.22", + "esbuild-windows-32": "0.14.22", + "esbuild-windows-64": "0.14.22", + "esbuild-windows-arm64": "0.14.22" + } + }, + "glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "https-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", + "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "dev": true, + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "jsonc-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", + "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", + "dev": true + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", + "dev": true + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "dev": true, + "requires": { + "minipass": "^3.1.1" + } + }, + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, + "unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, + "requires": { + "unique-slug": "^2.0.0" + } + }, + "unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4" + } + } + } + }, + "@angular-devkit/build-webpack": { + "version": "0.1303.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1303.9.tgz", + "integrity": "sha512-CdYXvAN1xAik8FyfdF1B8Nt1B/1aBvkZr65AUVFOmP6wuVzcdn78BMZmZD42srYbV2449sWi5Vyo/j0a/lfJww==", + "dev": true, + "requires": { + "@angular-devkit/architect": "0.1303.9", + "rxjs": "6.6.7" + }, + "dependencies": { + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "@angular-devkit/core": { + "version": "13.3.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-13.3.9.tgz", + "integrity": "sha512-XqCuIWyoqIsLABjV3GQL/+EiBCt3xVPPtNp3Mg4gjBsDLW7PEnvbb81yGkiZQmIsq4EIyQC/6fQa3VdjsCshGg==", + "dev": true, + "requires": { + "ajv": "8.9.0", + "ajv-formats": "2.1.1", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + }, + "dependencies": { + "ajv": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.9.0.tgz", + "integrity": "sha512-qOKJyNj/h+OWx7s5DePL6Zu1KeM9jPZhwBqs+7DzP6bGOvqzVCSf0xueYmVuaC/oQ/VtS2zLMLHdQFbkka+XDQ==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "@angular-devkit/schematics": { + "version": "13.3.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-13.3.9.tgz", + "integrity": "sha512-oNHLNtwbtEJ0dYPPXy1NpfRdSiFsYBl7+ozJklLgNV/AEOxlSi2qlVx6DoxNVjz5XgQ7Z+eoVDMw7ewGPnGSyA==", + "dev": true, + "requires": { + "@angular-devkit/core": "13.3.9", + "jsonc-parser": "3.0.0", + "magic-string": "0.25.7", + "ora": "5.4.1", + "rxjs": "6.6.7" + }, + "dependencies": { + "jsonc-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", + "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", + "dev": true + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "@angular-eslint/builder": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/builder/-/builder-13.5.0.tgz", + "integrity": "sha512-IYY/HYS4fSddJLs2pAkMkKhHL07driUILPxGnGLblfWuoJBhRspyrVL3uZc3Q4iJXc1RJfaOno9oRw11FGyL6Q==", + "dev": true, + "requires": { + "@nrwl/devkit": "13.1.3" + } + }, + "@angular-eslint/bundled-angular-compiler": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-13.5.0.tgz", + "integrity": "sha512-7M/5ilxqPD3ydgqqdLsYs3kBwZgNg2Y6C01B5SEHZNLqLT9kAJa7I4y6GlxCZqejCIh554kdXGeV3abIxFccSg==", + "dev": true + }, + "@angular-eslint/eslint-plugin": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin/-/eslint-plugin-13.5.0.tgz", + "integrity": "sha512-k9o9WIqUkdO8tdYFCJ54PUWsNd9HHflih/GmA13EWciBYx8QxciwBh0u4NSAnbtOwp4Y7juGZ/Dta5ZrT/2VBA==", + "dev": true, + "requires": { + "@angular-eslint/utils": "13.5.0", + "@typescript-eslint/experimental-utils": "5.27.1" + } + }, + "@angular-eslint/eslint-plugin-template": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-13.5.0.tgz", + "integrity": "sha512-ZVSXayn8MqYOhYomH2Cjc0azhuUQbY9fp9dKjJZOD64KhP8BYHw8+Ogc9E/FU5oZQ9fKw6A+23NAYKmLNqSAgA==", + "dev": true, + "requires": { + "@angular-eslint/bundled-angular-compiler": "13.5.0", + "@typescript-eslint/experimental-utils": "5.27.1", + "aria-query": "^4.2.2", + "axobject-query": "^2.2.0" + } + }, + "@angular-eslint/schematics": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/schematics/-/schematics-13.5.0.tgz", + "integrity": "sha512-0LvdalNpYb0oWwptwkeK2PVokfQ9itMIp8/aMjbOLH1RQ3eHFZgBtVvVm3G5EpPKzbL0llaeTifZvH2z70qVYQ==", + "dev": true, + "requires": { + "@angular-eslint/eslint-plugin": "13.5.0", + "@angular-eslint/eslint-plugin-template": "13.5.0", + "ignore": "5.2.0", + "strip-json-comments": "3.1.1", + "tmp": "0.2.1" + }, + "dependencies": { + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "requires": { + "rimraf": "^3.0.0" + } + } + } + }, + "@angular-eslint/template-parser": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-13.5.0.tgz", + "integrity": "sha512-k+24+kBjaOuthfp9RBQB0zH6UqeizZuFQFEuZEQbvirPbdQ2SqNBw7IcmW2Qw1v7fjFe6/6gqK7wm2g7o9ZZvA==", + "dev": true, + "requires": { + "@angular-eslint/bundled-angular-compiler": "13.5.0", + "eslint-scope": "^5.1.0" + }, + "dependencies": { + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + } + } + }, + "@angular-eslint/utils": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-13.5.0.tgz", + "integrity": "sha512-wX3W6STSDJDJ7ZyEsUdBp4HUPwmillMmKcdnFsy+qxbpJFzFOxOFpK1zet4ELsq1XpB89i9vRvC3vYbpHn3CSw==", + "dev": true, + "requires": { + "@angular-eslint/bundled-angular-compiler": "13.5.0", + "@typescript-eslint/experimental-utils": "5.27.1" + } + }, + "@angular/animations": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-13.3.11.tgz", + "integrity": "sha512-KE/3RuvixHIk9YTSwaUsezsUm9Ig9Y8rZMpHOT/8bRtzPiJ5ld2GnDHjrJgyZn7TdoP4wz4YCta5eC4ycu+KCw==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@angular/cdk": { + "version": "13.3.9", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-13.3.9.tgz", + "integrity": "sha512-XCuCbeuxWFyo3EYrgEYx7eHzwl76vaWcxtWXl00ka8d+WAOtMQ6Tf1D98ybYT5uwF9889fFpXAPw98mVnlo3MA==", + "requires": { + "parse5": "^5.0.0", + "tslib": "^2.3.0" + } + }, + "@angular/cli": { + "version": "13.3.9", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-13.3.9.tgz", + "integrity": "sha512-b64mfB7A8vw5QmopEnkCVhGH8zDX5FrQVKKCRlK1dO3GEtAdfhFJb5J7TBbCOwp1XfYJ5jl+biNQy4HoX5HQPw==", + "dev": true, + "requires": { + "@angular-devkit/architect": "0.1303.9", + "@angular-devkit/core": "13.3.9", + "@angular-devkit/schematics": "13.3.9", + "@schematics/angular": "13.3.9", + "@yarnpkg/lockfile": "1.1.0", + "ansi-colors": "4.1.1", + "debug": "4.3.3", + "ini": "2.0.0", + "inquirer": "8.2.0", + "jsonc-parser": "3.0.0", + "npm-package-arg": "8.1.5", + "npm-pick-manifest": "6.1.1", + "open": "8.4.0", + "ora": "5.4.1", + "pacote": "12.0.3", + "resolve": "1.22.0", + "semver": "7.3.5", + "symbol-observable": "4.0.0", + "uuid": "8.3.2" + }, + "dependencies": { + "debug": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", + "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "jsonc-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", + "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", + "dev": true + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "resolve": { + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", + "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", + "dev": true, + "requires": { + "is-core-module": "^2.8.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@angular/common": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-13.3.11.tgz", + "integrity": "sha512-gPMwDYIAag1izXm2tRQ6EOIx9FVEUqLdr+qYtRVoQtoBmfkoTSLGcpeBXqqlPVxVPbA6Li1WZZT5wxLLlLAN+Q==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@angular/compiler": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-13.3.11.tgz", + "integrity": "sha512-EV6JCBbXdHDHbPShWmymvuoxFYG0KVc8sDJpYp47WLHCY2zgZaXhvWs//Hrls3fmi+TGTekgRa2jOBBNce/Ggg==", + "dev": true, + "requires": { + "tslib": "^2.3.0" + } + }, + "@angular/compiler-cli": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-13.3.11.tgz", + "integrity": "sha512-cl+3Wzxt8NRi2WY+RdsxuQ3yQRUp8pSlfSlJJnfaKE1BEqap6uem2DovuhnIbmrLhxZ5xt7o+I1szyO6sn6+ag==", + "dev": true, + "requires": { + "@babel/core": "^7.17.2", + "chokidar": "^3.0.0", + "convert-source-map": "^1.5.1", + "dependency-graph": "^0.11.0", + "magic-string": "^0.26.0", + "reflect-metadata": "^0.1.2", + "semver": "^7.0.0", + "sourcemap-codec": "^1.4.8", + "tslib": "^2.3.0", + "yargs": "^17.2.1" + }, + "dependencies": { + "@babel/core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.5.tgz", + "integrity": "sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ==", + "dev": true, + "requires": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.0", + "@babel/helper-module-transforms": "^7.20.2", + "@babel/helpers": "^7.20.5", + "@babel/parser": "^7.20.5", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.5.tgz", + "integrity": "sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA==", + "dev": true, + "requires": { + "@babel/types": "^7.20.5", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + } + }, + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "magic-string": { + "version": "0.26.7", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.26.7.tgz", + "integrity": "sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.8" + } + } + } + }, + "@angular/core": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-13.3.11.tgz", + "integrity": "sha512-9BmE2CxyV0g+AkBeuc8IwjSOiJ8Y+kptXnqD/J8EAFT3B0/fLGVnjFdZC6Sev9L0SNZb6qdzebpfIOLqbUjReQ==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@angular/forms": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-13.3.11.tgz", + "integrity": "sha512-iMgTNB+Qc3TsfAZSk1FnUE6MVoddPzxhG9AKCfSlvpjFh8VmXkIjxPL3dun7J8OjayT3X+B8f7LZ9AkKNXtBKw==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@angular/language-service": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-13.3.11.tgz", + "integrity": "sha512-EDw8L0RKrRYUYWB2P0xS1WRazYvv5gOguX+IwPZlCpR95QLQPTTpmNaqvnYjmFlvQjGHJYc8wqtJJIIMiL6FSA==", + "dev": true + }, + "@angular/platform-browser": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-13.3.11.tgz", + "integrity": "sha512-PG3chCErARb6wNzkOed2NsZmgvTmbumRx/6sMXqGkDKXYQm0JULnl4X42Rn+JCgJ9DLJi5/jrd1dbcBCrKk9Vg==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@angular/platform-browser-dynamic": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-13.3.11.tgz", + "integrity": "sha512-xM0VRC1Nw//SHO3gkghUHyjCaaQbk1UYMq4vIu3iKVq9KLqOSZgccv0NcOKHzXXN3S5RgX2auuyOUOCD6ny1Pg==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@angular/router": { + "version": "13.3.11", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-13.3.11.tgz", + "integrity": "sha512-bJTcxDYKEyoqtsi1kJcDJWLmEN+dXpwhU07SsqUwfyN4V5fYF1ApDhpJ4c17hNdjEqe106srT9tiHXhmWayhmQ==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@assemblyscript/loader": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz", + "integrity": "sha512-H71nDOOL8Y7kWRLqf6Sums+01Q5msqBW2KhDUTemh1tvY04eSkSXrK0uj/4mmY0Xr16/3zyZmsrxN7CKuRbNRg==", + "dev": true + }, + "@asymmetrik/ngx-leaflet": { + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/@asymmetrik/ngx-leaflet/-/ngx-leaflet-13.0.2.tgz", + "integrity": "sha512-7JUucZeODTpCrKh1OdhJpzFl6vnawpmramX+ow47AG2R73p5ZNxymTjD6fmevJLL9H6w2PeD2i4Vt6s4V018Kg==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@asymmetrik/ngx-leaflet-markercluster": { + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/@asymmetrik/ngx-leaflet-markercluster/-/ngx-leaflet-markercluster-13.0.1.tgz", + "integrity": "sha512-K9LqZPv5A4yplE6Fe91pPE8es2Km7vaEnVIVmiMlIrsTGtOMiyM+lvO0r/i8c+7AqbG9f8bka5++bdZZkKJ5jQ==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@awesome-cordova-plugins/calendar": { + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/calendar/-/calendar-5.45.0.tgz", + "integrity": "sha512-Pejmj4lPLPDeb6ppwacgl8l1IUXDm5amuzTKvl41P336czhF4G7hENk/s9HjOb8273NNzhu2/CMwTWssKT3G3g==", + "requires": { + "@types/cordova": "^0.0.34" + } + }, + "@awesome-cordova-plugins/core": { + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/core/-/core-5.45.0.tgz", + "integrity": "sha512-VrFNy6KLu3yyIKX3+6knUTDfSy59MPWUDni31ypGIQyxZv0eInuAgy3D4dhEdSbTkCIRyF40u4CJk4bN5zUYzQ==", + "requires": { + "@types/cordova": "^0.0.34" + } + }, + "@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "requires": { + "@babel/highlight": "^7.18.6" + } + }, + "@babel/compat-data": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.5.tgz", + "integrity": "sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g==", + "dev": true + }, + "@babel/core": { + "version": "7.16.12", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz", + "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.16.8", + "@babel/helper-compilation-targets": "^7.16.7", + "@babel/helper-module-transforms": "^7.16.7", + "@babel/helpers": "^7.16.7", + "@babel/parser": "^7.16.12", + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.16.10", + "@babel/types": "^7.16.8", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.1.2", + "semver": "^6.3.0", + "source-map": "^0.5.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz", + "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==", + "dev": true, + "requires": { + "@babel/types": "^7.16.8", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true + } + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz", + "integrity": "sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==", + "dev": true, + "requires": { + "@babel/types": "^7.16.7" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", + "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", + "dev": true, + "requires": { + "@babel/helper-explode-assignable-expression": "^7.18.6", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz", + "integrity": "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.20.0", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.21.3", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.5.tgz", + "integrity": "sha512-3RCdA/EmEaikrhayahwToF0fpweU/8o2p8vhc1c/1kftHOdTKuC65kik/TLc+qfbS8JKw4qqJbne4ovICDhmww==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-member-expression-to-functions": "^7.18.9", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.19.1", + "@babel/helper-split-export-declaration": "^7.18.6" + }, + "dependencies": { + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + } + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.20.5.tgz", + "integrity": "sha512-m68B1lkg3XDGX5yCvGO0kPx3v9WIYLnzjKfPcQiwntEQa5ZeRkPmo2X/ISJc8qxWGfwUr+kvZAeEzAwLec2r2w==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.2.1" + }, + "dependencies": { + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + } + } + }, + "@babel/helper-define-polyfill-provider": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", + "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", + "dev": true, + "requires": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "dev": true + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", + "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-function-name": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", + "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "dev": true, + "requires": { + "@babel/template": "^7.18.10", + "@babel/types": "^7.19.0" + }, + "dependencies": { + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + } + } + }, + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz", + "integrity": "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==", + "dev": true, + "requires": { + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-module-transforms": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz", + "integrity": "sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.20.2", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.1", + "@babel/types": "^7.20.2" + }, + "dependencies": { + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + } + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", + "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "dev": true + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + }, + "dependencies": { + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + } + } + }, + "@babel/helper-replace-supers": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz", + "integrity": "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-member-expression-to-functions": "^7.18.9", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/traverse": "^7.19.1", + "@babel/types": "^7.19.0" + } + }, + "@babel/helper-simple-access": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", + "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", + "dev": true, + "requires": { + "@babel/types": "^7.20.2" + } + }, + "@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", + "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "dev": true, + "requires": { + "@babel/types": "^7.20.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-string-parser": { + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" + }, + "@babel/helper-validator-option": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "dev": true + }, + "@babel/helper-wrap-function": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", + "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + }, + "dependencies": { + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + } + } + }, + "@babel/helpers": { + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.6.tgz", + "integrity": "sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w==", + "dev": true, + "requires": { + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + }, + "dependencies": { + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + } + } + }, + "@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "@babel/parser": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.5.tgz", + "integrity": "sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==", + "dev": true + }, + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz", + "integrity": "sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", + "@babel/plugin-proposal-optional-chaining": "^7.18.9" + } + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.8.tgz", + "integrity": "sha512-71YHIvMuiuqWJQkebWJtdhQTfd4Q4mF76q2IX37uZPkG9+olBxsX+rH1vkhFto4UeJZ9dPY2s+mDvhDm1u2BGQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.16.7", + "@babel/helper-remap-async-to-generator": "^7.16.8", + "@babel/plugin-syntax-async-generators": "^7.8.4" + } + }, + "@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-proposal-class-static-block": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz", + "integrity": "sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + } + }, + "@babel/plugin-proposal-dynamic-import": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", + "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + } + }, + "@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", + "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-proposal-json-strings": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", + "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3" + } + }, + "@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz", + "integrity": "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + } + }, + "@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + } + }, + "@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.2.tgz", + "integrity": "sha512-Ks6uej9WFK+fvIMesSqbAto5dD8Dz4VuuFvGJFKgIGSkJuRGcrwGECPA1fDgQK3/DbExBJpEkTeYeB8geIFCSQ==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.20.1", + "@babel/helper-compilation-targets": "^7.20.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.20.1" + } + }, + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", + "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + } + }, + "@babel/plugin-proposal-optional-chaining": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz", + "integrity": "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-proposal-private-property-in-object": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.20.5.tgz", + "integrity": "sha512-Vq7b9dUA12ByzB4EjQTPo25sFhY+08pQDBSZRtUAkj7lb7jahaHR5igera16QZ+3my1nYR4dKsNdYj5IjPHilQ==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.20.5", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "dependencies": { + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + } + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz", + "integrity": "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.16.8.tgz", + "integrity": "sha512-MtmUmTJQHCnyJVrScNzNlofQJ3dLFuobYn3mwOTKHnSCMtbNsqvF71GQmJfFjdrXSsAA7iysFmYWw4bXZ20hOg==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/helper-plugin-utils": "^7.16.7", + "@babel/helper-remap-async-to-generator": "^7.16.8" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.5.tgz", + "integrity": "sha512-WvpEIW9Cbj9ApF3yJCjIEEf1EiNJLtXagOrL5LNWEZOo3jv8pmPoYTSNJQvqej8OavVlgOoOPw6/htGZro6IkA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.20.2.tgz", + "integrity": "sha512-9rbPp0lCVVoagvtEyQKSo5L8oo0nQS/iif+lwlAz29MccX2642vWDlSZK+2T2buxbopotId2ld7zZAzRfz9j1g==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.0", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.19.1", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + }, + "dependencies": { + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz", + "integrity": "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.2.tgz", + "integrity": "sha512-mENM+ZHrvEgxLTBXUiQ621rRXZes3KWUv6NdQlrnr1TkWVw+hUjQBZuP2X32qKlrlG2BzgR95gkuCRSkJl8vIw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "dev": true, + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.18.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz", + "integrity": "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "dev": true, + "requires": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.19.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.19.6.tgz", + "integrity": "sha512-uG3od2mXvAtIFQIh0xrpLH6r5fpSQN04gIVovl+ODLdUMANokxQLZnPBHcjmv3GxRjnqwLuHvppjjcelqUFZvg==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.19.6", + "@babel/helper-plugin-utils": "^7.19.0" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.19.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz", + "integrity": "sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.19.6", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-simple-access": "^7.19.4" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.19.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.6.tgz", + "integrity": "sha512-fqGLBepcc3kErfR9R3DnVpURmckXP7gj7bAlrTQyBxrigFqszZCkFkcoxzCp2v32XmwXLvbw+8Yq9/b+QqksjQ==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.19.6", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-validator-identifier": "^7.19.1" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.20.5.tgz", + "integrity": "sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.20.5", + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", + "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.5.tgz", + "integrity": "sha512-h7plkOmcndIUWXZFLgpbrh2+fXAi47zcUX7IrOQuZdLD0I0KvjJ6cvo3BEcAOsDOcZhVKGJqv07mkSqK0y2isQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.20.5.tgz", + "integrity": "sha512-kW/oO7HPBtntbsahzQ0qSE3tFvkFwnbozz3NWFhLGqH75vLEg+sCGngLlhVkePlCs3Jv0dBBHDzCHxNiFAQKCQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "regenerator-transform": "^0.15.1" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-runtime": { + "version": "7.16.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.10.tgz", + "integrity": "sha512-9nwTiqETv2G7xI4RvXHNfpGdr8pAA+Q/YtN3yLK7OoK7n9OibVm/xymJ838a9A6E/IciOLPj82lZk0fW6O4O7w==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/helper-plugin-utils": "^7.16.7", + "babel-plugin-polyfill-corejs2": "^0.3.0", + "babel-plugin-polyfill-corejs3": "^0.5.0", + "babel-plugin-polyfill-regenerator": "^0.3.0", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz", + "integrity": "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-unicode-escapes": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", + "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/preset-env": { + "version": "7.16.11", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.11.tgz", + "integrity": "sha512-qcmWG8R7ZW6WBRPZK//y+E3Cli151B20W1Rv7ln27vuPaXU/8TKms6jFdiJtF7UDTxcrb7mZd88tAeK9LjdT8g==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.16.8", + "@babel/helper-compilation-targets": "^7.16.7", + "@babel/helper-plugin-utils": "^7.16.7", + "@babel/helper-validator-option": "^7.16.7", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.16.7", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.16.7", + "@babel/plugin-proposal-async-generator-functions": "^7.16.8", + "@babel/plugin-proposal-class-properties": "^7.16.7", + "@babel/plugin-proposal-class-static-block": "^7.16.7", + "@babel/plugin-proposal-dynamic-import": "^7.16.7", + "@babel/plugin-proposal-export-namespace-from": "^7.16.7", + "@babel/plugin-proposal-json-strings": "^7.16.7", + "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7", + "@babel/plugin-proposal-numeric-separator": "^7.16.7", + "@babel/plugin-proposal-object-rest-spread": "^7.16.7", + "@babel/plugin-proposal-optional-catch-binding": "^7.16.7", + "@babel/plugin-proposal-optional-chaining": "^7.16.7", + "@babel/plugin-proposal-private-methods": "^7.16.11", + "@babel/plugin-proposal-private-property-in-object": "^7.16.7", + "@babel/plugin-proposal-unicode-property-regex": "^7.16.7", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.16.7", + "@babel/plugin-transform-async-to-generator": "^7.16.8", + "@babel/plugin-transform-block-scoped-functions": "^7.16.7", + "@babel/plugin-transform-block-scoping": "^7.16.7", + "@babel/plugin-transform-classes": "^7.16.7", + "@babel/plugin-transform-computed-properties": "^7.16.7", + "@babel/plugin-transform-destructuring": "^7.16.7", + "@babel/plugin-transform-dotall-regex": "^7.16.7", + "@babel/plugin-transform-duplicate-keys": "^7.16.7", + "@babel/plugin-transform-exponentiation-operator": "^7.16.7", + "@babel/plugin-transform-for-of": "^7.16.7", + "@babel/plugin-transform-function-name": "^7.16.7", + "@babel/plugin-transform-literals": "^7.16.7", + "@babel/plugin-transform-member-expression-literals": "^7.16.7", + "@babel/plugin-transform-modules-amd": "^7.16.7", + "@babel/plugin-transform-modules-commonjs": "^7.16.8", + "@babel/plugin-transform-modules-systemjs": "^7.16.7", + "@babel/plugin-transform-modules-umd": "^7.16.7", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.16.8", + "@babel/plugin-transform-new-target": "^7.16.7", + "@babel/plugin-transform-object-super": "^7.16.7", + "@babel/plugin-transform-parameters": "^7.16.7", + "@babel/plugin-transform-property-literals": "^7.16.7", + "@babel/plugin-transform-regenerator": "^7.16.7", + "@babel/plugin-transform-reserved-words": "^7.16.7", + "@babel/plugin-transform-shorthand-properties": "^7.16.7", + "@babel/plugin-transform-spread": "^7.16.7", + "@babel/plugin-transform-sticky-regex": "^7.16.7", + "@babel/plugin-transform-template-literals": "^7.16.7", + "@babel/plugin-transform-typeof-symbol": "^7.16.7", + "@babel/plugin-transform-unicode-escapes": "^7.16.7", + "@babel/plugin-transform-unicode-regex": "^7.16.7", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.16.8", + "babel-plugin-polyfill-corejs2": "^0.3.0", + "babel-plugin-polyfill-corejs3": "^0.5.0", + "babel-plugin-polyfill-regenerator": "^0.3.0", + "core-js-compat": "^3.20.2", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/runtime": { + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.6.tgz", + "integrity": "sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA==", + "requires": { + "regenerator-runtime": "^0.13.11" + } + }, + "@babel/runtime-corejs3": { + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.20.6.tgz", + "integrity": "sha512-tqeujPiuEfcH067mx+7otTQWROVMKHXEaOQcAeNV5dDdbPWvPcFA8/W9LXw2NfjNmOetqLl03dfnG2WALPlsRQ==", + "dev": true, + "requires": { + "core-js-pure": "^3.25.1", + "regenerator-runtime": "^0.13.11" + } + }, + "@babel/template": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", + "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/parser": "^7.16.7", + "@babel/types": "^7.16.7" + } + }, + "@babel/traverse": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.5.tgz", + "integrity": "sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.5", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.20.5", + "@babel/types": "^7.20.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "dependencies": { + "@babel/generator": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.5.tgz", + "integrity": "sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA==", + "dev": true, + "requires": { + "@babel/types": "^7.20.5", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } + } + }, + "@babel/types": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.5.tgz", + "integrity": "sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg==", + "dev": true, + "requires": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + } + }, + "@capacitor/android": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-4.6.1.tgz", + "integrity": "sha512-Hnh1tmUr1SP67U6D6ry5I5BEBSN/1nkBAIjQIqf5tF82WNxKbpbC6GfkHE4hMJZinRTrCf36LkrdP8srh7SxoA==", + "dev": true + }, + "@capacitor/app": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@capacitor/app/-/app-4.1.1.tgz", + "integrity": "sha512-SJcJA1rhFQyeH6eLfUEbdKkHzAwzahJNVPNXmU88fdmXpMgM2dJGzZj1vrm6e21aQq+Z4aBVLJ2RCdj92zD7wg==" + }, + "@capacitor/browser": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/browser/-/browser-4.1.0.tgz", + "integrity": "sha512-WKAZDc9ECYQesEXlVhJu5/qbqkL5rj15wg9yBqSC0RXYsOU7aDiTMjXIu+Vu68jA8IQqIuNIp8slDvDQa+U/Kw==" + }, + "@capacitor/cli": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-4.6.1.tgz", + "integrity": "sha512-iFMK83B67RXEQyWi1kOzQmRdCFc/pPD924mjAXG7yFLVyMvVRGAwwf8LzWFzHyQDoKK+auPMHycVfzm9T6Iyyg==", + "dev": true, + "requires": { + "@ionic/cli-framework-output": "^2.2.5", + "@ionic/utils-fs": "^3.1.6", + "@ionic/utils-subprocess": "^2.1.11", + "@ionic/utils-terminal": "^2.3.3", + "commander": "^9.3.0", + "debug": "^4.3.4", + "env-paths": "^2.2.0", + "kleur": "^4.1.4", + "native-run": "^1.6.0", + "open": "^8.4.0", + "plist": "^3.0.5", + "prompts": "^2.4.2", + "rimraf": "^3.0.2", + "semver": "^7.3.7", + "tar": "^6.1.11", + "tslib": "^2.4.0", + "xml2js": "^0.4.23" + } + }, + "@capacitor/core": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-4.6.1.tgz", + "integrity": "sha512-7A2IV9E8umgu9u0fChUTjQJq+Jp25GJZMmWxoQN/nVx/1rcpFJ4m1xo3NPBoIRs+aV7FR+BM17mPrnkKlA8N2g==", + "requires": { + "tslib": "^2.1.0" + } + }, + "@capacitor/device": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/device/-/device-4.1.0.tgz", + "integrity": "sha512-BlcYb6e6m+vC1SxeyUDIUGfuNXdKEcpFPDCs/kxk2SByFc/BkvXeoy4NjY4qmTderGELofX9bta5Iy9JV7rGUg==" + }, + "@capacitor/dialog": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/dialog/-/dialog-4.1.0.tgz", + "integrity": "sha512-Uej4+WE6Ec445iTzLVD22fmsPfu8nW+IJyiixtzP5+ZLNhdJ5mjbMUUTUrZTbDUK8hViFRsfLo90qbeGzgMTVA==" + }, + "@capacitor/filesystem": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@capacitor/filesystem/-/filesystem-4.1.4.tgz", + "integrity": "sha512-ivko1RNK4hq63xhMacq8D6D97N5/SAafTsrmY/pghYrG6Cl2SEY0+IgRu7V9/VWeN3FSplyUPucjUTAFQxXN5g==" + }, + "@capacitor/geolocation": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/geolocation/-/geolocation-4.1.0.tgz", + "integrity": "sha512-hfI4MUcu1zcJPTvm0g6V3telTGwq9sCU8EnY4hFJpLedbIQeWPthCOSbFtNHAU5mVaAP1Zls3x6TsXL8TX08EA==" + }, + "@capacitor/haptics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/haptics/-/haptics-4.1.0.tgz", + "integrity": "sha512-gAIFy50e1VZPdokRFLkl8Y+yZYB3e4brd5yu9DRShbWbheruwU34TxtG5C1NANvq4mbXd3tMXzBi59Q5JFyTHA==" + }, + "@capacitor/ios": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-4.6.1.tgz", + "integrity": "sha512-kH1nPG2jCk7w6ASf2VX+tIxHoc2Z/c5+7d89yvtiKmEZXoPLuVyAv/Yx4PhJP2r7KSyl5S2gZZkzQrMdAjDVKg==", + "dev": true + }, + "@capacitor/keyboard": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/keyboard/-/keyboard-4.1.0.tgz", + "integrity": "sha512-5fanmJLdkXLEaro0oezkmpC15tBGlsLW4cp1jQTMPwyX6NLlPUFHdWUhMERzxL2QXHmHvtoFMJ4m15Eymgefuw==" + }, + "@capacitor/local-notifications": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@capacitor/local-notifications/-/local-notifications-4.1.4.tgz", + "integrity": "sha512-nEs0SYkOQG7xT8FiKH7CG6BFOJ7jZkWiYt+JbM38s8sSxsAw1D2qfocNIyXstTUxhrJvKBtbl7oTuKg7mGUeuQ==" + }, + "@capacitor/network": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/network/-/network-4.1.0.tgz", + "integrity": "sha512-GMJ6LmxmrFA55rAaYxgm4tKSZyUmuLRreQz5Gdu0P09Ja8abSjmXa/DX16gOu1I1+wqHWm2rRI6nPkeUH55Ibw==" + }, + "@capacitor/preferences": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@capacitor/preferences/-/preferences-4.0.2.tgz", + "integrity": "sha512-HgcRkMdVHSIV3TeQLZFmCaCeMWQ25wLyZZ7dA2f8Rw81Q1Nroxsi7HxTEGNqrWKSN9PNKBJD8vChr6eB2GNtZg==" + }, + "@capacitor/share": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/share/-/share-4.1.0.tgz", + "integrity": "sha512-Gh/cgy7Ee+9fkhw+Q4+9s2S4HiC34/eLoaohqRg1ahtpqvTQ3qdInoEJ23FdILq5cLj2ZPpx2VuEXjpLKX1Z5A==" + }, + "@capacitor/splash-screen": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@capacitor/splash-screen/-/splash-screen-4.1.2.tgz", + "integrity": "sha512-uw37mfFtpXH6lBG0Lz6/ZRvbnn1XZ0lVOL7UHylvW4C/BUJRKHqPloCXNMeSBGuBkf5WdW7sdmKdGdp4J5fU9g==" + }, + "@capacitor/status-bar": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@capacitor/status-bar/-/status-bar-4.1.1.tgz", + "integrity": "sha512-3wosxMD1XuIFz88+c2GdVEHSJV6u7suOeKQjyWf3zf9eFr622Sg+udZqDbC0dtTWXw97BWyCjv3r1EYJw7XnIA==" + }, + "@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "dev": true + }, + "@compodoc/compodoc": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/@compodoc/compodoc/-/compodoc-1.1.19.tgz", + "integrity": "sha512-09vdSIgoAXWD1MiLZNhiljLNQ1XzHw/w5shw5IPcUImr/I+1Y52srUL46mEXN8AXo0hbHb5LZcgs70mmrOvY7Q==", + "dev": true, + "requires": { + "@angular-devkit/schematics": "^13.2.4", + "@babel/core": "^7.17.5", + "@babel/preset-env": "^7.16.11", + "@compodoc/live-server": "^1.2.3", + "@compodoc/ngd-transformer": "^2.1.0", + "chalk": "4.1.2", + "cheerio": "^1.0.0-rc.10", + "chokidar": "^3.5.3", + "colors": "1.4.0", + "commander": "^9.0.0", + "cosmiconfig": "^7.0.1", + "decache": "^4.6.1", + "fancy-log": "^2.0.0", + "findit2": "^2.2.3", + "fs-extra": "^10.0.1", + "glob": "^7.2.0", + "handlebars": "^4.7.7", + "html-entities": "^2.3.2", + "i18next": "^21.6.11", + "inside": "^1.0.0", + "json5": "^2.2.0", + "lodash": "^4.17.21", + "loglevel": "^1.8.0", + "loglevel-plugin-prefix": "^0.8.4", + "lunr": "^2.3.9", + "marked": "^4.0.12", + "minimist": "^1.2.5", + "opencollective-postinstall": "^2.0.3", + "os-name": "4.0.1", + "pdfjs-dist": "^2.12.313", + "pdfmake": "^0.2.4", + "semver": "^7.3.5", + "traverse": "^0.6.6", + "ts-morph": "^13.0.3", + "uuid": "^8.3.2" + }, + "dependencies": { + "@babel/core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.5.tgz", + "integrity": "sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ==", + "dev": true, + "requires": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.0", + "@babel/helper-module-transforms": "^7.20.2", + "@babel/helpers": "^7.20.5", + "@babel/parser": "^7.20.5", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.5.tgz", + "integrity": "sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA==", + "dev": true, + "requires": { + "@babel/types": "^7.20.5", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + } + }, + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "@compodoc/live-server": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@compodoc/live-server/-/live-server-1.2.3.tgz", + "integrity": "sha512-hDmntVCyjjaxuJzPzBx68orNZ7TW4BtHWMnXlIVn5dqhK7vuFF/11hspO1cMmc+2QTYgqde1TBcb3127S7Zrow==", + "dev": true, + "requires": { + "chokidar": "^3.5.2", + "colors": "1.4.0", + "connect": "^3.7.0", + "cors": "^2.8.5", + "event-stream": "4.0.1", + "faye-websocket": "0.11.x", + "http-auth": "4.1.9", + "http-auth-connect": "^1.0.5", + "morgan": "^1.10.0", + "object-assign": "^4.1.1", + "open": "8.4.0", + "proxy-middleware": "^0.15.0", + "send": "^0.18.0", + "serve-index": "^1.9.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + } + } + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dev": true, + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + } + } + } + }, + "@compodoc/ngd-core": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@compodoc/ngd-core/-/ngd-core-2.1.0.tgz", + "integrity": "sha512-nyBH7J7SJJ2AV6OeZhJ02kRtVB7ALnZJKgShjoL9CNmOFEj8AkdhP9qTBIgjaDrbsW5pF4nx32KQL2fT7RFnqw==", + "dev": true, + "requires": { + "ansi-colors": "^4.1.1", + "fancy-log": "^1.3.3", + "typescript": "^4.0.3" + }, + "dependencies": { + "fancy-log": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", + "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", + "dev": true, + "requires": { + "ansi-gray": "^0.1.1", + "color-support": "^1.1.3", + "parse-node-version": "^1.0.0", + "time-stamp": "^1.0.0" + } + } + } + }, + "@compodoc/ngd-transformer": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@compodoc/ngd-transformer/-/ngd-transformer-2.1.0.tgz", + "integrity": "sha512-Jo4VCMzIUtgIAdRmhHhOoRRE01gCjc5CyrUERRx0VgEzkkCm1Wmu/XHSsQP6tSpCYHBjERghqaDqH5DabkR2oQ==", + "dev": true, + "requires": { + "@aduh95/viz.js": "^3.1.0", + "@compodoc/ngd-core": "~2.1.0", + "dot": "^1.1.3", + "fs-extra": "^9.0.1" + }, + "dependencies": { + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + } + } + }, + "@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "requires": { + "@jridgewell/trace-mapping": "0.3.9" + } + }, + "@csstools/postcss-progressive-custom-properties": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.3.0.tgz", + "integrity": "sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/selector-specificity": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.0.2.tgz", + "integrity": "sha512-IkpVW/ehM1hWKln4fCA3NzJU8KwD+kIOvPZA4cqxoJHtE21CCzjyp+Kxbu0i5I4tBNOlXPL9mjwnWlL0VEG4Fg==", + "dev": true + }, + "@cypress/request": { + "version": "2.88.10", + "resolved": "https://registry.npmjs.org/@cypress/request/-/request-2.88.10.tgz", + "integrity": "sha512-Zp7F+R93N0yZyG34GutyTNr+okam7s/Fzc1+i3kcqOP8vk6OuajuE9qZJ6Rs+10/1JFtXFYMdyarnU1rZuJesg==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "http-signature": "~1.3.6", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^8.3.2" + }, + "dependencies": { + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "qs": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "dev": true + } + } + }, + "@cypress/schematic": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@cypress/schematic/-/schematic-1.7.0.tgz", + "integrity": "sha512-CouQrVlZ+uHVVBQtmNoMYU9LyoSAmQTOLDpVjrdTdMPpJH1mWnHCL5OCMt+FZLR+43KRiWEvDUjNqSza11oGsQ==", + "dev": true, + "requires": { + "@angular-devkit/architect": "^0.1202.10", + "@angular-devkit/core": "^12.2.17", + "@angular-devkit/schematics": "^12.2.17", + "@schematics/angular": "^12.2.17", + "jsonc-parser": "^3.0.0", + "rxjs": "~6.6.0" + }, + "dependencies": { + "@angular-devkit/architect": { + "version": "0.1202.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1202.18.tgz", + "integrity": "sha512-C4ASKe+xBjl91MJyHDLt3z7ICPF9FU6B0CeJ1phwrlSHK9lmFG99WGxEj/Tc82+vHyPhajqS5XJ38KyVAPBGzA==", + "dev": true, + "requires": { + "@angular-devkit/core": "12.2.18", + "rxjs": "6.6.7" + } + }, + "@angular-devkit/core": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.18.tgz", + "integrity": "sha512-GDLHGe9HEY5SRS+NrKr14C8aHsRCiBFkBFSSbeohgLgcgSXzZHFoU84nDWrl3KZNP8oqcUSv5lHu6dLcf2fnww==", + "dev": true, + "requires": { + "ajv": "8.6.2", + "ajv-formats": "2.1.0", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + } + }, + "@angular-devkit/schematics": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.2.18.tgz", + "integrity": "sha512-bZ9NS5PgoVfetRC6WeQBHCY5FqPZ9y2TKHUo12sOB2YSL3tgWgh1oXyP8PtX34gasqsLjNULxEQsAQYEsiX/qQ==", + "dev": true, + "requires": { + "@angular-devkit/core": "12.2.18", + "ora": "5.4.1", + "rxjs": "6.6.7" + } + }, + "@schematics/angular": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-12.2.18.tgz", + "integrity": "sha512-niRS9Ly9y8uI0YmTSbo8KpdqCCiZ/ATMZWeS2id5M8JZvfXbngwiqJvojdSol0SWU+n1W4iA+lJBdt4gSKlD5w==", + "dev": true, + "requires": { + "@angular-devkit/core": "12.2.18", + "@angular-devkit/schematics": "12.2.18", + "jsonc-parser": "3.0.0" + }, + "dependencies": { + "jsonc-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", + "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", + "dev": true + } + } + }, + "ajv": { + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", + "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-formats": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.0.tgz", + "integrity": "sha512-USH2jBb+C/hIpwD2iRjp0pe0k+MvzG0mlSn/FIdCgQhUb9ALPRjt2KIQdfZDS9r0ZIeUAg7gOu9KL0PFqGqr5Q==", + "dev": true, + "requires": { + "ajv": "^8.0.0" + } + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "@cypress/xvfb": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz", + "integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==", + "dev": true, + "requires": { + "debug": "^3.1.0", + "lodash.once": "^4.1.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "@discoveryjs/json-ext": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.6.tgz", + "integrity": "sha512-ws57AidsDvREKrZKYffXddNkyaF14iHNHm8VQnZH6t99E8gczjNN0GpvcGny0imC80yQ0tHz1xVUKk/KFQSUyA==", + "dev": true + }, + "@es-joy/jsdoccomment": { + "version": "0.36.1", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.36.1.tgz", + "integrity": "sha512-922xqFsTpHs6D0BUiG4toiyPOMc8/jafnWKxz1KWgS4XzKPy2qXf1Pe6UFuNSCQqt6tOuhAWXBNuuyUhJmw9Vg==", + "dev": true, + "requires": { + "comment-parser": "1.3.1", + "esquery": "^1.4.0", + "jsdoc-type-pratt-parser": "~3.1.0" + } + }, + "@eslint/eslintrc": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz", + "integrity": "sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==", + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.4.0", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + } + } + }, + "@foliojs-fork/fontkit": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@foliojs-fork/fontkit/-/fontkit-1.9.1.tgz", + "integrity": "sha512-U589voc2/ROnvx1CyH9aNzOQWJp127JGU1QAylXGQ7LoEAF6hMmahZLQ4eqAcgHUw+uyW4PjtCItq9qudPkK3A==", + "dev": true, + "requires": { + "@foliojs-fork/restructure": "^2.0.2", + "brfs": "^2.0.0", + "brotli": "^1.2.0", + "browserify-optional": "^1.0.1", + "clone": "^1.0.4", + "deep-equal": "^1.0.0", + "dfa": "^1.2.0", + "tiny-inflate": "^1.0.2", + "unicode-properties": "^1.2.2", + "unicode-trie": "^2.0.0" + } + }, + "@foliojs-fork/linebreak": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@foliojs-fork/linebreak/-/linebreak-1.1.1.tgz", + "integrity": "sha512-pgY/+53GqGQI+mvDiyprvPWgkTlVBS8cxqee03ejm6gKAQNsR1tCYCIvN9FHy7otZajzMqCgPOgC4cHdt4JPig==", + "dev": true, + "requires": { + "base64-js": "1.3.1", + "brfs": "^2.0.2", + "unicode-trie": "^2.0.0" + }, + "dependencies": { + "base64-js": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", + "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", + "dev": true + } + } + }, + "@foliojs-fork/pdfkit": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@foliojs-fork/pdfkit/-/pdfkit-0.13.0.tgz", + "integrity": "sha512-YXeG1fml9k97YNC9K8e292Pj2JzGt9uOIiBFuQFxHsdQ45BlxW+JU3RQK6JAvXU7kjhjP8rCcYvpk36JLD33sQ==", + "dev": true, + "requires": { + "@foliojs-fork/fontkit": "^1.9.1", + "@foliojs-fork/linebreak": "^1.1.1", + "crypto-js": "^4.0.0", + "png-js": "^1.0.0" + } + }, + "@foliojs-fork/restructure": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@foliojs-fork/restructure/-/restructure-2.0.2.tgz", + "integrity": "sha512-59SgoZ3EXbkfSX7b63tsou/SDGzwUEK6MuB5sKqgVK1/XE0fxmpsOb9DQI8LXW3KfGnAjImCGhhEb7uPPAUVNA==", + "dev": true + }, + "@gar/promisify": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==" + }, + "@hapi/hoek": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" + }, + "@hapi/topo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", + "requires": { + "@hapi/hoek": "^9.0.0" + } + }, + "@hugotomazi/capacitor-navigation-bar": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@hugotomazi/capacitor-navigation-bar/-/capacitor-navigation-bar-2.0.0.tgz", + "integrity": "sha512-hebf0ixGPugiZfH6g7HS/hrDzkKmNdJV/pV2jUz5lfoZXFMjE+7aeAr1AqwW6EGNej65WcEP8VUL5YUc3wSCjw==" + }, + "@humanwhocodes/config-array": { + "version": "0.10.7", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.7.tgz", + "integrity": "sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w==", + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + } + }, + "@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==" + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true + }, + "@humanwhocodes/momoa": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@humanwhocodes/momoa/-/momoa-2.0.4.tgz", + "integrity": "sha512-RE815I4arJFtt+FVeU1Tgp9/Xvecacji8w/V6XtXsWWH/wz/eNkNbhb+ny/+PlVZjV0rxQpRSQKNKE3lcktHEA==" + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" + }, + "@hutson/parse-repository-url": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz", + "integrity": "sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==", + "dev": true + }, + "@ionic-native/core": { + "version": "5.36.0", + "resolved": "https://registry.npmjs.org/@ionic-native/core/-/core-5.36.0.tgz", + "integrity": "sha512-lOrkktadlKYbYf1LrDyAtsu1JnQ0oCCdkOU7iHQ8oXnNOkMwobFfD2m62F1CoOr0u9LIkpYnZSPjng8lZbmbNw==", + "requires": { + "@types/cordova": "^0.0.34" + } + }, + "@ionic-native/http": { + "version": "5.36.0", + "resolved": "https://registry.npmjs.org/@ionic-native/http/-/http-5.36.0.tgz", + "integrity": "sha512-3t7UhcqNxZuIX+HXuydlaDfA9AwDXiRFGs9GsHpJnXMTfbeKUcwzp0amqblrLslDA9tNfqSmJyFZFaMX6CRrog==", + "optional": true, + "requires": { + "@types/cordova": "^0.0.34" + } + }, + "@ionic-native/in-app-browser": { + "version": "5.36.0", + "resolved": "https://registry.npmjs.org/@ionic-native/in-app-browser/-/in-app-browser-5.36.0.tgz", + "integrity": "sha512-tX/FBT0jpkgEefZ8iorv5eDKfgP/ExbYr1AWg6okORQ0dwLfXsD5KDJgKHN9GFZvyuLNeaLpC1mN7CvwvLvmgA==", + "optional": true, + "requires": { + "@types/cordova": "^0.0.34" + } + }, + "@ionic-native/safari-view-controller": { + "version": "5.36.0", + "resolved": "https://registry.npmjs.org/@ionic-native/safari-view-controller/-/safari-view-controller-5.36.0.tgz", + "integrity": "sha512-pvqnzro3bBZ0bQOMjBRKhmjHDaLKfDS75QY7uqe9UzjufMnHtBUUWgMvTuL7MsjTXRj8iRhe1wnUv8aBkz4SVA==", + "optional": true, + "requires": { + "@types/cordova": "^0.0.34" + } + }, + "@ionic-native/secure-storage": { + "version": "5.36.0", + "resolved": "https://registry.npmjs.org/@ionic-native/secure-storage/-/secure-storage-5.36.0.tgz", + "integrity": "sha512-8wRH0bUMvJVnEu052cA1gi10cYJzNWMa67uRavay2UlDA5gDzOkUl5YsvWfg3BP6UW8ZQG/YDVIyzRWSp3Gevg==", + "optional": true, + "requires": { + "@types/cordova": "^0.0.34" + } + }, + "@ionic/angular": { + "version": "6.3.9", + "resolved": "https://registry.npmjs.org/@ionic/angular/-/angular-6.3.9.tgz", + "integrity": "sha512-j/nuHCulDygDeU4WwdKY1l+kwQGKRBN9afwdbCO79lztKenlPwiqyYwds2lZuvhMmF+S5oqXrN5gt26mVUBdCA==", + "requires": { + "@ionic/core": "6.3.9", + "ionicons": "^6.0.4", + "jsonc-parser": "^3.0.0", + "tslib": "^2.0.0" + } + }, + "@ionic/angular-toolkit": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@ionic/angular-toolkit/-/angular-toolkit-6.1.0.tgz", + "integrity": "sha512-QZkoNdXej4MQqKGdm+suzTK39R0iRGpBFhOzP+f75v4ZGgEQ+ntA213UdaTa6EvsvS7n14p0zbHiBroLUOCNzQ==", + "dev": true, + "requires": { + "@angular-devkit/core": "^13.0.1", + "@angular-devkit/schematics": "^13.0.1", + "@schematics/angular": "^13.0.1" + } + }, + "@ionic/cli": { + "version": "6.20.4", + "resolved": "https://registry.npmjs.org/@ionic/cli/-/cli-6.20.4.tgz", + "integrity": "sha512-BFtB1lcemcKJhnhLkCCULekpPFJg1s9j/ofM8Un3CgxdrF83EmO/lhu90qeb8uExp3cx/SNntQg4v39WhFOe6Q==", + "dev": true, + "requires": { + "@ionic/cli-framework": "5.1.3", + "@ionic/cli-framework-output": "2.2.5", + "@ionic/cli-framework-prompts": "2.1.10", + "@ionic/utils-array": "2.1.5", + "@ionic/utils-fs": "3.1.6", + "@ionic/utils-network": "2.1.5", + "@ionic/utils-process": "2.1.10", + "@ionic/utils-stream": "3.1.5", + "@ionic/utils-subprocess": "2.1.11", + "@ionic/utils-terminal": "2.3.3", + "chalk": "^4.0.0", + "debug": "^4.0.0", + "diff": "^4.0.1", + "elementtree": "^0.1.7", + "leek": "0.0.24", + "lodash": "^4.17.5", + "open": "^7.0.4", + "os-name": "^4.0.0", + "semver": "^7.1.1", + "split2": "^3.0.0", + "ssh-config": "^1.1.1", + "stream-combiner2": "^1.1.1", + "superagent": "^5.2.1", + "superagent-proxy": "^3.0.0", + "tar": "^6.0.1", + "tslib": "^2.0.1" + }, + "dependencies": { + "open": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", + "dev": true, + "requires": { + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" + } + }, + "split2": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", + "dev": true, + "requires": { + "readable-stream": "^3.0.0" + } + } + } + }, + "@ionic/cli-framework": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@ionic/cli-framework/-/cli-framework-5.1.3.tgz", + "integrity": "sha512-T2KN/TurzNoAcc3iDt1KHU6GeEa7x9kXngMnu5xs+DzJv5HhBKjVOoo74b8rgVxdPx+dLOV8aLrorlyvsHR/tQ==", + "dev": true, + "requires": { + "@ionic/cli-framework-output": "2.2.5", + "@ionic/utils-array": "2.1.5", + "@ionic/utils-fs": "3.1.6", + "@ionic/utils-object": "2.1.5", + "@ionic/utils-process": "2.1.10", + "@ionic/utils-stream": "3.1.5", + "@ionic/utils-subprocess": "2.1.11", + "@ionic/utils-terminal": "2.3.3", + "chalk": "^4.0.0", + "debug": "^4.0.0", + "lodash": "^4.17.5", + "minimist": "^1.2.0", + "rimraf": "^3.0.0", + "tslib": "^2.0.1", + "write-file-atomic": "^3.0.0" + } + }, + "@ionic/cli-framework-output": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.5.tgz", + "integrity": "sha512-YeDLTnTaE6V4IDUxT8GDIep0GuRIFaR7YZDLANMuuWJZDmnTku6DP+MmQoltBeLmVvz1BAAZgk41xzxdq6H2FQ==", + "dev": true, + "requires": { + "@ionic/utils-terminal": "2.3.3", + "debug": "^4.0.0", + "tslib": "^2.0.1" + } + }, + "@ionic/cli-framework-prompts": { + "version": "2.1.10", + "resolved": "https://registry.npmjs.org/@ionic/cli-framework-prompts/-/cli-framework-prompts-2.1.10.tgz", + "integrity": "sha512-h8HbA0teR0vWtGKB3ahzRbDq4yYaxfukgbOqhu9CAEJHosoFlBmDB8PbPnGFYxUg2J1MuCqeiN2ftJQYV/BO1w==", + "dev": true, + "requires": { + "@ionic/utils-terminal": "2.3.3", + "debug": "^4.0.0", + "inquirer": "^7.0.0", + "tslib": "^2.0.1" + }, + "dependencies": { + "inquirer": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz", + "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.19", + "mute-stream": "0.0.8", + "run-async": "^2.4.0", + "rxjs": "^6.6.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6" + }, + "dependencies": { + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + } + } + }, + "@ionic/core": { + "version": "6.3.9", + "resolved": "https://registry.npmjs.org/@ionic/core/-/core-6.3.9.tgz", + "integrity": "sha512-0JlCGIgLASoxZ6XXEkhCMQzdedvzqI7lsD6zBYPkUyMFOMTff7fZdQg1r9v9IQVHW+UCuyM4xc0MT4YOD4/S3A==", + "requires": { + "@stencil/core": "^2.18.0", + "ionicons": "^6.0.4", + "tslib": "^2.1.0" + } + }, + "@ionic/storage": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@ionic/storage/-/storage-3.0.6.tgz", + "integrity": "sha512-sw+zSJINIpbQCGZR9mEtb9N0WmZLuhcMVqOZJBqLuDACAMdXqG39zmp5nSVqhGI1/9X3nd0K5gVn6icyVfUnUg==", + "requires": { + "localforage": "^1.9.0" + } + }, + "@ionic/storage-angular": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@ionic/storage-angular/-/storage-angular-3.0.6.tgz", + "integrity": "sha512-ZXlIFWGU27aCxVFgZb0KFJFtWwnn6+HK6v0rMGzjN8f7oV2ewXaQ2dl1gTw/A8YoozTVPOFxwfFHCjhWLFR1Fw==", + "requires": { + "@ionic/storage": "^3.0.4", + "tslib": "^1.10.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "@ionic/utils-array": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-array/-/utils-array-2.1.5.tgz", + "integrity": "sha512-HD72a71IQVBmQckDwmA8RxNVMTbxnaLbgFOl+dO5tbvW9CkkSFCv41h6fUuNsSEVgngfkn0i98HDuZC8mk+lTA==", + "dev": true, + "requires": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + } + }, + "@ionic/utils-fs": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@ionic/utils-fs/-/utils-fs-3.1.6.tgz", + "integrity": "sha512-eikrNkK89CfGPmexjTfSWl4EYqsPSBh0Ka7by4F0PLc1hJZYtJxUZV3X4r5ecA8ikjicUmcbU7zJmAjmqutG/w==", + "dev": true, + "requires": { + "@types/fs-extra": "^8.0.0", + "debug": "^4.0.0", + "fs-extra": "^9.0.0", + "tslib": "^2.0.1" + }, + "dependencies": { + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + } + } + }, + "@ionic/utils-network": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-network/-/utils-network-2.1.5.tgz", + "integrity": "sha512-HUQ1Ec4Mh2MXzzKdbbbDS6xYKwpFJ2XRY7SYXbaZT8+jiNahfHbsOfe62/p8bk41Yil7E9EagzGC2JvIFJh01w==", + "dev": true, + "requires": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + } + }, + "@ionic/utils-object": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-object/-/utils-object-2.1.5.tgz", + "integrity": "sha512-XnYNSwfewUqxq+yjER1hxTKggftpNjFLJH0s37jcrNDwbzmbpFTQTVAp4ikNK4rd9DOebX/jbeZb8jfD86IYxw==", + "dev": true, + "requires": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + } + }, + "@ionic/utils-process": { + "version": "2.1.10", + "resolved": "https://registry.npmjs.org/@ionic/utils-process/-/utils-process-2.1.10.tgz", + "integrity": "sha512-mZ7JEowcuGQK+SKsJXi0liYTcXd2bNMR3nE0CyTROpMECUpJeAvvaBaPGZf5ERQUPeWBVuwqAqjUmIdxhz5bxw==", + "dev": true, + "requires": { + "@ionic/utils-object": "2.1.5", + "@ionic/utils-terminal": "2.3.3", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "tree-kill": "^1.2.2", + "tslib": "^2.0.1" + } + }, + "@ionic/utils-stream": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-stream/-/utils-stream-3.1.5.tgz", + "integrity": "sha512-hkm46uHvEC05X/8PHgdJi4l4zv9VQDELZTM+Kz69odtO9zZYfnt8DkfXHJqJ+PxmtiE5mk/ehJWLnn/XAczTUw==", + "dev": true, + "requires": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + } + }, + "@ionic/utils-subprocess": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/@ionic/utils-subprocess/-/utils-subprocess-2.1.11.tgz", + "integrity": "sha512-6zCDixNmZCbMCy5np8klSxOZF85kuDyzZSTTQKQP90ZtYNCcPYmuFSzaqDwApJT4r5L3MY3JrqK1gLkc6xiUPw==", + "dev": true, + "requires": { + "@ionic/utils-array": "2.1.5", + "@ionic/utils-fs": "3.1.6", + "@ionic/utils-process": "2.1.10", + "@ionic/utils-stream": "3.1.5", + "@ionic/utils-terminal": "2.3.3", + "cross-spawn": "^7.0.3", + "debug": "^4.0.0", + "tslib": "^2.0.1" + } + }, + "@ionic/utils-terminal": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.3.tgz", + "integrity": "sha512-RnuSfNZ5fLEyX3R5mtcMY97cGD1A0NVBbarsSQ6yMMfRJ5YHU7hHVyUfvZeClbqkBC/pAqI/rYJuXKCT9YeMCQ==", + "dev": true, + "requires": { + "@types/slice-ansi": "^4.0.0", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "slice-ansi": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "tslib": "^2.0.1", + "untildify": "^4.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "dependencies": { + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } + } + }, + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true + }, + "@jridgewell/gen-mapping": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", + "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true + }, + "@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "dependencies": { + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + } + } + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + }, + "@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "@krlwlfrt/async-pool": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@krlwlfrt/async-pool/-/async-pool-0.7.0.tgz", + "integrity": "sha512-qQp9fJdPuSxhJ0aMWCJ8ZavG67GeB1ZoYfYsIooyipeXTWZ9U67uEm93Udvd6C6v1Wa6mvD8X5PBNTtth1x0LQ==" + }, + "@ngtools/webpack": { + "version": "13.3.9", + "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-13.3.9.tgz", + "integrity": "sha512-wmgOI5sogAuilwBZJqCHVMjm2uhDxjdSmNLFx7eznwGDa6LjvjuATqCv2dVlftq0Y/5oZFVrg5NpyHt5kfZ8Cg==", + "dev": true + }, + "@ngx-translate/core": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/@ngx-translate/core/-/core-14.0.0.tgz", + "integrity": "sha512-UevdwNCXMRCdJv//0kC8h2eSfmi02r29xeE8E9gJ1Al4D4jEJ7eiLPdjslTMc21oJNGguqqWeEVjf64SFtvw2w==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@ngx-translate/http-loader": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@ngx-translate/http-loader/-/http-loader-7.0.0.tgz", + "integrity": "sha512-j+NpXXlcGVdyUNyY/qsJrqqeAdJdizCd+GKh3usXExSqy1aE9866jlAIL+xrfDU4w+LiMoma5pgE4emvFebZmA==", + "requires": { + "tslib": "^2.3.0" + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@npmcli/fs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz", + "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==", + "requires": { + "@gar/promisify": "^1.1.3", + "semver": "^7.3.5" + } + }, + "@npmcli/git": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.1.0.tgz", + "integrity": "sha512-/hBFX/QG1b+N7PZBFs0bi+evgRZcK9nWBxQKZkGoXUT5hJSwl5c4d7y8/hm+NQZRPhQ67RzFaj5UM9YeyKoryw==", + "dev": true, + "requires": { + "@npmcli/promise-spawn": "^1.3.2", + "lru-cache": "^6.0.0", + "mkdirp": "^1.0.4", + "npm-pick-manifest": "^6.1.1", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^2.0.2" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "@npmcli/installed-package-contents": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-1.0.7.tgz", + "integrity": "sha512-9rufe0wnJusCQoLpV9ZPKIVP55itrM5BxOXs10DmdbRfgWtHy1LDyskbwRnBghuB0PrF7pNPOqREVtpz4HqzKw==", + "dev": true, + "requires": { + "npm-bundled": "^1.1.1", + "npm-normalize-package-bin": "^1.0.1" + } + }, + "@npmcli/move-file": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-2.0.1.tgz", + "integrity": "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==", + "requires": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + } + }, + "@npmcli/node-gyp": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.3.tgz", + "integrity": "sha512-fnkhw+fmX65kiLqk6E3BFLXNC26rUhK90zVwe2yncPliVT/Qos3xjhTLE59Df8KnPlcwIERXKVlU1bXoUQ+liA==", + "dev": true + }, + "@npmcli/promise-spawn": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-1.3.2.tgz", + "integrity": "sha512-QyAGYo/Fbj4MXeGdJcFzZ+FkDkomfRBrPM+9QYJSg+PxgAUL+LU3FneQk37rKR2/zjqkCV1BLHccX98wRXG3Sg==", + "dev": true, + "requires": { + "infer-owner": "^1.0.4" + } + }, + "@npmcli/run-script": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-2.0.0.tgz", + "integrity": "sha512-fSan/Pu11xS/TdaTpTB0MRn9guwGU8dye+x56mEVgBEd/QsybBbYcAL0phPXi8SGWFEChkQd6M9qL4y6VOpFig==", + "dev": true, + "requires": { + "@npmcli/node-gyp": "^1.0.2", + "@npmcli/promise-spawn": "^1.3.2", + "node-gyp": "^8.2.0", + "read-package-json-fast": "^2.0.1" + }, + "dependencies": { + "@npmcli/fs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", + "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", + "dev": true, + "requires": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + } + }, + "@npmcli/move-file": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", + "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "dev": true, + "requires": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + } + }, + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true + }, + "cacache": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", + "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", + "dev": true, + "requires": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + } + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "requires": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "make-fetch-happen": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz", + "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==", + "dev": true, + "requires": { + "agentkeepalive": "^4.1.3", + "cacache": "^15.2.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^6.0.0", + "minipass": "^3.1.3", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^1.3.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.2", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^6.0.0", + "ssri": "^8.0.0" + } + }, + "minipass-fetch": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", + "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", + "dev": true, + "requires": { + "encoding": "^0.1.12", + "minipass": "^3.1.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.0.0" + } + }, + "node-gyp": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", + "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", + "dev": true, + "requires": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^9.1.0", + "nopt": "^5.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + } + }, + "nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "socks-proxy-agent": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", + "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", + "dev": true, + "requires": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + } + }, + "ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "dev": true, + "requires": { + "minipass": "^3.1.1" + } + }, + "unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, + "requires": { + "unique-slug": "^2.0.0" + } + }, + "unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4" + } + } + } + }, + "@nrwl/cli": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@nrwl/cli/-/cli-15.3.0.tgz", + "integrity": "sha512-WAki2+puBp6qel/VAxdQmr/L/sLyw8K6bynYNmMl4eIlR5hjefrUChPzUiJDAS9/CUYQNOyva2VV5wofzdv95w==", + "dev": true, + "requires": { + "nx": "15.3.0" + }, + "dependencies": { + "@nrwl/tao": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-15.3.0.tgz", + "integrity": "sha512-alyzKKSgfgPwQ/FUozvk43VGOZHyNMiSM6Udl49ZaQwT77GXRFkrOu21odW6dciWPd3iUOUjfJISNqrEJmxvpw==", + "dev": true, + "requires": { + "nx": "15.3.0" + } + }, + "@zkochan/js-yaml": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@zkochan/js-yaml/-/js-yaml-0.0.6.tgz", + "integrity": "sha512-nzvgl3VfhcELQ8LyVrYOru+UtAy1nrygk2+AGbTm8a5YcO6o8lSjAT+pfg3vJWxIoZKOUhrK6UU7xW/+00kQrg==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "axios": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.1.tgz", + "integrity": "sha512-I88cFiGu9ryt/tfVEi4kX2SITsvDddTajXTOFmt2uK1ZVA8LytjtdeyefdQWEf5PU8w+4SSJDoYnggflB5tW4A==", + "dev": true, + "requires": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "cli-spinners": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", + "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==", + "dev": true + }, + "fast-glob": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", + "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "nx": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/nx/-/nx-15.3.0.tgz", + "integrity": "sha512-5tBrEF2zDkGBDfe8wThazJqBDhsVkRrxc6OttzfBmkXP4VPp8w5MMtUEOry181AXKfjDGkw//UnCSkUNynTDlw==", + "dev": true, + "requires": { + "@nrwl/cli": "15.3.0", + "@nrwl/tao": "15.3.0", + "@parcel/watcher": "2.0.4", + "@yarnpkg/lockfile": "^1.1.0", + "@yarnpkg/parsers": "^3.0.0-rc.18", + "@zkochan/js-yaml": "0.0.6", + "axios": "^1.0.0", + "chalk": "4.1.0", + "chokidar": "^3.5.1", + "cli-cursor": "3.1.0", + "cli-spinners": "2.6.1", + "cliui": "^7.0.2", + "dotenv": "~10.0.0", + "enquirer": "~2.3.6", + "fast-glob": "3.2.7", + "figures": "3.2.0", + "flat": "^5.0.2", + "fs-extra": "^10.1.0", + "glob": "7.1.4", + "ignore": "^5.0.4", + "js-yaml": "4.1.0", + "jsonc-parser": "3.2.0", + "minimatch": "3.0.5", + "npm-run-path": "^4.0.1", + "open": "^8.4.0", + "semver": "7.3.4", + "string-width": "^4.2.3", + "strong-log-transformer": "^2.1.0", + "tar-stream": "~2.2.0", + "tmp": "~0.2.1", + "tsconfig-paths": "^3.9.0", + "tslib": "^2.3.0", + "v8-compile-cache": "2.3.0", + "yargs": "^17.6.2", + "yargs-parser": "21.1.1" + } + }, + "semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "requires": { + "rimraf": "^3.0.0" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + } + } + }, + "@nrwl/devkit": { + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-13.1.3.tgz", + "integrity": "sha512-TAAsZJvVc/obeH0rZKY6miVhyM2GHGb8qIWp9MAIdLlXf4VDcNC7rxwb5OrGVSwuTTjqGYBGPUx0yEogOOJthA==", + "dev": true, + "requires": { + "@nrwl/tao": "13.1.3", + "ejs": "^3.1.5", + "ignore": "^5.0.4", + "rxjs": "^6.5.4", + "semver": "7.3.4", + "tslib": "^2.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@nrwl/tao": { + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-13.1.3.tgz", + "integrity": "sha512-/IwJgSgCBD1SaF+n8RuXX2OxDAh8ut/+P8pMswjm8063ac30UlAHjQ4XTYyskLH8uoUmNi2hNaGgHUrkwt7tQA==", + "dev": true, + "requires": { + "chalk": "4.1.0", + "enquirer": "~2.3.6", + "fs-extra": "^9.1.0", + "jsonc-parser": "3.0.0", + "nx": "13.1.3", + "rxjs": "^6.5.4", + "rxjs-for-await": "0.0.2", + "semver": "7.3.4", + "tmp": "~0.2.1", + "tslib": "^2.0.0", + "yargs-parser": "20.0.0" + }, + "dependencies": { + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "jsonc-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", + "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", + "dev": true + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "requires": { + "rimraf": "^3.0.0" + } + } + } + }, + "@openid/appauth": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@openid/appauth/-/appauth-1.3.1.tgz", + "integrity": "sha512-e54kpi219wES2ijPzeHe1kMnT8VKH8YeTd1GAn9BzVBmutz3tBgcG1y8a4pziNr4vNjFnuD4W446Ua7ELnNDiA==", + "requires": { + "@types/base64-js": "^1.3.0", + "@types/jquery": "^3.5.5", + "base64-js": "^1.5.1", + "follow-redirects": "^1.13.3", + "form-data": "^4.0.0", + "opener": "^1.5.2" + } + }, + "@openstapps/api": { + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@openstapps/api/-/api-0.45.0.tgz", + "integrity": "sha512-lF1TIxbtqQlRYCvSyS3EDjQiwVK7BmZ3/HQ01MhlUR1ucfvMTk1GyIPx5E8HmrKSi3Pv8shurCObSwStQJjK+Q==", + "requires": { + "@krlwlfrt/async-pool": "0.7.0", + "@openstapps/core": "0.72.0", + "@openstapps/core-tools": "0.32.0", + "@openstapps/logger": "1.1.1", + "@types/cli-progress": "3.11.0", + "@types/express": "4.17.14", + "@types/morgan": "1.9.3", + "@types/node": "14.18.34", + "@types/traverse": "0.6.32", + "@types/uuid": "8.3.4", + "@types/wait-on": "5.3.1", + "body-parser": "1.20.1", + "cli-progress": "3.11.2", + "commander": "9.4.1", + "express": "4.18.2", + "got": "11.8.5", + "json-schema": "0.4.0", + "moment": "2.29.4", + "morgan": "1.10.0", + "rfdc": "1.3.0", + "traverse": "0.6.7", + "uuid": "8.3.2", + "wait-on": "6.0.1" + }, + "dependencies": { + "@types/node": { + "version": "14.18.34", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.34.tgz", + "integrity": "sha512-hcU9AIQVHmPnmjRK+XUUYlILlr9pQrsqSrwov/JK1pnf3GTQowVBhx54FbvM0AU/VXGH4i3+vgXS5EguR7fysA==" + } + } + }, + "@openstapps/configuration": { + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/@openstapps/configuration/-/configuration-0.33.0.tgz", + "integrity": "sha512-sum9DB8+2r5eXnJhie1UPcQQTPupd0m3Xgsft+D6LVvbjbmt/XCpCMvlZSoM+LE1ZkUdgUmbFJ81mqjWKgCsJA==", + "requires": { + "@types/node": "14.18.24", + "@types/semver": "7.3.12", + "@types/yaml": "1.9.7", + "chalk": "4.1.2", + "commander": "9.4.0", + "semver": "7.3.7", + "yaml": "1.10.2" + }, + "dependencies": { + "commander": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz", + "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==" + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@openstapps/core": { + "version": "0.72.0", + "resolved": "https://registry.npmjs.org/@openstapps/core/-/core-0.72.0.tgz", + "integrity": "sha512-bT22CWKf0Do32FwJLf+rWxbQTHTiPbJEzm3dd3Sk5utGgNTAeFequaNea2csvCOA1dRaVrRVQ7Ed9prVdep9ow==", + "requires": { + "@openstapps/core-tools": "0.32.0", + "@types/geojson": "1.0.6", + "@types/json-patch": "0.0.30", + "@types/json-schema": "7.0.11", + "@types/node": "14.18.24", + "fast-deep-equal": "3.1.3", + "http-status-codes": "2.2.0", + "json-patch": "0.7.0", + "json-schema": "0.4.0", + "rfdc": "1.3.0", + "ts-optchain": "0.1.8" + } + }, + "@openstapps/core-tools": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@openstapps/core-tools/-/core-tools-0.32.0.tgz", + "integrity": "sha512-PXfb9b3B2uVQUhu+QBi3tlz7I2nHz4hlyTNvfHIxuO8pC0ONaZWY56tjBgqg1Af9BP1ZGq3J3Zg2sWWsYlGFEw==", + "requires": { + "@openstapps/logger": "1.0.0", + "ajv": "8.11.0", + "better-ajv-errors": "1.2.0", + "chai": "4.3.6", + "commander": "9.4.0", + "deepmerge": "4.2.2", + "del": "6.1.1", + "eslint": "8.22.0", + "flatted": "3.2.6", + "fs-extra": "10.1.0", + "glob": "8.0.3", + "got": "11.8.5", + "humanize-string": "3.0.0", + "json-schema": "0.4.0", + "lodash": "4.17.21", + "mustache": "4.2.0", + "openapi-types": "12.0.0", + "plantuml-encoder": "1.4.0", + "re2": "1.17.7", + "toposort": "2.0.2", + "ts-json-schema-generator": "1.0.0", + "ts-node": "10.9.1" + }, + "dependencies": { + "@openstapps/logger": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@openstapps/logger/-/logger-1.0.0.tgz", + "integrity": "sha512-ImCfnLJWHWwFJ1W7KCIWgFe7EXI0cAtap0Dznz+758BPAlLZ+hJHSbIbGHWwEAfRNAB53TIABF5npSsKSDq4Sw==", + "requires": { + "@types/node": "14.18.24", + "@types/nodemailer": "6.4.5", + "chalk": "4.1.2", + "flatted": "3.2.6", + "moment": "2.29.4", + "nodemailer": "6.7.8" + } + }, + "commander": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz", + "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==" + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" + }, + "eslint": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.22.0.tgz", + "integrity": "sha512-ci4t0sz6vSRKdmkOGmprBo6fmI4PrphDFMy5JEq/fNS0gQkJM3rLmrqcp8ipMcdobH3KtUP40KniAE9W19S4wA==", + "requires": { + "@eslint/eslintrc": "^1.3.0", + "@humanwhocodes/config-array": "^0.10.4", + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.3", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "globby": "^11.1.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + } + } + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "requires": { + "is-glob": "^4.0.3" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + } + } + }, + "@openstapps/logger": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@openstapps/logger/-/logger-1.1.1.tgz", + "integrity": "sha512-hPLqV0nKXgbwRxbRCAzSvQzlHfWfpDGxbo/nJLY94zbVwzpHCW3favh+MFmEV536ZvprIOLkE8DfzBUC0a83ww==", + "requires": { + "@types/node": "14.18.32", + "@types/nodemailer": "6.4.6", + "chalk": "4.1.2", + "flatted": "3.2.7", + "moment": "2.29.4", + "nodemailer": "6.8.0" + }, + "dependencies": { + "@types/node": { + "version": "14.18.32", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.32.tgz", + "integrity": "sha512-Y6S38pFr04yb13qqHf8uk1nHE3lXgQ30WZbv1mLliV9pt0NjvqdWttLcrOYLnXbOafknVYRHZGoMSpR9UwfYow==" + }, + "@types/nodemailer": { + "version": "6.4.6", + "resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-6.4.6.tgz", + "integrity": "sha512-pD6fL5GQtUKvD2WnPmg5bC2e8kWCAPDwMPmHe/ohQbW+Dy0EcHgZ2oCSuPlWNqk74LS5BVMig1SymQbFMPPK3w==", + "requires": { + "@types/node": "*" + } + }, + "flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" + }, + "nodemailer": { + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.8.0.tgz", + "integrity": "sha512-EjYvSmHzekz6VNkNd12aUqAco+bOkRe3Of5jVhltqKhEsjw/y0PYPJfp83+s9Wzh1dspYAkUW/YNQ350NATbSQ==" + } + } + }, + "@openstapps/prettier-config": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@openstapps/prettier-config/-/prettier-config-1.0.0.tgz", + "integrity": "sha512-MLzh1GMSQFeaPuqyXewubwKnez4A/QtCXtM+Kyeh3rRUooLFng0aDTqdPM6prZ5v2YiR3XfU2sVXU/xGI/mqTQ==", + "dev": true + }, + "@parcel/watcher": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.0.4.tgz", + "integrity": "sha512-cTDi+FUDBIUOBKEtj+nhiJ71AZVlkAsQFuGQTun5tV9mwQBQgZvhCzG+URPQc8myeN32yRVZEfVAPCs1RW+Jvg==", + "dev": true, + "requires": { + "node-addon-api": "^3.2.1", + "node-gyp-build": "^4.3.0" + } + }, + "@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "dev": true + }, + "@schematics/angular": { + "version": "13.3.9", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-13.3.9.tgz", + "integrity": "sha512-tm5wst7+Z8cOgOJ/4JVlYKOFCCOVnqKYFtYf0BIWq6RFBXcw6QqbGW1wXH8ASmuev4QZXKgqc7YKALPpYAKCeQ==", + "dev": true, + "requires": { + "@angular-devkit/core": "13.3.9", + "@angular-devkit/schematics": "13.3.9", + "jsonc-parser": "3.0.0" + }, + "dependencies": { + "jsonc-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", + "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", + "dev": true + } + } + }, + "@sideway/address": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", + "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", + "requires": { + "@hapi/hoek": "^9.0.0" + } + }, + "@sideway/formula": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz", + "integrity": "sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==" + }, + "@sideway/pinpoint": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" + }, + "@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==" + }, + "@socket.io/component-emitter": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==", + "dev": true + }, + "@stencil/core": { + "version": "2.20.0", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.20.0.tgz", + "integrity": "sha512-ka+eOW+dNteXIfLCRipNbbAlBEQjqJ2fkx3fxzlKgnNHEQMdZiuIjlWt63KzvOJStNeuADdQXo89BB1dC2VRUw==" + }, + "@swc/helpers": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.4.14.tgz", + "integrity": "sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==", + "dev": true, + "requires": { + "tslib": "^2.4.0" + } + }, + "@szmarczak/http-timer": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "requires": { + "defer-to-connect": "^2.0.0" + } + }, + "@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==" + }, + "@transistorsoft/capacitor-background-fetch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@transistorsoft/capacitor-background-fetch/-/capacitor-background-fetch-1.0.2.tgz", + "integrity": "sha512-eF92oeLYg7cZNGtlUMq6nZH1Q0i3wIXyQKlsWRBlaSey/DhL+Ncv1//ejbH+FQ427bC+CT1PPAD/OrPsJeL7+g==" + }, + "@ts-morph/common": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.12.3.tgz", + "integrity": "sha512-4tUmeLyXJnJWvTFOKtcNJ1yh0a3SsTLi2MUoyj8iUNznFRN1ZquaNe7Oukqrnki2FzZkm0J9adCNLDZxUzvj+w==", + "dev": true, + "requires": { + "fast-glob": "^3.2.7", + "minimatch": "^3.0.4", + "mkdirp": "^1.0.4", + "path-browserify": "^1.0.1" + } + }, + "@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==" + }, + "@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==" + }, + "@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==" + }, + "@tsconfig/node16": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==" + }, + "@types/base64-js": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@types/base64-js/-/base64-js-1.3.0.tgz", + "integrity": "sha512-ZmI0sZGAUNXUfMWboWwi4LcfpoVUYldyN6Oe0oJ5cCsHDU/LlRq8nQKPXhYLOx36QYSW9bNIb1vvRrD6K7Llgw==" + }, + "@types/body-parser": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", + "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "requires": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "@types/bonjour": { + "version": "3.5.10", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", + "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/cacheable-request": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "requires": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, + "@types/cli-progress": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@types/cli-progress/-/cli-progress-3.11.0.tgz", + "integrity": "sha512-XhXhBv1R/q2ahF3BM7qT5HLzJNlIL0wbcGyZVjqOTqAybAnsLisd7gy1UCyIqpL+5Iv6XhlSyzjLCnI2sIdbCg==", + "requires": { + "@types/node": "*" + } + }, + "@types/connect": { + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", + "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "requires": { + "@types/node": "*" + } + }, + "@types/connect-history-api-fallback": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.5.tgz", + "integrity": "sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==", + "dev": true, + "requires": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "@types/cookie": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==", + "dev": true + }, + "@types/cordova": { + "version": "0.0.34", + "resolved": "https://registry.npmjs.org/@types/cordova/-/cordova-0.0.34.tgz", + "integrity": "sha512-rkiiTuf/z2wTd4RxFOb+clE7PF4AEJU0hsczbUdkHHBtkUmpWQpEddynNfJYKYtZFJKbq4F+brfekt1kx85IZA==" + }, + "@types/cors": { + "version": "2.8.13", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.13.tgz", + "integrity": "sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/eslint": { + "version": "8.4.10", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.10.tgz", + "integrity": "sha512-Sl/HOqN8NKPmhWo2VBEPm0nvHnu2LL3v9vKo8MEq0EtbJ4eVzGPl41VNPvn5E1i5poMk4/XD8UriLHpJvEP/Nw==", + "dev": true, + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true + }, + "@types/express": { + "version": "4.17.14", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.14.tgz", + "integrity": "sha512-TEbt+vaPFQ+xpxFLFssxUDXj5cWCxZJjIcB7Yg0k0GMHGtgtQgpvx/MUQUeAkNbA9AAGrwkAsoeItdTgS7FMyg==", + "requires": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.18", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "@types/express-serve-static-core": { + "version": "4.17.31", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.31.tgz", + "integrity": "sha512-DxMhY+NAsTwMMFHBTtJFNp5qiHKJ7TeqOo23zVEM9alT1Ml27Q3xcTH0xwxn7Q0BbMcVEJOs/7aQtUWupUQN3Q==", + "requires": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*" + } + }, + "@types/fontkit": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@types/fontkit/-/fontkit-1.8.0.tgz", + "integrity": "sha512-hLlxFWmyMkWyJiO/RVc8L5OVxHXzoyH0ZKZsUQkhlKwUdUtwb77u7jjxVtdTpFHaAtfifbA8CQ4/QjcQcLiwDw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/fs-extra": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.2.tgz", + "integrity": "sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/geojson": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-1.0.6.tgz", + "integrity": "sha512-Xqg/lIZMrUd0VRmSRbCAewtwGZiAk3mEUDvV4op1tGl+LvyPcb/MIOSxTl9z+9+J+R4/vpjiCAT4xeKzH9ji1w==" + }, + "@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, + "requires": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "@types/http-cache-semantics": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz", + "integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==" + }, + "@types/http-proxy": { + "version": "1.17.9", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.9.tgz", + "integrity": "sha512-QsbSjA/fSk7xB+UXlCT3wHBy5ai9wOcNDWwZAtud+jXhwOM3l+EYZh8Lng4+/6n8uar0J7xILzqftJdJ/Wdfkw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/jasmine": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-4.3.1.tgz", + "integrity": "sha512-Vu8l+UGcshYmV1VWwULgnV/2RDbBaO6i2Ptx7nd//oJPIZGhoI1YLST4VKagD2Pq/Bc2/7zvtvhM7F3p4SN7kQ==", + "dev": true + }, + "@types/jasminewd2": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/@types/jasminewd2/-/jasminewd2-2.0.10.tgz", + "integrity": "sha512-J7mDz7ovjwjc+Y9rR9rY53hFWKATcIkrr9DwQWmOas4/pnIPJTXawnzjwpHm3RSxz/e3ZVUvQ7cRbd5UQLo10g==", + "dev": true, + "requires": { + "@types/jasmine": "*" + } + }, + "@types/jquery": { + "version": "3.5.14", + "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.14.tgz", + "integrity": "sha512-X1gtMRMbziVQkErhTQmSe2jFwwENA/Zr+PprCkF63vFq+Yt5PZ4AlKqgmeNlwgn7dhsXEK888eIW2520EpC+xg==", + "requires": { + "@types/sizzle": "*" + } + }, + "@types/json-patch": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/@types/json-patch/-/json-patch-0.0.30.tgz", + "integrity": "sha512-MhCUjojzDhVLnZnxwPwa+rETFRDQ0ffjxYdrqOP6TBO2O0/Z64PV5tNeYApo4bc4y4frbWOrRwv/eEkXlI13Rw==" + }, + "@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" + }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "@types/jsonpath": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@types/jsonpath/-/jsonpath-0.2.0.tgz", + "integrity": "sha512-v7qlPA0VpKUlEdhghbDqRoKMxFB3h3Ch688TApBJ6v+XLDdvWCGLJIYiPKGZnS6MAOie+IorCfNYVHOPIHSWwQ==", + "dev": true + }, + "@types/keyv": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "requires": { + "@types/node": "*" + } + }, + "@types/leaflet": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@types/leaflet/-/leaflet-1.9.0.tgz", + "integrity": "sha512-7LeOSj7EloC5UcyOMo+1kc3S1UT3MjJxwqsMT1d2PTyvQz53w0Y0oSSk9nwZnOZubCmBvpSNGceucxiq+ZPEUw==", + "dev": true, + "requires": { + "@types/geojson": "*" + } + }, + "@types/leaflet.markercluster": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@types/leaflet.markercluster/-/leaflet.markercluster-1.5.1.tgz", + "integrity": "sha512-gzJzP10qO6Zkts5QNVmSAEDLYicQHTEBLT9HZpFrJiSww9eDAs5OWHvIskldf41MvDv1gbMukuEBQEawHn+wtA==", + "dev": true, + "requires": { + "@types/leaflet": "*" + } + }, + "@types/marked": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/@types/marked/-/marked-4.0.7.tgz", + "integrity": "sha512-eEAhnz21CwvKVW+YvRvcTuFKNU9CV1qH+opcgVK3pIMI6YZzDm6gc8o2vHjldFk6MGKt5pueSB7IOpvpx5Qekw==" + }, + "@types/mime": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", + "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==" + }, + "@types/minimatch": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", + "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", + "dev": true + }, + "@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, + "@types/morgan": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.3.tgz", + "integrity": "sha512-BiLcfVqGBZCyNCnCH3F4o2GmDLrpy0HeBVnNlyZG4fo88ZiE9SoiBe3C+2ezuwbjlEyT+PDZ17//TAlRxAn75Q==", + "requires": { + "@types/node": "*" + } + }, + "@types/node": { + "version": "14.18.24", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.24.tgz", + "integrity": "sha512-aJdn8XErcSrfr7k8ZDDfU6/2OgjZcB2Fu9d+ESK8D7Oa5mtsv8Fa8GpcwTA0v60kuZBaalKPzuzun4Ov1YWO/w==" + }, + "@types/nodemailer": { + "version": "6.4.5", + "resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-6.4.5.tgz", + "integrity": "sha512-zuP3nBRQHI6M2PkXnGGy1Ww4VB+MyYHGgnfV2T+JR9KLkeWqPJuyVUgLpKXuFnA/b7pZaIDFh2sV4759B7jK1g==", + "requires": { + "@types/node": "*" + } + }, + "@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "@types/q": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@types/q/-/q-0.0.32.tgz", + "integrity": "sha512-qYi3YV9inU/REEfxwVcGZzbS3KG/Xs90lv0Pr+lDtuVjBPGd1A+eciXzVSaRvLify132BfcvhvEjeVahrUl0Ug==", + "dev": true + }, + "@types/qs": { + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", + "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" + }, + "@types/range-parser": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", + "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" + }, + "@types/responselike": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", + "integrity": "sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==", + "requires": { + "@types/node": "*" + } + }, + "@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "dev": true + }, + "@types/selenium-webdriver": { + "version": "3.0.20", + "resolved": "https://registry.npmjs.org/@types/selenium-webdriver/-/selenium-webdriver-3.0.20.tgz", + "integrity": "sha512-6d8Q5fqS9DWOXEhMDiF6/2FjyHdmP/jSTAUyeQR7QwrFeNmYyzmvGxD5aLIHL445HjWgibs0eAig+KPnbaesXA==", + "dev": true + }, + "@types/semver": { + "version": "7.3.12", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.12.tgz", + "integrity": "sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A==" + }, + "@types/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", + "dev": true, + "requires": { + "@types/express": "*" + } + }, + "@types/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==", + "requires": { + "@types/mime": "*", + "@types/node": "*" + } + }, + "@types/sinonjs__fake-timers": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz", + "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==", + "dev": true + }, + "@types/sizzle": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.3.tgz", + "integrity": "sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==" + }, + "@types/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-+OpjSaq85gvlZAYINyzKpLeiFkSC4EsC6IIiT6v6TLSU5k5U83fHGj9Lel8oKEXM0HqgrMVCjXPDPVICtxF7EQ==", + "dev": true + }, + "@types/sockjs": { + "version": "0.3.33", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", + "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/traverse": { + "version": "0.6.32", + "resolved": "https://registry.npmjs.org/@types/traverse/-/traverse-0.6.32.tgz", + "integrity": "sha512-RBz2uRZVCXuMg93WD//aTS5B120QlT4lR/gL+935QtGsKHLS6sCtZBaKfWjIfk7ZXv/r8mtGbwjVIee6/3XTow==" + }, + "@types/uuid": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", + "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==" + }, + "@types/wait-on": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@types/wait-on/-/wait-on-5.3.1.tgz", + "integrity": "sha512-2FFOKCF/YydrMUaqg+fkk49qf0e5rDgwt6aQsMzFQzbS419h2gNOXyiwp/o2yYy27bi/C1z+HgfncryjGzlvgQ==", + "requires": { + "@types/node": "*" + } + }, + "@types/ws": { + "version": "8.5.3", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", + "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/yaml": { + "version": "1.9.7", + "resolved": "https://registry.npmjs.org/@types/yaml/-/yaml-1.9.7.tgz", + "integrity": "sha512-8WMXRDD1D+wCohjfslHDgICd2JtMATZU8CkhH8LVJqcJs6dyYj5TGptzP8wApbmEullGBSsCEzzap73DQ1HJaA==", + "requires": { + "yaml": "*" + } + }, + "@types/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", + "dev": true, + "optional": true, + "requires": { + "@types/node": "*" + } + }, + "@typescript-eslint/eslint-plugin": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.45.1.tgz", + "integrity": "sha512-cOizjPlKEh0bXdFrBLTrI/J6B/QMlhwE9auOov53tgB+qMukH6/h8YAK/qw+QJGct/PTbdh2lytGyipxCcEtAw==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.45.1", + "@typescript-eslint/type-utils": "5.45.1", + "@typescript-eslint/utils": "5.45.1", + "debug": "^4.3.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "@typescript-eslint/scope-manager": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.45.1.tgz", + "integrity": "sha512-D6fCileR6Iai7E35Eb4Kp+k0iW7F1wxXYrOhX/3dywsOJpJAQ20Fwgcf+P/TDtvQ7zcsWsrJaglaQWDhOMsspQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/visitor-keys": "5.45.1" + } + }, + "@typescript-eslint/types": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.45.1.tgz", + "integrity": "sha512-HEW3U0E5dLjUT+nk7b4lLbOherS1U4ap+b9pfu2oGsW3oPu7genRaY9dDv3nMczC1rbnRY2W/D7SN05wYoGImg==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.45.1.tgz", + "integrity": "sha512-76NZpmpCzWVrrb0XmYEpbwOz/FENBi+5W7ipVXAsG3OoFrQKJMiaqsBMbvGRyLtPotGqUfcY7Ur8j0dksDJDng==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/visitor-keys": "5.45.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/utils": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.45.1.tgz", + "integrity": "sha512-rlbC5VZz68+yjAzQBc4I7KDYVzWG2X/OrqoZrMahYq3u8FFtmQYc+9rovo/7wlJH5kugJ+jQXV5pJMnofGmPRw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.45.1", + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/typescript-estree": "5.45.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0", + "semver": "^7.3.7" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.45.1.tgz", + "integrity": "sha512-cy9ln+6rmthYWjH9fmx+5FU/JDpjQb586++x2FZlveq7GdGuLLW9a2Jcst2TGekH82bXpfmRNSwP9tyEs6RjvQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "eslint-visitor-keys": "^3.3.0" + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + } + } + }, + "@typescript-eslint/experimental-utils": { + "version": "5.27.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.27.1.tgz", + "integrity": "sha512-Vd8uewIixGP93sEnmTRIH6jHZYRQRkGPDPpapACMvitJKX8335VHNyqKTE+mZ+m3E2c5VznTZfSsSsS5IF7vUA==", + "dev": true, + "requires": { + "@typescript-eslint/utils": "5.27.1" + } + }, + "@typescript-eslint/parser": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.45.1.tgz", + "integrity": "sha512-JQ3Ep8bEOXu16q0ztsatp/iQfDCtvap7sp/DKo7DWltUquj5AfCOpX2zSzJ8YkAVnrQNqQ5R62PBz2UtrfmCkA==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.45.1", + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/typescript-estree": "5.45.1", + "debug": "^4.3.4" + }, + "dependencies": { + "@typescript-eslint/scope-manager": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.45.1.tgz", + "integrity": "sha512-D6fCileR6Iai7E35Eb4Kp+k0iW7F1wxXYrOhX/3dywsOJpJAQ20Fwgcf+P/TDtvQ7zcsWsrJaglaQWDhOMsspQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/visitor-keys": "5.45.1" + } + }, + "@typescript-eslint/types": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.45.1.tgz", + "integrity": "sha512-HEW3U0E5dLjUT+nk7b4lLbOherS1U4ap+b9pfu2oGsW3oPu7genRaY9dDv3nMczC1rbnRY2W/D7SN05wYoGImg==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.45.1.tgz", + "integrity": "sha512-76NZpmpCzWVrrb0XmYEpbwOz/FENBi+5W7ipVXAsG3OoFrQKJMiaqsBMbvGRyLtPotGqUfcY7Ur8j0dksDJDng==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/visitor-keys": "5.45.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.45.1.tgz", + "integrity": "sha512-cy9ln+6rmthYWjH9fmx+5FU/JDpjQb586++x2FZlveq7GdGuLLW9a2Jcst2TGekH82bXpfmRNSwP9tyEs6RjvQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "eslint-visitor-keys": "^3.3.0" + } + } + } + }, + "@typescript-eslint/scope-manager": { + "version": "5.27.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.27.1.tgz", + "integrity": "sha512-fQEOSa/QroWE6fAEg+bJxtRZJTH8NTskggybogHt4H9Da8zd4cJji76gA5SBlR0MgtwF7rebxTbDKB49YUCpAg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.27.1", + "@typescript-eslint/visitor-keys": "5.27.1" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.45.1.tgz", + "integrity": "sha512-aosxFa+0CoYgYEl3aptLe1svP910DJq68nwEJzyQcrtRhC4BN0tJAvZGAe+D0tzjJmFXe+h4leSsiZhwBa2vrA==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "5.45.1", + "@typescript-eslint/utils": "5.45.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "dependencies": { + "@typescript-eslint/scope-manager": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.45.1.tgz", + "integrity": "sha512-D6fCileR6Iai7E35Eb4Kp+k0iW7F1wxXYrOhX/3dywsOJpJAQ20Fwgcf+P/TDtvQ7zcsWsrJaglaQWDhOMsspQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/visitor-keys": "5.45.1" + } + }, + "@typescript-eslint/types": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.45.1.tgz", + "integrity": "sha512-HEW3U0E5dLjUT+nk7b4lLbOherS1U4ap+b9pfu2oGsW3oPu7genRaY9dDv3nMczC1rbnRY2W/D7SN05wYoGImg==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.45.1.tgz", + "integrity": "sha512-76NZpmpCzWVrrb0XmYEpbwOz/FENBi+5W7ipVXAsG3OoFrQKJMiaqsBMbvGRyLtPotGqUfcY7Ur8j0dksDJDng==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/visitor-keys": "5.45.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/utils": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.45.1.tgz", + "integrity": "sha512-rlbC5VZz68+yjAzQBc4I7KDYVzWG2X/OrqoZrMahYq3u8FFtmQYc+9rovo/7wlJH5kugJ+jQXV5pJMnofGmPRw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.45.1", + "@typescript-eslint/types": "5.45.1", + "@typescript-eslint/typescript-estree": "5.45.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0", + "semver": "^7.3.7" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.45.1.tgz", + "integrity": "sha512-cy9ln+6rmthYWjH9fmx+5FU/JDpjQb586++x2FZlveq7GdGuLLW9a2Jcst2TGekH82bXpfmRNSwP9tyEs6RjvQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.45.1", + "eslint-visitor-keys": "^3.3.0" + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + } + } + }, + "@typescript-eslint/types": { + "version": "5.27.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.27.1.tgz", + "integrity": "sha512-LgogNVkBhCTZU/m8XgEYIWICD6m4dmEDbKXESCbqOXfKZxRKeqpiJXQIErv66sdopRKZPo5l32ymNqibYEH/xg==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.27.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.27.1.tgz", + "integrity": "sha512-DnZvvq3TAJ5ke+hk0LklvxwYsnXpRdqUY5gaVS0D4raKtbznPz71UJGnPTHEFo0GDxqLOLdMkkmVZjSpET1hFw==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.27.1", + "@typescript-eslint/visitor-keys": "5.27.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/utils": { + "version": "5.27.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.27.1.tgz", + "integrity": "sha512-mZ9WEn1ZLDaVrhRaYgzbkXBkTPghPFsup8zDbbsYTxC5OmqrFE7skkKS/sraVsLP3TcT3Ki5CSyEFBRkLH/H/w==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.27.1", + "@typescript-eslint/types": "5.27.1", + "@typescript-eslint/typescript-estree": "5.27.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "dependencies": { + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.27.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.27.1.tgz", + "integrity": "sha512-xYs6ffo01nhdJgPieyk7HAOpjhTsx7r/oB9LWEhwAXgwn33tkr+W8DI2ChboqhZlC4q3TC6geDYPoiX8ROqyOQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.27.1", + "eslint-visitor-keys": "^3.3.0" + } + }, + "@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "requires": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "@yarnpkg/lockfile": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", + "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", + "dev": true + }, + "@yarnpkg/parsers": { + "version": "3.0.0-rc.32", + "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.0-rc.32.tgz", + "integrity": "sha512-Sz2g88b3iAu2jpMnhtps2bRX2GAAOvanOxGcVi+o7ybGjLetxK23o2cHskXKypvXxtZTsJegel5pUWSPpYphww==", + "dev": true, + "requires": { + "js-yaml": "^3.10.0", + "tslib": "^2.4.0" + }, + "dependencies": { + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } + } + }, + "JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "requires": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + } + }, + "abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "dev": true + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "requires": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + } + }, + "acorn": { + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", + "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==" + }, + "acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==" + }, + "acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", + "dev": true, + "requires": { + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + }, + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true + } + } + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" + }, + "add-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz", + "integrity": "sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==", + "dev": true + }, + "adjust-sourcemap-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", + "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", + "dev": true, + "requires": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + }, + "dependencies": { + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + } + } + }, + "adm-zip": { + "version": "0.4.16", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", + "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", + "dev": true + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "requires": { + "debug": "4" + } + }, + "agentkeepalive": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.2.1.tgz", + "integrity": "sha512-Zn4cw2NEqd+9fiSVWMscnjyQ1a8Yfoc5oBajLeo5w+YBHgDUcEBY2hS4YpTz6iN5f/2zQiktcuM6tS8x1p9dpA==", + "requires": { + "debug": "^4.1.0", + "depd": "^1.1.2", + "humanize-ms": "^1.2.1" + } + }, + "aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + } + }, + "ajv": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", + "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "requires": { + "ajv": "^8.0.0" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "dev": true, + "optional": true + }, + "ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true + }, + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "requires": { + "type-fest": "^0.21.3" + }, + "dependencies": { + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + } + } + }, + "ansi-gray": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", + "integrity": "sha512-HrgGIZUl8h2EHuZaU9hTR/cU5nhKxpVE1V6kdGsQ8e4zirElJ5fvtfc8N7Q1oq1aatO275i8pUFUCpNWCAnVWw==", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "dev": true + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", + "dev": true + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "apache-crypt": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/apache-crypt/-/apache-crypt-1.2.6.tgz", + "integrity": "sha512-072WetlM4blL8PREJVeY+WHiUh1R5VNt2HfceGS8aKqttPHcmqE5pkKuXPz/ULmJOFkc8Hw3kfKl6vy7Qka6DA==", + "dev": true, + "requires": { + "unix-crypt-td-js": "^1.1.4" + } + }, + "apache-md5": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/apache-md5/-/apache-md5-1.1.8.tgz", + "integrity": "sha512-FCAJojipPn0bXjuEpjOOOMN8FZDkxfWWp4JGN9mifU2IhxvKyXZYqpzPHdnTSUpmPDy+tsslB6Z1g+Vg6nVbYA==", + "dev": true + }, + "aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" + }, + "arch": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz", + "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", + "dev": true + }, + "are-we-there-yet": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", + "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + } + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" + }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", + "dev": true, + "requires": { + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" + } + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==", + "dev": true + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "array-from": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", + "integrity": "sha512-GQTc6Uupx1FCavi5mPzBvVT7nEOeWMmUA9P95wpfpW1XwMSKs+KaymD5C2Up7KAUKg/mYwbsUYzdZWcoajlNZg==", + "dev": true + }, + "array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", + "dev": true + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "dev": true + }, + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true + }, + "asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "dev": true + }, + "assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==" + }, + "ast-transform": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/ast-transform/-/ast-transform-0.0.0.tgz", + "integrity": "sha512-e/JfLiSoakfmL4wmTGPjv0HpTICVmxwXgYOB8x+mzozHL8v+dSfCbrJ8J8hJ0YBP0XcYu1aLZ6b/3TnxNK3P2A==", + "dev": true, + "requires": { + "escodegen": "~1.2.0", + "esprima": "~1.0.4", + "through": "~2.3.4" + }, + "dependencies": { + "escodegen": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.2.0.tgz", + "integrity": "sha512-yLy3Cc+zAC0WSmoT2fig3J87TpQ8UaZGx8ahCAs9FL8qNbyV7CVyPKS74DG4bsHiL5ew9sxdYx131OkBQMFnvA==", + "dev": true, + "requires": { + "esprima": "~1.0.4", + "estraverse": "~1.5.0", + "esutils": "~1.0.0", + "source-map": "~0.1.30" + } + }, + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", + "dev": true + }, + "estraverse": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", + "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", + "dev": true + }, + "esutils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", + "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", + "dev": true + }, + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "dev": true, + "optional": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "ast-types": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.7.8.tgz", + "integrity": "sha512-RIOpVnVlltB6PcBJ5BMLx+H+6JJ/zjDGU0t7f0L6c2M1dqcK92VQopLBlPQ9R80AVXelfqYgjcPLtHtDbNFg0Q==", + "dev": true + }, + "astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true + }, + "async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dev": true, + "requires": { + "lodash": "^4.17.14" + } + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, + "autoprefixer": { + "version": "10.4.13", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz", + "integrity": "sha512-49vKpMqcZYsJjwotvt4+h/BCjJVnhGwcLpDt5xkcaOG3eLrG/HUYLagrihYsQ+qrIBgIzX1Rw7a6L8I/ZA1Atg==", + "dev": true, + "requires": { + "browserslist": "^4.21.4", + "caniuse-lite": "^1.0.30001426", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "dev": true + }, + "aws4": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", + "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", + "dev": true + }, + "axios": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.25.0.tgz", + "integrity": "sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==", + "requires": { + "follow-redirects": "^1.14.7" + } + }, + "axobject-query": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", + "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", + "dev": true + }, + "babel-loader": { + "version": "8.2.5", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.5.tgz", + "integrity": "sha512-OSiFfH89LrEMiWd4pLNqGz4CwJDtbs2ZVc+iGu2HrkRfPxId9F2anQj38IxWpmRfsUY0aBZYi1EFcd3mhtRMLQ==", + "dev": true, + "requires": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "dependencies": { + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + } + } + }, + "babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + } + }, + "babel-plugin-polyfill-corejs2": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", + "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.3.3", + "semver": "^6.1.1" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "babel-plugin-polyfill-corejs3": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.3.tgz", + "integrity": "sha512-zKsXDh0XjnrUEW0mxIHLfjBfnXSMr5Q/goMe/fxpQnLm07mcOZiIZHBNWCMx60HmdvjxfXcalac0tfFg0wqxyw==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.3.2", + "core-js-compat": "^3.21.0" + } + }, + "babel-plugin-polyfill-regenerator": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.1.tgz", + "integrity": "sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.3.1" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + }, + "base64id": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", + "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", + "dev": true + }, + "basic-auth": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", + "requires": { + "safe-buffer": "5.1.2" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "bcryptjs": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", + "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==", + "dev": true + }, + "better-ajv-errors": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/better-ajv-errors/-/better-ajv-errors-1.2.0.tgz", + "integrity": "sha512-UW+IsFycygIo7bclP9h5ugkNH8EjCSgqyFB/yQ4Hqqa1OEYDtb0uFIkYE0b6+CjkgJYVM5UKI/pJPxjYe9EZlA==", + "requires": { + "@babel/code-frame": "^7.16.0", + "@humanwhocodes/momoa": "^2.0.2", + "chalk": "^4.1.2", + "jsonpointer": "^5.0.0", + "leven": "^3.1.0 < 4" + } + }, + "big-integer": { + "version": "1.6.51", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "dev": true + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true + }, + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true + }, + "bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "requires": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "blob-util": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/blob-util/-/blob-util-2.0.2.tgz", + "integrity": "sha512-T7JQa+zsXXEa6/8ZhHcQEW1UFfVM49Ts65uBkFL6fz2QmrElqmbajIDJvuA0tEhRe5eIjpV9ZF+0RfZR9voJFQ==", + "dev": true + }, + "block-stream": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", + "integrity": "sha512-OorbnJVPII4DuUKbjARAe8u8EfqOmkEEaSFIyoQ7OjTHn6kafxWl0wLgoZ2rXaYd7MyLcDaU4TmhfxtwgcccMQ==", + "dev": true, + "requires": { + "inherits": "~2.0.0" + } + }, + "blocking-proxy": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/blocking-proxy/-/blocking-proxy-1.0.1.tgz", + "integrity": "sha512-KE8NFMZr3mN2E0HcvCgRtX7DjhiIQrwle+nSVJVC/yqFb9+xznHl2ZcoBp2L9qzkI4t4cBFJ1efXF8Dwi132RA==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true + }, + "body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "bonjour": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", + "integrity": "sha512-RaVTblr+OnEli0r/ud8InrU7D+G0y6aJhlxaLa6Pwty4+xoxboF1BsUI45tujvRpbj9dQVoglChqonGAsjEBYg==", + "dev": true, + "requires": { + "array-flatten": "^2.1.0", + "deep-equal": "^1.0.1", + "dns-equal": "^1.0.0", + "dns-txt": "^2.0.2", + "multicast-dns": "^6.0.1", + "multicast-dns-service-types": "^1.1.0" + }, + "dependencies": { + "array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", + "dev": true + } + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "bplist-parser": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.2.tgz", + "integrity": "sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==", + "dev": true, + "requires": { + "big-integer": "1.6.x" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "requires": { + "fill-range": "^7.0.1" + } + }, + "brfs": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brfs/-/brfs-2.0.2.tgz", + "integrity": "sha512-IrFjVtwu4eTJZyu8w/V2gxU7iLTtcHih67sgEdzrhjLBMHp2uYefUBfdM4k2UvcuWMgV7PQDZHSLeNWnLFKWVQ==", + "dev": true, + "requires": { + "quote-stream": "^1.0.1", + "resolve": "^1.1.5", + "static-module": "^3.0.2", + "through2": "^2.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + } + } + }, + "brotli": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/brotli/-/brotli-1.3.3.tgz", + "integrity": "sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg==", + "dev": true, + "requires": { + "base64-js": "^1.1.2" + } + }, + "browser-resolve": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", + "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "dev": true, + "requires": { + "resolve": "1.1.7" + }, + "dependencies": { + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg==", + "dev": true + } + } + }, + "browserify-optional": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-optional/-/browserify-optional-1.0.1.tgz", + "integrity": "sha512-VrhjbZ+Ba5mDiSYEuPelekQMfTbhcA2DhLk2VQWqdcCROWeFqlTcXZ7yfRkXCIl8E+g4gINJYJiRB7WEtfomAQ==", + "dev": true, + "requires": { + "ast-transform": "0.0.0", + "ast-types": "^0.7.0", + "browser-resolve": "^1.8.1" + } + }, + "browserslist": { + "version": "4.21.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", + "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001400", + "electron-to-chromium": "^1.4.251", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.9" + } + }, + "browserstack": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.6.1.tgz", + "integrity": "sha512-GxtFjpIaKdbAyzHfFDKixKO8IBT7wR3NjbzrGc78nNs/Ciys9wU3/nBtsqsWv5nDSrdI5tz0peKuzCPuNXNUiw==", + "dev": true, + "requires": { + "https-proxy-agent": "^2.2.1" + }, + "dependencies": { + "agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "dev": true, + "requires": { + "es6-promisify": "^5.0.0" + } + }, + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "https-proxy-agent": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "dev": true, + "requires": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" + } + } + } + }, + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true + }, + "buffer-equal": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz", + "integrity": "sha512-RgSV6InVQ9ODPdLWJ5UAqBqJBOg370Nz6ZQtRzpt6nUjc8v0St97uJ4PYC6NztqIScrAXafKM3mZPMygSe1ggA==", + "dev": true + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "buffer-indexof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", + "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", + "dev": true + }, + "builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true + }, + "builtins": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", + "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", + "dev": true + }, + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + }, + "cacache": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz", + "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==", + "requires": { + "@npmcli/fs": "^2.1.0", + "@npmcli/move-file": "^2.0.0", + "chownr": "^2.0.0", + "fs-minipass": "^2.1.0", + "glob": "^8.0.1", + "infer-owner": "^1.0.4", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "mkdirp": "^1.0.4", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^9.0.0", + "tar": "^6.1.11", + "unique-filename": "^2.0.0" + } + }, + "cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==" + }, + "cacheable-request": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.2.tgz", + "integrity": "sha512-pouW8/FmiPQbuGpkXQ9BAPv/Mo5xDGANgSNXzTzJ8DrKGuXOssM4wIQRjfanNRh3Yu5cfYPvcorqbhg2KIJtew==", + "requires": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + } + }, + "cachedir": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz", + "integrity": "sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw==", + "dev": true + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "callsite": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", + "integrity": "sha512-0vdNRFXn5q+dtOqjfFtmtlI9N2eVZ7LMyEV2iKC5mEEFvSg/69Ml6b/WU2qF8W1nLRa0wiSrDT3Y5jOHZCwKPQ==", + "dev": true + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "dependencies": { + "quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true + } + } + }, + "caniuse-lite": { + "version": "1.0.30001436", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001436.tgz", + "integrity": "sha512-ZmWkKsnC2ifEPoWUvSAIGyOYwT+keAaaWPHiQ9DfMqS1t6tfuyFYoWR78TeZtznkEQ64+vGXH9cZrElwR2Mrxg==", + "dev": true + }, + "capacitor-secure-storage-plugin": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/capacitor-secure-storage-plugin/-/capacitor-secure-storage-plugin-0.8.1.tgz", + "integrity": "sha512-PvTMZsjh5NAopdabp7b+zpu6N/zboBfB1dMldI7wbdCGSaH4LZo8cZLp9U2V1i2Y0V3JI1oWR3iysUrG0m7uPQ==" + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", + "dev": true + }, + "chai": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", + "integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==", + "requires": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.2", + "deep-eql": "^3.0.1", + "get-func-name": "^2.0.0", + "loupe": "^2.3.1", + "pathval": "^1.1.1", + "type-detect": "^4.0.5" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "dev": true + }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==" + }, + "check-more-types": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", + "integrity": "sha512-Pj779qHxV2tuapviy1bSZNEL1maXr13bPYpsvSDB68HlYcYuhlDrmGd63i0JHMCLKzc7rUSNIrpdJlhVlNwrxA==", + "dev": true + }, + "cheerio": { + "version": "1.0.0-rc.12", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", + "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", + "dev": true, + "requires": { + "cheerio-select": "^2.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "htmlparser2": "^8.0.1", + "parse5": "^7.0.0", + "parse5-htmlparser2-tree-adapter": "^7.0.0" + }, + "dependencies": { + "dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dev": true, + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + } + }, + "domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dev": true, + "requires": { + "domelementtype": "^2.3.0" + } + }, + "domutils": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", + "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", + "dev": true, + "requires": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.1" + } + }, + "entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "dev": true + }, + "parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dev": true, + "requires": { + "entities": "^4.4.0" + } + }, + "parse5-htmlparser2-tree-adapter": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", + "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", + "dev": true, + "requires": { + "domhandler": "^5.0.2", + "parse5": "^7.0.0" + } + } + } + }, + "cheerio-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", + "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-select": "^5.1.0", + "css-what": "^6.1.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1" + }, + "dependencies": { + "css-select": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", + "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + } + }, + "dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dev": true, + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + } + }, + "domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dev": true, + "requires": { + "domelementtype": "^2.3.0" + } + }, + "domutils": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", + "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", + "dev": true, + "requires": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.1" + } + }, + "entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "dev": true + } + } + }, + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, + "chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true + }, + "ci-info": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.0.tgz", + "integrity": "sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog==", + "dev": true + }, + "circular-dependency-plugin": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/circular-dependency-plugin/-/circular-dependency-plugin-5.2.2.tgz", + "integrity": "sha512-g38K9Cm5WRwlaH6g03B9OEz/0qRizI+2I7n+Gz+L5DxXJAPAiWQvwlYNm1V1jkdpUv95bOe/ASm2vfi/G560jQ==", + "dev": true + }, + "clean-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz", + "integrity": "sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, + "clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" + }, + "cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "requires": { + "restore-cursor": "^3.1.0" + } + }, + "cli-progress": { + "version": "3.11.2", + "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.11.2.tgz", + "integrity": "sha512-lCPoS6ncgX4+rJu5bS3F/iCz17kZ9MPZ6dpuTtI0KXKABkhyXIdYB3Inby1OpaGti3YlI3EeEkM9AuWpelJrVA==", + "requires": { + "string-width": "^4.2.3" + } + }, + "cli-spinners": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz", + "integrity": "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==", + "dev": true + }, + "cli-table3": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", + "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", + "dev": true, + "requires": { + "@colors/colors": "1.5.0", + "string-width": "^4.2.0" + } + }, + "cli-truncate": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", + "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", + "dev": true, + "requires": { + "slice-ansi": "^3.0.0", + "string-width": "^4.2.0" + }, + "dependencies": { + "slice-ansi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", + "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + } + } + } + }, + "cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", + "dev": true + }, + "cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "dev": true + }, + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + } + }, + "clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "requires": { + "mimic-response": "^1.0.0" + } + }, + "code-block-writer": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-11.0.3.tgz", + "integrity": "sha512-NiujjUFB4SwScJq2bwbYUtXbZhBSlY6vYzm++3Q6oC+U+injTqfPYFK8wS9COOmb2lueqp0ZRB4nK1VYeHgNyw==", + "dev": true + }, + "color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "dev": true, + "requires": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "dev": true, + "requires": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==" + }, + "colorette": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", + "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", + "dev": true + }, + "colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "9.4.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz", + "integrity": "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==" + }, + "comment-parser": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", + "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", + "dev": true + }, + "common-tags": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "compare-func": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", + "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", + "dev": true, + "requires": { + "array-ify": "^1.0.0", + "dot-prop": "^5.1.0" + } + }, + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dev": true, + "requires": { + "mime-db": ">= 1.43.0 < 2" + } + }, + "compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dev": true, + "requires": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "dependencies": { + "bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "connect": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", + "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", + "dev": true, + "requires": { + "debug": "2.6.9", + "finalhandler": "1.1.2", + "parseurl": "~1.3.3", + "utils-merge": "1.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dev": true, + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "dev": true, + "requires": { + "ee-first": "1.1.1" + } + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "dev": true + } + } + }, + "connect-history-api-fallback": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", + "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" + }, + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "requires": { + "safe-buffer": "5.2.1" + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "conventional-changelog": { + "version": "3.1.25", + "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.25.tgz", + "integrity": "sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ==", + "dev": true, + "requires": { + "conventional-changelog-angular": "^5.0.12", + "conventional-changelog-atom": "^2.0.8", + "conventional-changelog-codemirror": "^2.0.8", + "conventional-changelog-conventionalcommits": "^4.5.0", + "conventional-changelog-core": "^4.2.1", + "conventional-changelog-ember": "^2.0.9", + "conventional-changelog-eslint": "^3.0.9", + "conventional-changelog-express": "^2.0.6", + "conventional-changelog-jquery": "^3.0.11", + "conventional-changelog-jshint": "^2.0.9", + "conventional-changelog-preset-loader": "^2.3.4" + } + }, + "conventional-changelog-angular": { + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz", + "integrity": "sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA==", + "dev": true, + "requires": { + "compare-func": "^2.0.0", + "q": "^1.5.1" + } + }, + "conventional-changelog-atom": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz", + "integrity": "sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw==", + "dev": true, + "requires": { + "q": "^1.5.1" + } + }, + "conventional-changelog-cli": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/conventional-changelog-cli/-/conventional-changelog-cli-2.2.2.tgz", + "integrity": "sha512-8grMV5Jo8S0kP3yoMeJxV2P5R6VJOqK72IiSV9t/4H5r/HiRqEBQ83bYGuz4Yzfdj4bjaAEhZN/FFbsFXr5bOA==", + "dev": true, + "requires": { + "add-stream": "^1.0.0", + "conventional-changelog": "^3.1.24", + "lodash": "^4.17.15", + "meow": "^8.0.0", + "tempfile": "^3.0.0" + } + }, + "conventional-changelog-codemirror": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz", + "integrity": "sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw==", + "dev": true, + "requires": { + "q": "^1.5.1" + } + }, + "conventional-changelog-conventionalcommits": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz", + "integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==", + "dev": true, + "requires": { + "compare-func": "^2.0.0", + "lodash": "^4.17.15", + "q": "^1.5.1" + } + }, + "conventional-changelog-core": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz", + "integrity": "sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg==", + "dev": true, + "requires": { + "add-stream": "^1.0.0", + "conventional-changelog-writer": "^5.0.0", + "conventional-commits-parser": "^3.2.0", + "dateformat": "^3.0.0", + "get-pkg-repo": "^4.0.0", + "git-raw-commits": "^2.0.8", + "git-remote-origin-url": "^2.0.0", + "git-semver-tags": "^4.1.1", + "lodash": "^4.17.15", + "normalize-package-data": "^3.0.0", + "q": "^1.5.1", + "read-pkg": "^3.0.0", + "read-pkg-up": "^3.0.0", + "through2": "^4.0.0" + } + }, + "conventional-changelog-ember": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz", + "integrity": "sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A==", + "dev": true, + "requires": { + "q": "^1.5.1" + } + }, + "conventional-changelog-eslint": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz", + "integrity": "sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA==", + "dev": true, + "requires": { + "q": "^1.5.1" + } + }, + "conventional-changelog-express": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz", + "integrity": "sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ==", + "dev": true, + "requires": { + "q": "^1.5.1" + } + }, + "conventional-changelog-jquery": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz", + "integrity": "sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw==", + "dev": true, + "requires": { + "q": "^1.5.1" + } + }, + "conventional-changelog-jshint": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz", + "integrity": "sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA==", + "dev": true, + "requires": { + "compare-func": "^2.0.0", + "q": "^1.5.1" + } + }, + "conventional-changelog-preset-loader": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz", + "integrity": "sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g==", + "dev": true + }, + "conventional-changelog-writer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz", + "integrity": "sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ==", + "dev": true, + "requires": { + "conventional-commits-filter": "^2.0.7", + "dateformat": "^3.0.0", + "handlebars": "^4.7.7", + "json-stringify-safe": "^5.0.1", + "lodash": "^4.17.15", + "meow": "^8.0.0", + "semver": "^6.0.0", + "split": "^1.0.0", + "through2": "^4.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "conventional-commits-filter": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz", + "integrity": "sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==", + "dev": true, + "requires": { + "lodash.ismatch": "^4.4.0", + "modify-values": "^1.0.0" + } + }, + "conventional-commits-parser": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz", + "integrity": "sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==", + "dev": true, + "requires": { + "JSONStream": "^1.0.4", + "is-text-path": "^1.0.1", + "lodash": "^4.17.15", + "meow": "^8.0.0", + "split2": "^3.0.0", + "through2": "^4.0.0" + }, + "dependencies": { + "split2": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", + "dev": true, + "requires": { + "readable-stream": "^3.0.0" + } + } + } + }, + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "cookiejar": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.3.tgz", + "integrity": "sha512-JxbCBUdrfr6AQjOXrxoTvAMJO4HBTUIlBzslcJPAz+/KT8yk53fXun51u+RenNYvad/+Vc2DIz5o9UxlCDymFQ==", + "dev": true + }, + "copy-anything": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz", + "integrity": "sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==", + "dev": true, + "requires": { + "is-what": "^3.14.1" + } + }, + "copy-webpack-plugin": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-10.2.1.tgz", + "integrity": "sha512-nr81NhCAIpAWXGCK5thrKmfCQ6GDY0L5RN0U+BnIn/7Us55+UCex5ANNsNKmIVtDRnk0Ecf+/kzp9SUVrrBMLg==", + "dev": true, + "requires": { + "fast-glob": "^3.2.7", + "glob-parent": "^6.0.1", + "globby": "^12.0.2", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0" + }, + "dependencies": { + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "array-union": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-3.0.1.tgz", + "integrity": "sha512-1OvF9IbWwaeiM9VhzYXVQacMibxpXOMYVNIvMtKRyX9SImBXpKcFr8XvFDeEslCyuH/t6KRt7HEO94AlP8Iatw==", + "dev": true + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "globby": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-12.2.0.tgz", + "integrity": "sha512-wiSuFQLZ+urS9x2gGPl1H5drc5twabmm4m2gTR27XDFyjUHJUNsS8o/2aKyIF6IoBaR630atdher0XJ5g6OMmA==", + "dev": true, + "requires": { + "array-union": "^3.0.1", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.7", + "ignore": "^5.1.9", + "merge2": "^1.4.1", + "slash": "^4.0.0" + } + }, + "schema-utils": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", + "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.8.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.0.0" + } + }, + "slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "dev": true + } + } + }, + "cordova-plugin-calendar": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/cordova-plugin-calendar/-/cordova-plugin-calendar-5.1.6.tgz", + "integrity": "sha512-aaK5XRHIiR+1AYEwmXbFL98Q/I62OoUMAbxK0DTpICo0M3luihomr0S+YXstDLL0MyIKOB3WtRHVuCP4y97kHw==" + }, + "cordova-res": { + "version": "0.15.4", + "resolved": "https://registry.npmjs.org/cordova-res/-/cordova-res-0.15.4.tgz", + "integrity": "sha512-TjFZhjUtK8qq4DVrgR+KI7tKcUL704cnkTPRhHbKlCPzefHoz1tBOX93wc76dOMmOWKTsbJz83DIm6mqdp5Pmg==", + "dev": true, + "requires": { + "@ionic/utils-array": "^2.1.5", + "@ionic/utils-fs": "^3.1.5", + "debug": "^4.2.0", + "elementtree": "^0.1.7", + "sharp": "^0.29.2", + "tslib": "^2.0.3" + } + }, + "core-js": { + "version": "3.20.3", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.20.3.tgz", + "integrity": "sha512-vVl8j8ph6tRS3B8qir40H7yw7voy17xL0piAjlbBUsH7WIfzoedL/ZOr1OV9FyZQLWXsayOJyV4tnRyXR85/ag==", + "dev": true + }, + "core-js-compat": { + "version": "3.26.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.1.tgz", + "integrity": "sha512-622/KzTudvXCDLRw70iHW4KKs1aGpcRcowGWyYJr2DEBfRrd6hNJybxSWJFuZYD4ma86xhrwDDHxmDaIq4EA8A==", + "dev": true, + "requires": { + "browserslist": "^4.21.4" + } + }, + "core-js-pure": { + "version": "3.26.1", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.26.1.tgz", + "integrity": "sha512-VVXcDpp/xJ21KdULRq/lXdLzQAtX7+37LzpyfFM973il0tWSsDEoyzG38G14AjTpK9VTfiNM9jnFauq/CpaWGQ==", + "dev": true + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "dev": true, + "requires": { + "object-assign": "^4", + "vary": "^1" + } + }, + "cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, + "create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" + }, + "critters": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/critters/-/critters-0.0.16.tgz", + "integrity": "sha512-JwjgmO6i3y6RWtLYmXwO5jMd+maZt8Tnfu7VVISmEWyQqfLpB8soBswf8/2bu6SBXxtKA68Al3c+qIG1ApT68A==", + "dev": true, + "requires": { + "chalk": "^4.1.0", + "css-select": "^4.2.0", + "parse5": "^6.0.1", + "parse5-htmlparser2-tree-adapter": "^6.0.1", + "postcss": "^8.3.7", + "pretty-bytes": "^5.3.0" + }, + "dependencies": { + "parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + } + } + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crypto-js": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", + "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==", + "dev": true + }, + "css": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", + "dev": true, + "requires": { + "inherits": "^2.0.4", + "source-map": "^0.6.1", + "source-map-resolve": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "css-blank-pseudo": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz", + "integrity": "sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "css-has-pseudo": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz", + "integrity": "sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "css-loader": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.5.1.tgz", + "integrity": "sha512-gEy2w9AnJNnD9Kuo4XAP9VflW/ujKoS9c/syO+uWMlm5igc7LysKzPXaDoR2vroROkSwsTS2tGr1yGGEbZOYZQ==", + "dev": true, + "requires": { + "icss-utils": "^5.1.0", + "postcss": "^8.2.15", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.1.0", + "semver": "^7.3.5" + } + }, + "css-prefers-color-scheme": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz", + "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==", + "dev": true + }, + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } + }, + "css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true + }, + "cssdb": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-5.1.0.tgz", + "integrity": "sha512-/vqjXhv1x9eGkE/zO6o8ZOI7dgdZbLVLUGyVRbPgk6YipXbW87YzUCcO+Jrmi5bwJlAH6oD+MNeZyRgXea1GZw==", + "dev": true + }, + "cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true + }, + "custom-event": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz", + "integrity": "sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg==", + "dev": true + }, + "cypress": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-12.0.1.tgz", + "integrity": "sha512-I1Ag5RsPEINfUlQtV6xwkd6ktJuu5QGiKZ3pFa/IXjcyCY6I7CH3gOz0juLOhg/LXOPrQtZH35ulcWDQohyyEA==", + "dev": true, + "requires": { + "@cypress/request": "^2.88.10", + "@cypress/xvfb": "^1.2.4", + "@types/node": "^14.14.31", + "@types/sinonjs__fake-timers": "8.1.1", + "@types/sizzle": "^2.3.2", + "arch": "^2.2.0", + "blob-util": "^2.0.2", + "bluebird": "^3.7.2", + "buffer": "^5.6.0", + "cachedir": "^2.3.0", + "chalk": "^4.1.0", + "check-more-types": "^2.24.0", + "cli-cursor": "^3.1.0", + "cli-table3": "~0.6.1", + "commander": "^5.1.0", + "common-tags": "^1.8.0", + "dayjs": "^1.10.4", + "debug": "^4.3.2", + "enquirer": "^2.3.6", + "eventemitter2": "6.4.7", + "execa": "4.1.0", + "executable": "^4.1.1", + "extract-zip": "2.0.1", + "figures": "^3.2.0", + "fs-extra": "^9.1.0", + "getos": "^3.2.1", + "is-ci": "^3.0.0", + "is-installed-globally": "~0.4.0", + "lazy-ass": "^1.6.0", + "listr2": "^3.8.3", + "lodash": "^4.17.21", + "log-symbols": "^4.0.0", + "minimist": "^1.2.6", + "ospath": "^1.2.2", + "pretty-bytes": "^5.6.0", + "proxy-from-env": "1.0.0", + "request-progress": "^3.0.0", + "semver": "^7.3.2", + "supports-color": "^8.1.1", + "tmp": "~0.2.1", + "untildify": "^4.0.0", + "yauzl": "^2.10.0" + }, + "dependencies": { + "commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "dev": true + }, + "execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + } + }, + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true + }, + "proxy-from-env": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz", + "integrity": "sha512-F2JHgJQ1iqwnHDcQjVBsq3n/uoaFL+iPW/eAeL7kVxy/2RrWaN4WroKjjvbsoRtv0ftelNyC01bjRhn/bhcf4A==", + "dev": true + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "requires": { + "rimraf": "^3.0.0" + } + } + } + }, + "d": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", + "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", + "dev": true, + "requires": { + "es5-ext": "^0.10.50", + "type": "^1.0.1" + } + }, + "dargs": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", + "integrity": "sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==", + "dev": true + }, + "dash-ast": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-2.0.1.tgz", + "integrity": "sha512-5TXltWJGc+RdnabUGzhRae1TRq6m4gr+3K2wQX0is5/F2yS6MJXJvLyI3ErAnsAXuJoGqvfVD5icRgim07DrxQ==", + "dev": true + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "data-uri-to-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz", + "integrity": "sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==", + "dev": true + }, + "date-format": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", + "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==", + "dev": true + }, + "dateformat": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", + "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", + "dev": true + }, + "dayjs": { + "version": "1.11.7", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.7.tgz", + "integrity": "sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==", + "dev": true + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "debuglog": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz", + "integrity": "sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==", + "dev": true + }, + "decache": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/decache/-/decache-4.6.1.tgz", + "integrity": "sha512-ohApBM8u9ygepJCjgBrEZSSxPjc0T/PJkD+uNyxXPkqudyUpdXpwJYp0VISm2WrPVzASU6DZyIi6BWdyw7uJ2Q==", + "dev": true, + "requires": { + "callsite": "^1.0.0" + } + }, + "decamelize": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-6.0.0.tgz", + "integrity": "sha512-Fv96DCsdOgB6mdGl67MT5JaTNKRzrzill5OH5s8bjYJXVlcXyPYGyPsUkWyGV5p1TXI5esYIYMMeDJL0hEIwaA==" + }, + "decamelize-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", + "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", + "dev": true, + "requires": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "dependencies": { + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "dev": true + } + } + }, + "decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true + }, + "decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "requires": { + "mimic-response": "^3.1.0" + }, + "dependencies": { + "mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==" + } + } + }, + "deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "requires": { + "type-detect": "^4.0.0" + } + }, + "deep-equal": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", + "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", + "dev": true, + "requires": { + "is-arguments": "^1.0.4", + "is-date-object": "^1.0.1", + "is-regex": "^1.0.4", + "object-is": "^1.0.1", + "object-keys": "^1.1.1", + "regexp.prototype.flags": "^1.2.0" + } + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==" + }, + "default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "dev": true, + "requires": { + "execa": "^5.0.0" + } + }, + "defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "dev": true, + "requires": { + "clone": "^1.0.2" + } + }, + "defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==" + }, + "define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true + }, + "define-properties": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", + "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "dev": true, + "requires": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "degenerator": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-3.0.2.tgz", + "integrity": "sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ==", + "dev": true, + "requires": { + "ast-types": "^0.13.2", + "escodegen": "^1.8.1", + "esprima": "^4.0.0", + "vm2": "^3.9.8" + }, + "dependencies": { + "ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", + "dev": true, + "requires": { + "tslib": "^2.0.1" + } + } + } + }, + "del": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", + "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", + "requires": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" + }, + "dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", + "dev": true + }, + "destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + }, + "detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true + }, + "detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true + }, + "dezalgo": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", + "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", + "dev": true, + "requires": { + "asap": "^2.0.0", + "wrappy": "1" + } + }, + "dfa": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/dfa/-/dfa-1.2.0.tgz", + "integrity": "sha512-ED3jP8saaweFTjeGX8HQPjeC1YYyZs98jGNZx6IiBvxW7JG5v492kamAQB3m2wop07CvU/RQmzcKr6bgcC5D/Q==", + "dev": true + }, + "di": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz", + "integrity": "sha512-uJaamHkagcZtHPqCIHZxnFrXlunQXgBOsZSUOWwFw31QJCAbyTBoHMW75YOTur5ZNx8pIeAKgf6GWIgaqqiLhA==", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "requires": { + "path-type": "^4.0.0" + } + }, + "dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==", + "dev": true + }, + "dns-packet": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz", + "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==", + "dev": true, + "requires": { + "ip": "^1.1.0", + "safe-buffer": "^5.0.1" + }, + "dependencies": { + "ip": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "dev": true + } + } + }, + "dns-txt": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", + "integrity": "sha512-Ix5PrWjphuSoUXV/Zv5gaFHjnaJtb02F2+Si3Ht9dyJ87+Z/lMmy+dpNHtTGraNK958ndXq2i+GLkWsWHcKaBQ==", + "dev": true, + "requires": { + "buffer-indexof": "^1.0.0" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "requires": { + "esutils": "^2.0.2" + } + }, + "dom-serialize": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/dom-serialize/-/dom-serialize-2.2.1.tgz", + "integrity": "sha512-Yra4DbvoW7/Z6LBN560ZwXMjoNOSAN2wRsKFGc4iBeso+mpIA6qj1vfdf9HpMaKAqG6wXTy+1SYEzmNpKXOSsQ==", + "dev": true, + "requires": { + "custom-event": "~1.0.0", + "ent": "~2.2.0", + "extend": "^3.0.0", + "void-elements": "^2.0.0" + } + }, + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "dom7": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/dom7/-/dom7-4.0.4.tgz", + "integrity": "sha512-DSSgBzQ4rJWQp1u6o+3FVwMNnT5bzQbMb+o31TjYYeRi05uAcpF8koxdfzeoe5ElzPmua7W7N28YJhF7iEKqIw==", + "requires": { + "ssr-window": "^4.0.0" + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true + }, + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "requires": { + "domelementtype": "^2.2.0" + } + }, + "dommatrix": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dommatrix/-/dommatrix-1.0.3.tgz", + "integrity": "sha512-l32Xp/TLgWb8ReqbVJAFIvXmY7go4nTxxlWiAFyhoQw9RKEOHBZNnyGvJWqDVSPmq3Y9HlM4npqF/T6VMOXhww==", + "dev": true + }, + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "dot": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dot/-/dot-1.1.3.tgz", + "integrity": "sha512-/nt74Rm+PcfnirXGEdhZleTwGC2LMnuKTeeTIlI82xb5loBBoXNYzr2ezCroPSMtilK8EZIfcNZwOcHN+ib1Lg==", + "dev": true + }, + "dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dev": true, + "requires": { + "is-obj": "^2.0.0" + } + }, + "dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "dev": true + }, + "duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "dev": true, + "requires": { + "readable-stream": "^2.0.2" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "ejs": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "dev": true, + "requires": { + "jake": "^10.8.5" + } + }, + "electron-to-chromium": { + "version": "1.4.284", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", + "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", + "dev": true + }, + "elementtree": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/elementtree/-/elementtree-0.1.7.tgz", + "integrity": "sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==", + "dev": true, + "requires": { + "sax": "1.1.4" + }, + "dependencies": { + "sax": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.1.4.tgz", + "integrity": "sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==", + "dev": true + } + } + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "emoji-toolkit": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/emoji-toolkit/-/emoji-toolkit-6.6.0.tgz", + "integrity": "sha512-pEu0kow2p1N8zCKnn/L6H0F3rWUBB3P3hVjr/O5yl1fK7N9jU4vO4G7EFapC5Y3XwZLUCY0FZbOPyTkH+4V2eQ==" + }, + "emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + }, + "encoding": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "optional": true, + "requires": { + "iconv-lite": "^0.6.2" + } + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "requires": { + "once": "^1.4.0" + } + }, + "engine.io": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.2.1.tgz", + "integrity": "sha512-ECceEFcAaNRybd3lsGQKas3ZlMVjN3cyWwMP25D2i0zWfyiytVbTpRPa34qrr+FHddtpBVOmq4H/DCv1O0lZRA==", + "dev": true, + "requires": { + "@types/cookie": "^0.4.1", + "@types/cors": "^2.8.12", + "@types/node": ">=10.0.0", + "accepts": "~1.3.4", + "base64id": "2.0.0", + "cookie": "~0.4.1", + "cors": "~2.8.5", + "debug": "~4.3.1", + "engine.io-parser": "~5.0.3", + "ws": "~8.2.3" + }, + "dependencies": { + "cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "dev": true + }, + "ws": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", + "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", + "dev": true + } + } + }, + "engine.io-parser": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.4.tgz", + "integrity": "sha512-+nVFp+5z1E3HcToEnO7ZIj3g+3k9389DvWtvJZz0T6/eOCPIyyxehFcedoYrZQrp0LgQbD9pPXhpMBKMd5QURg==", + "dev": true + }, + "enhanced-resolve": { + "version": "5.12.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", + "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dev": true, + "requires": { + "ansi-colors": "^4.1.1" + } + }, + "ent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", + "integrity": "sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==", + "dev": true + }, + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true + }, + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==" + }, + "err-code": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", + "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==" + }, + "errno": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", + "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", + "dev": true, + "optional": true, + "requires": { + "prr": "~1.0.1" + } + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, + "es5-ext": { + "version": "0.10.62", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz", + "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==", + "dev": true, + "requires": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "next-tick": "^1.1.0" + } + }, + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha512-mz3UqCh0uPCIqsw1SSAkB/p0rOzF/M0V++vyN7JqlPtSW/VsYgQBvVvqMLmfBuyMzTpLnNqi6JmcSizs4jy19A==", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", + "es6-set": "~0.1.5", + "es6-symbol": "~3.1.1", + "event-emitter": "~0.3.5" + } + }, + "es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "dev": true + }, + "es6-promisify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", + "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", + "dev": true, + "requires": { + "es6-promise": "^4.0.3" + } + }, + "es6-set": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.6.tgz", + "integrity": "sha512-TE3LgGLDIBX332jq3ypv6bcOpkLO0AslAQo7p2VqX/1N46YNsvIWgvjojjSEnWEGWMhr1qUbYeTSir5J6mFHOw==", + "dev": true, + "requires": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "es6-iterator": "~2.0.3", + "es6-symbol": "^3.1.3", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "dependencies": { + "type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "dev": true + } + } + }, + "es6-symbol": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", + "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", + "dev": true, + "requires": { + "d": "^1.0.1", + "ext": "^1.1.2" + } + }, + "esbuild-android-arm64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.22.tgz", + "integrity": "sha512-k1Uu4uC4UOFgrnTj2zuj75EswFSEBK+H6lT70/DdS4mTAOfs2ECv2I9ZYvr3w0WL0T4YItzJdK7fPNxcPw6YmQ==", + "dev": true, + "optional": true + }, + "esbuild-darwin-64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.22.tgz", + "integrity": "sha512-d8Ceuo6Vw6HM3fW218FB6jTY6O3r2WNcTAU0SGsBkXZ3k8SDoRLd3Nrc//EqzdgYnzDNMNtrWegK2Qsss4THhw==", + "dev": true, + "optional": true + }, + "esbuild-darwin-arm64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.22.tgz", + "integrity": "sha512-YAt9Tj3SkIUkswuzHxkaNlT9+sg0xvzDvE75LlBo4DI++ogSgSmKNR6B4eUhU5EUUepVXcXdRIdqMq9ppeRqfw==", + "dev": true, + "optional": true + }, + "esbuild-freebsd-64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.22.tgz", + "integrity": "sha512-ek1HUv7fkXMy87Qm2G4IRohN+Qux4IcnrDBPZGXNN33KAL0pEJJzdTv0hB/42+DCYWylSrSKxk3KUXfqXOoH4A==", + "dev": true, + "optional": true + }, + "esbuild-freebsd-arm64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.22.tgz", + "integrity": "sha512-zPh9SzjRvr9FwsouNYTqgqFlsMIW07O8mNXulGeQx6O5ApgGUBZBgtzSlBQXkHi18WjrosYfsvp5nzOKiWzkjQ==", + "dev": true, + "optional": true + }, + "esbuild-linux-32": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.22.tgz", + "integrity": "sha512-SnpveoE4nzjb9t2hqCIzzTWBM0RzcCINDMBB67H6OXIuDa4KqFqaIgmTchNA9pJKOVLVIKd5FYxNiJStli21qg==", + "dev": true, + "optional": true + }, + "esbuild-linux-64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.22.tgz", + "integrity": "sha512-Zcl9Wg7gKhOWWNqAjygyqzB+fJa19glgl2JG7GtuxHyL1uEnWlpSMytTLMqtfbmRykIHdab797IOZeKwk5g0zg==", + "dev": true, + "optional": true + }, + "esbuild-linux-arm": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.22.tgz", + "integrity": "sha512-soPDdbpt/C0XvOOK45p4EFt8HbH5g+0uHs5nUKjHVExfgR7du734kEkXR/mE5zmjrlymk5AA79I0VIvj90WZ4g==", + "dev": true, + "optional": true + }, + "esbuild-linux-arm64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.22.tgz", + "integrity": "sha512-8q/FRBJtV5IHnQChO3LHh/Jf7KLrxJ/RCTGdBvlVZhBde+dk3/qS9fFsUy+rs3dEi49aAsyVitTwlKw1SUFm+A==", + "dev": true, + "optional": true + }, + "esbuild-linux-mips64le": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.22.tgz", + "integrity": "sha512-SiNDfuRXhGh1JQLLA9JPprBgPVFOsGuQ0yDfSPTNxztmVJd8W2mX++c4FfLpAwxuJe183mLuKf7qKCHQs5ZnBQ==", + "dev": true, + "optional": true + }, + "esbuild-linux-ppc64le": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.22.tgz", + "integrity": "sha512-6t/GI9I+3o1EFm2AyN9+TsjdgWCpg2nwniEhjm2qJWtJyJ5VzTXGUU3alCO3evopu8G0hN2Bu1Jhz2YmZD0kng==", + "dev": true, + "optional": true + }, + "esbuild-linux-riscv64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.22.tgz", + "integrity": "sha512-AyJHipZKe88sc+tp5layovquw5cvz45QXw5SaDgAq2M911wLHiCvDtf/07oDx8eweCyzYzG5Y39Ih568amMTCQ==", + "dev": true, + "optional": true + }, + "esbuild-linux-s390x": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.22.tgz", + "integrity": "sha512-Sz1NjZewTIXSblQDZWEFZYjOK6p8tV6hrshYdXZ0NHTjWE+lwxpOpWeElUGtEmiPcMT71FiuA9ODplqzzSxkzw==", + "dev": true, + "optional": true + }, + "esbuild-netbsd-64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.22.tgz", + "integrity": "sha512-TBbCtx+k32xydImsHxvFgsOCuFqCTGIxhzRNbgSL1Z2CKhzxwT92kQMhxort9N/fZM2CkRCPPs5wzQSamtzEHA==", + "dev": true, + "optional": true + }, + "esbuild-openbsd-64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.22.tgz", + "integrity": "sha512-vK912As725haT313ANZZZN+0EysEEQXWC/+YE4rQvOQzLuxAQc2tjbzlAFREx3C8+uMuZj/q7E5gyVB7TzpcTA==", + "dev": true, + "optional": true + }, + "esbuild-sunos-64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.22.tgz", + "integrity": "sha512-/mbJdXTW7MTcsPhtfDsDyPEOju9EOABvCjeUU2OJ7fWpX/Em/H3WYDa86tzLUbcVg++BScQDzqV/7RYw5XNY0g==", + "dev": true, + "optional": true + }, + "esbuild-wasm": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.14.22.tgz", + "integrity": "sha512-FOSAM29GN1fWusw0oLMv6JYhoheDIh5+atC72TkJKfIUMID6yISlicoQSd9gsNSFsNBvABvtE2jR4JB1j4FkFw==", + "dev": true + }, + "esbuild-windows-32": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.22.tgz", + "integrity": "sha512-1vRIkuvPTjeSVK3diVrnMLSbkuE36jxA+8zGLUOrT4bb7E/JZvDRhvtbWXWaveUc/7LbhaNFhHNvfPuSw2QOQg==", + "dev": true, + "optional": true + }, + "esbuild-windows-64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.22.tgz", + "integrity": "sha512-AxjIDcOmx17vr31C5hp20HIwz1MymtMjKqX4qL6whPj0dT9lwxPexmLj6G1CpR3vFhui6m75EnBEe4QL82SYqw==", + "dev": true, + "optional": true + }, + "esbuild-windows-arm64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.22.tgz", + "integrity": "sha512-5wvQ+39tHmRhNpu2Fx04l7QfeK3mQ9tKzDqqGR8n/4WUxsFxnVLfDRBGirIfk4AfWlxk60kqirlODPoT5LqMUg==", + "dev": true, + "optional": true + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" + }, + "escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + } + } + }, + "eslint": { + "version": "8.29.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz", + "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==", + "dev": true, + "requires": { + "@eslint/eslintrc": "^1.3.3", + "@humanwhocodes/config-array": "^0.11.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.4.0", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.15.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "dependencies": { + "@humanwhocodes/config-array": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz", + "integrity": "sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + } + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } + } + }, + "eslint-config-prettier": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", + "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "dev": true + }, + "eslint-plugin-jsdoc": { + "version": "39.6.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-39.6.4.tgz", + "integrity": "sha512-fskvdLCfwmPjHb6e+xNGDtGgbF8X7cDwMtVLAP2WwSf9Htrx68OAx31BESBM1FAwsN2HTQyYQq7m4aW4Q4Nlag==", + "dev": true, + "requires": { + "@es-joy/jsdoccomment": "~0.36.1", + "comment-parser": "1.3.1", + "debug": "^4.3.4", + "escape-string-regexp": "^4.0.0", + "esquery": "^1.4.0", + "semver": "^7.3.8", + "spdx-expression-parse": "^3.0.1" + }, + "dependencies": { + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + } + } + }, + "eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "requires": { + "prettier-linter-helpers": "^1.0.0" + } + }, + "eslint-plugin-unicorn": { + "version": "43.0.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-43.0.2.tgz", + "integrity": "sha512-DtqZ5mf/GMlfWoz1abIjq5jZfaFuHzGBZYIeuJfEoKKGWRHr2JiJR+ea+BF7Wx2N1PPRoT/2fwgiK1NnmNE3Hg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "ci-info": "^3.3.2", + "clean-regexp": "^1.0.0", + "eslint-utils": "^3.0.0", + "esquery": "^1.4.0", + "indent-string": "^4.0.0", + "is-builtin-module": "^3.1.0", + "lodash": "^4.17.21", + "pluralize": "^8.0.0", + "read-pkg-up": "^7.0.1", + "regexp-tree": "^0.1.24", + "safe-regex": "^2.1.1", + "semver": "^7.3.7", + "strip-indent": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + } + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } + } + }, + "eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "requires": { + "eslint-visitor-keys": "^2.0.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==" + } + } + }, + "eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==" + }, + "espree": { + "version": "9.4.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", + "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "requires": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "requires": { + "estraverse": "^5.1.0" + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "requires": { + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + }, + "estree-is-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/estree-is-function/-/estree-is-function-1.0.0.tgz", + "integrity": "sha512-nSCWn1jkSq2QAtkaVLJZY2ezwcFO161HVc174zL1KPW3RJ+O6C3eJb8Nx7OXzvhoEv+nLgSR1g71oWUHUDTrJA==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "event-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-4.0.1.tgz", + "integrity": "sha512-qACXdu/9VHPBzcyhdOWR5/IahhGMf0roTeZJfzz077GwylcDd90yOHLouhmv7GJ5XzPi6ekaQWd8AvPP2nOvpA==", + "dev": true, + "requires": { + "duplexer": "^0.1.1", + "from": "^0.1.7", + "map-stream": "0.0.7", + "pause-stream": "^0.0.11", + "split": "^1.0.1", + "stream-combiner": "^0.2.2", + "through": "^2.3.8" + } + }, + "eventemitter-asyncresource": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/eventemitter-asyncresource/-/eventemitter-asyncresource-1.0.0.tgz", + "integrity": "sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ==", + "dev": true + }, + "eventemitter2": { + "version": "6.4.7", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.7.tgz", + "integrity": "sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg==", + "dev": true + }, + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true + }, + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "dependencies": { + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true + } + } + }, + "executable": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz", + "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==", + "dev": true, + "requires": { + "pify": "^2.2.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true + }, + "expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", + "dev": true + }, + "express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "requires": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dev": true, + "requires": { + "type": "^2.7.2" + }, + "dependencies": { + "type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "dev": true + } + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "dev": true, + "requires": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } + } + }, + "extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "requires": { + "@types/yauzl": "^2.9.1", + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + } + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", + "dev": true + }, + "fancy-log": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-2.0.0.tgz", + "integrity": "sha512-9CzxZbACXMUXW13tS0tI8XsGGmxWzO2DmYrGuBJOJ8k8q2K7hwfJA5qHjuPPe8wtsco33YR9wc+Rlr5wYFvhSA==", + "dev": true, + "requires": { + "color-support": "^1.1.3" + } + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-diff": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "dev": true + }, + "fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + }, + "fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true + }, + "fastq": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz", + "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==", + "requires": { + "reusify": "^1.0.4" + } + }, + "faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dev": true, + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "requires": { + "pend": "~1.2.0" + } + }, + "figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "requires": { + "flat-cache": "^3.0.4" + } + }, + "file-uri-to-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz", + "integrity": "sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg==", + "dev": true + }, + "filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "requires": { + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.1.tgz", + "integrity": "sha512-362NP+zlprccbEt/SkxKfRMHnNY85V74mVnpUpNyr3F35covl09Kec7/sEFLt3RA4oXmewtoaanoIf67SE5Y5g==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + } + }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "findit2": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/findit2/-/findit2-2.2.3.tgz", + "integrity": "sha512-lg/Moejf4qXovVutL0Lz4IsaPoNYMuxt4PA0nGqFxnJ1CTTGGlEO2wKgoDpwknhvZ8k4Q2F+eesgkLbG2Mxfog==", + "dev": true + }, + "flat": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "dev": true + }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + } + }, + "flatted": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==" + }, + "follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" + }, + "fontkit": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fontkit/-/fontkit-2.0.2.tgz", + "integrity": "sha512-jc4k5Yr8iov8QfS6u8w2CnHWVmbOGtdBtOXMze5Y+QD966Rx6PEVWXSEGwXlsDlKtu1G12cJjcsybnqhSk/+LA==", + "dev": true, + "requires": { + "@swc/helpers": "^0.4.2", + "brotli": "^1.3.2", + "clone": "^2.1.2", + "dfa": "^1.2.0", + "fast-deep-equal": "^3.1.3", + "restructure": "^3.0.0", + "tiny-inflate": "^1.0.3", + "unicode-properties": "^1.4.0", + "unicode-trie": "^2.0.0" + }, + "dependencies": { + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true + } + } + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "dev": true + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "formidable": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.6.tgz", + "integrity": "sha512-KcpbcpuLNOwrEjnbpMC0gS+X8ciDoZE1kkqzat4a8vrprf+s9pKNQ/QIwWfbfs4ltgmFl3MD177SNTkve3BwGQ==", + "dev": true + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + }, + "fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "dev": true + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + }, + "from": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", + "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==", + "dev": true + }, + "fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "requires": { + "minipass": "^3.0.0" + } + }, + "fs-monkey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", + "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true + }, + "fstream": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", + "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "inherits": "~2.0.0", + "mkdirp": ">=0.5 0", + "rimraf": "2" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } + } + }, + "ftp": { + "version": "0.3.10", + "resolved": "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz", + "integrity": "sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ==", + "dev": true, + "requires": { + "readable-stream": "1.1.x", + "xregexp": "2.0.0" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + } + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==" + }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true + }, + "gauge": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", + "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "requires": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + } + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "geojson": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/geojson/-/geojson-0.5.0.tgz", + "integrity": "sha512-/Bx5lEn+qRF4TfQ5aLu6NH+UKtvIv7Lhc487y/c8BdludrCTpiWf9wyI0RTyqg49MFefIAvFDuEi5Dfd/zgNxQ==" + }, + "get-assigned-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", + "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==" + }, + "get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true + }, + "get-pkg-repo": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz", + "integrity": "sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==", + "dev": true, + "requires": { + "@hutson/parse-repository-url": "^3.0.0", + "hosted-git-info": "^4.0.0", + "through2": "^2.0.0", + "yargs": "^16.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + } + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + } + } + }, + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "requires": { + "pump": "^3.0.0" + } + }, + "get-uri": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-3.0.2.tgz", + "integrity": "sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg==", + "dev": true, + "requires": { + "@tootallnate/once": "1", + "data-uri-to-buffer": "3", + "debug": "4", + "file-uri-to-path": "2", + "fs-extra": "^8.1.0", + "ftp": "^0.3.10" + }, + "dependencies": { + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + } + } + }, + "getos": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz", + "integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==", + "dev": true, + "requires": { + "async": "^3.2.0" + }, + "dependencies": { + "async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + } + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "git-raw-commits": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.11.tgz", + "integrity": "sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==", + "dev": true, + "requires": { + "dargs": "^7.0.0", + "lodash": "^4.17.15", + "meow": "^8.0.0", + "split2": "^3.0.0", + "through2": "^4.0.0" + }, + "dependencies": { + "split2": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", + "dev": true, + "requires": { + "readable-stream": "^3.0.0" + } + } + } + }, + "git-remote-origin-url": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz", + "integrity": "sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw==", + "dev": true, + "requires": { + "gitconfiglocal": "^1.0.0", + "pify": "^2.3.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } + } + }, + "git-semver-tags": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-4.1.1.tgz", + "integrity": "sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA==", + "dev": true, + "requires": { + "meow": "^8.0.0", + "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "gitconfiglocal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz", + "integrity": "sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ==", + "dev": true, + "requires": { + "ini": "^1.3.2" + }, + "dependencies": { + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + } + } + }, + "github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", + "dev": true + }, + "glob": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.0.3.tgz", + "integrity": "sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.1.tgz", + "integrity": "sha512-362NP+zlprccbEt/SkxKfRMHnNY85V74mVnpUpNyr3F35covl09Kec7/sEFLt3RA4oXmewtoaanoIf67SE5Y5g==", + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "requires": { + "is-glob": "^4.0.1" + } + }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "global-dirs": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", + "dev": true, + "requires": { + "ini": "2.0.0" + } + }, + "globals": { + "version": "13.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.18.0.tgz", + "integrity": "sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==", + "requires": { + "type-fest": "^0.20.2" + } + }, + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, + "got": { + "version": "11.8.5", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.5.tgz", + "integrity": "sha512-o0Je4NvQObAuZPHLFoRSkdG2lTgtcynqymzg2Vupdx6PorhaT5MCbIyXG6d4D94kk8ZG57QeosgdiqfJWhEhlQ==", + "requires": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + } + }, + "graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + }, + "grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" + }, + "guid-typescript": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/guid-typescript/-/guid-typescript-1.0.9.tgz", + "integrity": "sha512-Y8T4vYhEfwJOTbouREvG+3XDsjr8E3kIr7uf+JZ0BYloFsttiHU0WfvANVsR7TxNUJa/WpCnw/Ino/p+DeBhBQ==" + }, + "gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "requires": { + "duplexer": "^0.1.2" + } + }, + "handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", + "dev": true + }, + "handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dev": true, + "requires": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "wordwrap": "^1.0.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", + "dev": true + }, + "har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "dev": true, + "requires": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } + } + }, + "hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + } + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.1" + } + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" + }, + "hdr-histogram-js": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/hdr-histogram-js/-/hdr-histogram-js-2.0.3.tgz", + "integrity": "sha512-Hkn78wwzWHNCp2uarhzQ2SGFLU3JY8SBDDd3TAABK4fc30wm+MuPOrg5QVFVfkKOQd6Bfz3ukJEI+q9sXEkK1g==", + "dev": true, + "requires": { + "@assemblyscript/loader": "^0.10.1", + "base64-js": "^1.2.0", + "pako": "^1.0.3" + } + }, + "hdr-histogram-percentiles-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hdr-histogram-percentiles-obj/-/hdr-histogram-percentiles-obj-3.0.0.tgz", + "integrity": "sha512-7kIufnBqdsBGcSZLPJwqHT3yhk1QTsSlFsVD3kx5ixH/AlgBs9yM1q6DPhXZ8f8gtdqgh7N7/5btRLpQsS2gHw==", + "dev": true + }, + "hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "html-entities": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", + "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==", + "dev": true + }, + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "htmlparser2": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz", + "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==", + "dev": true, + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "entities": "^4.3.0" + }, + "dependencies": { + "dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dev": true, + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + } + }, + "domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dev": true, + "requires": { + "domelementtype": "^2.3.0" + } + }, + "domutils": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", + "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", + "dev": true, + "requires": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.1" + } + }, + "entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "dev": true + } + } + }, + "http-auth": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/http-auth/-/http-auth-4.1.9.tgz", + "integrity": "sha512-kvPYxNGc9EKGTXvOMnTBQw2RZfuiSihK/mLw/a4pbtRueTE45S55Lw/3k5CktIf7Ak0veMKEIteDj4YkNmCzmQ==", + "dev": true, + "requires": { + "apache-crypt": "^1.1.2", + "apache-md5": "^1.0.6", + "bcryptjs": "^2.4.3", + "uuid": "^8.3.2" + } + }, + "http-auth-connect": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/http-auth-connect/-/http-auth-connect-1.0.6.tgz", + "integrity": "sha512-yaO0QSCPqGCjPrl3qEEHjJP+lwZ6gMpXLuCBE06eWwcXomkI5TARtu0kxf9teFuBj6iaV3Ybr15jaWUvbzNzHw==", + "dev": true + }, + "http-cache-semantics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", + "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" + }, + "http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==", + "dev": true + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "dependencies": { + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + } + } + }, + "http-parser-js": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==", + "dev": true + }, + "http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dev": true, + "requires": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + } + }, + "http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "requires": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + } + }, + "http-proxy-middleware": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "dev": true, + "requires": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + } + }, + "http-signature": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.3.6.tgz", + "integrity": "sha512-3adrsD6zqo4GsTqtO7FyrejHNv+NgiIfAfv68+jVlFmSr9OGy7zrxONceFRLKvnnZA5jbxQBX1u9PpB6Wi32Gw==", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^2.0.2", + "sshpk": "^1.14.1" + } + }, + "http-status-codes": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/http-status-codes/-/http-status-codes-2.2.0.tgz", + "integrity": "sha512-feERVo9iWxvnejp3SEfm/+oNG517npqL2/PIA8ORjyOZjGC7TwCRQsZylciLS64i6pJ0wRYz3rkXLRwbtFa8Ng==" + }, + "http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "requires": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + } + }, + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true + }, + "humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "requires": { + "ms": "^2.0.0" + } + }, + "humanize-string": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/humanize-string/-/humanize-string-3.0.0.tgz", + "integrity": "sha512-jhWD2GAZRMELz0IEIfqpEdi0M4CMQF1GpJpBYIopFN6wT+78STiujfQTKcKqZzOJgUkIgJSo2xFeHdsg922JZQ==", + "requires": { + "decamelize": "^6.0.0" + } + }, + "i18next": { + "version": "21.10.0", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-21.10.0.tgz", + "integrity": "sha512-YeuIBmFsGjUfO3qBmMOc0rQaun4mIpGKET5WDwvu8lU7gvwpcariZLNtL0Fzj+zazcHUrlXHiptcFhBMFaxzfg==", + "requires": { + "@babel/runtime": "^7.17.2" + } + }, + "i18next-browser-languagedetector": { + "version": "6.1.8", + "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-6.1.8.tgz", + "integrity": "sha512-Svm+MduCElO0Meqpj1kJAriTC6OhI41VhlT/A0UPjGoPZBhAHIaGE5EfsHlTpgdH09UVX7rcc72pSDDBeKSQQA==", + "requires": { + "@babel/runtime": "^7.19.0" + } + }, + "iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "dev": true + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true + }, + "ignore": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.1.tgz", + "integrity": "sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==" + }, + "ignore-walk": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-4.0.1.tgz", + "integrity": "sha512-rzDQLaW4jQbh2YrOFlJdCtX8qgJTehFRYiUB2r1osqTeDzV/3+Jh8fz1oAPzUThf3iku8Ds4IDqawI5d8mUiQw==", + "dev": true, + "requires": { + "minimatch": "^3.0.4" + } + }, + "image-size": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", + "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==", + "dev": true, + "optional": true + }, + "immediate": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" + }, + "immutable": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.1.0.tgz", + "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==", + "dev": true + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==" + }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" + }, + "infer-owner": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true + }, + "inquirer": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.0.tgz", + "integrity": "sha512-0crLweprevJ02tTuA6ThpoAERAGyVILC4sS74uib58Xf/zSr1/ZWtmm7D5CI+bSQEaA04f0K7idaHpQbSWgiVQ==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.2.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6" + }, + "dependencies": { + "rxjs": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.6.0.tgz", + "integrity": "sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==", + "dev": true, + "requires": { + "tslib": "^2.1.0" + } + } + } + }, + "inside": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/inside/-/inside-1.0.0.tgz", + "integrity": "sha512-tvFwvS4g7q6iDot/4FjtWFHwwpv6TVvEumbTdLQilk1F07ojakbXPQcvf3kMAlyNDpzKRzn+d33O3RuXODuxZQ==", + "dev": true + }, + "install-artifact-from-github": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/install-artifact-from-github/-/install-artifact-from-github-1.3.1.tgz", + "integrity": "sha512-3l3Bymg2eKDsN5wQuMfgGEj2x6l5MCAv0zPL6rxHESufFVlEAKW/6oY9F1aGgvY/EgWm5+eWGRjINveL4X7Hgg==" + }, + "ionic-appauth": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/ionic-appauth/-/ionic-appauth-0.9.0.tgz", + "integrity": "sha512-VayICoCf1MvX3KYOxv4GZ/Z4xNRCEmVzn8NovZVvIfw9BqRYoSIQ3+xP5a+R/PCOhNLMXNr33ygpfsV0OeJSiw==", + "requires": { + "@capacitor/browser": "^4.0.1", + "@capacitor/core": "^4.1.0", + "@capacitor/preferences": "^4.0.1", + "@ionic-native/core": "^5.36.0", + "@ionic-native/http": "^5.36.0", + "@ionic-native/in-app-browser": "^5.36.0", + "@ionic-native/safari-view-controller": "^5.36.0", + "@ionic-native/secure-storage": "^5.36.0", + "@ionic/storage": "^3.0.6", + "@openid/appauth": "^1.3.1", + "capacitor-secure-storage-plugin": "^0.8.0", + "guid-typescript": "^1.0.9", + "tslib": "^2.4.0" + } + }, + "ionicons": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/ionicons/-/ionicons-6.0.4.tgz", + "integrity": "sha512-uDNOkBo0OVYV+kIhb51g9mb7r3Z0b+78GPZQBsjXuaetNmrB/mNTqN/uFtO+vxL/rQySKjzk8qeKJI5NWL9Ueg==", + "requires": { + "@stencil/core": "^2.18.0" + } + }, + "ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + }, + "is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-builtin-module": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.0.tgz", + "integrity": "sha512-phDA4oSGt7vl1n5tJvTWooWWAsXLY+2xCnxNqvKhGEzujg+A43wPlPOyDg3C8XQHN+6k/JTQWJ/j0dQh/qr+Hw==", + "dev": true, + "requires": { + "builtin-modules": "^3.3.0" + } + }, + "is-ci": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", + "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "dev": true, + "requires": { + "ci-info": "^3.2.0" + } + }, + "is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true + }, + "is-domain": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/is-domain/-/is-domain-0.0.1.tgz", + "integrity": "sha512-hLm9uZUDm/sk0+xZgxyJluSf4B37sg3ivzv4ndTxNCAMnWFUUsHh1u4eh2maEcEvQl3mc65a9pJ/KURGItbLIg==", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-installed-globally": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", + "dev": true, + "requires": { + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" + } + }, + "is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true + }, + "is-lambda": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", + "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==" + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + }, + "is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "dev": true + }, + "is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==" + }, + "is-path-in-cwd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", + "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", + "dev": true, + "requires": { + "is-path-inside": "^1.0.0" + }, + "dependencies": { + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==", + "dev": true, + "requires": { + "path-is-inside": "^1.0.1" + } + } + } + }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==" + }, + "is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "is-text-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", + "integrity": "sha512-xFuJpne9oFz5qDaodwmmG08e3CawH/2ZV8Qqza1Ko7Sk8POWbkRdwIoAWVhqvq0XeUzANEhKo2n0IXUGBm7A/w==", + "dev": true, + "requires": { + "text-extensions": "^1.0.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, + "is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true + }, + "is-what": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz", + "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==", + "dev": true + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "requires": { + "is-docker": "^2.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "isbinaryfile": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", + "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + } + }, + "istanbul-lib-source-maps": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz", + "integrity": "sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^2.0.5", + "make-dir": "^2.1.0", + "rimraf": "^2.6.3", + "source-map": "^0.6.1" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "istanbul-lib-coverage": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", + "integrity": "sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==", + "dev": true + }, + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "requires": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + } + }, + "jake": { + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", + "dev": true, + "requires": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + }, + "dependencies": { + "async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + } + } + }, + "jasmine": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-2.8.0.tgz", + "integrity": "sha512-KbdGQTf5jbZgltoHs31XGiChAPumMSY64OZMWLNYnEnMfG5uwGBhffePwuskexjT+/Jea/gU3qAU8344hNohSw==", + "dev": true, + "requires": { + "exit": "^0.1.2", + "glob": "^7.0.6", + "jasmine-core": "~2.8.0" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "jasmine-core": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", + "integrity": "sha512-SNkOkS+/jMZvLhuSx1fjhcNWUC/KG6oVyFUGkSBEr9n1axSNduWU8GlI7suaHXr4yxjet6KjrUZxUTE5WzzWwQ==", + "dev": true + } + } + }, + "jasmine-core": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-4.5.0.tgz", + "integrity": "sha512-9PMzyvhtocxb3aXJVOPqBDswdgyAeSB81QnLop4npOpbqnheaTEwPc9ZloQeVswugPManznQBjD8kWDTjlnHuw==", + "dev": true + }, + "jasmine-spec-reporter": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/jasmine-spec-reporter/-/jasmine-spec-reporter-7.0.0.tgz", + "integrity": "sha512-OtC7JRasiTcjsaCBPtMO0Tl8glCejM4J4/dNuOJdA8lBjz4PmWjYQ6pzb0uzpBNAWJMDudYuj9OdXJWqM2QTJg==", + "dev": true, + "requires": { + "colors": "1.4.0" + } + }, + "jasminewd2": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/jasminewd2/-/jasminewd2-2.2.0.tgz", + "integrity": "sha512-Rn0nZe4rfDhzA63Al3ZGh0E+JTmM6ESZYXJGKuqKGZObsAB9fwXPD03GjtIEvJBDOhN94T5MzbwZSqzFHSQPzg==", + "dev": true + }, + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jetifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jetifier/-/jetifier-2.0.0.tgz", + "integrity": "sha512-J4Au9KuT74te+PCCCHKgAjyLlEa+2VyIAEPNCdE5aNkAJ6FAJcAqcdzEkSnzNksIa9NkGmC4tPiClk2e7tCJuQ==", + "dev": true + }, + "joi": { + "version": "17.7.0", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.7.0.tgz", + "integrity": "sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg==", + "requires": { + "@hapi/hoek": "^9.0.0", + "@hapi/topo": "^5.0.0", + "@sideway/address": "^4.1.3", + "@sideway/formula": "^3.0.0", + "@sideway/pinpoint": "^2.0.0" + } + }, + "js-sdsl": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", + "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "requires": { + "argparse": "^2.0.1" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "dev": true + }, + "jsdoc-type-pratt-parser": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-3.1.0.tgz", + "integrity": "sha512-MgtD0ZiCDk9B+eI73BextfRrVQl0oyzRG8B2BjORts6jbunj4ScKPcyXGTbB6eXL4y9TzxCm6hyeLq/2ASzNdw==", + "dev": true + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" + }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json-patch": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/json-patch/-/json-patch-0.7.0.tgz", + "integrity": "sha512-9zaGTzsV6Hal5HVMC8kb4niXYQOOcq3tUp0P/GTw6HHZFPVwtCU2+mXE9q59MelL9uknALWnoKrUxnDpUX728g==" + }, + "json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true + }, + "json5": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", + "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" + }, + "jsonc-parser": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", + "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==" + }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } + }, + "jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", + "dev": true + }, + "jsonpath-plus": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", + "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==" + }, + "jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==" + }, + "jsprim": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-2.0.2.tgz", + "integrity": "sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + } + }, + "jszip": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", + "dev": true, + "requires": { + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "setimmediate": "^1.0.5" + }, + "dependencies": { + "lie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "dev": true, + "requires": { + "immediate": "~3.0.5" + } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "karma": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/karma/-/karma-6.4.1.tgz", + "integrity": "sha512-Cj57NKOskK7wtFWSlMvZf459iX+kpYIPXmkNUzP2WAFcA7nhr/ALn5R7sw3w+1udFDcpMx/tuB8d5amgm3ijaA==", + "dev": true, + "requires": { + "@colors/colors": "1.5.0", + "body-parser": "^1.19.0", + "braces": "^3.0.2", + "chokidar": "^3.5.1", + "connect": "^3.7.0", + "di": "^0.0.1", + "dom-serialize": "^2.2.1", + "glob": "^7.1.7", + "graceful-fs": "^4.2.6", + "http-proxy": "^1.18.1", + "isbinaryfile": "^4.0.8", + "lodash": "^4.17.21", + "log4js": "^6.4.1", + "mime": "^2.5.2", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.5", + "qjobs": "^1.2.0", + "range-parser": "^1.2.1", + "rimraf": "^3.0.2", + "socket.io": "^4.4.1", + "source-map": "^0.6.1", + "tmp": "^0.2.1", + "ua-parser-js": "^0.7.30", + "yargs": "^16.1.1" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "requires": { + "rimraf": "^3.0.0" + } + }, + "yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + } + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + } + } + }, + "karma-chrome-launcher": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-3.1.1.tgz", + "integrity": "sha512-hsIglcq1vtboGPAN+DGCISCFOxW+ZVnIqhDQcCMqqCp+4dmJ0Qpq5QAjkbA0X2L9Mi6OBkHi2Srrbmm7pUKkzQ==", + "dev": true, + "requires": { + "which": "^1.2.1" + }, + "dependencies": { + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "karma-coverage-istanbul-reporter": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/karma-coverage-istanbul-reporter/-/karma-coverage-istanbul-reporter-3.0.3.tgz", + "integrity": "sha512-wE4VFhG/QZv2Y4CdAYWDbMmcAHeS926ZIji4z+FkB2aF/EposRb6DP6G5ncT/wXhqUfAb/d7kZrNKPonbvsATw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^3.0.6", + "istanbul-reports": "^3.0.2", + "minimatch": "^3.0.4" + } + }, + "karma-jasmine": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-5.1.0.tgz", + "integrity": "sha512-i/zQLFrfEpRyQoJF9fsCdTMOF5c2dK7C7OmsuKg2D0YSsuZSfQDiLuaiktbuio6F2wiCsZSnSnieIQ0ant/uzQ==", + "dev": true, + "requires": { + "jasmine-core": "^4.1.0" + } + }, + "karma-jasmine-html-reporter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-2.0.0.tgz", + "integrity": "sha512-SB8HNNiazAHXM1vGEzf8/tSyEhkfxuDdhYdPBX2Mwgzt0OuF2gicApQ+uvXLID/gXyJQgvrM9+1/2SxZFUUDIA==", + "dev": true + }, + "karma-mocha-reporter": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/karma-mocha-reporter/-/karma-mocha-reporter-2.2.5.tgz", + "integrity": "sha512-Hr6nhkIp0GIJJrvzY8JFeHpQZNseuIakGac4bpw8K1+5F0tLb6l7uvXRa8mt2Z+NVwYgCct4QAfp2R2QP6o00w==", + "dev": true, + "requires": { + "chalk": "^2.1.0", + "log-symbols": "^2.1.0", + "strip-ansi": "^4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "dev": true, + "requires": { + "chalk": "^2.0.1" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "karma-source-map-support": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz", + "integrity": "sha512-RsBECncGO17KAoJCYXjv+ckIz+Ii9NCi+9enk+rq6XC81ezYkb4/RHE6CTXdA7IOJqoF3wcaLfVG0CPmE5ca6A==", + "dev": true, + "requires": { + "source-map-support": "^0.5.5" + } + }, + "katex": { + "version": "0.15.6", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.15.6.tgz", + "integrity": "sha512-UpzJy4yrnqnhXvRPhjEuLA4lcPn6eRngixW7Q3TJErjg3Aw2PuLFBzTkdUb89UtumxjhHTqL3a5GDGETMSwgJA==", + "requires": { + "commander": "^8.0.0" + }, + "dependencies": { + "commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" + } + } + }, + "keyv": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.2.tgz", + "integrity": "sha512-5MHbFaKn8cNSmVW7BYnijeAVlE4cYA/SVkifVgrh7yotnfhKmjuXpDKjrABLnT0SfHWV21P8ow07OGfRrNDg8g==", + "requires": { + "json-buffer": "3.0.1" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true + }, + "klona": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.5.tgz", + "integrity": "sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ==", + "dev": true + }, + "lazy-ass": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", + "integrity": "sha512-cc8oEVoctTvsFZ/Oje/kGnHbpWHYBe8IAJe4C0QNc3t8uM/0Y8+erSz/7Y1ALuXTEZTMvxXwO6YbX1ey3ujiZw==", + "dev": true + }, + "leaflet": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.3.tgz", + "integrity": "sha512-iB2cR9vAkDOu5l3HAay2obcUHZ7xwUBBjph8+PGtmW/2lYhbLizWtG7nTeYht36WfOslixQF9D/uSIzhZgGMfQ==" + }, + "leaflet.markercluster": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/leaflet.markercluster/-/leaflet.markercluster-1.5.3.tgz", + "integrity": "sha512-vPTw/Bndq7eQHjLBVlWpnGeLa3t+3zGiuM7fJwCkiMFq+nmRuG3RI3f7f4N4TDX7T4NpbAXpR2+NTRSEGfCSeA==" + }, + "leek": { + "version": "0.0.24", + "resolved": "https://registry.npmjs.org/leek/-/leek-0.0.24.tgz", + "integrity": "sha512-6PVFIYXxlYF0o6hrAsHtGpTmi06otkwNrMcmQ0K96SeSRHPREPa9J3nJZ1frliVH7XT0XFswoJFQoXsDukzGNQ==", + "dev": true, + "requires": { + "debug": "^2.1.0", + "lodash.assign": "^3.2.0", + "rsvp": "^3.0.21" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + } + } + }, + "less": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/less/-/less-4.1.2.tgz", + "integrity": "sha512-EoQp/Et7OSOVu0aJknJOtlXZsnr8XE8KwuzTHOLeVSEx8pVWUICc8Q0VYRHgzyjX78nMEyC/oztWFbgyhtNfDA==", + "dev": true, + "requires": { + "copy-anything": "^2.0.1", + "errno": "^0.1.1", + "graceful-fs": "^4.1.2", + "image-size": "~0.5.0", + "make-dir": "^2.1.0", + "mime": "^1.4.1", + "needle": "^2.5.2", + "parse-node-version": "^1.0.1", + "source-map": "~0.6.0", + "tslib": "^2.3.0" + }, + "dependencies": { + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "optional": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "optional": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, + "less-loader": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-10.2.0.tgz", + "integrity": "sha512-AV5KHWvCezW27GT90WATaDnfXBv99llDbtaj4bshq6DvAihMdNjaPDcUMa6EXKLRF+P2opFenJp89BXg91XLYg==", + "dev": true, + "requires": { + "klona": "^2.0.4" + } + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" + }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, + "license-checker": { + "version": "25.0.1", + "resolved": "https://registry.npmjs.org/license-checker/-/license-checker-25.0.1.tgz", + "integrity": "sha512-mET5AIwl7MR2IAKYYoVBBpV0OnkKQ1xGj2IMMeEFIs42QAkEVjRtFZGWmQ28WeU7MP779iAgOaOy93Mn44mn6g==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "debug": "^3.1.0", + "mkdirp": "^0.5.1", + "nopt": "^4.0.1", + "read-installed": "~4.0.3", + "semver": "^5.5.0", + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0", + "spdx-satisfies": "^4.0.0", + "treeify": "^1.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + }, + "nopt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz", + "integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==", + "dev": true, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "license-webpack-plugin": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", + "integrity": "sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw==", + "dev": true, + "requires": { + "webpack-sources": "^3.0.0" + } + }, + "lie": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz", + "integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==", + "requires": { + "immediate": "~3.0.5" + } + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "listr2": { + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz", + "integrity": "sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==", + "dev": true, + "requires": { + "cli-truncate": "^2.1.0", + "colorette": "^2.0.16", + "log-update": "^4.0.0", + "p-map": "^4.0.0", + "rfdc": "^1.3.0", + "rxjs": "^7.5.1", + "through": "^2.3.8", + "wrap-ansi": "^7.0.0" + }, + "dependencies": { + "rxjs": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.6.0.tgz", + "integrity": "sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==", + "dev": true, + "requires": { + "tslib": "^2.1.0" + } + } + } + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "dev": true, + "requires": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true + } + } + }, + "loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true + }, + "loader-utils": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.0.tgz", + "integrity": "sha512-HVl9ZqccQihZ7JM85dco1MvO9G+ONvxoGa9rkhzFsneGLKSUg1gJf9bWzhRhcvm2qChhWpebQhP44qxjKIUCaQ==", + "dev": true + }, + "localforage": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz", + "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==", + "requires": { + "lie": "3.1.1" + } + }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "requires": { + "p-locate": "^5.0.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "lodash._baseassign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", + "integrity": "sha512-t3N26QR2IdSN+gqSy9Ds9pBu/J1EAFEshKlUHpJG3rvyJOYgcELIxcIeKKfZk7sjOz11cFfzJRsyFry/JyabJQ==", + "dev": true, + "requires": { + "lodash._basecopy": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "lodash._basecopy": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", + "integrity": "sha512-rFR6Vpm4HeCK1WPGvjZSJ+7yik8d8PVUdCJx5rT2pogG4Ve/2ZS7kfmO5l5T2o5V2mqlNIfSF5MZlr1+xOoYQQ==", + "dev": true + }, + "lodash._bindcallback": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz", + "integrity": "sha512-2wlI0JRAGX8WEf4Gm1p/mv/SZ+jLijpj0jyaE/AXeuQphzCgD8ZQW4oSpoN8JAopujOFGU3KMuq7qfHBWlGpjQ==", + "dev": true + }, + "lodash._createassigner": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz", + "integrity": "sha512-LziVL7IDnJjQeeV95Wvhw6G28Z8Q6da87LWKOPWmzBLv4u6FAT/x5v00pyGW0u38UoogNF2JnD3bGgZZDaNEBw==", + "dev": true, + "requires": { + "lodash._bindcallback": "^3.0.0", + "lodash._isiterateecall": "^3.0.0", + "lodash.restparam": "^3.0.0" + } + }, + "lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha512-RrL9VxMEPyDMHOd9uFbvMe8X55X16/cGM5IgOKgRElQZutpX89iS6vwl64duTV1/16w5JY7tuFNXqoekmh1EmA==", + "dev": true + }, + "lodash._isiterateecall": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", + "integrity": "sha512-De+ZbrMu6eThFti/CSzhRvTKMgQToLxbij58LMfM8JnYDNSOjkjTCIaa8ixglOeGh2nyPlakbt5bJWJ7gvpYlQ==", + "dev": true + }, + "lodash.assign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-3.2.0.tgz", + "integrity": "sha512-/VVxzgGBmbphasTg51FrztxQJ/VgAUpol6zmJuSVSGcNg4g7FA4z7rQV8Ovr9V3vFBNWZhvKWHfpAytjTVUfFA==", + "dev": true, + "requires": { + "lodash._baseassign": "^3.0.0", + "lodash._createassigner": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==", + "dev": true + }, + "lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha512-JwObCrNJuT0Nnbuecmqr5DgtuBppuCvGD9lxjFpAzwnVtdGoDQ1zig+5W8k5/6Gcn0gZ3936HDAlGd28i7sOGQ==", + "dev": true + }, + "lodash.ismatch": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", + "integrity": "sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==", + "dev": true + }, + "lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha512-CuBsapFjcubOGMn3VD+24HOAPxM79tH+V6ivJL3CHYjtrawauDJHUk//Yew9Hvc6e9rbCrURGk8z6PC+8WJBfQ==", + "dev": true, + "requires": { + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" + } + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "dev": true + }, + "lodash.restparam": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", + "integrity": "sha512-L4/arjjuq4noiUJpt3yS6KIKDtJwNe2fIYgMqyYYKoeIfV1iEqvPwhCx23o+R9dzouGihDAPN1dTIRWa7zk8tw==", + "dev": true + }, + "log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "requires": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + } + }, + "log-update": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", + "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", + "dev": true, + "requires": { + "ansi-escapes": "^4.3.0", + "cli-cursor": "^3.1.0", + "slice-ansi": "^4.0.0", + "wrap-ansi": "^6.2.0" + }, + "dependencies": { + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + } + } + }, + "log4js": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.7.1.tgz", + "integrity": "sha512-lzbd0Eq1HRdWM2abSD7mk6YIVY0AogGJzb/z+lqzRk+8+XJP+M6L1MS5FUSc3jjGru4dbKjEMJmqlsoYYpuivQ==", + "dev": true, + "requires": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "flatted": "^3.2.7", + "rfdc": "^1.3.0", + "streamroller": "^3.1.3" + }, + "dependencies": { + "flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + } + } + }, + "loglevel": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.8.1.tgz", + "integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==", + "dev": true + }, + "loglevel-plugin-prefix": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.4.tgz", + "integrity": "sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g==", + "dev": true + }, + "loupe": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", + "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", + "requires": { + "get-func-name": "^2.0.0" + } + }, + "lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" + }, + "lru-cache": { + "version": "7.14.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.14.1.tgz", + "integrity": "sha512-ysxwsnTKdAx96aTRdhDOCQfDgbHnt8SK0KY8SEjO0wHinhWOFTESbjVCMPbU1uGXg/ch4lifqx0wfjOawU2+WA==" + }, + "lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + }, + "macos-release": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.0.tgz", + "integrity": "sha512-EIgv+QZ9r+814gjJj0Bt5vSLJLzswGmSUbUpbi9AIr/fsN2IWFBl2NucV9PAiek+U1STK468tEkxmVYUtuAN3g==", + "dev": true + }, + "magic-string": { + "version": "0.25.7", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", + "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.4" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" + }, + "make-fetch-happen": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz", + "integrity": "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==", + "requires": { + "agentkeepalive": "^4.2.1", + "cacache": "^16.1.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^2.0.3", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^9.0.0" + } + }, + "map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "dev": true + }, + "map-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha512-C0X0KQmGm3N2ftbTGBhSyuydQ+vV1LC3f3zPvT3RXHXNZrvfPZcoXp/N5DOa8vedX/rTMm2CjTtivFg2STJMRQ==", + "dev": true + }, + "marked": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.4.tgz", + "integrity": "sha512-Wcc9ikX7Q5E4BYDPvh1C6QNSxrjC9tBgz+A/vAhp59KXUgachw++uMvMKiSW8oA85nopmPZcEvBoex/YLMsiyA==" + }, + "material-symbols": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/material-symbols/-/material-symbols-0.4.1.tgz", + "integrity": "sha512-rFHdDlN0yzXo46lcUVuJY0ygFcFuzcbvIxWHWUqSPGsBTMb642AOVSPK4BVEx8YG5SMPBO6BRdbnEeFnDjjcHA==" + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + }, + "memfs": { + "version": "3.4.12", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.4.12.tgz", + "integrity": "sha512-BcjuQn6vfqP+k100e0E9m61Hyqa//Brp+I3f0OBmN0ATHlFA8vx3Lt8z57R3u2bPqe3WGDBC+nF72fTH7isyEw==", + "dev": true, + "requires": { + "fs-monkey": "^1.0.3" + } + }, + "meow": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz", + "integrity": "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==", + "dev": true, + "requires": { + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "dependencies": { + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + } + } + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "merge-source-map": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.0.4.tgz", + "integrity": "sha512-PGSmS0kfnTnMJCzJ16BLLCEe6oeYCamKFFdQKshi4BmM6FUwipjVOcBFGxqtQtirtAG4iZvHlqST9CpZKqlRjA==", + "dev": true, + "requires": { + "source-map": "^0.5.6" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true + } + } + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" + }, + "min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true + }, + "mini-css-extract-plugin": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.5.3.tgz", + "integrity": "sha512-YseMB8cs8U/KCaAGQoqYmfUuhhGW0a9p9XvWXrxVOkE3/IiISTLw4ALNt7JR5B2eYauFM+PQGSbXMDmVbR7Tfw==", + "dev": true, + "requires": { + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "schema-utils": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", + "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.8.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.0.0" + } + } + } + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" + }, + "minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "dependencies": { + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true + } + } + }, + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "requires": { + "yallist": "^4.0.0" + } + }, + "minipass-collect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", + "requires": { + "minipass": "^3.0.0" + } + }, + "minipass-fetch": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz", + "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==", + "requires": { + "encoding": "^0.1.13", + "minipass": "^3.1.6", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + } + }, + "minipass-flush": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", + "requires": { + "minipass": "^3.0.0" + } + }, + "minipass-json-stream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minipass-json-stream/-/minipass-json-stream-1.0.1.tgz", + "integrity": "sha512-ODqY18UZt/I8k+b7rl2AENgbWE8IDYam+undIJONvigAz8KR5GWblsFTEfQs0WODsjbSXWlm+JHEv8Gr6Tfdbg==", + "dev": true, + "requires": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "minipass-pipeline": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", + "requires": { + "minipass": "^3.0.0" + } + }, + "minipass-sized": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", + "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", + "requires": { + "minipass": "^3.0.0" + } + }, + "minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "requires": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + } + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" + }, + "mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "dev": true + }, + "modify-values": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", + "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", + "dev": true + }, + "moment": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==" + }, + "moniker": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/moniker/-/moniker-0.1.2.tgz", + "integrity": "sha512-Uj9iV0QYr6281G+o0TvqhKwHHWB2Q/qUTT4LPQ3qDGc0r8cbMuqQjRXPZuVZ+gcL7APx+iQgE8lcfWPrj1LsLA==", + "dev": true + }, + "morgan": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", + "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", + "requires": { + "basic-auth": "~2.0.1", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-finished": "~2.3.0", + "on-headers": "~1.0.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "requires": { + "ee-first": "1.1.1" + } + } + } + }, + "mrmime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "multicast-dns": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", + "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", + "dev": true, + "requires": { + "dns-packet": "^1.3.1", + "thunky": "^1.0.2" + } + }, + "multicast-dns-service-types": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", + "integrity": "sha512-cnAsSVxIDsYt0v7HmC0hWZFwwXSh+E6PgCrREDuN/EsjgLwA5XRmlMHhSiDPrt6HxY1gTivEa/Zh7GtODoLevQ==", + "dev": true + }, + "mustache": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", + "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==" + }, + "mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, + "nan": { + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", + "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==" + }, + "nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "dev": true + }, + "napi-build-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", + "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", + "dev": true + }, + "native-run": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/native-run/-/native-run-1.7.1.tgz", + "integrity": "sha512-70ZneVVcOL1ifqw7SG5O2AJYIHEBSX5C25ShwwKCcdMcgbZ+MzvAc2fjHzfekcPYtInHqcJQOki6NXj9f6LgOg==", + "dev": true, + "requires": { + "@ionic/utils-fs": "^3.1.6", + "@ionic/utils-terminal": "^2.3.3", + "bplist-parser": "^0.3.2", + "debug": "^4.3.4", + "elementtree": "^0.1.7", + "ini": "^3.0.1", + "plist": "^3.0.6", + "split2": "^4.1.0", + "through2": "^4.0.2", + "tslib": "^2.4.0", + "yauzl": "^2.10.0" + }, + "dependencies": { + "ini": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.1.tgz", + "integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==", + "dev": true + } + } + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + }, + "natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "needle": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz", + "integrity": "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==", + "dev": true, + "optional": true, + "requires": { + "debug": "^3.2.6", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "optional": true, + "requires": { + "ms": "^2.1.1" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "optional": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } + } + }, + "negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", + "dev": true + }, + "netrc": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/netrc/-/netrc-0.1.4.tgz", + "integrity": "sha512-ye8AIYWQcP9MvoM1i0Z2jV0qed31Z8EWXYnyGNkiUAd+Fo8J+7uy90xTV8g/oAbhtjkY7iZbNTizQaXdKUuwpQ==", + "dev": true + }, + "next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "dev": true + }, + "ngx-logger": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/ngx-logger/-/ngx-logger-4.3.3.tgz", + "integrity": "sha512-LvHBt0OWIyjwVroecgxmZVDH+9lCYYd3gSiup9wNgtK0a3f+D+h2LCb8p9RI16wqCVFqYe/QChqJA8PGJzZTcw==", + "requires": { + "tslib": "^2.0.0", + "vlq": "^1.0.0" + } + }, + "ngx-markdown": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/ngx-markdown/-/ngx-markdown-13.1.0.tgz", + "integrity": "sha512-Bm4WhMI9xSnWTzzQWs/e1+d/l0s3+eFU0Ug/lcePmiWEZAPqiceEe6akjh4+Tjp61SmZ/wmKr8Kvc8mr9moP9A==", + "requires": { + "@types/marked": "^4.0.2", + "emoji-toolkit": "^6.6.0", + "katex": "^0.15.1", + "marked": "^4.0.10", + "prismjs": "^1.25.0", + "tslib": "^2.3.0" + } + }, + "ngx-moment": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/ngx-moment/-/ngx-moment-6.0.2.tgz", + "integrity": "sha512-HUvDyoJPZKLA3tc+GMQqDpVyCVT2SPfEiV7/CGj2Dwwsn//JhhQ8eTr+RzKqBzLysrXkCwlzulVVJaJ5A0FJEA==", + "requires": { + "tslib": "^2.3.0" + } + }, + "nice-napi": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz", + "integrity": "sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==", + "dev": true, + "optional": true, + "requires": { + "node-addon-api": "^3.0.0", + "node-gyp-build": "^4.2.2" + } + }, + "node-abi": { + "version": "3.30.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.30.0.tgz", + "integrity": "sha512-qWO5l3SCqbwQavymOmtTVuCWZE23++S+rxyoHjXqUmPyzRcaoI4lA2gO55/drddGnedAyjA7sk76SfQ5lfUMnw==", + "dev": true, + "requires": { + "semver": "^7.3.5" + } + }, + "node-addon-api": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", + "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", + "dev": true + }, + "node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "dev": true + }, + "node-gyp": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.3.0.tgz", + "integrity": "sha512-A6rJWfXFz7TQNjpldJ915WFb1LnhO4lIve3ANPbWreuEoLoKlFT3sxIepPBkLhM27crW8YmN+pjlgbasH6cH/Q==", + "requires": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^10.0.3", + "nopt": "^6.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "node-gyp-build": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz", + "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==", + "dev": true + }, + "node-releases": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "dev": true + }, + "nodemailer": { + "version": "6.7.8", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.7.8.tgz", + "integrity": "sha512-2zaTFGqZixVmTxpJRCFC+Vk5eGRd/fYtvIR+dl5u9QXLTQWGIf48x/JXvo58g9sa0bU6To04XUv554Paykum3g==" + }, + "nopt": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz", + "integrity": "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==", + "requires": { + "abbrev": "^1.0.0" + } + }, + "normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "requires": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true + }, + "normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" + }, + "npm-bundled": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.2.tgz", + "integrity": "sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==", + "dev": true, + "requires": { + "npm-normalize-package-bin": "^1.0.1" + } + }, + "npm-install-checks": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-4.0.0.tgz", + "integrity": "sha512-09OmyDkNLYwqKPOnbI8exiOZU2GVVmQp7tgez2BPi5OZC8M82elDAps7sxC4l//uSUtotWqoEIDwjRvWH4qz8w==", + "dev": true, + "requires": { + "semver": "^7.1.1" + } + }, + "npm-normalize-package-bin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", + "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", + "dev": true + }, + "npm-package-arg": { + "version": "8.1.5", + "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-8.1.5.tgz", + "integrity": "sha512-LhgZrg0n0VgvzVdSm1oiZworPbTxYHUJCgtsJW8mGvlDpxTM1vSJc3m5QZeUkhAHIzbz3VCHd/R4osi1L1Tg/Q==", + "dev": true, + "requires": { + "hosted-git-info": "^4.0.1", + "semver": "^7.3.4", + "validate-npm-package-name": "^3.0.0" + } + }, + "npm-packlist": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-3.0.0.tgz", + "integrity": "sha512-L/cbzmutAwII5glUcf2DBRNY/d0TFd4e/FnaZigJV6JD85RHZXJFGwCndjMWiiViiWSsWt3tiOLpI3ByTnIdFQ==", + "dev": true, + "requires": { + "glob": "^7.1.6", + "ignore-walk": "^4.0.1", + "npm-bundled": "^1.1.1", + "npm-normalize-package-bin": "^1.0.1" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "npm-pick-manifest": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-6.1.1.tgz", + "integrity": "sha512-dBsdBtORT84S8V8UTad1WlUyKIY9iMsAmqxHbLdeEeBNMLQDlDWWra3wYUx9EBEIiG/YwAy0XyNHDd2goAsfuA==", + "dev": true, + "requires": { + "npm-install-checks": "^4.0.0", + "npm-normalize-package-bin": "^1.0.1", + "npm-package-arg": "^8.1.2", + "semver": "^7.3.4" + } + }, + "npm-registry-fetch": { + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-12.0.2.tgz", + "integrity": "sha512-Df5QT3RaJnXYuOwtXBXS9BWs+tHH2olvkCLh6jcR/b/u3DvPMlp3J0TvvYwplPKxHMOwfg287PYih9QqaVFoKA==", + "dev": true, + "requires": { + "make-fetch-happen": "^10.0.1", + "minipass": "^3.1.6", + "minipass-fetch": "^1.4.1", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.1.2", + "npm-package-arg": "^8.1.5" + }, + "dependencies": { + "minipass-fetch": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", + "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", + "dev": true, + "requires": { + "encoding": "^0.1.12", + "minipass": "^3.1.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.0.0" + } + } + } + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "npmlog": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", + "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "requires": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + } + }, + "nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "requires": { + "boolbase": "^1.0.0" + } + }, + "nx": { + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/nx/-/nx-13.1.3.tgz", + "integrity": "sha512-clM0NQhQKYkqcNz2E3uYRMLwhp2L/9dBhJhQi9XBX4IAyA2gWAomhRIlLm5Xxg3g4h1xwSpP3eJ5t89VikY8Pw==", + "dev": true, + "requires": { + "@nrwl/cli": "*" + } + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true + }, + "object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" + }, + "object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "dev": true + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "open": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz", + "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==", + "dev": true, + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "openapi-types": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.0.tgz", + "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw==" + }, + "opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", + "dev": true + }, + "opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==" + }, + "opening_hours": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/opening_hours/-/opening_hours-3.8.0.tgz", + "integrity": "sha512-bRJroECQSe/itVcNmC3j9PPicxn/LBowdd1Hi+4Aa7hCswdt7w81WHfUwrEMbtk1BBYmGJEbSepl8oYYPviSuA==", + "requires": { + "i18next": "^21.8.3", + "i18next-browser-languagedetector": "^6.1.4", + "suncalc": "^1.9.0" + } + }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, + "ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "requires": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + } + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==", + "dev": true + }, + "os-name": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/os-name/-/os-name-4.0.1.tgz", + "integrity": "sha512-xl9MAoU97MH1Xt5K9ERft2YfCAoaO6msy1OBA0ozxEC0x0TmIoE6K3QvgJMMZA9yKGLmHXNY/YZoDbiGDj4zYw==", + "dev": true, + "requires": { + "macos-release": "^2.5.0", + "windows-release": "^4.0.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "dev": true + }, + "osenv": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", + "dev": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "ospath": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz", + "integrity": "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==", + "dev": true + }, + "p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==" + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "requires": { + "p-limit": "^3.0.2" + } + }, + "p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "requires": { + "aggregate-error": "^3.0.0" + } + }, + "p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "dev": true, + "requires": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "dependencies": { + "retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "dev": true + } + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "pac-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz", + "integrity": "sha512-CcFG3ZtnxO8McDigozwE3AqAw15zDvGH+OjXO4kzf7IkEKkQ4gxQ+3sdF50WmhQ4P/bVusXcqNE2S3XrNURwzQ==", + "dev": true, + "requires": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4", + "get-uri": "3", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "5", + "pac-resolver": "^5.0.0", + "raw-body": "^2.2.0", + "socks-proxy-agent": "5" + }, + "dependencies": { + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true + }, + "http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "requires": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + } + }, + "socks-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz", + "integrity": "sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ==", + "dev": true, + "requires": { + "agent-base": "^6.0.2", + "debug": "4", + "socks": "^2.3.3" + } + } + } + }, + "pac-resolver": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-5.0.1.tgz", + "integrity": "sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q==", + "dev": true, + "requires": { + "degenerator": "^3.0.2", + "ip": "^1.1.5", + "netmask": "^2.0.2" + }, + "dependencies": { + "ip": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "dev": true + } + } + }, + "pacote": { + "version": "12.0.3", + "resolved": "https://registry.npmjs.org/pacote/-/pacote-12.0.3.tgz", + "integrity": "sha512-CdYEl03JDrRO3x18uHjBYA9TyoW8gy+ThVcypcDkxPtKlw76e4ejhYB6i9lJ+/cebbjpqPW/CijjqxwDTts8Ow==", + "dev": true, + "requires": { + "@npmcli/git": "^2.1.0", + "@npmcli/installed-package-contents": "^1.0.6", + "@npmcli/promise-spawn": "^1.2.0", + "@npmcli/run-script": "^2.0.0", + "cacache": "^15.0.5", + "chownr": "^2.0.0", + "fs-minipass": "^2.1.0", + "infer-owner": "^1.0.4", + "minipass": "^3.1.3", + "mkdirp": "^1.0.3", + "npm-package-arg": "^8.0.1", + "npm-packlist": "^3.0.0", + "npm-pick-manifest": "^6.0.0", + "npm-registry-fetch": "^12.0.0", + "promise-retry": "^2.0.1", + "read-package-json-fast": "^2.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.1.0" + }, + "dependencies": { + "@npmcli/fs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", + "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", + "dev": true, + "requires": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + } + }, + "@npmcli/move-file": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", + "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "dev": true, + "requires": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + } + }, + "cacache": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", + "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", + "dev": true, + "requires": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + } + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "dev": true, + "requires": { + "minipass": "^3.1.1" + } + }, + "unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, + "requires": { + "unique-slug": "^2.0.0" + } + }, + "unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4" + } + } + } + }, + "pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "dev": true + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "parse-node-version": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", + "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", + "dev": true + }, + "parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "optional": true + }, + "parse5-html-rewriting-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5-html-rewriting-stream/-/parse5-html-rewriting-stream-6.0.1.tgz", + "integrity": "sha512-vwLQzynJVEfUlURxgnf51yAJDQTtVpNyGD8tKi2Za7m+akukNHxCcUQMAa/mUGLhCeicFdpy7Tlvj8ZNKadprg==", + "dev": true, + "requires": { + "parse5": "^6.0.1", + "parse5-sax-parser": "^6.0.1" + }, + "dependencies": { + "parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + } + } + }, + "parse5-htmlparser2-tree-adapter": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", + "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", + "dev": true, + "requires": { + "parse5": "^6.0.1" + }, + "dependencies": { + "parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + } + } + }, + "parse5-sax-parser": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-6.0.1.tgz", + "integrity": "sha512-kXX+5S81lgESA0LsDuGjAlBybImAChYRMT+/uKCEXFBFOeEhS52qUCydGhU3qLRD8D9DVjaUo821WK7DM4iCeg==", + "dev": true, + "requires": { + "parse5": "^6.0.1" + }, + "dependencies": { + "parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + } + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" + }, + "pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==" + }, + "pause-stream": { + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", + "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", + "dev": true, + "requires": { + "through": "~2.3" + } + }, + "pdfjs-dist": { + "version": "2.16.105", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-2.16.105.tgz", + "integrity": "sha512-J4dn41spsAwUxCpEoVf6GVoz908IAA3mYiLmNxg8J9kfRXc2jxpbUepcP0ocp0alVNLFthTAM8DZ1RaHh8sU0A==", + "dev": true, + "requires": { + "dommatrix": "^1.0.3", + "web-streams-polyfill": "^3.2.1" + } + }, + "pdfmake": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/pdfmake/-/pdfmake-0.2.6.tgz", + "integrity": "sha512-gZARnKLJjTuHWKIkqF4G6dafIaPfH7NFqBz9U9wb26PV5koHQ5eeQ/0rgZmIdfJzMKqHzXB9aK25ykG2AnnzEQ==", + "dev": true, + "requires": { + "@foliojs-fork/linebreak": "^1.1.1", + "@foliojs-fork/pdfkit": "^0.13.0", + "iconv-lite": "^0.6.3", + "xmldoc": "^1.1.2" + } + }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "piscina": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/piscina/-/piscina-3.2.0.tgz", + "integrity": "sha512-yn/jMdHRw+q2ZJhFhyqsmANcbF6V2QwmD84c6xRau+QpQOmtrBCoRGdvTfeuFDYXB5W2m6MfLkjkvQa9lUSmIA==", + "dev": true, + "requires": { + "eventemitter-asyncresource": "^1.0.0", + "hdr-histogram-js": "^2.0.1", + "hdr-histogram-percentiles-obj": "^3.0.0", + "nice-napi": "^1.0.2" + } + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + } + } + }, + "plantuml-encoder": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/plantuml-encoder/-/plantuml-encoder-1.4.0.tgz", + "integrity": "sha512-sxMwpDw/ySY1WB2CE3+IdMuEcWibJ72DDOsXLkSmEaSzwEUaYBT6DWgOfBiHGCux4q433X6+OEFWjlVqp7gL6g==" + }, + "plist": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.0.6.tgz", + "integrity": "sha512-WiIVYyrp8TD4w8yCvyeIr+lkmrGRd5u0VbRnU+tP/aRLxP/YadJUYOMZJ/6hIa3oUyVCsycXvtNRgd5XBJIbiA==", + "dev": true, + "requires": { + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + } + }, + "pluralize": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", + "dev": true + }, + "png-js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/png-js/-/png-js-1.0.0.tgz", + "integrity": "sha512-k+YsbhpA9e+EFfKjTCH3VW6aoKlyNYI6NYdTfDL4CIvFnvsuO84ttonmZE7rc+v23SLTH8XX+5w/Ak9v0xGY4g==", + "dev": true + }, + "portfinder": { + "version": "1.0.32", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.32.tgz", + "integrity": "sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==", + "dev": true, + "requires": { + "async": "^2.6.4", + "debug": "^3.2.7", + "mkdirp": "^0.5.6" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + } + } + }, + "postcss": { + "version": "8.4.5", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.5.tgz", + "integrity": "sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==", + "dev": true, + "requires": { + "nanoid": "^3.1.30", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.1" + } + }, + "postcss-attribute-case-insensitive": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz", + "integrity": "sha512-XIidXV8fDr0kKt28vqki84fRK8VW8eTuIa4PChv2MqKuT6C9UjmSKzen6KaWhWEoYvwxFCa7n/tC1SZ3tyq4SQ==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-color-functional-notation": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.4.tgz", + "integrity": "sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-color-hex-alpha": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.4.tgz", + "integrity": "sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-color-rebeccapurple": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.1.1.tgz", + "integrity": "sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-media": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-8.0.2.tgz", + "integrity": "sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-properties": { + "version": "12.1.11", + "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-12.1.11.tgz", + "integrity": "sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-selectors": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz", + "integrity": "sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-dir-pseudo-class": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.5.tgz", + "integrity": "sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-double-position-gradients": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.2.tgz", + "integrity": "sha512-GX+FuE/uBR6eskOK+4vkXgT6pDkexLokPaz/AbJna9s5Kzp/yl488pKPjhy0obB475ovfT1Wv8ho7U/cHNaRgQ==", + "dev": true, + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-env-function": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-4.0.6.tgz", + "integrity": "sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-focus-visible": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz", + "integrity": "sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "postcss-focus-within": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz", + "integrity": "sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "postcss-font-variant": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz", + "integrity": "sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==", + "dev": true + }, + "postcss-gap-properties": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-3.0.5.tgz", + "integrity": "sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg==", + "dev": true + }, + "postcss-image-set-function": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-4.0.7.tgz", + "integrity": "sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-import": { + "version": "14.0.2", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.0.2.tgz", + "integrity": "sha512-BJ2pVK4KhUyMcqjuKs9RijV5tatNzNa73e/32aBVE/ejYPe37iH+6vAu9WvqUkB5OAYgLHzbSvzHnorybJCm9g==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + } + }, + "postcss-initial": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-4.0.1.tgz", + "integrity": "sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==", + "dev": true + }, + "postcss-lab-function": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-4.2.1.tgz", + "integrity": "sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w==", + "dev": true, + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-loader": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", + "integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==", + "dev": true, + "requires": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + } + }, + "postcss-logical": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz", + "integrity": "sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g==", + "dev": true + }, + "postcss-media-minmax": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz", + "integrity": "sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==", + "dev": true + }, + "postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true + }, + "postcss-modules-local-by-default": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", + "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", + "dev": true, + "requires": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dev": true, + "requires": { + "icss-utils": "^5.0.0" + } + }, + "postcss-nesting": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.2.0.tgz", + "integrity": "sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA==", + "dev": true, + "requires": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-overflow-shorthand": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.4.tgz", + "integrity": "sha512-otYl/ylHK8Y9bcBnPLo3foYFLL6a6Ak+3EQBPOTR7luMYCOsiVTUk1iLvNf6tVPNGXcoL9Hoz37kpfriRIFb4A==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-page-break": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz", + "integrity": "sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==", + "dev": true + }, + "postcss-place": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.5.tgz", + "integrity": "sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-preset-env": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.2.3.tgz", + "integrity": "sha512-Ok0DhLfwrcNGrBn8sNdy1uZqWRk/9FId0GiQ39W4ILop5GHtjJs8bu1MY9isPwHInpVEPWjb4CEcEaSbBLpfwA==", + "dev": true, + "requires": { + "autoprefixer": "^10.4.2", + "browserslist": "^4.19.1", + "caniuse-lite": "^1.0.30001299", + "css-blank-pseudo": "^3.0.2", + "css-has-pseudo": "^3.0.3", + "css-prefers-color-scheme": "^6.0.2", + "cssdb": "^5.0.0", + "postcss-attribute-case-insensitive": "^5.0.0", + "postcss-color-functional-notation": "^4.2.1", + "postcss-color-hex-alpha": "^8.0.2", + "postcss-color-rebeccapurple": "^7.0.2", + "postcss-custom-media": "^8.0.0", + "postcss-custom-properties": "^12.1.2", + "postcss-custom-selectors": "^6.0.0", + "postcss-dir-pseudo-class": "^6.0.3", + "postcss-double-position-gradients": "^3.0.4", + "postcss-env-function": "^4.0.4", + "postcss-focus-visible": "^6.0.3", + "postcss-focus-within": "^5.0.3", + "postcss-font-variant": "^5.0.0", + "postcss-gap-properties": "^3.0.2", + "postcss-image-set-function": "^4.0.4", + "postcss-initial": "^4.0.1", + "postcss-lab-function": "^4.0.3", + "postcss-logical": "^5.0.3", + "postcss-media-minmax": "^5.0.0", + "postcss-nesting": "^10.1.2", + "postcss-overflow-shorthand": "^3.0.2", + "postcss-page-break": "^3.0.4", + "postcss-place": "^7.0.3", + "postcss-pseudo-class-any-link": "^7.0.2", + "postcss-replace-overflow-wrap": "^4.0.0", + "postcss-selector-not": "^5.0.0" + } + }, + "postcss-pseudo-class-any-link": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.6.tgz", + "integrity": "sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-replace-overflow-wrap": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz", + "integrity": "sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==", + "dev": true + }, + "postcss-selector-not": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-5.0.0.tgz", + "integrity": "sha512-/2K3A4TCP9orP4TNS7u3tGdRFVKqz/E6pX3aGnriPG0jU78of8wsUcqE4QAhWEU0d+WnMSF93Ah3F//vUtK+iQ==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "postcss-selector-parser": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.11.tgz", + "integrity": "sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==", + "dev": true, + "requires": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + } + }, + "postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "prebuild-install": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz", + "integrity": "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==", + "dev": true, + "requires": { + "detect-libc": "^2.0.0", + "expand-template": "^2.0.3", + "github-from-package": "0.0.0", + "minimist": "^1.2.3", + "mkdirp-classic": "^0.5.3", + "napi-build-utils": "^1.0.1", + "node-abi": "^3.3.0", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^4.0.0", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + }, + "dependencies": { + "detect-libc": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", + "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==", + "dev": true + } + } + }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" + }, + "prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true + }, + "prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "requires": { + "fast-diff": "^1.1.2" + } + }, + "pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "dev": true + }, + "prismjs": { + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==" + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "progress": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", + "integrity": "sha512-UdA8mJ4weIkUBO224tIarHzuHs4HuYiJvsuGT7j/SPQiUJVjYvNDBIPa0hAorduOfjGohB/qHWRa/lrrWX/mXw==", + "dev": true + }, + "promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==" + }, + "promise-retry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", + "requires": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + } + }, + "prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "dependencies": { + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + } + } + }, + "protractor": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/protractor/-/protractor-7.0.0.tgz", + "integrity": "sha512-UqkFjivi4GcvUQYzqGYNe0mLzfn5jiLmO8w9nMhQoJRLhy2grJonpga2IWhI6yJO30LibWXJJtA4MOIZD2GgZw==", + "dev": true, + "requires": { + "@types/q": "^0.0.32", + "@types/selenium-webdriver": "^3.0.0", + "blocking-proxy": "^1.0.0", + "browserstack": "^1.5.1", + "chalk": "^1.1.3", + "glob": "^7.0.3", + "jasmine": "2.8.0", + "jasminewd2": "^2.1.0", + "q": "1.4.1", + "saucelabs": "^1.5.0", + "selenium-webdriver": "3.6.0", + "source-map-support": "~0.4.0", + "webdriver-js-extender": "2.1.0", + "webdriver-manager": "^12.1.7", + "yargs": "^15.3.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==", + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true + }, + "del": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", + "integrity": "sha512-Z4fzpbIRjOu7lO5jCETSWoqUDVe0IPOlfugBsF6suen2LKDlVb4QZpKEM9P+buNJ4KI1eN7I083w/pbKUpsrWQ==", + "dev": true, + "requires": { + "globby": "^5.0.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "rimraf": "^2.2.8" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "globby": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", + "integrity": "sha512-HJRTIH2EeH44ka+LWig+EqT2ONSYpVlNfx6pyd592/VF1TbfljJ7elwie7oSwcViLGqOdWocSdu2txwBF9bjmQ==", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha512-cnS56eR9SPAscL77ik76ATVqoPARTqPIVkMDVxRaWH06zT+6+CzIroYRJ0VVvm0Z1zfAvxvz9i/D3Ppjaqt5Nw==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + }, + "q": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", + "integrity": "sha512-/CdEdaw49VZVmyIDGUQKDDT53c7qBkO6g5CefWz91Ae+l4+cRtcDYwMTXh6me4O8TMldeGHG3N2Bl84V78Ywbg==", + "dev": true + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "^0.5.6" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true + }, + "webdriver-manager": { + "version": "12.1.8", + "resolved": "https://registry.npmjs.org/webdriver-manager/-/webdriver-manager-12.1.8.tgz", + "integrity": "sha512-qJR36SXG2VwKugPcdwhaqcLQOD7r8P2Xiv9sfNbfZrKBnX243iAkOueX1yAmeNgIKhJ3YAT/F2gq6IiEZzahsg==", + "dev": true, + "requires": { + "adm-zip": "^0.4.9", + "chalk": "^1.1.1", + "del": "^2.2.0", + "glob": "^7.0.3", + "ini": "^1.3.4", + "minimist": "^1.2.0", + "q": "^1.4.1", + "request": "^2.87.0", + "rimraf": "^2.5.2", + "semver": "^5.3.0", + "xml2js": "^0.4.17" + } + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "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==", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + } + }, + "proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-5.0.0.tgz", + "integrity": "sha512-gkH7BkvLVkSfX9Dk27W6TyNOWWZWRilRfk1XxGNWOYJ2TuedAv1yFpCaU9QSBmBe716XOTNpYNOzhysyw8xn7g==", + "dev": true, + "requires": { + "agent-base": "^6.0.0", + "debug": "4", + "http-proxy-agent": "^4.0.0", + "https-proxy-agent": "^5.0.0", + "lru-cache": "^5.1.1", + "pac-proxy-agent": "^5.0.0", + "proxy-from-env": "^1.0.0", + "socks-proxy-agent": "^5.0.0" + }, + "dependencies": { + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true + }, + "http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "requires": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + } + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "socks-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz", + "integrity": "sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ==", + "dev": true, + "requires": { + "agent-base": "^6.0.2", + "debug": "4", + "socks": "^2.3.3" + } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } + }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, + "proxy-middleware": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/proxy-middleware/-/proxy-middleware-0.15.0.tgz", + "integrity": "sha512-EGCG8SeoIRVMhsqHQUdDigB2i7qU7fCsWASwn54+nPutYO8n4q6EiwMzyfWlC+dzRFExP+kvcnDFdBDHoZBU7Q==", + "dev": true + }, + "prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", + "dev": true, + "optional": true + }, + "psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", + "dev": true + }, + "qjobs": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", + "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", + "dev": true + }, + "qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "requires": { + "side-channel": "^1.0.4" + } + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + }, + "quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" + }, + "quote-stream": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/quote-stream/-/quote-stream-1.0.2.tgz", + "integrity": "sha512-kKr2uQ2AokadPjvTyKJQad9xELbZwYzWlNfI3Uz2j/ib5u6H9lDP7fUUR//rMycd0gv4Z5P1qXMfXR8YpIxrjQ==", + "dev": true, + "requires": { + "buffer-equal": "0.0.1", + "minimist": "^1.1.3", + "through2": "^2.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + } + } + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } + } + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "dev": true + } + } + }, + "re2": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/re2/-/re2-1.17.7.tgz", + "integrity": "sha512-X8GSuiBoVWwcjuppqSjsIkRxNUKDdjhkO9SBekQbZ2ksqWUReCy7DQPWOVpoTnpdtdz5PIpTTxTFzvJv5UMfjA==", + "requires": { + "install-artifact-from-github": "^1.3.1", + "nan": "^2.16.0", + "node-gyp": "^9.0.0" + } + }, + "read": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/read/-/read-1.0.5.tgz", + "integrity": "sha512-hDLATrzYLoMu23c/69pMC6u3fO3Y0qLTIygJkEZHLOn+AO2gSapu6QgrgwX9ehyVtaRoZVZbF4IuiZPPRdGgdg==", + "dev": true, + "requires": { + "mute-stream": "~0.0.4" + } + }, + "read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "requires": { + "pify": "^2.3.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } + } + }, + "read-installed": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/read-installed/-/read-installed-4.0.3.tgz", + "integrity": "sha512-O03wg/IYuV/VtnK2h/KXEt9VIbMUFbk3ERG0Iu4FhLZw0EP0T9znqrYDGn6ncbEsXUFaUjiVAWXHzxwt3lhRPQ==", + "dev": true, + "requires": { + "debuglog": "^1.0.1", + "graceful-fs": "^4.1.2", + "read-package-json": "^2.0.0", + "readdir-scoped-modules": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "slide": "~1.1.3", + "util-extend": "^1.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "read-package-json": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-2.1.2.tgz", + "integrity": "sha512-D1KmuLQr6ZSJS0tW8hf3WGpRlwszJOXZ3E8Yd/DNRaM5d+1wVRZdHlpGBLAuovjr28LbWvjpWkBHMxpRGGjzNA==", + "dev": true, + "requires": { + "glob": "^7.1.1", + "json-parse-even-better-errors": "^2.3.0", + "normalize-package-data": "^2.0.0", + "npm-normalize-package-bin": "^1.0.0" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "read-package-json-fast": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-2.0.3.tgz", + "integrity": "sha512-W/BKtbL+dUjTuRL2vziuYhp76s5HZ9qQhd/dKfWIZveD0O40453QNyZhC0e63lqZrAQ4jiOapVoeJ7JrszenQQ==", + "dev": true, + "requires": { + "json-parse-even-better-errors": "^2.3.0", + "npm-normalize-package-bin": "^1.0.1" + } + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", + "dev": true, + "requires": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + }, + "dependencies": { + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==", + "dev": true, + "requires": { + "find-up": "^2.0.0", + "read-pkg": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true + } + } + }, + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "readdir-scoped-modules": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz", + "integrity": "sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw==", + "dev": true, + "requires": { + "debuglog": "^1.0.1", + "dezalgo": "^1.0.0", + "graceful-fs": "^4.1.2", + "once": "^1.3.0" + } + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "requires": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + } + }, + "reflect-metadata": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", + "dev": true + }, + "regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "dev": true, + "requires": { + "regenerate": "^1.4.2" + } + }, + "regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, + "regenerator-transform": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", + "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "dev": true, + "requires": { + "@babel/runtime": "^7.8.4" + } + }, + "regex-parser": { + "version": "2.2.11", + "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", + "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", + "dev": true + }, + "regexp-tree": { + "version": "0.1.24", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.24.tgz", + "integrity": "sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw==", + "dev": true + }, + "regexp.prototype.flags": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" + } + }, + "regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==" + }, + "regexpu-core": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.2.tgz", + "integrity": "sha512-T0+1Zp2wjF/juXMrMxHxidqGYn8U4R+zleSJhX9tQ1PUsS8a9UtYfbsF9LdiVgNX3kiX8RNaKM42nfSgvFJjmw==", + "dev": true, + "requires": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsgen": "^0.7.1", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + } + }, + "regjsgen": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz", + "integrity": "sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==", + "dev": true + }, + "regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true + } + } + }, + "request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "dependencies": { + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "jsprim": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + } + }, + "qs": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "dev": true + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + } + } + }, + "request-progress": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz", + "integrity": "sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg==", + "dev": true, + "requires": { + "throttleit": "^1.0.0" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true + }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" + }, + "resolve-url-loader": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz", + "integrity": "sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg==", + "dev": true, + "requires": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^8.2.14", + "source-map": "0.6.1" + }, + "dependencies": { + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "responselike": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "requires": { + "lowercase-keys": "^2.0.0" + } + }, + "restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "requires": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + } + }, + "restructure": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/restructure/-/restructure-3.0.0.tgz", + "integrity": "sha512-Xj8/MEIhhfj9X2rmD9iJ4Gga9EFqVlpMj3vfLnV2r/Mh5jRMryNV+6lWh9GdJtDBcBSPIqzRdfBQ3wDtNFv/uw==", + "dev": true + }, + "retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==" + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + }, + "rfdc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==" + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "requires": { + "glob": "^7.1.3" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "rsvp": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz", + "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==", + "dev": true + }, + "run-async": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "dev": true + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "rxjs": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", + "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", + "requires": { + "tslib": "^2.1.0" + } + }, + "rxjs-for-await": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/rxjs-for-await/-/rxjs-for-await-0.0.2.tgz", + "integrity": "sha512-IJ8R/ZCFMHOcDIqoABs82jal00VrZx8Xkgfe7TOKoaRPAW5nH/VFlG23bXpeGdrmtqI9UobFPgUKgCuFc7Lncw==", + "dev": true + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "safe-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "dev": true, + "requires": { + "regexp-tree": "~0.1.1" + } + }, + "safe-stable-stringify": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.1.tgz", + "integrity": "sha512-dVHE6bMtS/bnL2mwualjc6IxEv1F+OCUpA46pKUj6F8uDbUM0jCCulPqRNPSnWwGNKx5etqMjZYdXtrm5KJZGA==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sass": { + "version": "1.49.9", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.49.9.tgz", + "integrity": "sha512-YlYWkkHP9fbwaFRZQRXgDi3mXZShslVmmo+FVK3kHLUELHHEYrCmL1x6IUjC7wLS6VuJSAFXRQS/DxdsC4xL1A==", + "dev": true, + "requires": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + } + }, + "sass-loader": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.4.0.tgz", + "integrity": "sha512-7xN+8khDIzym1oL9XyS6zP6Ges+Bo2B2xbPrjdMHEYyV3AQYhd/wXeru++3ODHF0zMjYmVadblSKrPrjEkL8mg==", + "dev": true, + "requires": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + } + }, + "saucelabs": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/saucelabs/-/saucelabs-1.5.0.tgz", + "integrity": "sha512-jlX3FGdWvYf4Q3LFfFWS1QvPg3IGCGWxIc8QBFdPTbpTJnt/v17FHXYVAn7C8sHf1yUXo2c7yIM0isDryfYtHQ==", + "dev": true, + "requires": { + "https-proxy-agent": "^2.2.1" + }, + "dependencies": { + "agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "dev": true, + "requires": { + "es6-promisify": "^5.0.0" + } + }, + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "https-proxy-agent": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "dev": true, + "requires": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" + } + } + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } + } + }, + "scope-analyzer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/scope-analyzer/-/scope-analyzer-2.1.2.tgz", + "integrity": "sha512-5cfCmsTYV/wPaRIItNxatw02ua/MThdIUNnUOCYp+3LSEJvnG804ANw2VLaavNILIfWXF1D1G2KNANkBBvInwQ==", + "dev": true, + "requires": { + "array-from": "^2.1.1", + "dash-ast": "^2.0.1", + "es6-map": "^0.1.5", + "es6-set": "^0.1.5", + "es6-symbol": "^3.1.1", + "estree-is-function": "^1.0.0", + "get-assigned-identifiers": "^1.1.0" + } + }, + "select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==", + "dev": true + }, + "selenium-webdriver": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-3.6.0.tgz", + "integrity": "sha512-WH7Aldse+2P5bbFBO4Gle/nuQOdVwpHMTL6raL3uuBj/vPG07k6uzt3aiahu352ONBr5xXh0hDlM3LhtXPOC4Q==", + "dev": true, + "requires": { + "jszip": "^3.1.3", + "rimraf": "^2.5.4", + "tmp": "0.0.30", + "xml2js": "^0.4.17" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "tmp": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.30.tgz", + "integrity": "sha512-HXdTB7lvMwcb55XFfrTM8CPr/IYREk4hVBFaQ4b/6nInrluSL86hfHm7vu0luYKCfyBZp2trCjpc8caC3vVM3w==", + "dev": true, + "requires": { + "os-tmpdir": "~1.0.1" + } + } + } + }, + "selfsigned": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", + "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", + "dev": true, + "requires": { + "node-forge": "^1" + } + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "requires": { + "lru-cache": "^6.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + } + } + }, + "serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, + "serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", + "dev": true, + "requires": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "dev": true, + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "dev": true + } + } + }, + "serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "dev": true + }, + "setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + } + }, + "shallow-copy": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/shallow-copy/-/shallow-copy-0.0.1.tgz", + "integrity": "sha512-b6i4ZpVuUxB9h5gfCxPiusKYkqTMOjEbBs4wMaFbkfia4yFv92UKZ6Df8WXcKbn08JNL/abvg3FnMAOfakDvUw==", + "dev": true + }, + "sharp": { + "version": "0.29.3", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.29.3.tgz", + "integrity": "sha512-fKWUuOw77E4nhpyzCCJR1ayrttHoFHBT2U/kR/qEMRhvPEcluG4BKj324+SCO1e84+knXHwhJ1HHJGnUt4ElGA==", + "dev": true, + "requires": { + "color": "^4.0.1", + "detect-libc": "^1.0.3", + "node-addon-api": "^4.2.0", + "prebuild-install": "^7.0.0", + "semver": "^7.3.5", + "simple-get": "^4.0.0", + "tar-fs": "^2.1.1", + "tunnel-agent": "^0.6.0" + }, + "dependencies": { + "node-addon-api": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz", + "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==", + "dev": true + } + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "dev": true + }, + "simple-get": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", + "dev": true, + "requires": { + "decompress-response": "^6.0.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "dev": true, + "requires": { + "is-arrayish": "^0.3.1" + }, + "dependencies": { + "is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "dev": true + } + } + }, + "sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "dev": true, + "requires": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + } + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + }, + "slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + } + }, + "slide": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz", + "integrity": "sha512-NwrtjCg+lZoqhFU8fOwl4ay2ei8PaqCBOUV3/ektPY9trO1yQ1oXEfmHAhKArUVUr/hOHvy5f6AdP17dCM0zMw==", + "dev": true + }, + "smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" + }, + "socket.io": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.5.4.tgz", + "integrity": "sha512-m3GC94iK9MfIEeIBfbhJs5BqFibMtkRk8ZpKwG2QwxV0m/eEhPIV4ara6XCF1LWNAus7z58RodiZlAH71U3EhQ==", + "dev": true, + "requires": { + "accepts": "~1.3.4", + "base64id": "~2.0.0", + "debug": "~4.3.2", + "engine.io": "~6.2.1", + "socket.io-adapter": "~2.4.0", + "socket.io-parser": "~4.2.1" + } + }, + "socket.io-adapter": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.4.0.tgz", + "integrity": "sha512-W4N+o69rkMEGVuk2D/cvca3uYsvGlMwsySWV447y99gUPghxq42BxqLNMndb+a1mm/5/7NeXVQS7RLa2XyXvYg==", + "dev": true + }, + "socket.io-parser": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.1.tgz", + "integrity": "sha512-V4GrkLy+HeF1F/en3SpUaM+7XxYXpuMUWLGde1kSSh5nQMN4hLrbPIkD+otwh6q9R6NOQBN4AMaOZ2zVjui82g==", + "dev": true, + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + } + }, + "sockjs": { + "version": "0.3.24", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", + "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", + "dev": true, + "requires": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "socks": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "requires": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + } + }, + "socks-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz", + "integrity": "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==", + "requires": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + } + }, + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true + }, + "source-map-loader": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.1.tgz", + "integrity": "sha512-Vp1UsfyPvgujKQzi4pyDiTOnE3E4H+yHvkVRN3c/9PJmQS4CQJExvcDvaX/D+RV+xQben9HJ56jMJS3CgUeWyA==", + "dev": true, + "requires": { + "abab": "^2.0.5", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.1" + } + }, + "source-map-resolve": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", + "dev": true, + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0" + } + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "dev": true + }, + "spdx-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/spdx-compare/-/spdx-compare-1.0.0.tgz", + "integrity": "sha512-C1mDZOX0hnu0ep9dfmuoi03+eOdDoz2yvK79RxbcrVEG1NO1Ph35yW102DHWKN4pk80nwCgeMmSY5L25VE4D9A==", + "dev": true, + "requires": { + "array-find-index": "^1.0.2", + "spdx-expression-parse": "^3.0.0", + "spdx-ranges": "^2.0.0" + } + }, + "spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", + "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==", + "dev": true + }, + "spdx-ranges": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/spdx-ranges/-/spdx-ranges-2.1.1.tgz", + "integrity": "sha512-mcdpQFV7UDAgLpXEE/jOMqvK4LBoO0uTQg0uvXUewmEFhpiZx5yJSZITHB8w1ZahKdhfZqP5GPEOKLyEq5p8XA==", + "dev": true + }, + "spdx-satisfies": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/spdx-satisfies/-/spdx-satisfies-4.0.1.tgz", + "integrity": "sha512-WVzZ/cXAzoNmjCWiEluEA3BjHp5tiUmmhn9MK+X0tBbR9sOqtC6UQwmgCNrAIZvNlMuBUYAaHYfb2oqlF9SwKA==", + "dev": true, + "requires": { + "spdx-compare": "^1.0.0", + "spdx-expression-parse": "^3.0.0", + "spdx-ranges": "^2.0.0" + } + }, + "spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "dev": true, + "requires": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + } + }, + "spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dev": true, + "requires": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "split": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", + "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", + "dev": true, + "requires": { + "through": "2" + } + }, + "split2": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.1.0.tgz", + "integrity": "sha512-VBiJxFkxiXRlUIeyMQi8s4hgvKCSjtknJv/LVYbrgALPwf5zSKmEwV9Lst25AkvMDnvxODugjdl6KZgwKM1WYQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "ssh-config": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/ssh-config/-/ssh-config-1.1.6.tgz", + "integrity": "sha512-ZPO9rECxzs5JIQ6G/2EfL1I9ho/BVZkx9HRKn8+0af7QgwAmumQ7XBFP1ggMyPMo+/tUbmv0HFdv4qifdO/9JA==", + "dev": true + }, + "sshpk": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", + "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "ssr-window": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-4.0.2.tgz", + "integrity": "sha512-ISv/Ch+ig7SOtw7G2+qkwfVASzazUnvlDTwypdLoPoySv+6MqlOV10VwPSE6EWkGjhW50lUmghPmpYZXMu/+AQ==" + }, + "ssri": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz", + "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==", + "requires": { + "minipass": "^3.1.1" + } + }, + "static-eval": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.1.0.tgz", + "integrity": "sha512-agtxZ/kWSsCkI5E4QifRwsaPs0P0JmZV6dkLz6ILYfFYQGn+5plctanRN+IC8dJRiFkyXHrwEE3W9Wmx67uDbw==", + "dev": true, + "requires": { + "escodegen": "^1.11.1" + } + }, + "static-module": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/static-module/-/static-module-3.0.4.tgz", + "integrity": "sha512-gb0v0rrgpBkifXCa3yZXxqVmXDVE+ETXj6YlC/jt5VzOnGXR2C15+++eXuMDUYsePnbhf+lwW0pE1UXyOLtGCw==", + "dev": true, + "requires": { + "acorn-node": "^1.3.0", + "concat-stream": "~1.6.0", + "convert-source-map": "^1.5.1", + "duplexer2": "~0.1.4", + "escodegen": "^1.11.1", + "has": "^1.0.1", + "magic-string": "0.25.1", + "merge-source-map": "1.0.4", + "object-inspect": "^1.6.0", + "readable-stream": "~2.3.3", + "scope-analyzer": "^2.0.1", + "shallow-copy": "~0.0.1", + "static-eval": "^2.0.5", + "through2": "~2.0.3" + }, + "dependencies": { + "magic-string": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.1.tgz", + "integrity": "sha512-sCuTz6pYom8Rlt4ISPFn6wuFodbKMIHUMv4Qko9P17dpxb7s52KJTmRuZZqHdGmLCK9AOcDare039nRIcfdkEg==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.1" + } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + } + } + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + }, + "stream-combiner": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", + "integrity": "sha512-6yHMqgLYDzQDcAkL+tjJDC5nSNuNIx0vZtRZeiPh7Saef7VHX9H5Ijn9l2VIol2zaNYlYEX6KyuT/237A58qEQ==", + "dev": true, + "requires": { + "duplexer": "~0.1.1", + "through": "~2.3.4" + } + }, + "stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", + "dev": true, + "requires": { + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "streamroller": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.3.tgz", + "integrity": "sha512-CphIJyFx2SALGHeINanjFRKQ4l7x2c+rXYJ4BMq0gd+ZK0gi4VT8b+eHe2wi58x4UayBAKx4xtHpXT/ea1cz8w==", + "dev": true, + "requires": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "dependencies": { + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + } + } + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, + "strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "requires": { + "min-indent": "^1.0.0" + } + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" + }, + "strong-log-transformer": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/strong-log-transformer/-/strong-log-transformer-2.1.0.tgz", + "integrity": "sha512-B3Hgul+z0L9a236FAUC9iZsL+nVHgoCJnqCbN588DjYxvGXaXaaFbfmQ/JhvKjZwsOukuR72XbHv71Qkug0HxA==", + "dev": true, + "requires": { + "duplexer": "^0.1.1", + "minimist": "^1.2.0", + "through": "^2.3.4" + } + }, + "stylus": { + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.56.0.tgz", + "integrity": "sha512-Ev3fOb4bUElwWu4F9P9WjnnaSpc8XB9OFHSFZSKMFL1CE1oM+oFXWEgAqPmmZIyhBihuqIQlFsVTypiiS9RxeA==", + "dev": true, + "requires": { + "css": "^3.0.0", + "debug": "^4.3.2", + "glob": "^7.1.6", + "safer-buffer": "^2.1.2", + "sax": "~1.2.4", + "source-map": "^0.7.3" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "stylus-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/stylus-loader/-/stylus-loader-6.2.0.tgz", + "integrity": "sha512-5dsDc7qVQGRoc6pvCL20eYgRUxepZ9FpeK28XhdXaIPP6kXr6nI1zAAKFQgP5OBkOfKaURp4WUpJzspg1f01Gg==", + "dev": true, + "requires": { + "fast-glob": "^3.2.7", + "klona": "^2.0.4", + "normalize-path": "^3.0.0" + } + }, + "suncalc": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/suncalc/-/suncalc-1.9.0.tgz", + "integrity": "sha512-vMJ8Byp1uIPoj+wb9c1AdK4jpkSKVAywgHX0lqY7zt6+EWRRC3Z+0Ucfjy/0yxTVO1hwwchZe4uoFNqrIC24+A==" + }, + "superagent": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-5.3.1.tgz", + "integrity": "sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==", + "dev": true, + "requires": { + "component-emitter": "^1.3.0", + "cookiejar": "^2.1.2", + "debug": "^4.1.1", + "fast-safe-stringify": "^2.0.7", + "form-data": "^3.0.0", + "formidable": "^1.2.2", + "methods": "^1.1.2", + "mime": "^2.4.6", + "qs": "^6.9.4", + "readable-stream": "^3.6.0", + "semver": "^7.3.2" + }, + "dependencies": { + "form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true + } + } + }, + "superagent-proxy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/superagent-proxy/-/superagent-proxy-3.0.0.tgz", + "integrity": "sha512-wAlRInOeDFyd9pyonrkJspdRAxdLrcsZ6aSnS+8+nu4x1aXbz6FWSTT9M6Ibze+eG60szlL7JA8wEIV7bPWuyQ==", + "dev": true, + "requires": { + "debug": "^4.3.2", + "proxy-agent": "^5.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "surge": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/surge/-/surge-0.23.1.tgz", + "integrity": "sha512-w92meVuKxqO1up0JpSe2iVSiVTv7E7t1qDA9fZhCSZx/+6Q85I3Y2LCoZIcWLpMm9BM0iB843NAWAwdScTR4Uw==", + "dev": true, + "requires": { + "cli-table3": "^0.5.1", + "colors": "1.4.0", + "inquirer": "^6.2.2", + "is-domain": "0.0.1", + "minimist": "1.2.3", + "moniker": "0.1.2", + "netrc": "0.1.4", + "progress": "1.1.8", + "read": "1.0.5", + "request": "^2.88.0", + "split": "0.3.1", + "surge-fstream-ignore": "^1.0.6", + "surge-ignore": "0.2.0", + "tarr": "1.1.0", + "url-parse-as-address": "1.0.0" + }, + "dependencies": { + "ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "dev": true + }, + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", + "dev": true, + "requires": { + "restore-cursor": "^2.0.0" + } + }, + "cli-table3": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", + "integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==", + "dev": true, + "requires": { + "colors": "^1.1.2", + "object-assign": "^4.1.0", + "string-width": "^2.1.1" + } + }, + "cli-width": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", + "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "inquirer": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", + "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", + "dev": true, + "requires": { + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^2.0.0", + "lodash": "^4.17.12", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rxjs": "^6.4.0", + "string-width": "^2.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "dev": true + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true + }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, + "minimist": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.3.tgz", + "integrity": "sha512-+bMdgqjMN/Z77a6NlY/I3U5LlRDbnmaAk6lDveAPKwSpcPM4tKAuYsvYF8xjhOPXhOYGe/73vVLVez5PW+jqhw==", + "dev": true + }, + "mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==", + "dev": true + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + } + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", + "dev": true, + "requires": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + } + }, + "split": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/split/-/split-0.3.1.tgz", + "integrity": "sha512-hCHXkQDs1HFKRsrT9EutGT1hmjS1FW1Aei8dk/CxrT7mslcMtAxbiv8LYA/AYDvjB6h9rSXgW8zAZwg20tKMTw==", + "dev": true, + "requires": { + "through": "2" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "surge-fstream-ignore": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/surge-fstream-ignore/-/surge-fstream-ignore-1.0.6.tgz", + "integrity": "sha512-hNN52cz2fYCAzhlHmWPn4aE3bFbpBt01AkWFLljrtSzFvxlipLAeLuLtQ3t4f0RKoUkjzXWCAFK13WoET2iM1A==", + "dev": true, + "requires": { + "fstream": ">=1.0.12", + "inherits": "2", + "minimatch": "^3.0.0" + } + }, + "surge-ignore": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/surge-ignore/-/surge-ignore-0.2.0.tgz", + "integrity": "sha512-ay4MPFjfiQzDsyTidljJLXQi22l2AwjcuamYnJWj/LdhaHdKmDJxRox52WXimdcLpMuLDtkQvv4+jEu+wu9eSw==", + "dev": true + }, + "swiper": { + "version": "8.4.5", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-8.4.5.tgz", + "integrity": "sha512-zveyEFBBv4q1sVkbJHnuH4xCtarKieavJ4SxP0QEHvdpPLJRuD7j/Xg38IVVLbp7Db6qrPsLUePvxohYx39Agw==", + "requires": { + "dom7": "^4.0.4", + "ssr-window": "^4.0.2" + } + }, + "symbol-observable": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-4.0.0.tgz", + "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==", + "dev": true + }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true + }, + "tar": { + "version": "6.1.12", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.12.tgz", + "integrity": "sha512-jU4TdemS31uABHd+Lt5WEYJuzn+TJTCBLljvIAHZOz6M9Os5pJ4dD+vRFLxPa/n3T0iEFzpi+0x1UfuDZYbRMw==", + "requires": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + } + }, + "tar-fs": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "dev": true, + "requires": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + }, + "dependencies": { + "chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + } + } + }, + "tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "dev": true, + "requires": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + } + }, + "tarr": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/tarr/-/tarr-1.1.0.tgz", + "integrity": "sha512-tENbQ43IQckay71stp1p1lljRhoEZpZk10FzEZKW2tJcMcnLwV3CfZdxBAERlH6nwnFvnHMS9eJOJl6IzSsG0g==", + "dev": true, + "requires": { + "block-stream": "*", + "fstream": ">=1.0.12", + "inherits": "2" + } + }, + "temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", + "dev": true + }, + "tempfile": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-3.0.0.tgz", + "integrity": "sha512-uNFCg478XovRi85iD42egu+eSFUmmka750Jy7L5tfHI5hQKKtbPnxaSaXAbBqCDYrw3wx4tXjKwci4/QmsZJxw==", + "dev": true, + "requires": { + "temp-dir": "^2.0.0", + "uuid": "^3.3.2" + }, + "dependencies": { + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + } + } + }, + "terser": { + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", + "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", + "dev": true, + "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + } + } + }, + "terser-webpack-plugin": { + "version": "5.3.6", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", + "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.14", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "terser": "^5.14.1" + }, + "dependencies": { + "@jridgewell/trace-mapping": { + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", + "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "text-extensions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", + "integrity": "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==", + "dev": true + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" + }, + "throttleit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz", + "integrity": "sha512-rkTVqu6IjfQ/6+uNuuc3sZek4CEYxTJom3IktzgdSxcZqdARuebbA/f4QmAxMQIxqq9ZLEUkSYqvuk1I6VKq4g==", + "dev": true + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", + "dev": true, + "requires": { + "readable-stream": "3" + } + }, + "thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", + "dev": true + }, + "time-stamp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", + "integrity": "sha512-gLCeArryy2yNTRzTGKbZbloctj64jkZ57hj5zdraXue6aFgd6PmvVtEyiUU+hvU0v7q08oVv8r8ev0tRo6bvgw==", + "dev": true + }, + "tiny-inflate": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", + "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==", + "dev": true + }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "requires": { + "os-tmpdir": "~1.0.2" + } + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "requires": { + "is-number": "^7.0.0" + } + }, + "toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + }, + "toposort": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", + "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==" + }, + "totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "dev": true + }, + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "traverse": { + "version": "0.6.7", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.7.tgz", + "integrity": "sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg==" + }, + "tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true + }, + "treeify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/treeify/-/treeify-1.1.0.tgz", + "integrity": "sha512-1m4RA7xVAJrSGrrXGs0L3YTwyvBs2S8PbRHaLZAkFw7JR8oIFwYtysxlBZhYIa7xSyiYJKZ3iGrrk55cGA3i9A==", + "dev": true + }, + "trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true + }, + "ts-json-schema-generator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ts-json-schema-generator/-/ts-json-schema-generator-1.0.0.tgz", + "integrity": "sha512-F5VofsyMhNSXKII32NDS8/Ur8o2K3Sh5i/U2ke3UgCKf26ybgm2cZeT2x7VJPl1trML/9QLzz/82l0mvzmb3Vw==", + "requires": { + "@types/json-schema": "^7.0.9", + "commander": "^9.0.0", + "glob": "^7.2.0", + "json5": "^2.2.0", + "safe-stable-stringify": "^2.3.1", + "typescript": "~4.6.2" + }, + "dependencies": { + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==" + } + } + }, + "ts-morph": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-13.0.3.tgz", + "integrity": "sha512-pSOfUMx8Ld/WUreoSzvMFQG5i9uEiWIsBYjpU9+TTASOeUa89j5HykomeqVULm1oqWtBdleI3KEFRLrlA3zGIw==", + "dev": true, + "requires": { + "@ts-morph/common": "~0.12.3", + "code-block-writer": "^11.0.0" + } + }, + "ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "requires": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + } + }, + "ts-optchain": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/ts-optchain/-/ts-optchain-0.1.8.tgz", + "integrity": "sha512-crvloFKZlPIysdVcP7Ej1w4HijBx7NmLdeorqfxOvt87DcUIbhKV4ZaSgCL+IQ+zzTgDx5zDuNHRvUbTIr9aqw==" + }, + "tsconfig-paths": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", + "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", + "dev": true, + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + } + } + }, + "tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", + "dev": true + }, + "type": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", + "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", + "dev": true + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "typed-assert": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/typed-assert/-/typed-assert-1.0.9.tgz", + "integrity": "sha512-KNNZtayBCtmnNmbo5mG47p1XsCyrx6iVqomjcZnec/1Y5GGARaxPs6r49RnSPeUP3YjNYiU9sQHAtY4BBvnZwg==", + "dev": true + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typescript": { + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz", + "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==", + "dev": true + }, + "ua-parser-js": { + "version": "0.7.32", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.32.tgz", + "integrity": "sha512-f9BESNVhzlhEFf2CHMSj40NWOjYPl1YKYbrvIr/hFTDEmLq7SRbWvm7FcdcpCYT95zrOhC7gZSxjdnnTpBcwVw==", + "dev": true + }, + "uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "dev": true, + "optional": true + }, + "unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "dev": true + }, + "unicode-properties": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/unicode-properties/-/unicode-properties-1.4.1.tgz", + "integrity": "sha512-CLjCCLQ6UuMxWnbIylkisbRj31qxHPAurvena/0iwSVbQ2G1VY5/HjV0IRabOEbDHlzZlRdCrD4NhB0JtU40Pg==", + "dev": true, + "requires": { + "base64-js": "^1.3.0", + "unicode-trie": "^2.0.0" + } + }, + "unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true + }, + "unicode-trie": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-trie/-/unicode-trie-2.0.0.tgz", + "integrity": "sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ==", + "dev": true, + "requires": { + "pako": "^0.2.5", + "tiny-inflate": "^1.0.0" + }, + "dependencies": { + "pako": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", + "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==", + "dev": true + } + } + }, + "unique-filename": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz", + "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==", + "requires": { + "unique-slug": "^3.0.0" + } + }, + "unique-slug": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz", + "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==", + "requires": { + "imurmurhash": "^0.1.4" + } + }, + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" + }, + "unix-crypt-td-js": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/unix-crypt-td-js/-/unix-crypt-td-js-1.1.4.tgz", + "integrity": "sha512-8rMeVYWSIyccIJscb9NdCfZKSRBKYTeVnwmiRYT2ulE3qd1RaDQ0xQDP+rI3ccIWbhu/zuo5cgN8z73belNZgw==", + "dev": true + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + }, + "untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true + }, + "update-browserslist-db": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "dev": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "requires": { + "punycode": "^2.1.0" + } + }, + "url-parse-as-address": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-as-address/-/url-parse-as-address-1.0.0.tgz", + "integrity": "sha512-1WJ8YX1Kcec9wgxy8d/ATzGP1ayO6BRnd3iB6NlM+7cOnn6U8p5PKppRTCPLobh3CSdJ4d0TdPjopzyU2KcVFw==", + "dev": true + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "util-extend": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/util-extend/-/util-extend-1.0.3.tgz", + "integrity": "sha512-mLs5zAK+ctllYBj+iAQvlDCwoxU/WDOUaJkcFudeiAX6OajC6BKXJUa9a+tbtkC11dz2Ufb7h0lyvIOVn4LADA==", + "dev": true + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==" + }, + "v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==" + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "validate-npm-package-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz", + "integrity": "sha512-M6w37eVCMMouJ9V/sdPGnC5H4uDr73/+xdq0FBLO3TFFX1+7wiUY6Es328NN+y43tmY+doUdN9g9J21vqB7iLw==", + "dev": true, + "requires": { + "builtins": "^1.0.3" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + }, + "dependencies": { + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "dev": true + } + } + }, + "vlq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz", + "integrity": "sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==" + }, + "vm2": { + "version": "3.9.12", + "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.12.tgz", + "integrity": "sha512-OMmRsKh1gmdosFzuqmj6O43hqIStqXA24YbwjtUTO0TkOBP8yLNHLplbr4odnAzEcMnm9lt2r3R8kTivn8urMg==", + "dev": true, + "requires": { + "acorn": "^8.7.0", + "acorn-walk": "^8.2.0" + } + }, + "void-elements": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", + "integrity": "sha512-qZKX4RnBzH2ugr8Lxa7x+0V6XD9Sb/ouARtiasEQCHB1EVU4NXtmHsDDrx1dO4ne5fc3J6EW05BP1Dl0z0iung==", + "dev": true + }, + "wait-on": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-6.0.1.tgz", + "integrity": "sha512-zht+KASY3usTY5u2LgaNqn/Cd8MukxLGjdcZxT2ns5QzDmTFc4XoWBgC+C/na+sMRZTuVygQoMYwdcVjHnYIVw==", + "requires": { + "axios": "^0.25.0", + "joi": "^17.6.0", + "lodash": "^4.17.21", + "minimist": "^1.2.5", + "rxjs": "^7.5.4" + }, + "dependencies": { + "rxjs": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.6.0.tgz", + "integrity": "sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==", + "requires": { + "tslib": "^2.1.0" + } + } + } + }, + "watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dev": true, + "requires": { + "minimalistic-assert": "^1.0.0" + } + }, + "wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "dev": true, + "requires": { + "defaults": "^1.0.3" + } + }, + "web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "dev": true + }, + "webdriver-js-extender": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/webdriver-js-extender/-/webdriver-js-extender-2.1.0.tgz", + "integrity": "sha512-lcUKrjbBfCK6MNsh7xaY2UAUmZwe+/ib03AjVOpFobX4O7+83BUveSrLfU0Qsyb1DaKJdQRbuU+kM9aZ6QUhiQ==", + "dev": true, + "requires": { + "@types/selenium-webdriver": "^3.0.0", + "selenium-webdriver": "^3.0.1" + } + }, + "webpack": { + "version": "5.70.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.70.0.tgz", + "integrity": "sha512-ZMWWy8CeuTTjCxbeaQI21xSswseF2oNOwc70QSKNePvmxE7XW36i7vpBMYZFAUHPwQiEbNGCEYIOOlyRbdGmxw==", + "dev": true, + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.4.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.9.2", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-better-errors": "^1.0.2", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.3.1", + "webpack-sources": "^3.2.3" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "webpack-bundle-analyzer": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.7.0.tgz", + "integrity": "sha512-j9b8ynpJS4K+zfO5GGwsAcQX4ZHpWV+yRiHDiL+bE0XHJ8NiPYLTNVQdlFYWxtpg9lfAQNlwJg16J9AJtFSXRg==", + "dev": true, + "requires": { + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true + } + } + }, + "webpack-dev-middleware": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.0.tgz", + "integrity": "sha512-MouJz+rXAm9B1OTOYaJnn6rtD/lWZPy2ufQCH3BPs8Rloh/Du6Jze4p7AeLYHkVi0giJnYLaSGDC7S+GM9arhg==", + "dev": true, + "requires": { + "colorette": "^2.0.10", + "memfs": "^3.2.2", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "schema-utils": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", + "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.8.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.0.0" + } + } + } + }, + "webpack-dev-server": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.7.3.tgz", + "integrity": "sha512-mlxq2AsIw2ag016nixkzUkdyOE8ST2GTy34uKSABp1c4nhjZvH90D5ZRR+UOLSsG4Z3TFahAi72a3ymRtfRm+Q==", + "dev": true, + "requires": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/serve-index": "^1.9.1", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.2.2", + "ansi-html-community": "^0.0.8", + "bonjour": "^3.5.0", + "chokidar": "^3.5.2", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^1.6.0", + "default-gateway": "^6.0.3", + "del": "^6.0.0", + "express": "^4.17.1", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.0", + "ipaddr.js": "^2.0.1", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "portfinder": "^1.0.28", + "schema-utils": "^4.0.0", + "selfsigned": "^2.0.0", + "serve-index": "^1.9.1", + "sockjs": "^0.3.21", + "spdy": "^4.0.2", + "strip-ansi": "^7.0.0", + "webpack-dev-middleware": "^5.3.0", + "ws": "^8.1.0" + }, + "dependencies": { + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true + }, + "ipaddr.js": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", + "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", + "dev": true + }, + "schema-utils": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", + "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.8.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.0.0" + } + }, + "strip-ansi": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", + "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", + "dev": true, + "requires": { + "ansi-regex": "^6.0.1" + } + } + } + }, + "webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "requires": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true + }, + "webpack-subresource-integrity": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/webpack-subresource-integrity/-/webpack-subresource-integrity-5.1.0.tgz", + "integrity": "sha512-sacXoX+xd8r4WKsy9MvH/q/vBtEHr86cpImXwyg74pFIpERKt6FmB8cXpeuh0ZLgclOlHI4Wcll7+R5L02xk9Q==", + "dev": true, + "requires": { + "typed-assert": "^1.0.8" + } + }, + "websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dev": true, + "requires": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "dev": true + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", + "dev": true + }, + "wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "requires": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, + "windows-release": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/windows-release/-/windows-release-4.0.0.tgz", + "integrity": "sha512-OxmV4wzDKB1x7AZaZgXMVsdJ1qER1ed83ZrTYd5Bwq2HfJVg3DJS8nqlAG4sMoJ7mu8cuRmLEYyU13BKwctRAg==", + "dev": true, + "requires": { + "execa": "^4.0.2" + }, + "dependencies": { + "execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + } + }, + "human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true + } + } + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" + }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "dev": true + }, + "xml2js": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", + "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", + "dev": true, + "requires": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "dependencies": { + "xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "dev": true + } + } + }, + "xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true + }, + "xmldoc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/xmldoc/-/xmldoc-1.2.0.tgz", + "integrity": "sha512-2eN8QhjBsMW2uVj7JHLHkMytpvGHLHxKXBy4J3fAT/HujsEtM6yU84iGjpESYGHg6XwK0Vu4l+KgqQ2dv2cCqg==", + "dev": true, + "requires": { + "sax": "^1.2.4" + } + }, + "xregexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz", + "integrity": "sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA==", + "dev": true + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true + }, + "y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + }, + "yargs": { + "version": "17.6.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", + "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "dependencies": { + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + } + } + }, + "yargs-parser": { + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.0.0.tgz", + "integrity": "sha512-8eblPHTL7ZWRkyjIZJjnGf+TijiKJSwA24svzLRVvtgoi/RZiKa9fFQTrlx0OKLnyHSdt/enrdadji6WFfESVA==", + "dev": true + }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==" + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" + }, + "zone.js": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.12.0.tgz", + "integrity": "sha512-XtC+I5dXU14HrzidAKBNMqneIVUykLEAA1x+v4KVrd6AUPWlwYORF8KgsVqvgdHiKZ4BkxxjvYi/ksEixTPR0Q==", + "requires": { + "tslib": "^2.3.0" + } + } + } +} diff --git a/frontend/app/package.json b/frontend/app/package.json new file mode 100644 index 00000000..a0b67831 --- /dev/null +++ b/frontend/app/package.json @@ -0,0 +1,202 @@ +{ + "name": "@openstapps/app", + "version": "2.0.0", + "description": "The generic app tailored to fulfill needs of German universities, written using Ionic Framework.", + "license": "GPL-3.0-only", + "author": "Karl-Philipp Wulfert ", + "contributors": [ + "Frank Nagel ", + "Jovan Krunić ", + "Michel Jonathan Schmitz ", + "Rainer Killinger ", + "Sebastian Lange ", + "Thea Schöbl " + ], + "scripts": { + "analyze": "webpack-bundle-analyzer www/stats.json", + "build": "ng build", + "build:analyze": "npm run build:stats && npm run analyze", + "build:android": "ionic capacitor build android --no-open && cd android && ./gradlew clean assembleDebug && cd ..", + "build:prod": "ng build --configuration=production", + "build:stats": "ng build --configuration=production --stats-json", + "changelog": "conventional-changelog -p angular -i src/assets/about/CHANGELOG.md -s -r 0 && git add src/assets/about/CHANGELOG.md", + "check-configuration": "openstapps-configuration", + "cypress:open": "cypress open", + "cypress:run": "cypress run", + "docker:build": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"npm install && npm run build\"", + "docker:build:android": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"npm run build:android\"", + "docker:enter": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash", + "docker:pull": "sudo docker pull registry.gitlab.com/openstapps/app", + "docker:run:android": "sudo docker run -v $PWD:/app --privileged -v /dev/bus/usb:/dev/bus/usb --net=host -it registry.gitlab.com/openstapps/app bash -c \"npm run run:android\"", + "docker:serve": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"npm run start:external\"", + "documentation": "compodoc -p tsconfig.json -d docs", + "e2e": "ng e2e", + "licenses": "license-checker --json > src/assets/about/licenses.json && ts-node ./scripts/accumulate-licenses.ts && git add src/assets/about/licenses.json", + "minify-icons": "ts-node scripts/minify-icon-font.ts", + "check-icons": "ts-node scripts/check-icon-correctness.ts", + "format:check": "prettier --check .", + "format:fix": "prettier --write .", + "lint": "ng lint", + "lint:fix": "eslint --fix -c .eslintrc.json --ignore-path .eslintignore --ext .ts,.html src/", + "ng": "ng", + "postinstall": "npx jetify", + "version": "npm run changelog && npm run licenses && npm run format:fix", + "prepublishOnly": "npm ci && npm run build && npm run lint && npm run format:check", + "preversion": "npm run prepublishOnly", + "push": "git push && git push origin \"v$npm_package_version\"", + "resources:android": "cordova-res android --skip-config --copy", + "resources:ios": "cordova-res ios --skip-config --copy", + "run:android": "ionic capacitor run android --livereload --external", + "start": "ionic serve", + "start:external": "ionic serve --external", + "start:prod": "ionic serve -- --configuration=production", + "test": "ng test" + }, + "dependencies": { + "@angular/animations": "13.3.11", + "@angular/cdk": "13.3.9", + "@angular/common": "13.3.11", + "@angular/core": "13.3.11", + "@angular/forms": "13.3.11", + "@angular/platform-browser": "13.3.11", + "@angular/platform-browser-dynamic": "13.3.11", + "@angular/router": "13.3.11", + "@asymmetrik/ngx-leaflet": "13.0.2", + "@asymmetrik/ngx-leaflet-markercluster": "13.0.1", + "@awesome-cordova-plugins/calendar": "5.45.0", + "@awesome-cordova-plugins/core": "5.45.0", + "@capacitor/app": "4.1.1", + "@capacitor/browser": "4.1.0", + "@capacitor/core": "4.6.1", + "@capacitor/device": "4.1.0", + "@capacitor/dialog": "4.1.0", + "@capacitor/filesystem": "4.1.4", + "@capacitor/geolocation": "4.1.0", + "@capacitor/haptics": "4.1.0", + "@capacitor/keyboard": "4.1.0", + "@capacitor/local-notifications": "4.1.4", + "@capacitor/network": "4.1.0", + "@capacitor/preferences": "4.0.2", + "@capacitor/share": "4.1.0", + "@capacitor/splash-screen": "4.1.2", + "@capacitor/status-bar": "4.1.1", + "@hugotomazi/capacitor-navigation-bar": "2.0.0", + "@ionic-native/core": "5.36.0", + "@ionic/angular": "6.3.9", + "@ionic/storage-angular": "3.0.6", + "@ngx-translate/core": "14.0.0", + "@ngx-translate/http-loader": "7.0.0", + "@openstapps/api": "0.45.0", + "@openstapps/configuration": "0.33.0", + "@openstapps/core": "0.72.0", + "@transistorsoft/capacitor-background-fetch": "1.0.2", + "capacitor-secure-storage-plugin": "0.8.1", + "cordova-plugin-calendar": "5.1.6", + "deepmerge": "4.2.2", + "form-data": "4.0.0", + "geojson": "0.5.0", + "ionic-appauth": "0.9.0", + "jsonpath-plus": "6.0.1", + "leaflet": "1.9.3", + "leaflet.markercluster": "1.5.3", + "material-symbols": "0.4.1", + "moment": "2.29.4", + "ngx-logger": "4.3.3", + "ngx-markdown": "13.1.0", + "ngx-moment": "6.0.2", + "opening_hours": "3.8.0", + "rxjs": "7.8.0", + "swiper": "8.4.5", + "tslib": "2.4.1", + "zone.js": "0.12.0" + }, + "devDependencies": { + "@angular-devkit/architect": "0.1303.9", + "@angular-devkit/build-angular": "13.3.9", + "@angular-devkit/core": "13.3.9", + "@angular-devkit/schematics": "13.3.9", + "@angular-eslint/builder": "13.5.0", + "@angular-eslint/eslint-plugin": "13.5.0", + "@angular-eslint/eslint-plugin-template": "13.5.0", + "@angular-eslint/schematics": "13.5.0", + "@angular-eslint/template-parser": "13.5.0", + "@angular/cli": "13.3.9", + "@angular/compiler": "13.3.11", + "@angular/compiler-cli": "13.3.11", + "@angular/language-service": "13.3.11", + "@capacitor/android": "4.6.1", + "@capacitor/cli": "4.6.1", + "@capacitor/ios": "4.6.1", + "@compodoc/compodoc": "1.1.19", + "@cypress/schematic": "1.7.0", + "@ionic/angular-toolkit": "6.1.0", + "@ionic/cli": "6.20.4", + "@openstapps/prettier-config": "1.0.0", + "@types/fontkit": "1.8.0", + "@types/glob": "7.2.0", + "@types/jasmine": "4.3.1", + "@types/jasminewd2": "2.0.10", + "@types/jsonpath": "0.2.0", + "@types/leaflet": "1.9.0", + "@types/leaflet.markercluster": "1.5.1", + "@types/node": "14.18.24", + "@typescript-eslint/eslint-plugin": "5.45.1", + "@typescript-eslint/parser": "5.45.1", + "conventional-changelog-cli": "2.2.2", + "cordova-res": "0.15.4", + "cypress": "12.0.1", + "eslint": "8.29.0", + "eslint-config-prettier": "8.5.0", + "eslint-plugin-jsdoc": "39.6.4", + "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-unicorn": "43.0.2", + "fontkit": "2.0.2", + "glob": "8.0.3", + "is-docker": "2.2.1", + "jasmine-core": "4.5.0", + "jasmine-spec-reporter": "7.0.0", + "jetifier": "2.0.0", + "karma": "6.4.1", + "karma-chrome-launcher": "3.1.1", + "karma-coverage-istanbul-reporter": "3.0.3", + "karma-jasmine": "5.1.0", + "karma-jasmine-html-reporter": "2.0.0", + "karma-mocha-reporter": "2.2.5", + "license-checker": "25.0.1", + "prettier": "2.7.1", + "protractor": "7.0.0", + "surge": "0.23.1", + "ts-node": "10.9.1", + "typescript": "4.4.4", + "webpack-bundle-analyzer": "4.7.0" + }, + "engines": { + "node": "^14.20.0", + "npm": "^6.14.17" + }, + "cordova": { + "plugins": {}, + "platforms": [ + "ios", + "browser", + "android" + ] + }, + "openstappsConfiguration": { + "forPackaging": false, + "hasCli": false, + "ignoreCiEntries": [ + "build", + "image", + "package", + "pages" + ], + "ignoreScripts": [ + "prepublishOnly", + "compile" + ], + "serverSide": false, + "standardBuild": false, + "standardDocumentation": false + } +} diff --git a/frontend/app/readme-resources/fill-axis.gif b/frontend/app/readme-resources/fill-axis.gif new file mode 100644 index 00000000..edfae654 Binary files /dev/null and b/frontend/app/readme-resources/fill-axis.gif differ diff --git a/frontend/app/resources/README.md b/frontend/app/resources/README.md new file mode 100644 index 00000000..46c696e2 --- /dev/null +++ b/frontend/app/resources/README.md @@ -0,0 +1,8 @@ +These are Cordova resources. You can replace icon.png and splash.png and run +`ionic cordova resources` to generate custom icons and splash screens for your +app. See `ionic cordova resources --help` for details. + +Cordova reference documentation: + +- Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html +- Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/ diff --git a/frontend/app/resources/android/icon-background.png b/frontend/app/resources/android/icon-background.png new file mode 100644 index 00000000..e2f36dc8 Binary files /dev/null and b/frontend/app/resources/android/icon-background.png differ diff --git a/frontend/app/resources/android/icon-foreground.png b/frontend/app/resources/android/icon-foreground.png new file mode 100644 index 00000000..d10470b1 Binary files /dev/null and b/frontend/app/resources/android/icon-foreground.png differ diff --git a/frontend/app/resources/icon.png b/frontend/app/resources/icon.png new file mode 100644 index 00000000..da59e2b7 Binary files /dev/null and b/frontend/app/resources/icon.png differ diff --git a/frontend/app/resources/splash.png b/frontend/app/resources/splash.png new file mode 100644 index 00000000..28d1d579 Binary files /dev/null and b/frontend/app/resources/splash.png differ diff --git a/frontend/app/scripts/accumulate-licenses.ts b/frontend/app/scripts/accumulate-licenses.ts new file mode 100644 index 00000000..2f796328 --- /dev/null +++ b/frontend/app/scripts/accumulate-licenses.ts @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import fs from 'fs'; +import {omit} from '../src/app/_helpers/collections/omit'; +import {pickBy} from '../src/app/_helpers/collections/pick'; + +/** + * accumulate and transform licenses based on two license files + */ +function accumulateFile(path: string, additionalLicensesPath: string) { + const packageJson = JSON.parse(fs.readFileSync('./package.json').toString()); + const dependencies = packageJson.dependencies; + + console.log(`Accumulating licenses from ${path}`); + + fs.writeFileSync( + path, + JSON.stringify( + // eslint-disable-next-line @typescript-eslint/no-explicit-any + Object.entries({ + ...pickBy(JSON.parse(fs.readFileSync(path).toString()), (_, key: string) => { + const parts = key.split('@'); + + return dependencies[parts.slice(0, -1).join('@')] === parts[parts.length - 1]; + }), + ...JSON.parse(fs.readFileSync(additionalLicensesPath).toString()), + }) + .map(([key, value]) => ({ + licenseText: value.licenseFile && fs.readFileSync(value.licenseFile, 'utf8'), + name: key, + ...omit(value, 'licenseFile', 'path'), + })) + .sort((a, b) => a.name.localeCompare(b.name)), + ), + ); +} + +accumulateFile('./src/assets/about/licenses.json', './additional-licenses.json'); diff --git a/frontend/app/scripts/check-icon-correctness.ts b/frontend/app/scripts/check-icon-correctness.ts new file mode 100644 index 00000000..5582c8e1 --- /dev/null +++ b/frontend/app/scripts/check-icon-correctness.ts @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import fontkit, {Font} from 'fontkit'; +import config from '../icons.config'; +import {existsSync} from 'fs'; +import {getUsedIconsHtml, getUsedIconsTS} from './gather-used-icons'; + +const commandName = '"npm run minify-icons"'; +const originalFont = fontkit.openSync(config.inputPath); +if (!existsSync(config.outputPath)) { + console.error(`Minified font not found. Run ${commandName} first.`); + process.exit(-1); +} +const modifiedFont = fontkit.openSync(config.outputPath); + +let success = true; + +checkAll().then(() => { + console.log(); + if (success) { + console.log('All icons are present in both fonts.'); + } else { + console.error('Errors occurred.'); + process.exit(-1); + } +}); + +/** + * + */ +async function checkAll() { + check(config.additionalIcons || {}); + check(await getUsedIconsTS(config.scriptGlob)); + check(await getUsedIconsHtml(config.htmlGlob)); +} + +/** + * + */ +function check(icons: Record) { + for (const [purpose, iconSet] of Object.entries(icons)) { + for (const icon of iconSet) { + if (!hasIcon(originalFont, icon)) { + success = false; + console.error(`${purpose}: ${icon} does not exist. Typo?`); + } else if (!hasIcon(modifiedFont, icon)) { + success = false; + console.error(`${purpose}: ${icon} not found in minified font. Run ${commandName} to regenerate it.`); + } + } + } +} + +/** + * + */ +function hasIcon(font: Font, icon: string) { + return font.layout(icon).glyphs.some(it => it.isLigature); +} diff --git a/frontend/app/scripts/gather-used-icons.ts b/frontend/app/scripts/gather-used-icons.ts new file mode 100644 index 00000000..5b1fc2ea --- /dev/null +++ b/frontend/app/scripts/gather-used-icons.ts @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import glob from 'glob'; +import {readFileSync} from 'fs'; +import {matchPropertyContent, matchTagProperties} from '../src/app/util/ion-icon/icon-match'; + +const globPromise = (pattern: string) => + new Promise((resolve, reject) => + glob(pattern, (error, files) => (error ? reject(error) : resolve(files))), + ); + +/** + * + */ +export async function getUsedIconsHtml(glob = 'src/**/*.html'): Promise> { + return Object.fromEntries( + (await globPromise(glob)) + .map(file => [ + file, + (readFileSync(file, 'utf8') + .match(matchTagProperties('ion-icon')) + ?.flatMap(match => { + return match.match(matchPropertyContent(['name', 'md', 'ios'])); + }) + .filter(it => !!it) as string[]) || [], + ]) + .filter(([, values]) => values.length > 0), + ); +} + +/** + * + */ +export async function getUsedIconsTS(glob = 'src/**/*.ts'): Promise> { + return Object.fromEntries( + (await globPromise(glob)) + .map(file => [file, readFileSync(file, 'utf8').match(/(?<=Icon`)[\w-]+(?=`)/g) || []]) + .filter(([, values]) => values.length > 0), + ); +} diff --git a/frontend/app/scripts/icon-config.ts b/frontend/app/scripts/icon-config.ts new file mode 100644 index 00000000..54e65d78 --- /dev/null +++ b/frontend/app/scripts/icon-config.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export interface IconConfig { + scriptGlob?: string; + htmlGlob?: string; + inputPath: string; + outputPath: string; + additionalIcons?: {[purpose: string]: string[]}; + codePoints?: {[name: string]: string}; +} diff --git a/frontend/app/scripts/minify-icon-font.ts b/frontend/app/scripts/minify-icon-font.ts new file mode 100644 index 00000000..9dfa8713 --- /dev/null +++ b/frontend/app/scripts/minify-icon-font.ts @@ -0,0 +1,131 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-non-null-assertion */ +import fontkit from 'fontkit'; +import {exec} from 'child_process'; +import config from '../icons.config'; +import {statSync} from 'fs'; +import {getUsedIconsHtml, getUsedIconsTS} from './gather-used-icons'; + +/** + * + */ +async function run(command: string[] | string): Promise { + const fullCommand = Array.isArray(command) ? command.join(' ') : command; + console.log(`>> ${fullCommand}`); + + return new Promise((resolve, reject) => { + exec(fullCommand, (error, stdout, stderr) => { + if (error) { + reject(error); + } else if (stderr) { + reject(stderr); + } else { + resolve(stdout.trim()); + } + }); + }); +} + +/** + * + */ +async function minifyIconFont() { + const icons = new Set(); + + for (const iconSet of [ + ...Object.values(config.additionalIcons || []), + ...Object.values(await getUsedIconsTS(config.scriptGlob)), + ...Object.values(await getUsedIconsHtml(config.htmlGlob)), + ]) { + for (const icon of iconSet) { + icons.add(icon); + } + } + + console.log('Icons used:', [...icons.values()].sort()); + const font = fontkit.openSync(config.inputPath); + + const glyphs: string[] = ['5f-7a', '30-39']; + for (const icon of icons) { + const iconGlyphs = font.layout(icon).glyphs; + if (iconGlyphs.length === 0) { + console.error(`${icon} not found in font. Typo?`); + process.exit(-1); + } + + const codePoints = iconGlyphs + .flatMap(it => font.stringsForGlyph(it.id)) + .flatMap(it => [...it]) + .map(it => it.codePointAt(0)!.toString(16)); + + if (codePoints.length === 0) { + if (config.codePoints?.[icon]) { + glyphs.push(config.codePoints[icon]); + } else { + console.log(); + console.error(`${icon} code point could not be determined. Add it to config.codePoints.`); + process.exit(-1); + } + } + + glyphs.push(...codePoints); + } + glyphs.sort(); + + const pythonPath = `"${await run('npm config get python')}"`; + console.log(`Using python from npm config ${pythonPath}`); + console.log(await run(`${pythonPath} --version`)); + console.log(await run([pythonPath, '-m', 'pip', 'install', 'fonttools[ufo,lxml,unicode,woff]'])); + + console.log( + await run([ + pythonPath, + '-m fontTools.subset', + `"${config.inputPath}"`, + `--unicodes=${glyphs.join(',')}`, + '--no-layout-closure', + `--output-file="${config.outputPath}"`, + '--flavor=woff2', + ]), + ); + + console.log(`${glyphs.length} Used Icons Total`); + console.log(`Minified font saved to ${config.outputPath}`); + const result = statSync(config.outputPath).size; + const before = statSync(config.inputPath).size; + + console.log( + `${toByteUnit(before)} > ${toByteUnit(result)} (${(((before - result) / before) * 100).toFixed( + 2, + )}% Reduction)`, + ); +} + +minifyIconFont(); + +/** + * Bytes to respective units + */ +function toByteUnit(value: number): string { + if (value < 1024) { + return `${value}B`; + } else if (value < 1024 * 1024) { + return `${(value / 1024).toFixed(2)}KB`; + } else { + return `${(value / 1024 / 1024).toFixed(2)}MB`; + } +} diff --git a/frontend/app/scripts/node_setup.sh b/frontend/app/scripts/node_setup.sh new file mode 100644 index 00000000..1c146e63 --- /dev/null +++ b/frontend/app/scripts/node_setup.sh @@ -0,0 +1,361 @@ +#!/bin/bash + +# Discussion, issues and change requests at: +# https://github.com/nodesource/distributions +# +# Script to install the NodeSource Node.js 14.x repo onto a +# Debian or Ubuntu system. +# +# Run as root or insert `sudo -E` before `bash`: +# +# curl -sL https://deb.nodesource.com/setup_14.x | bash - +# or +# wget -qO- https://deb.nodesource.com/setup_14.x | bash - +# +# CONTRIBUTIONS TO THIS SCRIPT +# +# This script is built from a template in +# https://github.com/nodesource/distributions/tree/master/deb/src +# please don't submit pull requests against the built scripts. +# + + +export DEBIAN_FRONTEND=noninteractive +SCRSUFFIX="_14.x" +NODENAME="Node.js 14.x" +NODEREPO="node_14.x" +NODEPKG="nodejs" + +print_status() { + echo + echo "## $1" + echo +} + +if test -t 1; then # if terminal + ncolors=$(which tput > /dev/null && tput colors) # supports color + if test -n "$ncolors" && test $ncolors -ge 8; then + termcols=$(tput cols) + bold="$(tput bold)" + underline="$(tput smul)" + standout="$(tput smso)" + normal="$(tput sgr0)" + black="$(tput setaf 0)" + red="$(tput setaf 1)" + green="$(tput setaf 2)" + yellow="$(tput setaf 3)" + blue="$(tput setaf 4)" + magenta="$(tput setaf 5)" + cyan="$(tput setaf 6)" + white="$(tput setaf 7)" + fi +fi + +print_bold() { + title="$1" + text="$2" + + echo + echo "${red}================================================================================${normal}" + echo "${red}================================================================================${normal}" + echo + echo -e " ${bold}${yellow}${title}${normal}" + echo + echo -en " ${text}" + echo + echo "${red}================================================================================${normal}" + echo "${red}================================================================================${normal}" +} + +bail() { + echo 'Error executing command, exiting' + exit 1 +} + +exec_cmd_nobail() { + echo "+ $1" + bash -c "$1" +} + +exec_cmd() { + exec_cmd_nobail "$1" || bail +} + +node_deprecation_warning() { + if [[ "X${NODENAME}" == "Xio.js 1.x" || + "X${NODENAME}" == "Xio.js 2.x" || + "X${NODENAME}" == "Xio.js 3.x" || + "X${NODENAME}" == "XNode.js 0.10" || + "X${NODENAME}" == "XNode.js 0.12" || + "X${NODENAME}" == "XNode.js 4.x LTS Argon" || + "X${NODENAME}" == "XNode.js 5.x" || + "X${NODENAME}" == "XNode.js 6.x LTS Boron" || + "X${NODENAME}" == "XNode.js 7.x" || + "X${NODENAME}" == "XNode.js 8.x LTS Carbon" || + "X${NODENAME}" == "XNode.js 9.x" || + "X${NODENAME}" == "XNode.js 10.x" || + "X${NODENAME}" == "XNode.js 11.x" || + "X${NODENAME}" == "XNode.js 13.x" || + "X${NODENAME}" == "XNode.js 15.x" ]]; then + + print_bold \ +" DEPRECATION WARNING " "\ +${bold}${NODENAME} is no longer actively supported!${normal} + + ${bold}You will not receive security or critical stability updates${normal} for this version. + + You should migrate to a supported version of Node.js as soon as possible. + Use the installation script that corresponds to the version of Node.js you + wish to install. e.g. + + * ${green}https://deb.nodesource.com/setup_12.x — Node.js 12 LTS \"Erbium\"${normal} + * ${green}https://deb.nodesource.com/setup_14.x — Node.js 14 LTS \"Fermium\"${normal} (recommended) + * ${green}https://deb.nodesource.com/setup_16.x — Node.js 16 \"Gallium\"${normal} + * ${green}https://deb.nodesource.com/setup_18.x — Node.js 18 \"Eighteen\"${normal} (current) + + Please see ${bold}https://github.com/nodejs/Release${normal} for details about which + version may be appropriate for you. + + The ${bold}NodeSource${normal} Node.js distributions repository contains + information both about supported versions of Node.js and supported Linux + distributions. To learn more about usage, see the repository: + ${bold}https://github.com/nodesource/distributions${normal} +" + echo + echo "Continuing in 20 seconds ..." + echo + sleep 20 + fi +} + +script_deprecation_warning() { + if [ "X${SCRSUFFIX}" == "X" ]; then + print_bold \ +" SCRIPT DEPRECATION WARNING " "\ +This script, located at ${bold}https://deb.nodesource.com/setup${normal}, used to + install Node.js 0.10, is deprecated and will eventually be made inactive. + + You should use the script that corresponds to the version of Node.js you + wish to install. e.g. + + * ${green}https://deb.nodesource.com/setup_12.x — Node.js 12 LTS \"Erbium\"${normal} + * ${green}https://deb.nodesource.com/setup_14.x — Node.js 14 LTS \"Fermium\"${normal} (recommended) + * ${green}https://deb.nodesource.com/setup_16.x — Node.js 16 \"Gallium\"${normal} + * ${green}https://deb.nodesource.com/setup_17.x — Node.js 18 \"Eighteen\"${normal} (current) + + Please see ${bold}https://github.com/nodejs/Release${normal} for details about which + version may be appropriate for you. + + The ${bold}NodeSource${normal} Node.js Linux distributions GitHub repository contains + information about which versions of Node.js and which Linux distributions + are supported and how to use the install scripts. + ${bold}https://github.com/nodesource/distributions${normal} +" + + echo + echo "Continuing in 20 seconds (press Ctrl-C to abort) ..." + echo + sleep 20 + fi +} + +setup() { + +script_deprecation_warning +node_deprecation_warning + +print_status "Installing the NodeSource ${NODENAME} repo..." + +if $(uname -m | grep -Eq ^armv6); then + print_status "You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from nodejs.org for Node.js 4 and later." + exit 1 +fi + +PRE_INSTALL_PKGS="" + +# Check that HTTPS transport is available to APT +# (Check snaked from: https://get.docker.io/ubuntu/) + +if [ ! -e /usr/lib/apt/methods/https ]; then + PRE_INSTALL_PKGS="${PRE_INSTALL_PKGS} apt-transport-https" +fi + +if [ ! -x /usr/bin/lsb_release ]; then + PRE_INSTALL_PKGS="${PRE_INSTALL_PKGS} lsb-release" +fi + +if [ ! -x /usr/bin/curl ] && [ ! -x /usr/bin/wget ]; then + PRE_INSTALL_PKGS="${PRE_INSTALL_PKGS} curl" +fi + +# Used by apt-key to add new keys + +if [ ! -x /usr/bin/gpg ]; then + PRE_INSTALL_PKGS="${PRE_INSTALL_PKGS} gnupg" +fi + +# Populating Cache +print_status "Populating apt-get cache..." +exec_cmd 'apt-get update' + +if [ "X${PRE_INSTALL_PKGS}" != "X" ]; then + print_status "Installing packages required for setup:${PRE_INSTALL_PKGS}..." + # This next command needs to be redirected to /dev/null or the script will bork + # in some environments + exec_cmd "apt-get install -y${PRE_INSTALL_PKGS} > /dev/null 2>&1" +fi + +IS_PRERELEASE=$(lsb_release -d | grep 'Ubuntu .*development' >& /dev/null; echo $?) +if [[ $IS_PRERELEASE -eq 0 ]]; then + print_status "Your distribution, identified as \"$(lsb_release -d -s)\", is a pre-release version of Ubuntu. NodeSource does not maintain official support for Ubuntu versions until they are formally released. You can try using the manual installation instructions available at https://github.com/nodesource/distributions and use the latest supported Ubuntu version name as the distribution identifier, although this is not guaranteed to work." + exit 1 +fi + +DISTRO=$(lsb_release -c -s) + +check_alt() { + if [ "X${DISTRO}" == "X${2}" ]; then + echo + echo "## You seem to be using ${1} version ${DISTRO}." + echo "## This maps to ${3} \"${4}\"... Adjusting for you..." + DISTRO="${4}" + fi +} + +check_alt "SolydXK" "solydxk-9" "Debian" "stretch" +check_alt "Kali" "sana" "Debian" "jessie" +check_alt "Kali" "kali-rolling" "Debian" "bullseye" +check_alt "Sparky Linux" "Tyche" "Debian" "stretch" +check_alt "Sparky Linux" "Nibiru" "Debian" "buster" +check_alt "Sparky Linux" "Po-Tolo" "Debian" "bullseye" +check_alt "MX Linux 17" "Horizon" "Debian" "stretch" +check_alt "MX Linux 18" "Continuum" "Debian" "stretch" +check_alt "MX Linux 19" "patito feo" "Debian" "buster" +check_alt "MX Linux 21" "wildflower" "Debian" "bullseye" +check_alt "Linux Mint" "maya" "Ubuntu" "precise" +check_alt "Linux Mint" "qiana" "Ubuntu" "trusty" +check_alt "Linux Mint" "rafaela" "Ubuntu" "trusty" +check_alt "Linux Mint" "rebecca" "Ubuntu" "trusty" +check_alt "Linux Mint" "rosa" "Ubuntu" "trusty" +check_alt "Linux Mint" "sarah" "Ubuntu" "xenial" +check_alt "Linux Mint" "serena" "Ubuntu" "xenial" +check_alt "Linux Mint" "sonya" "Ubuntu" "xenial" +check_alt "Linux Mint" "sylvia" "Ubuntu" "xenial" +check_alt "Linux Mint" "tara" "Ubuntu" "bionic" +check_alt "Linux Mint" "tessa" "Ubuntu" "bionic" +check_alt "Linux Mint" "tina" "Ubuntu" "bionic" +check_alt "Linux Mint" "tricia" "Ubuntu" "bionic" +check_alt "Linux Mint" "ulyana" "Ubuntu" "focal" +check_alt "Linux Mint" "ulyssa" "Ubuntu" "focal" +check_alt "Linux Mint" "uma" "Ubuntu" "focal" +check_alt "Linux Mint" "una" "Ubuntu" "focal" +check_alt "LMDE" "betsy" "Debian" "jessie" +check_alt "LMDE" "cindy" "Debian" "stretch" +check_alt "LMDE" "debbie" "Debian" "buster" +check_alt "LMDE" "elsie" "Debian" "bullseye" +check_alt "elementaryOS" "luna" "Ubuntu" "precise" +check_alt "elementaryOS" "freya" "Ubuntu" "trusty" +check_alt "elementaryOS" "loki" "Ubuntu" "xenial" +check_alt "elementaryOS" "juno" "Ubuntu" "bionic" +check_alt "elementaryOS" "hera" "Ubuntu" "bionic" +check_alt "elementaryOS" "odin" "Ubuntu" "focal" +check_alt "elementaryOS" "jolnir" "Ubuntu" "focal" +check_alt "Trisquel" "toutatis" "Ubuntu" "precise" +check_alt "Trisquel" "belenos" "Ubuntu" "trusty" +check_alt "Trisquel" "flidas" "Ubuntu" "xenial" +check_alt "Trisquel" "etiona" "Ubuntu" "bionic" +check_alt "Uruk GNU/Linux" "lugalbanda" "Ubuntu" "xenial" +check_alt "BOSS" "anokha" "Debian" "wheezy" +check_alt "BOSS" "anoop" "Debian" "jessie" +check_alt "BOSS" "drishti" "Debian" "stretch" +check_alt "BOSS" "unnati" "Debian" "buster" +check_alt "bunsenlabs" "bunsen-hydrogen" "Debian" "jessie" +check_alt "bunsenlabs" "helium" "Debian" "stretch" +check_alt "bunsenlabs" "lithium" "Debian" "buster" +check_alt "Tanglu" "chromodoris" "Debian" "jessie" +check_alt "PureOS" "green" "Debian" "sid" +check_alt "PureOS" "amber" "Debian" "buster" +check_alt "PureOS" "byzantium" "Debian" "bullseye" +check_alt "Devuan" "jessie" "Debian" "jessie" +check_alt "Devuan" "ascii" "Debian" "stretch" +check_alt "Devuan" "beowulf" "Debian" "buster" +check_alt "Devuan" "chimaera" "Debian" "bullseye" +check_alt "Devuan" "ceres" "Debian" "sid" +check_alt "Deepin" "panda" "Debian" "sid" +check_alt "Deepin" "unstable" "Debian" "sid" +check_alt "Deepin" "stable" "Debian" "buster" +check_alt "Pardus" "onyedi" "Debian" "stretch" +check_alt "Liquid Lemur" "lemur-3" "Debian" "stretch" +check_alt "Astra Linux" "orel" "Debian" "stretch" +check_alt "Ubilinux" "dolcetto" "Debian" "stretch" + +if [ "X${DISTRO}" == "Xdebian" ]; then + print_status "Unknown Debian-based distribution, checking /etc/debian_version..." + NEWDISTRO=$([ -e /etc/debian_version ] && cut -d/ -f1 < /etc/debian_version) + if [ "X${NEWDISTRO}" == "X" ]; then + print_status "Could not determine distribution from /etc/debian_version..." + else + DISTRO=$NEWDISTRO + print_status "Found \"${DISTRO}\" in /etc/debian_version..." + fi +fi + +print_status "Confirming \"${DISTRO}\" is supported..." + +if [ -x /usr/bin/curl ]; then + exec_cmd_nobail "curl -sLf -o /dev/null 'https://deb.nodesource.com/${NODEREPO}/dists/${DISTRO}/Release'" + RC=$? +else + exec_cmd_nobail "wget -qO /dev/null -o /dev/null 'https://deb.nodesource.com/${NODEREPO}/dists/${DISTRO}/Release'" + RC=$? +fi + +if [[ $RC != 0 ]]; then + print_status "Your distribution, identified as \"${DISTRO}\", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support" + exit 1 +fi + +if [ -f "/etc/apt/sources.list.d/chris-lea-node_js-$DISTRO.list" ]; then + print_status 'Removing Launchpad PPA Repository for NodeJS...' + + exec_cmd_nobail 'add-apt-repository -y -r ppa:chris-lea/node.js' + exec_cmd "rm -f /etc/apt/sources.list.d/chris-lea-node_js-${DISTRO}.list" +fi + +print_status 'Adding the NodeSource signing key to your keyring...' +keyring='/usr/share/keyrings' +node_key_url="https://deb.nodesource.com/gpgkey/nodesource.gpg.key" +local_node_key="$keyring/nodesource.gpg" + +if [ -x /usr/bin/curl ]; then + exec_cmd "curl -s $node_key_url | gpg --dearmor | tee $local_node_key >/dev/null" +else + exec_cmd "wget -q -O - $node_key_url | gpg --dearmor | tee $local_node_key >/dev/null" +fi + +print_status "Creating apt sources list file for the NodeSource ${NODENAME} repo..." + +exec_cmd "echo 'deb [signed-by=$local_node_key] https://deb.nodesource.com/${NODEREPO} ${DISTRO} main' > /etc/apt/sources.list.d/nodesource.list" +exec_cmd "echo 'deb-src [signed-by=$local_node_key] https://deb.nodesource.com/${NODEREPO} ${DISTRO} main' >> /etc/apt/sources.list.d/nodesource.list" + +print_status 'Running `apt-get update` for you...' + +exec_cmd 'apt-get update' + +yarn_site='https://dl.yarnpkg.com/debian' +yarn_key_url="$yarn_site/pubkey.gpg" +local_yarn_key="$keyring/yarnkey.gpg" + +print_status """Run \`${bold}sudo apt-get install -y ${NODEPKG}${normal}\` to install ${NODENAME} and npm +## You may also need development tools to build native addons: + sudo apt-get install gcc g++ make +## To install the Yarn package manager, run: + curl -sL $yarn_key_url | gpg --dearmor | sudo tee $local_yarn_key >/dev/null + echo \"deb [signed-by=$local_yarn_key] $yarn_site stable main\" | sudo tee /etc/apt/sources.list.d/yarn.list + sudo apt-get update && sudo apt-get install yarn +""" + +} + +## Defer setup until we have the complete script +setup diff --git a/frontend/app/scripts/tsconfig.json b/frontend/app/scripts/tsconfig.json new file mode 100644 index 00000000..7ddea8e9 --- /dev/null +++ b/frontend/app/scripts/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../node_modules/@openstapps/configuration/tsconfig.json", + "compilerOptions": { + "lib": ["es2019"] + } +} diff --git a/frontend/app/src/app/_helpers/collections/chunk.spec.ts b/frontend/app/src/app/_helpers/collections/chunk.spec.ts new file mode 100644 index 00000000..4c53d402 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/chunk.spec.ts @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {chunk} from './chunk'; + +describe('chunk', function () { + it('should chunk items in the correct sizes', function () { + expect(chunk([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 3)).toEqual([[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/chunk.ts b/frontend/app/src/app/_helpers/collections/chunk.ts new file mode 100644 index 00000000..99f824fe --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/chunk.ts @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Chunk array into smaller arrays of a specified size. + * + * @param array The array to chunk. + * @param chunkSize The size of each chunk. + */ +export function chunk(array: T[], chunkSize = 1): T[][] { + const arrayCopy = [...array]; + const out: T[][] = []; + if (chunkSize <= 0) return out; + while (arrayCopy.length > 0) out.push(arrayCopy.splice(0, chunkSize)); + return out; +} diff --git a/frontend/app/src/app/_helpers/collections/difference.spec.ts b/frontend/app/src/app/_helpers/collections/difference.spec.ts new file mode 100644 index 00000000..ea9fab3d --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/difference.spec.ts @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {differenceBy} from './difference'; + +describe('differenceBy', function () { + it('should return the difference of two arrays', function () { + const a = [1, 2, 3, 4, 5]; + const b = [1, 2, 3]; + + expect(differenceBy(a, b, it => it)).toEqual([4, 5]); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/difference.ts b/frontend/app/src/app/_helpers/collections/difference.ts new file mode 100644 index 00000000..62839057 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/difference.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Returns the difference between two arrays. + */ +export function differenceBy(a: T[], b: T[], transform: (item: T) => unknown) { + const disallowed = new Set(b.map(transform)); + + return a.filter(item => !disallowed.has(transform(item))); +} diff --git a/frontend/app/src/app/_helpers/collections/get.spec.ts b/frontend/app/src/app/_helpers/collections/get.spec.ts new file mode 100644 index 00000000..5682f2c5 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/get.spec.ts @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {get} from './get'; + +describe('get', function () { + it('should get a simple path', function () { + const object = { + a: { + b: { + c: 'd', + }, + }, + }; + expect(get(object, 'a.b.c')).toBe('d'); + }); + + it('should return undefined for a non-existent path', function () { + const object = { + a: { + b: { + c: 'd', + }, + }, + }; + expect(get(object, 'a.b.c.d')).toBeUndefined(); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/get.ts b/frontend/app/src/app/_helpers/collections/get.ts new file mode 100644 index 00000000..78f20749 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/get.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Gets a value from a nested object. + * The path must be key names separated by dots. + * If the path doesn't exist, undefined is returned. + */ +export function get(object: object, path: string): U { + return path.split('.').reduce( + (accumulator, current) => + accumulator?.hasOwnProperty(current) + ? // eslint-disable-next-line @typescript-eslint/no-explicit-any + (accumulator as any)[current] + : undefined, + object, + ) as unknown as U; +} diff --git a/frontend/app/src/app/_helpers/collections/group-by.spec.ts b/frontend/app/src/app/_helpers/collections/group-by.spec.ts new file mode 100644 index 00000000..5d165257 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/group-by.spec.ts @@ -0,0 +1,123 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {groupBy, groupByStable, groupByProperty} from './group-by'; + +describe('groupBy', () => { + it('should group an array by a key', () => { + const array = [ + {id: 1, name: 'one'}, + {id: 2, name: 'two'}, + {id: 3, name: 'three'}, + {id: 4, name: 'four'}, + {id: 5, name: 'five'}, + ]; + + const result = groupBy(array, it => it.name); + + expect(result).toEqual({ + one: [{id: 1, name: 'one'}], + two: [{id: 2, name: 'two'}], + three: [{id: 3, name: 'three'}], + four: [{id: 4, name: 'four'}], + five: [{id: 5, name: 'five'}], + }); + }); + + it('should handle multiple elements per group', () => { + const array = [ + {id: 1, name: 'one'}, + {id: 2, name: 'two'}, + {id: 3, name: 'three'}, + {id: 4, name: 'four'}, + {id: 5, name: 'five'}, + {id: 6, name: 'one'}, + {id: 7, name: 'two'}, + {id: 8, name: 'three'}, + {id: 9, name: 'four'}, + {id: 10, name: 'five'}, + ]; + + const result = groupBy(array, it => it.name); + + expect(result).toEqual({ + one: [ + {id: 1, name: 'one'}, + {id: 6, name: 'one'}, + ], + two: [ + {id: 2, name: 'two'}, + {id: 7, name: 'two'}, + ], + three: [ + {id: 3, name: 'three'}, + {id: 8, name: 'three'}, + ], + four: [ + {id: 4, name: 'four'}, + {id: 9, name: 'four'}, + ], + five: [ + {id: 5, name: 'five'}, + {id: 10, name: 'five'}, + ], + }); + }); +}); + +describe('groupByStable', () => { + const array = [ + {id: 2, name: 'two'}, + {id: 4, name: 'three'}, + {id: 3, name: 'three'}, + {id: 1, name: 'one'}, + ]; + const result = groupByStable(array, it => it.name); + + it('should group an array by keys', () => { + expect(result.get('one')).toEqual([{id: 1, name: 'one'}]); + expect(result.get('two')).toEqual([{id: 2, name: 'two'}]); + expect(result.get('three')).toEqual([ + {id: 4, name: 'three'}, + {id: 3, name: 'three'}, + ]); + }); + + it('should provide ordered keys', () => { + expect([...result.keys()]).toEqual(['two', 'three', 'one']); + }); +}); + +describe('groupByProperty', function () { + it('should group by property', () => { + const array = [ + {id: 1, name: 'one'}, + {id: 2, name: 'two'}, + {id: 3, name: 'three'}, + {id: 4, name: 'four'}, + {id: 5, name: 'five'}, + ]; + + const result = groupByProperty(array, 'name'); + + expect(result).toEqual({ + one: [{id: 1, name: 'one'}], + two: [{id: 2, name: 'two'}], + three: [{id: 3, name: 'three'}], + four: [{id: 4, name: 'four'}], + five: [{id: 5, name: 'five'}], + }); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/group-by.ts b/frontend/app/src/app/_helpers/collections/group-by.ts new file mode 100644 index 00000000..6723f7db --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/group-by.ts @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Group an array by a function + */ +export function groupBy(collection: T[], group: (item: T) => string | undefined): Record { + return collection.reduce((accumulator: Record, item) => { + const key = group(item) ?? ''; + accumulator[key] = accumulator[key] ?? []; + accumulator[key].push(item); + return accumulator; + }, {}); +} + +/** + * Group an array by a function (returns a Map, whose keys keep order info of items entry) + */ +export function groupByStable(collection: T[], group: (item: T) => string | undefined): Map { + return collection.reduce((accumulator: Map, item) => { + const key = group(item) ?? ''; + accumulator.set(key, accumulator.get(key) ?? []); + accumulator.get(key)?.push(item); + return accumulator; + }, new Map()); +} + +/** + * + */ +export function groupByProperty(collection: T[], property: keyof T): Record { + return groupBy(collection, item => item[property] as unknown as string); +} diff --git a/frontend/app/src/app/_helpers/collections/key-by.spec.ts b/frontend/app/src/app/_helpers/collections/key-by.spec.ts new file mode 100644 index 00000000..104ce6dc --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/key-by.spec.ts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {keyBy} from './key-by'; + +describe('keyBy', function () { + it('should key objects', function () { + const objects = [ + { + id: 1, + name: 'foo', + }, + { + id: 2, + name: 'bar', + }, + ]; + const result = keyBy(objects, it => it.id); + expect(result).toEqual({ + 1: { + id: 1, + name: 'foo', + }, + 2: { + id: 2, + name: 'bar', + }, + }); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/key-by.ts b/frontend/app/src/app/_helpers/collections/key-by.ts new file mode 100644 index 00000000..e7f3a544 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/key-by.ts @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Create an object composed of keys generated from the results of running + * each element of collection thru iteratee. The corresponding value of + * each key is the last element responsible for generating the key. The + * iteratee is invoked with one argument: (value). + */ +export function keyBy(collection: T[], key: (item: T) => string | number): Record { + return collection.reduce((accumulator, item) => { + accumulator[key(item)] = item; + return accumulator; + }, {} as Record); +} diff --git a/frontend/app/src/app/_helpers/collections/map-values.spec.ts b/frontend/app/src/app/_helpers/collections/map-values.spec.ts new file mode 100644 index 00000000..1a8a7fe7 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/map-values.spec.ts @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {mapValues} from './map-values'; + +describe('map-values', () => { + it('should map values', () => { + const object = { + a: 1, + b: 2, + c: 3, + }; + + const result = mapValues(object, value => value * 2); + + expect(result).toEqual({ + a: 2, + b: 4, + c: 6, + }); + }); + + it('should not modify the original object', () => { + const object = { + a: 1, + b: 2, + c: 3, + }; + + mapValues(object, value => value * 2); + + expect(object).toEqual({ + a: 1, + b: 2, + c: 3, + }); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/map-values.ts b/frontend/app/src/app/_helpers/collections/map-values.ts new file mode 100644 index 00000000..3b36d107 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/map-values.ts @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Maps the values of an object to a new object + */ +export function mapValues( + object: T, + transform: (value: T[keyof T], key: keyof T) => U, +): {[key in keyof T]: U} { + const result = {} as {[key in keyof T]: U}; + + for (const key in object) { + if (object.hasOwnProperty(key)) { + result[key] = transform(object[key], key); + } + } + + return result; +} diff --git a/frontend/app/src/app/_helpers/collections/min.spec.ts b/frontend/app/src/app/_helpers/collections/min.spec.ts new file mode 100644 index 00000000..c88cda33 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/min.spec.ts @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {minBy} from './min'; + +describe('minBy', function () { + it('should pick the minimum value based on transform', function () { + expect( + minBy( + [ + {id: 1, name: 'A'}, + {id: 2, name: 'B'}, + {id: 3, name: 'C'}, + ], + it => it.id, + ), + ).toEqual({id: 1, name: 'A'}); + }); + + it('should not return undefined if there are other choices', function () { + expect( + minBy( + [ + {id: undefined, name: 'B'}, + {id: 1, name: 'A'}, + {id: undefined, name: 'C'}, + ], + it => it.id, + ), + ).toEqual({id: 1, name: 'A'}); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/min.ts b/frontend/app/src/app/_helpers/collections/min.ts new file mode 100644 index 00000000..2a99e971 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/min.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Returns the minimum value of a collection. + */ +export function minBy(array: T[], transform: (item: T) => number | undefined): T { + const transforms = array.map(transform); + const min = Math.min(...(transforms.filter(it => !!it) as number[])); + return array.find((_, i) => transforms[i] === min) as T; +} diff --git a/frontend/app/src/app/_helpers/collections/omit.spec.ts b/frontend/app/src/app/_helpers/collections/omit.spec.ts new file mode 100644 index 00000000..7c7adfd7 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/omit.spec.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {omit} from './omit'; + +describe('omit', function () { + it('should omit keys', function () { + const object = {a: 1, b: 2, c: 3}; + const result = omit(object, 'a', 'c'); + expect(result).toEqual({b: 2}); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/omit.ts b/frontend/app/src/app/_helpers/collections/omit.ts new file mode 100644 index 00000000..dd15b66f --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/omit.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Returns a new object without the specified keys. + */ +export function omit(object: T, ...keys: U[]): Omit { + const out = {...object}; + for (const key of keys) delete out[key]; + return out as Exclude; +} diff --git a/frontend/app/src/app/_helpers/collections/partition.spec.ts b/frontend/app/src/app/_helpers/collections/partition.spec.ts new file mode 100644 index 00000000..c64b568a --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/partition.spec.ts @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {partition} from './partition'; + +describe('partition', function () { + it('should partition an array', function () { + expect(partition([1, 2, 3, 4], it => it % 2 === 0)).toEqual([ + [2, 4], + [1, 3], + ]); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/partition.ts b/frontend/app/src/app/_helpers/collections/partition.ts new file mode 100644 index 00000000..27ccfb62 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/partition.ts @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Partitions a list into two lists. One with the elements that satisfy a predicate, + * and one with the elements that don't satisfy the predicate. + */ +export function partition(array: T[], transform: (item: T) => boolean): [T[], T[]] { + return array.reduce<[T[], T[]]>( + (accumulator, item) => { + accumulator[transform(item) ? 0 : 1].push(item); + return accumulator; + }, + [[], []], + ); +} diff --git a/frontend/app/src/app/_helpers/collections/pick.spec.ts b/frontend/app/src/app/_helpers/collections/pick.spec.ts new file mode 100644 index 00000000..6db203eb --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/pick.spec.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {pick} from './pick'; + +describe('pick', function () { + it('should pick properties', function () { + const object = {a: 1, b: 2, c: 3}; + const result = pick(object, ['a', 'c']); + expect(result).toEqual({a: 1, c: 3}); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/pick.ts b/frontend/app/src/app/_helpers/collections/pick.ts new file mode 100644 index 00000000..9405a37b --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/pick.ts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Pick a set of properties from an object + */ +export function pick(object: T, keys: U[]): Pick { + return keys.reduce((accumulator, key) => { + if (object.hasOwnProperty(key)) { + accumulator[key] = object[key]; + } + return accumulator; + }, {} as Pick); +} + +/** + * Pick a set of properties from an object using a predicate function + */ +export function pickBy( + object: T, + predicate: (value: T[U], key: U) => boolean, +): Pick { + return (Object.keys(object) as U[]).reduce((accumulator, key) => { + if (predicate(object[key], key)) { + accumulator[key] = object[key]; + } + return accumulator; + }, {} as Pick); +} diff --git a/frontend/app/src/app/_helpers/collections/shuffle.spec.ts b/frontend/app/src/app/_helpers/collections/shuffle.spec.ts new file mode 100644 index 00000000..d2e8d0c3 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/shuffle.spec.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {shuffle} from './shuffle'; + +describe('shuffle', function () { + it('should shuffle an array', function () { + const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; + const shuffled = shuffle(array); + expect(shuffled).not.toEqual(array); + expect(shuffled).toEqual(jasmine.arrayContaining(array)); + }); + + it('should not modify the original array', function () { + const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; + shuffle(array); + expect(array).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/shuffle.ts b/frontend/app/src/app/_helpers/collections/shuffle.ts new file mode 100644 index 00000000..1c053c85 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/shuffle.ts @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Shuffles an array + */ +export function shuffle(array: T[]): T[] { + const copy = [...array]; + const out = []; + + while (copy.length > 0) { + out.push(copy.splice(Math.floor(Math.random() * copy.length), 1)[0]); + } + + return out; +} diff --git a/frontend/app/src/app/_helpers/collections/string-sort.spec.ts b/frontend/app/src/app/_helpers/collections/string-sort.spec.ts new file mode 100644 index 00000000..d20744a4 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/string-sort.spec.ts @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {stringSort, stringSortBy} from './string-sort'; + +describe('stringSort', () => { + it('should sort an array of strings', () => { + expect(['a', 'c', 'b', 'd'].sort(stringSort)).toEqual(['a', 'b', 'c', 'd']); + }); +}); + +describe('stringSortBy', () => { + it('should sort an array of strings', () => { + expect([{item: 'a'}, {item: 'c'}, {item: 'b'}, {item: 'd'}].sort(stringSortBy(it => it.item))).toEqual([ + {item: 'a'}, + {item: 'b'}, + {item: 'c'}, + {item: 'd'}, + ]); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/string-sort.ts b/frontend/app/src/app/_helpers/collections/string-sort.ts new file mode 100644 index 00000000..b7a2b24d --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/string-sort.ts @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * sort function for two strings + */ +export function stringSort(a = '', b = ''): number { + if (a < b) return -1; + if (a > b) return 1; + return 0; +} + +/** + * sort function for two strings that allows for a custom transform + */ +export function stringSortBy(map: (item: T) => string | undefined): (a: T, b: T) => number { + return (a: T, b: T): number => { + const aValue = map(a) || ''; + const bValue = map(b) || ''; + if (aValue < bValue) return -1; + if (aValue > bValue) return 1; + return 0; + }; +} diff --git a/frontend/app/src/app/_helpers/collections/sum.spec.ts b/frontend/app/src/app/_helpers/collections/sum.spec.ts new file mode 100644 index 00000000..0b1b43d7 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/sum.spec.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {sum, sumBy} from './sum'; + +describe('sum', () => { + it('should return the sum of all elements in the collection', () => { + const collection = [1, 2, 3, 4, 5]; + const result = sum(collection); + expect(result).toBe(15); + }); +}); + +describe('sumBy', function () { + it('should return the sum of all elements in the collection', () => { + const collection = [{a: 1}, {a: 2}, {a: 3}, {a: 4}, {a: 5}]; + const result = sumBy(collection, it => it.a); + expect(result).toBe(15); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/sum.ts b/frontend/app/src/app/_helpers/collections/sum.ts new file mode 100644 index 00000000..a92a796c --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/sum.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Sum an an array + */ +export function sumBy( + collection: T[], + transform: (value: T) => number | undefined, +): number { + return collection.reduce((accumulator, item) => accumulator + (transform(item) || 0), 0); +} + +/** + * Sum an array of numbers + */ +export function sum(collection: Array): number { + return collection.reduce((accumulator, item) => accumulator + (item || 0), 0); +} diff --git a/frontend/app/src/app/_helpers/collections/tree-group.spec.ts b/frontend/app/src/app/_helpers/collections/tree-group.spec.ts new file mode 100644 index 00000000..31f762ba --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/tree-group.spec.ts @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Tree, treeGroupBy} from './tree-group'; + +interface TestItem { + id: number; + path?: string[]; +} + +describe('tree-group', function () { + it('should create a tree', function () { + const items: Array = [ + { + id: 1, + path: ['a', 'b', 'c'], + }, + { + id: 2, + path: ['a', 'b', 'd'], + }, + ]; + + const tree = treeGroupBy(items, item => item.path ?? []); + + const expectedTree: Tree = { + a: { + b: { + c: {_: [items[0]]}, + d: {_: [items[1]]}, + } as Tree, + } as Tree, + } as Tree; + + expect(tree).toEqual(expectedTree); + }); + + it('should also sort empty paths', () => { + const items: Array = [ + { + id: 1, + path: ['a', 'b', 'c'], + }, + { + id: 2, + }, + ]; + + const tree = treeGroupBy(items, item => item.path ?? []); + + const expectedTree: Tree = { + a: { + b: { + c: {_: [items[0]]}, + } as Tree, + } as Tree, + _: [items[1]], + } as Tree; + + expect(tree).toEqual(expectedTree); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/tree-group.ts b/frontend/app/src/app/_helpers/collections/tree-group.ts new file mode 100644 index 00000000..295bf193 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/tree-group.ts @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export type Tree = { + [key: string]: Tree; +} & { + _?: T[] | undefined; +}; + +/** + * + */ +export function treeGroupBy(items: T[], transform: (item: T) => string[]): Tree { + const tree: Tree = {}; + + for (const item of items) { + let currentTree = tree; + const keys = transform(item); + if (keys.length === 0) { + currentTree._ = currentTree._ || []; + currentTree._.push(item); + } + for (const [i, key] of keys.entries()) { + currentTree = currentTree[key] = (currentTree[key] ?? {}) as Tree; + if (i === keys.length - 1) { + currentTree._ = currentTree._ ?? []; + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + currentTree._.push(item); + } + } + } + + return tree; +} diff --git a/frontend/app/src/app/_helpers/collections/uniq.spec.ts b/frontend/app/src/app/_helpers/collections/uniq.spec.ts new file mode 100644 index 00000000..37cf55be --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/uniq.spec.ts @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {uniqBy} from './uniq'; + +describe('uniq', function () { + it('should return an array with unique values', function () { + const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; + const result = uniqBy(array, it => it); + expect(result).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/uniq.ts b/frontend/app/src/app/_helpers/collections/uniq.ts new file mode 100644 index 00000000..933c07e7 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/uniq.ts @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Filter out duplicates from an array. + */ +export function uniqBy(array: T[], transform: (item: T) => string | number): T[] { + return Object.values( + array.reduce((accumulator, current) => { + accumulator[transform(current)] = current; + return accumulator; + }, {} as Record), + ); +} diff --git a/frontend/app/src/app/_helpers/collections/zip.spec.ts b/frontend/app/src/app/_helpers/collections/zip.spec.ts new file mode 100644 index 00000000..35f7c6bc --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/zip.spec.ts @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {zip} from './zip'; + +describe('zip', function () { + it('should zip arrays together', function () { + expect(zip([1, 2, 3], [4, 5, 6])).toEqual([ + [1, 4], + [2, 5], + [3, 6], + ]); + }); +}); diff --git a/frontend/app/src/app/_helpers/collections/zip.ts b/frontend/app/src/app/_helpers/collections/zip.ts new file mode 100644 index 00000000..f17e89f1 --- /dev/null +++ b/frontend/app/src/app/_helpers/collections/zip.ts @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Zip two arrays together. + */ +export function zip(a: T[], b: U[]): [T, U][] { + return a.map((_, i) => [a[i], b[i]]); +} diff --git a/frontend/app/src/app/_helpers/data/filters.ts b/frontend/app/src/app/_helpers/data/filters.ts new file mode 100644 index 00000000..bd02eb88 --- /dev/null +++ b/frontend/app/src/app/_helpers/data/filters.ts @@ -0,0 +1,178 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {SCSearchBooleanFilter, SCSearchFilter, SCSearchValueFilter, SCThing} from '@openstapps/core'; +import {logger} from '../ts-logger'; + +/** + * Checks if any filter applies to an SCThing + */ +export function checkFilter(thing: SCThing, filter: SCSearchFilter): boolean { + switch (filter.type) { + case 'availability' /*TODO*/: + break; + case 'boolean': + return applyBooleanFilter(thing, filter); + case 'distance' /*TODO*/: + break; + case 'value': + return applyValueFilter(thing, filter); + } + + void logger.error(`Not implemented filter method "${filter.type}" in fake backend!`); + + return false; +} + +/** + * Checks if a value filter applies to an SCThing + */ +function applyValueFilter(thing: SCThing, filter: SCSearchValueFilter): boolean { + const path = filter.arguments.field.split('.'); + const thingFieldValue = traverseToFieldPath(thing, path, filter.arguments.value); + + if (!thingFieldValue.found) { + return false; + } + + return thingFieldValue.result; +} + +/** + * Object that can be accessed using foo[bar] + */ +interface IndexableObject { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + [key: string]: any; +} + +/** + * Result of a search for a field and comparison to a desired value + */ +type FieldSearchResult = + | { + /** + * Weather the field was found + */ + found: true; + + /** + * The result of the comparison + */ + result: boolean; + } + | { + /** + * Weather the field was found + */ + found: false; + }; + +/** + * TODO + */ +function traverseToFieldPath( + value: IndexableObject, + path: string[], + desiredFieldValue: unknown, +): FieldSearchResult { + if (path.length === 0) { + void logger.error(`Value filter provided with zero length path`); + + return {found: false}; + } + + if (value.hasOwnProperty(path[0])) { + const nestedProperty = value[path[0]]; + + if (path.length === 1) { + return esStyleFieldHandler(nestedProperty, nestedValue => { + return { + found: true, + result: nestedValue === desiredFieldValue, + }; + }); + } + + return esStyleFieldHandler(nestedProperty, nestedValue => { + if (typeof nestedValue === 'object') { + return traverseToFieldPath( + nestedValue as IndexableObject, + // eslint-disable-next-line no-magic-numbers + path.slice(1), + desiredFieldValue, + ); + } + + return {found: false}; + }); + } + + return {found: false}; +} + +/** + * ES treats arrays like normal fields + */ +function esStyleFieldHandler(field: T | T[], handler: (value: T) => FieldSearchResult): FieldSearchResult { + if (Array.isArray(field)) { + for (const nestedField of field) { + const result = handler(nestedField); + + if (result.found && result.result) { + return result; + } + } + + // TODO: found is not accurate + return {found: false}; + } + + return handler(field); +} + +/** + * Checks if a boolean filter applies to an SCThing + */ +function applyBooleanFilter(thing: SCThing, filter: SCSearchBooleanFilter): boolean { + let out = false; + + switch (filter.arguments.operation) { + case 'and': + out = true; + for (const nesterFilter of filter.arguments.filters) { + out = out && checkFilter(thing, nesterFilter); + } + + return out; + case 'or': + for (const nesterFilter of filter.arguments.filters) { + out = out || checkFilter(thing, nesterFilter); + } + + return out; + case 'not': + if (filter.arguments.filters.length === 1) { + return !checkFilter(thing, filter.arguments.filters[0]); + } + void logger.error(`Too many filters for "not" boolean operation`); + + return false; + } + + void logger.error(`Not implemented boolean filter "${filter.arguments.operation}"`); + + return false; +} diff --git a/frontend/app/src/app/_helpers/data/resources/test-resources.ts b/frontend/app/src/app/_helpers/data/resources/test-resources.ts new file mode 100644 index 00000000..ca5abada --- /dev/null +++ b/frontend/app/src/app/_helpers/data/resources/test-resources.ts @@ -0,0 +1,13124 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +/* eslint-disable */ + +import moment from 'moment'; + +export const sampleResources = [ + { + errorNames: [], + instance: { + type: 'academic event', + description: 'Fortsetzung der Algebra I: Galoistheorie mit Anwendungen, ausgewählte Spezialthemen.', + uid: '681a59a1-23c2-5d78-861a-8c86a3abf2b9', + name: 'Algebra II', + categories: ['lecture'], + academicTerms: [ + { + uid: 'aacd5611-b5be-54ce-b39f-c52f7e9a631d', + type: 'semester', + name: 'Sommersemester 2018', + acronym: 'SS 2018', + alternateNames: ['SoSe 2018'], + startDate: '2018-04-01', + endDate: '2018-09-30', + eventsStartDate: '2018-04-09', + eventsEndDate: '2018-07-13', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + performers: [ + { + type: 'person', + uid: '7f8ce700-2679-51a5-86b5-3dfba85a33ff', + givenName: 'Peter', + familyName: 'Bürgisser', + gender: 'male', + honorificPrefix: 'Prof. Dr.', + name: 'Peter Bürgisser', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + majors: [ + 'Mathematik D', + 'Mathematik L2', + 'Mathematik StRGym', + 'Mathematik StRBeruf', + 'Mathematik BSc', + 'Mathematik MSc', + ], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + maintainer: { + type: 'organization', + name: 'tubIT', + uid: '25f76840-db89-5da2-a8a2-75992f637613', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + modified: '2018-09-01T10:00:00Z', + originalId: 'foo bar', + responsibleEntity: { + type: 'person', + uid: '7f8ce700-2679-51a5-86b5-3dfba85a33ff', + givenName: 'Peter', + familyName: 'Bürgisser', + gender: 'male', + honorificPrefix: 'Prof. Dr.', + name: 'Peter Bürgisser', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + }, + schema: 'SCAcademicEvent', + }, + { + errorNames: [], + instance: { + type: 'academic event', + description: + 'Grundlagen, algebraische Grundbegriffe, Vektorräume, lineare Abbildungen und Gleichungen, Determinanten', + uid: 'b17eb963-42b5-5861-adce-2b7b2607ef0a', + name: 'Lineare Algebra I für Mathematiker', + categories: ['lecture'], + academicTerms: [ + { + uid: 'aacd5611-b5be-54ce-b39f-c52f7e9a631d', + type: 'semester', + name: 'Sommersemester 2018', + acronym: 'SS 2018', + alternateNames: ['SoSe 2018'], + startDate: '2018-04-01', + endDate: '2018-09-30', + eventsStartDate: '2018-04-09', + eventsEndDate: '2018-07-13', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + performers: [ + { + type: 'person', + uid: 'fc8b10cf-10c0-5b92-b16e-92ff734676da', + givenName: 'Jörg', + familyName: 'Liesen', + gender: 'male', + honorificPrefix: 'Prof. Dr.', + name: 'Jörg Liesen', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + catalogs: [ + { + uid: '5a1f4f51-2498-5af1-91cb-c939673cc69c', + type: 'catalog', + level: 3, + description: + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.', + categories: ['university events'], + name: 'Mathematik: Lehrveranstaltungen für andere Fachrichtungen (Service)', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + majors: ['Wirtschaftsmathematik BSc', 'Technomathematik BSc', 'Mathematik BSc'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCAcademicEvent', + }, + { + errorNames: [], + instance: { + type: 'academic event', + description: 'Die Übung hat 2 SWS und wird auf 2 Gruppen verteilt.', + uid: '7e2b64b0-925d-5f63-b464-a6e3e9492411', + name: 'Algebra II', + categories: ['tutorial'], + academicTerms: [ + { + uid: 'aacd5611-b5be-54ce-b39f-c52f7e9a631d', + type: 'semester', + name: 'Sommersemester 2018', + acronym: 'SS 2018', + alternateNames: ['SoSe 2018'], + startDate: '2018-04-01', + endDate: '2018-09-30', + eventsStartDate: '2018-04-09', + eventsEndDate: '2018-07-13', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + performers: [ + { + type: 'person', + uid: '97be73c0-5319-579a-a393-c4eeeacae58b', + givenName: 'Paul', + familyName: 'Breiding', + gender: 'male', + name: 'Paul Breiding', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + { + type: 'person', + uid: '0db9b55a-4c27-5faf-9bf0-4b564be45a08', + givenName: 'Pierre', + familyName: 'Lairez', + gender: 'male', + name: 'Pierre Lairez', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + catalogs: [ + { + uid: '6c259ad8-99af-5ea2-8aae-a3c9027d26e2', + type: 'catalog', + level: 3, + categories: ['university events'], + name: 'Mathematik: Grundstudiums-Veranstaltungen (Diplom, Bachelor)', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + { + uid: '5a1f4f51-2498-5af1-91cb-c939673cc69c', + type: 'catalog', + level: 3, + description: + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.', + categories: ['university events'], + name: 'Mathematik: Lehrveranstaltungen für andere Fachrichtungen (Service)', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + majors: [ + 'Mathematik D', + 'Mathematik L2', + 'Mathematik StRGym', + 'Mathematik StRBeruf', + 'Mathematik BSc', + 'Mathematik MSc', + ], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCAcademicEvent', + }, + { + errorNames: [], + instance: { + uid: '8d8bd89c-8429-5f81-b754-15a5be55e593', + type: 'article', + categories: ['unipedia'], + url: 'https://www.mydesk.tu-berlin.de/wiki/abk%C3%BCrzungen', + name: 'Abkürzungen', + keywords: ['Abkürzungen', 'Studium'], + articleBody: + 'Siehe [c.t.](#/b-tu/data/detail/Article/tub-unipedia-384edcfd026dab697ff9f8adda0d19a6959d4e29) (lat. cum tempore)\n\n### S\n\n**SWS** ist eine Semesterwochenstunde. Ein SWS beträgt 45 MInuten.', + translations: { + en: { + name: 'Abbreviations', + keywords: ['Abbreviations', 'Studies'], + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCArticle', + }, + { + errorNames: [], + instance: { + uid: '4f772b29-0b28-53a4-a8b9-206d9b425962', + type: 'article', + categories: ['unipedia'], + url: 'https://www.mydesk.tu-berlin.de/wiki/ag_ziethen', + name: 'AG Ziethen', + keywords: [ + 'Bologna', + 'Change Agent', + 'Hochschulpolitik', + 'Lehre', + 'Manifest', + 'Mitarbeiten', + 'Mitmachen', + 'Mitwirken', + 'Prüfungen', + 'Reform', + 'Regelungen', + 'Studium', + 'Verändern', + ], + articleBody: + 'Die AG Ziethen ist seit Ende 2012 eine Arbeitsgruppe für alle Angehörigen (Studierende und Mitarbeiter_innen) der TUB. Alle Interessierten dürfen, können und sollen sehr gerne mitarbeiten um das Thema Lehre an der TU Berlin zu stärken. Ziel ist ein Kulturwandel und Perspektivwechsel und der Überschrift: "Shift from teaching to learning!". Die AG Ziethen gehört zur Programmlinie TU inspire, gefördert im Rahmen des Qualitätspakts Lehre des Bundesministeriums für Bildung und Forschung.\n\nDie Arbeitsgruppe ist auf einem ersten Treffen Anfang Dezember 2012 im Schloß Ziethen in Groß Ziethen (daher der Name) entstanden und hat einzelne Gruppen zu speziellen Themen gebildet (siehe [Maßnahmen und Initiaven](http://www.tu-berlin.de/qualitaet/ag_ziethen/massnahmen_und_initiativen/)). Wichtigstes Ergebnis ist aber das [Ziethener Manifest](http://www.tu-berlin.de/qualitaet/ag_ziethen/ziethener_manifest/), das einen Kulturwandel in der Lehre unterstützen soll.\n\nDas Mitwirken, Mitarbeiten, Mitmachen bei den einzelnen Themen ist unbedingt erwünscht! \nEine Übersicht zu den aktuellen Gruppen gibt es unter anderem auf der zentralen [ISIS-Seite](https://www.isis.tu-berlin.de/2.0/course/view.php?id=1065) zur AG Ziethen.\n\n##### Links\n\n* [AG Ziehten zur allgemeinen Information](http://www.tu-berlin.de/qualitaet/ag_ziethen/)\n* [ISIS-Seite zum Mitmachen](https://www.isis.tu-berlin.de/2.0/course/view.php?id=1065)', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCArticle', + }, + { + errorNames: [], + instance: { + type: 'book', + uid: 'a0520263-29ae-5357-a3ce-ba1902d121e0', + name: 'Kundenorientierung durch Quality Function Deployment: Systematisches Entwickeln von Produkten und Dienstleistungen', + authors: [ + { + type: 'person', + uid: '10dfe386-71b4-554a-beb1-2d38561e42f8', + name: 'Jutta Saatweber', + givenName: 'Jutta', + familyName: 'Saatweber', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + datePublished: '2007-08-01', + publishers: [ + { + type: 'organization', + uid: '28df2bb9-c854-5898-b9d5-1abbd3524804', + name: 'Symposion Publishing', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + inLanguages: [ + { + name: 'german', + code: 'de', + }, + ], + bookEdition: '2., überarb. u. erw. Aufl.', + isbn: '3936608776', + numberOfPages: 537, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCBook', + }, + { + errorNames: [], + instance: { + type: 'book', + uid: 'db47f7f4-7699-5a37-afcc-24beaa998d36', + name: 'Minimal Book', + authors: [ + { + type: 'person', + uid: '10dfe386-71b4-554a-beb1-2d38561e42f8', + name: 'Jutta Saatweber', + givenName: 'Jutta', + familyName: 'Saatweber', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + datePublished: '2007-08-01', + isbn: '3936608776', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCBook', + }, + { + errorNames: [], + instance: { + geo: { + point: { + type: 'Point', + coordinates: [13.32577, 52.51398], + }, + polygon: { + type: 'Polygon', + coordinates: [ + [ + [13.3259988, 52.5141108], + [13.3259718, 52.5143107], + [13.3262958, 52.5143236], + [13.3263291, 52.5143052], + [13.3263688, 52.5140098], + [13.3264324, 52.5139643], + [13.3264849, 52.5139415], + [13.3265148, 52.5139004], + [13.3265336, 52.5138571], + [13.3265411, 52.5137933], + [13.3265336, 52.5137546], + [13.3264961, 52.5137044], + [13.3264399, 52.5136725], + [13.3263875, 52.5136497], + [13.3263351, 52.5136429], + [13.3263613, 52.5134286], + [13.3262564, 52.5133603], + [13.3260767, 52.5133671], + [13.3259418, 52.5134286], + [13.3258744, 52.5135061], + [13.3258444, 52.5135677], + [13.3261366, 52.5135836], + [13.3261066, 52.513807], + [13.3260579, 52.5138047], + [13.3260317, 52.5139096], + [13.3254137, 52.5138708], + [13.3254287, 52.5137819], + [13.3250879, 52.513766], + [13.3250018, 52.5142697], + [13.3253613, 52.5142902], + [13.3253838, 52.5140747], + [13.3259988, 52.5141108], + ], + ], + }, + }, + type: 'building', + name: 'Mathematikgebäude', + alternateNames: ['MA'], + uid: 'edfaba58-254f-5da0-82d6-3b46a76c48ce', + categories: ['education'], + address: { + addressCountry: 'Germany', + addressLocality: 'Berlin', + addressRegion: 'Berlin', + postalCode: '10623', + streetAddress: 'Straße des 17. Juni 136', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCBuilding', + }, + { + errorNames: [], + instance: { + uid: 'c8dc1f7f-9e3e-5b1f-8c38-084f46413b87', + type: 'catalog', + level: 1, + categories: ['university events'], + name: 'Lehrveranstaltungen des Fachbereichs 3 - Gesellschaftswissenschaften', + academicTerm: { + uid: 'b621f5b5-dd5d-5730-9e2e-e4ba52011388', + type: 'semester', + acronym: 'WS 2017/18', + name: 'Wintersemester 2017/2018', + alternateNames: ['WiSe 2017/18'], + startDate: '2017-10-01', + endDate: '2018-03-31', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + superCatalog: { + type: 'catalog', + level: 0, + categories: ['university events'], + uid: 'a7404d36-282d-546e-bfa5-6c7b25ba7838', + name: 'Vorlesungsverzeichnis WS 2017/18', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + superCatalogs: [ + { + type: 'catalog', + level: 0, + categories: ['university events'], + uid: 'a7404d36-282d-546e-bfa5-6c7b25ba7838', + name: 'Vorlesungsverzeichnis WS 2017/18', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCCatalog', + }, + { + errorNames: [], + instance: { + uid: '5a8bc725-8658-528f-b515-5f7cd6987169', + type: 'catalog', + level: 3, + description: + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.', + categories: ['university events'], + name: 'Mathematik: Lehrveranstaltungen für andere Fachrichtungen (Service)', + academicTerm: { + uid: 'b621f5b5-dd5d-5730-9e2e-e4ba52011388', + type: 'semester', + acronym: 'WS 2017/18', + name: 'Wintersemester 2017/2018', + alternateNames: ['WiSe 2017/18'], + startDate: '2017-10-01', + endDate: '2018-03-31', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + superCatalog: { + uid: '2fdcccce-1948-5f5a-8938-3711b7e65e8a', + type: 'catalog', + level: 2, + categories: ['university events'], + name: 'Mathematik', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + superCatalogs: [ + { + type: 'catalog', + level: 0, + categories: ['university events'], + uid: 'a7404d36-282d-546e-bfa5-6c7b25ba7838', + name: 'Vorlesungsverzeichnis WS 2017', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + { + uid: '0718211b-d0c2-50fb-bc78-b968f20fd95b', + type: 'catalog', + level: 1, + categories: ['university events'], + name: 'Fakultät II Mathematik und Naturwissenschaften', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + { + uid: '2fdcccce-1948-5f5a-8938-3711b7e65e8a', + type: 'catalog', + level: 2, + categories: ['university events'], + name: 'Mathematik', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCCatalog', + }, + { + errorNames: [], + instance: { + academicDegree: 'bachelor', + academicDegreewithField: 'Bachelor of Arts', + academicDegreewithFieldShort: 'B.A.', + department: { + name: 'Technische Universität Berlin', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + type: 'organization', + uid: 'b0f878fd-8fda-53b8-b065-a8d854c3d0d2', + }, + mainLanguage: { + code: 'de', + name: 'german', + }, + major: 'Astroturfing', + mode: 'dual', + name: 'Astroturfing Bachelor', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + secretary: { + name: 'Technische Universität Berlin', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + type: 'organization', + uid: 'b0f878fd-8fda-53b8-b065-a8d854c3d0d2', + }, + timeMode: 'parttime', + type: 'course of studies', + uid: '4c6f0a18-343d-5175-9fb1-62d28545c2aa', + }, + schema: 'SCCourseOfStudies', + }, + { + errorNames: [], + instance: { + type: 'date series', + uid: '1b421872-1b4c-579b-ba03-688f943d59ad', + name: 'Einführung in die Wirtschaftspolitik', + duration: 'PT2H', + inPlace: { + type: 'room', + categories: ['education'], + uid: '5a4bbced-8e1f-5f29-a1d1-336e455ce7f9', + name: 'H 0105', + geo: { + point: { + type: 'Point', + coordinates: [13.32687, 52.51211], + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + frequency: 'once', + dates: ['2016-04-15T17:00:00+00:00'], + event: { + type: 'academic event', + uid: 'dbb4e5e1-0789-59c1-9970-877430af56b3', + name: 'Einführung in die Wirtschaftspolitik', + categories: ['written exam'], + majors: ['Economics BSc', 'Wirtschaftsingenieurwesen BSc'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCDateSeries', + }, + { + errorNames: [], + instance: { + type: 'date series', + uid: '4ce41895-4b54-52db-b86f-7e6920b975c8', + name: 'Distributed Algorithms', + duration: 'PT4H', + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.3266207, 52.5144409], + }, + }, + type: 'room', + categories: ['education'], + uid: 'b535c86a-777b-54c3-b89a-cad528d0580f', + name: 'EMH 225', + floor: '2', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + frequency: 'once', + dates: ['2016-04-12T11:00:00+00:00'], + event: { + type: 'academic event', + uid: 'e6fb74d4-c6d9-59bb-930f-e47eb6e39432', + name: 'Distributed Algorithms', + categories: ['written exam'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCDateSeries', + }, + { + errorNames: [], + instance: { + type: 'date series', + uid: 'e6462830-187a-50b1-bdb4-8f39e49a88b8', + name: 'Dance course for beginners', + duration: 'PT8H', + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.3266207, 52.5144409], + }, + }, + type: 'room', + categories: ['student union'], + uid: 'b535c86a-777b-54c3-b89a-cad528d0580f', + name: 'EMH 225', + floor: '2', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + frequency: 'once', + dates: ['2016-04-12T11:00:00+00:00'], + event: { + type: 'academic event', + uid: '4f86e8bb-ce73-520b-bfd9-e1ba9f754391', + name: 'Dance course for beginners', + categories: ['special'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + offers: [ + { + availability: 'in stock', + availabilityStarts: moment().startOf('day').add(2, 'days').toISOString(), + availabilityEnds: moment().endOf('day').add(2, 'days').toISOString(), + prices: { + default: 6.5, + student: 5, + alumni: 5, + }, + provider: { + name: 'Studentenwerk', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + type: 'organization', + uid: '3b9b3df6-3a7a-58cc-922f-c7335c002634', + }, + }, + ], + }, + schema: 'SCDateSeries', + }, + { + errorNames: [], + instance: { + uid: 'a5acde0d-18c4-5511-9f86-aabf2a530f91', + dateCreated: '2017-02-07T09:26:35.957Z', + name: 'changed_testuid', + changes: [ + { + op: 'replace', + path: '/name', + value: 'Name Two', + }, + ], + action: 'changed', + type: 'diff', + object: { + uid: '072db1e5-e479-5040-88e0-4a98d731e443', + name: 'Name One', + type: 'message', + message: 'Message', + audiences: ['students'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCDiff', + }, + { + errorNames: [], + instance: { + uid: 'f71cc2c8-fef2-59ee-af0a-511cc75e7471', + dateCreated: '2017-03-07T09:26:35.957Z', + name: 'changed_testuid', + changes: [ + { + op: 'replace', + path: '/name', + value: 'bar', + }, + ], + action: 'changed', + type: 'diff', + object: { + uid: '072db1e5-e479-5040-88e0-4a98d731e443', + name: 'Name One', + type: 'message', + message: 'Message', + audiences: ['students'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCDiff', + }, + { + errorNames: [], + instance: { + type: 'dish', + name: 'Pizza mit Geflügelsalami und Champignons', + categories: ['main dish'], + characteristics: [], + additives: [ + 'konserviert', + 'Antioxidationsmittel', + 'Farbstoff', + 'Weizen', + 'Milch(Laktose; Milcheiweiß)', + 'Nitritpökelsalz', + 'Hefe', + ], + offers: [ + { + availability: 'in stock', + availabilityStarts: moment().startOf('day').toISOString(), + availabilityEnds: moment().endOf('day').add(2, 'days').toISOString(), + prices: { + default: 4.85, + student: 2.85, + employee: 3.85, + guest: 4.85, + }, + provider: { + name: 'Studentenwerk', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + type: 'organization', + uid: 'b7206fb5-bd77-5572-928f-16aa70910f64', + }, + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.32612, 52.50978], + }, + }, + type: 'building', + categories: ['restaurant'], + openingHours: 'Mo-Fr 11:00-14:30', + name: 'TU-Mensa', + alternateNames: ['MensaHardenberg'], + uid: 'b7206fb5-bd77-5572-928f-16aa70910f64', + address: { + addressCountry: 'Germany', + addressLocality: 'Berlin', + addressRegion: 'Berlin', + postalCode: '10623', + streetAddress: 'Hardenbergstraße 34', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + ], + uid: 'c9f32915-8ed5-5960-b850-3f7375a89922', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCDish', + }, + { + errorNames: [], + instance: { + type: 'dish', + name: 'Sahne-Bärlauchsauce', + description: 'Nudelauswahl', + categories: ['main dish'], + offers: [ + { + prices: { + default: 3.45, + student: 2.45, + employee: 3.45, + }, + provider: { + name: 'Studentenwerk', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + type: 'organization', + uid: '3b9b3df6-3a7a-58cc-922f-c7335c002634', + }, + availability: 'in stock', + availabilityStarts: moment().startOf('day').add(2, 'days').toISOString(), + availabilityEnds: moment().endOf('day').add(2, 'days').toISOString(), + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.32612, 52.50978], + }, + }, + type: 'building', + categories: ['restaurant'], + openingHours: 'Mo-Fr 11:00-14:30', + name: 'TU-Mensa', + alternateNames: ['MensaHardenberg'], + uid: '072db1e5-e479-5040-88e0-4a98d731e443', + address: { + addressCountry: 'Germany', + addressLocality: 'Berlin', + addressRegion: 'Berlin', + postalCode: '10623', + streetAddress: 'Hardenbergstraße 34', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + ], + characteristics: [ + { + name: 'bad', + }, + { + name: 'vegetarian', + image: 'https://backend/res/img/characteristic_small_vegetarian.png', + }, + ], + additives: ['Weizen', 'Milch(Laktose; Milcheiweiß)'], + uid: '3222631f-82b3-5faf-a8e8-9c10719cc95b', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCDish', + }, + { + errorNames: [], + instance: { + additives: [ + '1 = mit Farbstoff', + '2 = konserviert', + '3 = mit Antioxidationsmittel', + '9 = mit Süßungsmittel', + 'A = Glutenhaltige Getreide', + 'G = Milch u. Milcherzeugnisse', + ], + offers: [ + { + availabilityEnds: moment().endOf('day').toISOString(), + availabilityStarts: moment().startOf('day').toISOString(), + availability: 'in stock', + inPlace: { + type: 'room', + name: 'Cafeteria LEVEL', + categories: ['cafe'], + uid: 'b7206fb5-bd77-5572-928f-16aa70910f64', + alternateNames: ['Cafeteria LEVEL'], + openingHours: 'Mo-Fr 08:30-17:00', + geo: { + point: { + type: 'Point', + coordinates: [8.6285375, 50.1743717], + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + prices: { + default: 6.5, + student: 4.9, + employee: 6.5, + }, + provider: { + name: 'Studentenwerk', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + type: 'organization', + uid: 'b7206fb5-bd77-5572-928f-16aa70910f64', + }, + }, + ], + categories: ['main dish'], + characteristics: [ + { + name: 'Rind', + image: 'https://backend/res/img/characteristic_small_rind.png', + }, + ], + description: 'Salsa Burger (1,2,3,9,A,G)', + name: 'Salsa Burger', + dishAddOns: [ + { + characteristics: [ + { + name: 'Vegan', + image: 'https://backend/res/img/characteristic_small_vegan.png', + }, + ], + description: 'Pommes frites', + type: 'dish', + uid: 'db0caac1-062c-5333-9fcb-cfaf0ff7d799', + nutrition: { + calories: 106, + fatContent: 5.4, + saturatedFatContent: 1.8, + carbohydrateContent: 6.8, + sugarContent: 6.1, + proteinContent: 6.9, + saltContent: 3.7, + }, + additives: ['3 = mit Antioxidationsmittel', '5 = geschwefelt'], + name: 'Pommes frites', + categories: ['side dish'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + { + characteristics: [ + { + name: 'Vegan', + image: 'https://backend/res/img/characteristic_small_vegan.png', + }, + ], + description: 'Glasierte Karotten', + type: 'dish', + uid: 'f702fd43-1551-53b2-b35a-b5916e1cf9a1', + nutrition: { + calories: 106, + fatContent: 5.4, + saturatedFatContent: 1.8, + carbohydrateContent: 6.8, + sugarContent: 6.1, + proteinContent: 6.9, + saltContent: 3.7, + }, + additives: ['F = Soja u. Sojaerzeugnisse'], + name: 'Glasierte Karotten', + categories: ['side dish', 'salad'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + type: 'dish', + uid: '1c99689c-c6ec-551f-8ad8-f13c5fa812c2', + nutrition: { + calories: 600, + fatContent: 30.5, + saturatedFatContent: 9.9, + carbohydrateContent: 42.2, + sugarContent: 5.7, + proteinContent: 38.6, + saltContent: 3.5, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCDish', + }, + { + errorNames: [], + instance: { + type: 'favorite', + name: 'Favorite #1', + uid: '3af3ccaa-f066-5eff-9a3d-a70567f3d70d', + data: { + type: 'academic event', + description: + 'Grundlagen, algebraische Grundbegriffe, Vektorräume, lineare Abbildungen und Gleichungen, Determinanten', + uid: 'b17eb963-42b5-5861-adce-2b7b2607ef0a', + name: 'Lineare Algebra I für Mathematiker', + categories: ['lecture'], + majors: ['Wirtschaftsmathematik BSc', 'Technomathematik BSc', 'Mathematik BSc'], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + created: '2018-09-11T12:30:00Z', + deleted: false, + type: 'user', + updated: '2018-12-11T12:30:00Z', + maintainer: { + type: 'organization', + name: 'tubIT', + uid: '25f76840-db89-5da2-a8a2-75992f637613', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + }, + schema: 'SCFavorite', + }, + { + errorNames: [], + instance: { + uid: '0effdc13-d4af-5a63-a538-c4b2c080e253', + name: 'MA E:0', + type: 'floor', + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.32577, 52.51398], + }, + polygon: { + type: 'Polygon', + coordinates: [ + [ + [13.3259988, 52.5141108], + [13.3259718, 52.5143107], + [13.3262958, 52.5143236], + [13.3263291, 52.5143052], + [13.3263688, 52.5140098], + [13.3264324, 52.5139643], + [13.3264849, 52.5139415], + [13.3265148, 52.5139004], + [13.3265336, 52.5138571], + [13.3265411, 52.5137933], + [13.3265336, 52.5137546], + [13.3264961, 52.5137044], + [13.3264399, 52.5136725], + [13.3263875, 52.5136497], + [13.3263351, 52.5136429], + [13.3263613, 52.5134286], + [13.3262564, 52.5133603], + [13.3260767, 52.5133671], + [13.3259418, 52.5134286], + [13.3258744, 52.5135061], + [13.3258444, 52.5135677], + [13.3261366, 52.5135836], + [13.3261066, 52.513807], + [13.3260579, 52.5138047], + [13.3260317, 52.5139096], + [13.3254137, 52.5138708], + [13.3254287, 52.5137819], + [13.3250879, 52.513766], + [13.3250018, 52.5142697], + [13.3253613, 52.5142902], + [13.3253838, 52.5140747], + [13.3259988, 52.5141108], + ], + ], + }, + }, + type: 'building', + categories: ['education'], + name: 'Mathematikgebäude', + alternateNames: ['MA'], + uid: 'edfaba58-254f-5da0-82d6-3b46a76c48ce', + address: { + addressCountry: 'Germany', + addressLocality: 'Berlin', + addressRegion: 'Berlin', + postalCode: '10623', + streetAddress: 'Straße des 17. Juni 136', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + floorName: '0', + plan: { + type: 'FeatureCollection', + crs: { + type: 'name', + properties: { + name: 'urn:ogc:def:crs:EPSG::3857', + }, + }, + features: [ + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E436', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325186160430565, 52.514261822595024], + [13.325133104724124, 52.51425842050136], + [13.325134305945877, 52.5142514480264], + [13.325134603712506, 52.51425146712009], + [13.32514187695557, 52.5142092496341], + [13.325168378185788, 52.51421094897377], + [13.325167645734922, 52.514215200482944], + [13.325168985684849, 52.51421528640462], + [13.32516935191029, 52.51421316065005], + [13.325175605009935, 52.51421356161783], + [13.325175238784485, 52.51421568737242], + [13.325176578734414, 52.514215773294104], + [13.325177311185291, 52.514211521784915], + [13.325211789168993, 52.51421373261825], + [13.325211056718071, 52.51421798412746], + [13.325246441895343, 52.5142202531327], + [13.325243973534553, 52.514234580718586], + [13.325245313484618, 52.51423466664027], + [13.325186160430565, 52.514261822595024], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E438', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325133263762659, 52.514251381198406], + [13.32513356152929, 52.51425140029212], + [13.325132360307542, 52.5142583727671], + [13.325079506732449, 52.51425498363452], + [13.325080707954097, 52.51424801115953], + [13.32508100572071, 52.51424803025323], + [13.325088278963108, 52.5142058127672], + [13.325104805010342, 52.51420687246782], + [13.325104072559554, 52.51421112397701], + [13.32510541250934, 52.514211209898676], + [13.325105778734747, 52.5142090841441], + [13.325112031833816, 52.51420948511189], + [13.325111665608404, 52.514211610866475], + [13.32511300555821, 52.51421169678813], + [13.325113738009003, 52.51420744527896], + [13.325140537005714, 52.51420916371241], + [13.325133263762659, 52.514251381198406], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E45C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325336015281833, 52.514211682924824], + [13.325327082280262, 52.51421111011364], + [13.32532695043914, 52.51421187538531], + [13.325335883440706, 52.51421244819646], + [13.325334257399824, 52.514221886546856], + [13.325325324398278, 52.51422131373568], + [13.325325192557095, 52.51422207900732], + [13.325334125558637, 52.514222651818486], + [13.32533249951699, 52.514232090168875], + [13.325323566515467, 52.5142315173577], + [13.325323434674237, 52.51423228262932], + [13.325332367675744, 52.5142328554405], + [13.325331107859158, 52.51424016803625], + [13.325298825047389, 52.51423809796434], + [13.325263030602374, 52.51423580271576], + [13.325266231414234, 52.51421722362067], + [13.325267637719726, 52.51420906072307], + [13.325269747176975, 52.5141968163766], + [13.325269940667578, 52.514196828783795], + [13.325271887789025, 52.51419593003067], + [13.32527264713314, 52.51419646503919], + [13.325289940713589, 52.514188482661034], + [13.32532435346189, 52.51419068931098], + [13.325339465122893, 52.51419165831656], + [13.325337773163021, 52.5142014793028], + [13.32532884016142, 52.514200906491624], + [13.325328708320367, 52.51420167176328], + [13.325337641321962, 52.514202244574435], + [13.325336015281833, 52.514211682924824], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E6CA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326324306053099, 52.51423310196347], + [13.326324159563, 52.51423395226529], + [13.326323866582777, 52.514235652868955], + [13.326315380217894, 52.51423510869814], + [13.3263145012771, 52.51424021050915], + [13.326322987641975, 52.51424075467997], + [13.326319146832077, 52.51426304864311], + [13.326319095076926, 52.51426307196875], + [13.326319095809989, 52.51426307219388], + [13.326284018199502, 52.51427926330608], + [13.326282529363844, 52.51427916783753], + [13.326214880004777, 52.51427482996017], + [13.326214838507221, 52.51427480003597], + [13.326214838123667, 52.51427480045219], + [13.326202863362136, 52.51426636344555], + [13.32619621909262, 52.514261682121024], + [13.32618604492978, 52.51425451375475], + [13.326187615141297, 52.51424539947001], + [13.326188640572601, 52.514239447357184], + [13.326189519513495, 52.514234345546164], + [13.32619054494428, 52.514228393433314], + [13.326191423884731, 52.51422329162231], + [13.326192449314997, 52.51421733950945], + [13.32619264736304, 52.51421618993884], + [13.326196751921135, 52.51421595604901], + [13.326196765994409, 52.514215874360616], + [13.326196765994409, 52.514215874360616], + [13.32619737436437, 52.51421592058035], + [13.32621499440062, 52.514214916538755], + [13.326216459300317, 52.51420641352039], + [13.326199566483515, 52.51420319641229], + [13.326199566483515, 52.51420319641229], + [13.326198955656672, 52.51420316445351], + [13.326198969729935, 52.51420308276509], + [13.32619503457641, 52.51420233334511], + [13.326195232624316, 52.514201183774496], + [13.326196258053542, 52.514195231661645], + [13.326197136992661, 52.5141901298506], + [13.326198162421376, 52.5141841777377], + [13.32619904136004, 52.514179075926634], + [13.326200066788235, 52.51417312381373], + [13.326201636993904, 52.514164009528876], + [13.326214031767377, 52.514158288349975], + [13.326222126213821, 52.51415455211578], + [13.326236765606586, 52.51414779486552], + [13.326305903803894, 52.5141522282115], + [13.326305945301474, 52.51415225813572], + [13.32630594568502, 52.51415225771949], + [13.326320283474184, 52.514162359627], + [13.326320172070284, 52.51416241104885], + [13.326320209948111, 52.51416243773622], + [13.326320321351993, 52.51416238631443], + [13.32633473889974, 52.51417254441732], + [13.326334413856427, 52.5141744311365], + [13.326325927491386, 52.51417388696568], + [13.32632504855305, 52.51417898877675], + [13.326333534918074, 52.514179532947566], + [13.326329579693002, 52.51420249109728], + [13.326324306053099, 52.51423310196347], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E6FF', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32507966577097, 52.51424794433156], + [13.325079963537574, 52.51424796342527], + [13.32507876231593, 52.51425493590026], + [13.32498892422526, 52.514249175207105], + [13.32495978369376, 52.51422864374659], + [13.32496862309692, 52.514177335442504], + [13.324980831526055, 52.51417811828438], + [13.324980802228056, 52.51417828834473], + [13.325054837731741, 52.51418303572778], + [13.325056986298932, 52.51418454953696], + [13.32506609842527, 52.51419096963908], + [13.325060316685132, 52.51419363837785], + [13.325061170946949, 52.514194240262405], + [13.32506695268711, 52.51419157152365], + [13.325076634321176, 52.51419839288214], + [13.325070852580787, 52.51420106162091], + [13.325071706842587, 52.51420166350549], + [13.325077488582997, 52.51419899476671], + [13.325086600709017, 52.5142054148688], + [13.325086950323534, 52.514205661195604], + [13.32507966577097, 52.51424794433156], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E825', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325339596963891, 52.5141908930449], + [13.325325825253104, 52.51419000996099], + [13.325341675436745, 52.51409800730132], + [13.3253554471479, 52.51409889038522], + [13.325339596963891, 52.5141908930449], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E827', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325125721312837, 52.514072440162344], + [13.32512674937755, 52.514072506084986], + [13.325124846671855, 52.51408355040293], + [13.325106690603613, 52.51409193089402], + [13.325107449947902, 52.51409246590251], + [13.325106836156015, 52.51409274921701], + [13.325089434805124, 52.51409163338926], + [13.32507359739348, 52.51409061784603], + [13.325047821921933, 52.514088965043996], + [13.325047792624058, 52.51408913510436], + [13.32503811520973, 52.51408851455896], + [13.32504152841039, 52.51406870252575], + [13.325091374769023, 52.51407189882662], + [13.325099966353417, 52.514022028622634], + [13.325196323409688, 52.51402820733099], + [13.325206894125337, 52.51402888515748], + [13.325203707989617, 52.514047379222895], + [13.325202219156296, 52.51404728375439], + [13.325169688148945, 52.51404519776706], + [13.325168199315684, 52.514045102298546], + [13.325168433698169, 52.51404374181556], + [13.325155034199057, 52.51404288259883], + [13.325154917007813, 52.51404356284031], + [13.32513198897754, 52.51404209262507], + [13.325129532672124, 52.51405635034972], + [13.32512850460741, 52.51405628442707], + [13.325127186204968, 52.514063937143774], + [13.325128214269684, 52.51406400306643], + [13.325128067780497, 52.51406485336829], + [13.325127039715783, 52.51406478744563], + [13.325125721312837, 52.514072440162344], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E82E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32532471968686, 52.51418856355639], + [13.325308193634307, 52.514187503855716], + [13.32530834012428, 52.514186653553864], + [13.325307000174087, 52.5141865676322], + [13.325306853684118, 52.51418741793403], + [13.325288765200963, 52.51418625804554], + [13.325270274182788, 52.51419479313759], + [13.3252710335269, 52.514195328146094], + [13.325269517483104, 52.51419602792223], + [13.325267050234451, 52.514195869714754], + [13.32525037529995, 52.51419480046724], + [13.325248886466527, 52.514194704998715], + [13.325249003658552, 52.51419402475723], + [13.325112216103278, 52.51418525352237], + [13.32511209891127, 52.51418593376384], + [13.325111038880568, 52.51418586579143], + [13.325110620470955, 52.51418557099391], + [13.325102599900582, 52.51417991996654], + [13.325094477488689, 52.51417419718508], + [13.325093807073575, 52.51417372483287], + [13.32509385631111, 52.514173439033215], + [13.325095047377573, 52.51417351540805], + [13.325106873017848, 52.514104873283024], + [13.32510568195135, 52.514104796908214], + [13.325105828440812, 52.51410394660635], + [13.325107469122365, 52.51409442322561], + [13.325107650665974, 52.51409336945051], + [13.325108304210223, 52.51409306778709], + [13.325109063554509, 52.514093602795604], + [13.32512841706009, 52.514084669590645], + [13.32513047146045, 52.5140727447563], + [13.325131825528791, 52.51407283158329], + [13.325133143931755, 52.5140651788666], + [13.32513178986341, 52.51406509203961], + [13.325131936352602, 52.514064241737735], + [13.325133290420947, 52.51406432856472], + [13.325134608823399, 52.514056675848025], + [13.325133254755045, 52.51405658902104], + [13.325135344837854, 52.51404445705103], + [13.32515455078518, 52.51404568859495], + [13.32515443359394, 52.514046368836446], + [13.32516783309304, 52.51404722805317], + [13.325168067475541, 52.514045867570225], + [13.325169556308785, 52.514045963038754], + [13.325202087316136, 52.514048049026094], + [13.325203576149455, 52.514048144494595], + [13.325203158655594, 52.51405056785487], + [13.325203158655594, 52.51405056785487], + [13.325203029694759, 52.51405170494505], + [13.325203037028936, 52.514052845485054], + [13.32520318062385, 52.51405398414249], + [13.325203459808145, 52.51405511559377], + [13.325203873276552, 52.51405623454908], + [13.32520441909598, 52.51405733577691], + [13.32520509471455, 52.51405841412872], + [13.325205896973545, 52.514059464562834], + [13.325206822122166, 52.51406048216817], + [13.325207865835061, 52.51406146218717], + [13.325209023232546, 52.514062400037844], + [13.325210288903445, 52.51406329133552], + [13.325211656930348, 52.514064131913074], + [13.325213120917327, 52.51406491784063], + [13.325214674019792, 52.51406564544363], + [13.325216308976508, 52.5140663113204], + [13.32521801814357, 52.51406691235767], + [13.32521979353008, 52.51406744574547], + [13.325221626835592, 52.51406790899003], + [13.325223509488815, 52.51406829992557], + [13.32522543268778, 52.51406861672427], + [13.325227387440954, 52.51406885790509], + [13.325229364609273, 52.51406902234041], + [13.325231354948851, 52.5140691092614], + [13.325233349154248, 52.514069118261695], + [13.325235337901955, 52.51406904929925], + [13.32523731189395, 52.514068902696444], + [13.325239261901231, 52.51406867913875], + [13.325241178806918, 52.51406837967131], + [13.325243053648881, 52.51406800569424], + [13.325244877661659, 52.51406755895598], + [13.325246642317444, 52.51406704154523], + [13.325248339365919, 52.51406645588096], + [13.325249960872865, 52.5140658047014], + [13.325251499257247, 52.514065091050995], + [13.325252947326627, 52.514064318266264], + [13.325254298310858, 52.51406348996021], + [13.325255545893665, 52.51406261000541], + [13.325262720676346, 52.514063073648735], + [13.325327559876815, 52.51406722839818], + [13.325325340673809, 52.51408010984094], + [13.325325194184543, 52.514080960142806], + [13.325326534134778, 52.51408104606447], + [13.32532668062404, 52.51408019576262], + [13.325328899837395, 52.51406731425983], + [13.325341629463027, 52.51406812994542], + [13.325352051298482, 52.514068798225125], + [13.325360537650335, 52.51406934239576], + [13.325355578988342, 52.51409812511356], + [13.325340467326921, 52.51409715610796], + [13.32532471968686, 52.51418856355639], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E82F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32509132529488, 52.51417327673673], + [13.325092516361346, 52.51417335311156], + [13.325092412513502, 52.51417395589709], + [13.325093538616889, 52.514174749312126], + [13.325101559187353, 52.51418040033952], + [13.325109579757706, 52.5141860513669], + [13.32511035201418, 52.514186595473156], + [13.32511196707027, 52.514186699035484], + [13.325111849878265, 52.51418737927697], + [13.325248637433457, 52.51419615051182], + [13.325248754625504, 52.51419547027035], + [13.325250243458909, 52.51419556573888], + [13.325266918393412, 52.5141966349864], + [13.325268407226865, 52.514196730454906], + [13.325266297769613, 52.5142089748014], + [13.325264891464128, 52.514217137699], + [13.325261690652274, 52.514235716794055], + [13.325245313484618, 52.51423466664027], + [13.325248646137533, 52.51421532227356], + [13.325247306187459, 52.51421523635187], + [13.325246573736525, 52.514219487861055], + [13.32522981652095, 52.5142184133374], + [13.32523054897187, 52.51421416182823], + [13.325229209021831, 52.51421407590656], + [13.325228476570919, 52.51421832741572], + [13.325212528509253, 52.514217304777475], + [13.325213260960146, 52.51421305326829], + [13.325211921010146, 52.51421296734663], + [13.325211789168993, 52.51421373261825], + [13.325197559317917, 52.51421282015688], + [13.325197691159063, 52.51421205488524], + [13.325191735825873, 52.514211673011125], + [13.325191603984727, 52.51421243828277], + [13.325177311185291, 52.514211521784915], + [13.325177443026428, 52.51421075651329], + [13.325176103076496, 52.51421067059161], + [13.325175736851085, 52.51421279634621], + [13.325169483751438, 52.51421239537838], + [13.325169849976847, 52.514210269623796], + [13.325112529900322, 52.51420659408565], + [13.32511216367496, 52.51420871984024], + [13.325105910575891, 52.51420831887245], + [13.325106276801252, 52.51420619311785], + [13.325104936851465, 52.51420610719618], + [13.325104805010342, 52.51420687246782], + [13.325090512212707, 52.51420595596998], + [13.325090644053834, 52.51420519069835], + [13.325087740829352, 52.51420500453472], + [13.32507852929627, 52.51419851439374], + [13.325067139138497, 52.51419048926609], + [13.32505802701211, 52.51418406916398], + [13.32505612865242, 52.51418273164269], + [13.325056194572925, 52.51418234900689], + [13.325056341062911, 52.51418149870503], + [13.325057747366472, 52.51417333580736], + [13.325057879207401, 52.51417257053572], + [13.325054157124908, 52.51417233186442], + [13.32505477238253, 52.51416876059668], + [13.325058494465026, 52.51416899926798], + [13.325064310109498, 52.51413524228479], + [13.325060588026957, 52.51413500361349], + [13.32506120328353, 52.51413143234572], + [13.325064925366066, 52.514131671017026], + [13.325065057206748, 52.514130905745354], + [13.325066463507065, 52.51412274284762], + [13.325066888326846, 52.514120276972285], + [13.32506829462647, 52.51411211407453], + [13.32506842646704, 52.51411134880285], + [13.325064704384479, 52.514111110131545], + [13.325065319640364, 52.51410753886378], + [13.325069041722932, 52.514107777535095], + [13.325071883617927, 52.514091281679185], + [13.325073465553048, 52.51409138311769], + [13.325089302964685, 52.51409239866091], + [13.325106275661954, 52.5140934870021], + [13.325106129172559, 52.51409433730392], + [13.325104488491018, 52.51410386068468], + [13.325104342001556, 52.51410471098654], + [13.325103150935076, 52.514104634611705], + [13.32509132529488, 52.51417327673673], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E831', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325060257608113, 52.514107214270794], + [13.325063979690649, 52.51410745294211], + [13.325063364434756, 52.51411102420987], + [13.325059642352224, 52.51411078553856], + [13.32505951051166, 52.51411155081022], + [13.325066954676746, 52.514112028152844], + [13.325065548377115, 52.5141201910506], + [13.325065401887551, 52.51412104135244], + [13.324991481332031, 52.51411630134027], + [13.324991452034118, 52.514116471400634], + [13.32497924360477, 52.51411568855875], + [13.324980947515735, 52.51410579816789], + [13.325017608787164, 52.51408887603005], + [13.32503782955545, 52.51409017264758], + [13.325038041965042, 52.514088939709886], + [13.32504771937937, 52.514089560255286], + [13.325047690081501, 52.51408973031566], + [13.325070543668193, 52.51409119575751], + [13.325067833613746, 52.51410692634175], + [13.325060389448645, 52.51410644899914], + [13.325060257608113, 52.514107214270794], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E832', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325060128259075, 52.51415165221891], + [13.324986207704221, 52.51414691220676], + [13.324986178406267, 52.51414708226711], + [13.32497396997703, 52.51414629942525], + [13.32497917035999, 52.5141161137097], + [13.32499137878934, 52.51411689655158], + [13.324991349491427, 52.514117066611945], + [13.325065270046933, 52.51412180662412], + [13.325065123557344, 52.51412265692596], + [13.32506371725704, 52.51413081982371], + [13.325056273091983, 52.51413034248107], + [13.325056141251308, 52.514131107752746], + [13.325059863333824, 52.51413134642406], + [13.325059248077253, 52.514134917691806], + [13.325055525994745, 52.51413467902051], + [13.325055394154038, 52.51413544429216], + [13.325062838319079, 52.51413592163479], + [13.325060128259075, 52.51415165221891], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E834', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325057286356225, 52.51416814807466], + [13.325049842191266, 52.514167670732036], + [13.325049710350363, 52.5141684360037], + [13.325053432432837, 52.51416867467501], + [13.325052817175221, 52.51417224594274], + [13.32504909509275, 52.51417200727144], + [13.325048963251822, 52.51417277254308], + [13.325056407416769, 52.514173249885694], + [13.325055001113212, 52.51418141278337], + [13.325054854623222, 52.51418226308522], + [13.32498093406903, 52.51417752307308], + [13.32498090477104, 52.51417769313344], + [13.324968696341909, 52.51417691029156], + [13.324973896732152, 52.51414672457616], + [13.324986105161388, 52.514147507418045], + [13.324986075863423, 52.51414767747841], + [13.325059996418275, 52.51415241749059], + [13.325057286356225, 52.51416814807466], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E863', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325360262565786, 52.514056085450704], + [13.32533644122753, 52.514054557954196], + [13.32533966398558, 52.514035851315846], + [13.325345901668538, 52.514036251294165], + [13.325345901668841, 52.514036251292424], + [13.325357216798976, 52.51403697685288], + [13.325363485324408, 52.51403737880975], + [13.325360262565786, 52.514056085450704], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E866', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325103972367536, 52.514012055127836], + [13.325102639318821, 52.51401979287483], + [13.325102492829934, 52.51402064317668], + [13.325017331582375, 52.51401518237713], + [13.325015161816708, 52.51401504324511], + [13.325005573935478, 52.51400828794707], + [13.325007164417064, 52.51399905591421], + [13.325008754897974, 52.51398982388132], + [13.32502043541266, 52.513984432377974], + [13.32507932971464, 52.51398820886072], + [13.325107766426665, 52.51399003230956], + [13.325103972367536, 52.514012055127836], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E883', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325366612294573, 52.51398427822003], + [13.325277282279295, 52.51397855010818], + [13.325278747164898, 52.513970047089494], + [13.325357655344657, 52.51397510692161], + [13.325368077180405, 52.51397577520135], + [13.325366612294573, 52.51398427822003], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E884', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32536875892349, 52.51400676794269], + [13.325362490397994, 52.51400636598584], + [13.32534493758489, 52.514005240446195], + [13.32534816033611, 52.51398653380513], + [13.32537198167485, 52.51398806130165], + [13.32536875892349, 52.51400676794269], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E885', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325338982250372, 52.51400485857207], + [13.325315160912803, 52.514003331075585], + [13.325318383663868, 52.513984624434514], + [13.325342205001567, 52.513986151930986], + [13.325338982250372, 52.51400485857207], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E886', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325313672079234, 52.51400323560706], + [13.325276897891072, 52.514000877534365], + [13.325273473574063, 52.51400065795676], + [13.325276696324895, 52.51398195131568], + [13.325316894830292, 52.51398452896596], + [13.325313672079234, 52.51400323560706], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E887', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325352256383328, 52.514067607802566], + [13.325341834547858, 52.51406693952284], + [13.325262926370225, 52.51406187969076], + [13.325264391261411, 52.5140533766722], + [13.325353721274737, 52.51405910478398], + [13.325352256383328, 52.514067607802566], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E888', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325206136322247, 52.51405075879194], + [13.325210135472096, 52.51402754555115], + [13.325262244641985, 52.514030886949705], + [13.325258245491789, 52.51405410019049], + [13.325258245491789, 52.51405410019049], + [13.325258003199274, 52.514055134116795], + [13.325257635151846, 52.51405615486646], + [13.3252571431426, 52.51405715746645], + [13.325256529568572, 52.51405813703223], + [13.32525579741901, 52.51405908879144], + [13.32525495026088, 52.51406000810723], + [13.325253992221459, 52.51406089050072], + [13.32525292796823, 52.51406173167306], + [13.3252517626861, 52.51406252752608], + [13.325250502052242, 52.51406327418252], + [13.32524915220831, 52.514063968004685], + [13.325247719730621, 52.51406460561236], + [13.325246211598058, 52.514065183899234], + [13.325244635158105, 52.5140657000479], + [13.325242998091015, 52.51406615154375], + [13.325241308372398, 52.51406653618713], + [13.325239574234422, 52.5140668521041], + [13.325237804125624, 52.514067097755564], + [13.325236006669785, 52.51406727194474], + [13.325234190623943, 52.51406737382293], + [13.325232364835696, 52.51406740289386], + [13.325230538200078, 52.51406735901588], + [13.3252287196163, 52.51406724240274], + [13.325226917944299, 52.514067053622604], + [13.325225141961656, 52.51406679359515], + [13.325223400320764, 52.51406646358724], + [13.32522170150674, 52.514066065206634], + [13.325220053796022, 52.51406560039419], + [13.325218465216082, 52.514065071414414], + [13.325216943506335, 52.51406448084447], + [13.325215496080398, 52.51406383156155], + [13.325214129989975, 52.514063126728885], + [13.325212851890523, 52.514062369780355], + [13.32521166800882, 52.51406156440372], + [13.325210584112595, 52.51406071452273], + [13.3252096054825, 52.51405982427788], + [13.32520873688632, 52.514058898006375], + [13.325207982555758, 52.51405794022094], + [13.325207346165842, 52.514056955587776], + [13.325206830816992, 52.51405594890389], + [13.325206439019954, 52.51405492507379], + [13.325206172683496, 52.5140538890855], + [13.325206033105195, 52.51405284598618], + [13.325206020965071, 52.51405180085773], + [13.325206136322247, 52.51405075879194], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E891', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325330485892788, 52.514054176081785], + [13.32526497721743, 52.51404997546649], + [13.325268197397955, 52.51403128378725], + [13.325275939331092, 52.51403178022353], + [13.325325966722424, 52.514034973003135], + [13.325327753317143, 52.51403508756501], + [13.32532802132026, 52.514035104754115], + [13.325333708650705, 52.51403546944409], + [13.325330485892788, 52.514054176081785], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E8EB', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325352031060916, 52.51392256277974], + [13.32530059186722, 52.51391926434244], + [13.325300738355363, 52.513918414040546], + [13.325300738355013, 52.513918414040546], + [13.325302034775227, 52.513910888868885], + [13.325303902497946, 52.51390004751993], + [13.325321768497972, 52.51390119314211], + [13.32533494467533, 52.51390203803862], + [13.325355341691939, 52.51390334595723], + [13.325352031060916, 52.51392256277974], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E8ED', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325209033770859, 52.51386181165049], + [13.325167941969381, 52.513859176718945], + [13.325172131518483, 52.51383485808496], + [13.325213223319134, 52.51383749301644], + [13.325209033770859, 52.51386181165049], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E8EE', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325204639134792, 52.513887320707056], + [13.325163547332458, 52.51388468577546], + [13.325167736886447, 52.51386036714159], + [13.325208828687956, 52.513863002073116], + [13.325204639134792, 52.513887320707056], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E8EF', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.3252002444936, 52.51391282976352], + [13.325159152690407, 52.513910194831865], + [13.325163342249281, 52.5138858761981], + [13.325204434051653, 52.51388851112969], + [13.3252002444936, 52.51391282976352], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E8F0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325348221195629, 52.51394467742639], + [13.32537838302928, 52.51396488423241], + [13.32537661974579, 52.51397511932325], + [13.325368282278372, 52.51397458469747], + [13.325357860442622, 52.51397391641776], + [13.325357860431142, 52.51397391648439], + [13.325278952251352, 52.51396885665227], + [13.325278952248837, 52.51396885666688], + [13.3252202922107, 52.513965095206785], + [13.32522557311775, 52.513934441824226], + [13.325228187933066, 52.513919263935755], + [13.325228773885826, 52.513915862728254], + [13.32535182597748, 52.51392375320238], + [13.325348221195629, 52.51394467742639], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E8F2', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325223488751018, 52.51393430816832], + [13.32522334226271, 52.513935158470176], + [13.325205178495768, 52.51393399375413], + [13.325172126396481, 52.51393187435279], + [13.325155600350993, 52.51393081465237], + [13.325158947606978, 52.513911385254495], + [13.325209567943576, 52.513914631184775], + [13.325222744118781, 52.51391547608123], + [13.325226689519086, 52.51391572907232], + [13.325226103566326, 52.51391913027983], + [13.325223488751018, 52.51393430816832], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E8F4', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325182848052515, 52.51396269417328], + [13.32518262473108, 52.51396267985322], + [13.325177409736877, 52.513992950599736], + [13.325175920903604, 52.51399285513122], + [13.325145250938938, 52.513990888479576], + [13.32515546851153, 52.51393157992407], + [13.325171994557007, 52.51393263962448], + [13.325187850631469, 52.5139336563643], + [13.325182848052515, 52.51396269417328], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E93B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325366093905528, 52.5138409337992], + [13.325345696884236, 52.5138396258803], + [13.325332520706631, 52.513838780983804], + [13.325314654703373, 52.51383763536141], + [13.32531781883427, 52.51381926884054], + [13.325401937937604, 52.51382466281266], + [13.325401595339535, 52.51382665145859], + [13.325366093905528, 52.5138409337992], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E93C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325355548932178, 52.513902143014164], + [13.325335151915613, 52.51390083509555], + [13.325321975738241, 52.51389999019905], + [13.325321973581227, 52.513900002719666], + [13.325304107581148, 52.513898857097466], + [13.325314449620723, 52.51383882578406], + [13.325332315623925, 52.513839971406426], + [13.325345491801517, 52.51384081630295], + [13.325365888815634, 52.5138421242214], + [13.325355548932178, 52.513902143014164], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E93D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325299950408603, 52.51391075521295], + [13.325298653988401, 52.51391828038464], + [13.325298507500253, 52.513919130686496], + [13.32522294920222, 52.51391428565861], + [13.325209773027016, 52.51391344076211], + [13.325202328860268, 52.513912963419486], + [13.325219555824443, 52.513812967917495], + [13.325229382124796, 52.5138135980098], + [13.325300846131514, 52.51381818049927], + [13.325315734467255, 52.51381913518459], + [13.325299950408253, 52.51391075521296], + [13.325299950408603, 52.51391075521295], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E93E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325213428401788, 52.5138363025938], + [13.32517233660118, 52.51383366766235], + [13.325176379657908, 52.51381019933015], + [13.325217471457718, 52.51381283426156], + [13.325213428401788, 52.5138363025938], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E961', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325849813686785, 52.51396458352464], + [13.325834850902497, 52.513963624065696], + [13.325846137822024, 52.513898108306456], + [13.32585013014701, 52.51389836430638], + [13.325849837170917, 52.51390006491028], + [13.325860807629912, 52.5139007683692], + [13.325859694321212, 52.51390723066348], + [13.325849813686785, 52.51396458352464], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E962', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325582642363564, 52.51394745169595], + [13.32556767958037, 52.51394649223754], + [13.325577560199534, 52.513889139375564], + [13.325577560197608, 52.51388913937547], + [13.32557867350579, 52.513882677081114], + [13.32558964396245, 52.51388338053956], + [13.325589936167733, 52.513881684407366], + [13.32559392849586, 52.5138819404074], + [13.325582642363564, 52.51394745169595], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E963', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32556383086092, 52.5139469886235], + [13.325546111269798, 52.513955167646245], + [13.32553670959293, 52.51395456478263], + [13.325412839579931, 52.51394662186273], + [13.325412839579094, 52.51394662186643], + [13.325403437904061, 52.5139460190028], + [13.325388892873654, 52.513935771075936], + [13.325402930655414, 52.51385428755637], + [13.325420650240485, 52.513846108531446], + [13.32542335167509, 52.51384628175555], + [13.325560622166567, 52.51385508395451], + [13.325560622167464, 52.513855083950446], + [13.325563323602625, 52.51385525717451], + [13.325577868646853, 52.51386550510405], + [13.325577434389006, 52.5138680257952], + [13.325577434390924, 52.51386802579531], + [13.325576321083513, 52.51387448808951], + [13.325576321082918, 52.51387448808948], + [13.325574951421721, 52.513882438409965], + [13.325574951422308, 52.51388243841], + [13.325573838114165, 52.51388890070425], + [13.32556383086092, 52.5139469886235], + ], + }, + place: { + geo: { + point: { + type: 'Point', + coordinates: [13.3254773, 52.5138698], + }, + }, + type: 'room', + categories: ['education'], + uid: '593655b5-0fc9-59de-a82f-b8f5f908deef', + name: 'MA 043', + floor: '0', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E987', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32559422224182, 52.513880235332024], + [13.325589309084862, 52.51387992028572], + [13.325589309085537, 52.51387992028182], + [13.32558335374886, 52.51387953840765], + [13.325583353748147, 52.51387953841176], + [13.325579259457907, 52.513879275873634], + [13.32558004316757, 52.513874726760776], + [13.325580043166973, 52.513874726760726], + [13.325581156474414, 52.51386826446642], + [13.325581449449835, 52.513866563862635], + [13.325596412233462, 52.51386752332099], + [13.32559422224182, 52.513880235332024], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5E988', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325861393581732, 52.51389736716166], + [13.32585729928891, 52.51389710462321], + [13.325857299289614, 52.513897104619105], + [13.32585134395061, 52.513896722744946], + [13.32585134394993, 52.513896722748875], + [13.325846430798059, 52.5138964077027], + [13.32584862079283, 52.51388369569183], + [13.325863583577691, 52.51388465515086], + [13.325863290601964, 52.513886355754636], + [13.325863290599738, 52.51388635575449], + [13.325861393581732, 52.51389736716166], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5F2F6', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326182714561684, 52.51425200134395], + [13.326182598501816, 52.51425212728901], + [13.326159160496987, 52.514250624374554], + [13.326160310445244, 52.51424394950516], + [13.326155612237041, 52.514240639308795], + [13.326121369024005, 52.51423844353221], + [13.326115645384807, 52.51424108544873], + [13.32611449543664, 52.514247760318135], + [13.326102145839975, 52.51424696842526], + [13.326098261080844, 52.51426951747891], + [13.326098209325707, 52.51426954080457], + [13.326098254663748, 52.51426955472686], + [13.326098245188332, 52.51426960972683], + [13.326065945671864, 52.51428591253369], + [13.325991342491946, 52.514281128755435], + [13.325992177487587, 52.51427628203503], + [13.325983691129123, 52.5142757378644], + [13.325985492961165, 52.51426527915191], + [13.325935071660462, 52.51426204598754], + [13.325934690785491, 52.5142642567723], + [13.325934045047097, 52.514264215365614], + [13.325934075291178, 52.514264039814186], + [13.325926663491446, 52.51426283935823], + [13.325931058199954, 52.51423733030327], + [13.32593871714123, 52.514237096228236], + [13.325939129205759, 52.51423470440097], + [13.32593171740579, 52.51423350394502], + [13.325936287896402, 52.51420697452769], + [13.325943946837574, 52.5142067404527], + [13.325944358901525, 52.51420434862542], + [13.325936947101317, 52.514203148169436], + [13.325941561532526, 52.51417636366147], + [13.32594922047359, 52.514176129586446], + [13.325949632536965, 52.51417373775915], + [13.325942220736513, 52.51417253730318], + [13.325943106999487, 52.514167392977015], + [13.326121858410275, 52.514178855050226], + [13.326130385084866, 52.51412936179788], + [13.32611433455024, 52.51411767811725], + [13.326119549568102, 52.51408740737132], + [13.326259993801711, 52.51409641307245], + [13.326256849521766, 52.51411466415142], + [13.326238723383943, 52.51412303081425], + [13.32623879877478, 52.514123052081686], + [13.32623488213106, 52.51414578634158], + [13.326198087316966, 52.51416277009025], + [13.326182714561684, 52.51425200134395], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5F35A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326118502546404, 52.51417649062429], + [13.326074574424405, 52.5141736738224], + [13.326068626565352, 52.51417329242795], + [13.326067137730153, 52.51417319695939], + [13.325991951556789, 52.514168375797865], + [13.325995335467965, 52.51414873382524], + [13.325991613380369, 52.51414849515386], + [13.32598822946921, 52.51416813712651], + [13.325947286507205, 52.514165511741545], + [13.325950960009793, 52.51414418882796], + [13.325954743134494, 52.514144073206886], + [13.325954949165894, 52.51414287729326], + [13.325955155197274, 52.514141681379584], + [13.325951494147201, 52.51414108841579], + [13.325956216272319, 52.51411367871887], + [13.32595818349714, 52.51411361859589], + [13.325958318993049, 52.51411283210588], + [13.325965986494102, 52.51411332376893], + [13.325992934407791, 52.514115051749606], + [13.325997326470237, 52.514115333381746], + [13.325996447533907, 52.514120435192865], + [13.326000169621524, 52.51412067386422], + [13.326001280597032, 52.514114225174986], + [13.326009553280997, 52.514111543822956], + [13.326018949484656, 52.514112146335556], + [13.326019049097413, 52.51411156813029], + [13.326029470943173, 52.514112236410085], + [13.326108384594196, 52.51411730016309], + [13.326114337220409, 52.5141216332638], + [13.326124167781105, 52.51412827520236], + [13.32612651474904, 52.51412998363297], + [13.326118502546404, 52.51417649062429], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6038F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325974586619791, 52.51387947935864], + [13.3259032714338, 52.51387490641363], + [13.325903271433164, 52.513874906417286], + [13.32588823420125, 52.513873942185], + [13.32588823420196, 52.513873942180886], + [13.32588399102662, 52.513873670095656], + [13.325863876553404, 52.513882954547086], + [13.325863730065546, 52.513883804849], + [13.325846682912132, 52.51388271173393], + [13.325832488206403, 52.51396510598326], + [13.325799213269127, 52.51396297228799], + [13.32581370095797, 52.51387887763983], + [13.32581452720548, 52.51387676283733], + [13.32581494155177, 52.51387435782143], + [13.32580734812673, 52.51386900771954], + [13.325803137068025, 52.513868737684476], + [13.325800824365588, 52.51386980517487], + [13.325798532506132, 52.5138681903987], + [13.325795554837988, 52.51386799945516], + [13.32578051698193, 52.513867035182706], + [13.325780517008807, 52.51386703502668], + [13.325754387965613, 52.513865359553996], + [13.325754497879085, 52.51386472155094], + [13.325748542539845, 52.513864339676694], + [13.325748432626373, 52.51386497767978], + [13.325700789924463, 52.51386192268654], + [13.325700899837914, 52.513861284683465], + [13.32569494449909, 52.51386090280924], + [13.32569483458563, 52.51386154081231], + [13.325668705546885, 52.51385986533972], + [13.325668705520007, 52.51385986549571], + [13.325653668289563, 52.51385890126324], + [13.32565366831606, 52.51385890110942], + [13.325650690647429, 52.513858710172364], + [13.325647898563075, 52.513859998945165], + [13.325646000198219, 52.51385866142391], + [13.32564178913889, 52.51385839139822], + [13.32563253836098, 52.513862661380735], + [13.325632124031241, 52.51386506639766], + [13.325632211504857, 52.51386723979173], + [13.325617723835762, 52.51395133464542], + [13.32558444840371, 52.51394920092539], + [13.325598643089139, 52.513866806674976], + [13.325581595937555, 52.51386571356075], + [13.325581742425259, 52.51386486325884], + [13.325565231559924, 52.51385323028066], + [13.325560988386707, 52.513852958194754], + [13.325545951162297, 52.51385199396251], + [13.325545951162221, 52.513851993962966], + [13.32547977248824, 52.51384775038938], + [13.325482885351423, 52.51382968146688], + [13.325977699485623, 52.51386141043607], + [13.325974586619791, 52.51387947935864], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6171F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.3253850190958, 52.51393641292114], + [13.325401529945516, 52.51394804589665], + [13.325381486383705, 52.513964345611136], + [13.325351324549795, 52.513944138805115], + [13.325368866482401, 52.51384231516206], + [13.325405176613252, 52.51382770748026], + [13.325405660022048, 52.513824901484], + [13.32540568931955, 52.51382473142361], + [13.32548154540253, 52.5138295955453], + [13.325478432539347, 52.51384766446786], + [13.325438755115773, 52.51384512023319], + [13.325438755116672, 52.51384512022794], + [13.325423717895148, 52.51384415599576], + [13.325423717894072, 52.51384415600081], + [13.32541947472157, 52.51384388391588], + [13.325399360263907, 52.51385316836871], + [13.3253850190958, 52.51393641292114], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '634FA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326083841987582, 52.51397138671343], + [13.326045504481051, 52.51396892839831], + [13.326054293774044, 52.51391791028577], + [13.32609263128115, 52.51392036860091], + [13.326083841987582, 52.51397138671343], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6378D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326408631936944, 52.51387742654512], + [13.326406835565345, 52.51387731135648], + [13.32638807623257, 52.51387610845268], + [13.326388074413599, 52.51387611901103], + [13.32634310180492, 52.513873235234456], + [13.326337146461677, 52.51387285336025], + [13.326333783423618, 52.51387440567281], + [13.32631234618491, 52.5138843006827], + [13.326303095398057, 52.513888570664825], + [13.326281658158928, 52.51389846567465], + [13.326278274814626, 52.51390002736014], + [13.32627768886304, 52.51390342856768], + [13.326273265783712, 52.51392910270339], + [13.32627142003344, 52.51393981650704], + [13.326264211951289, 52.51398165634033], + [13.326246345923865, 52.51398051071772], + [13.326244588062313, 52.51399071434013], + [13.326186567300871, 52.51398699387679], + [13.326142230333565, 52.51395575561197], + [13.326181702250457, 52.51372663679828], + [13.326235691952514, 52.513701716187455], + [13.326260980247369, 52.5137033377479], + [13.326259222408032, 52.51371354137079], + [13.326309842821793, 52.51371678730166], + [13.326302708056657, 52.51375820198554], + [13.326300862320815, 52.51376891578953], + [13.32629643926871, 52.51379458992577], + [13.326295853319944, 52.513797991133366], + [13.326298630523981, 52.51379994785139], + [13.326316227192017, 52.513812345830594], + [13.32632382066159, 52.51381769591617], + [13.326341417328825, 52.51383009389534], + [13.32634417786444, 52.513832038869566], + [13.326350133207763, 52.513832420743775], + [13.326395105816978, 52.51383530452037], + [13.326395103998015, 52.513835315078715], + [13.32641386333102, 52.513836517982526], + [13.326415659702642, 52.51383663317119], + [13.326408631936944, 52.51387742654512], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '638BF', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32633629105234, 52.514043463411525], + [13.32633627669514, 52.51404346571231], + [13.326336133165121, 52.5140434887135], + [13.326336295496537, 52.51404380581122], + [13.326332474462768, 52.514065985184], + [13.32633229867598, 52.514067005546224], + [13.326271033086318, 52.51406307701527], + [13.326277683679915, 52.514024473310734], + [13.326312088559542, 52.514026679453465], + [13.326312419946749, 52.51402678121485], + [13.32631248999981, 52.514026705195015], + [13.326312507436134, 52.51402670631309], + [13.32633629105234, 52.514043463411525], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '638F3', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32635856366631, 52.513830038366365], + [13.326346772688016, 52.51382928229397], + [13.326345348912508, 52.51382827915293], + [13.32633680625935, 52.51382226030664], + [13.326337846972638, 52.51382177993367], + [13.326328792958234, 52.51381540080076], + [13.326321199488497, 52.51381005071518], + [13.32631214547383, 52.51380367158225], + [13.32631110476065, 52.51380415195524], + [13.326302562106974, 52.51379813310894], + [13.326301138331344, 52.51379712996791], + [13.326302298450573, 52.51379039592045], + [13.32635856366631, 52.513830038366365], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '638F4', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326281990734211, 52.51390827413], + [13.32628315085934, 52.51390154008265], + [13.326284885381922, 52.51390073946102], + [13.326295292517415, 52.513895935731114], + [13.326296146782353, 52.51389653761578], + [13.326307176886312, 52.51389144633582], + [13.32631642767332, 52.51388717635367], + [13.326327457777147, 52.513882085073696], + [13.32632660351209, 52.51388148318908], + [13.326337010647297, 52.51387667945918], + [13.326338745169828, 52.51387587883751], + [13.326350536147961, 52.513876634909906], + [13.326281990734211, 52.51390827413], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '64092', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326144091874617, 52.51358820869837], + [13.3261353594497, 52.513587648749336], + [13.326135162544684, 52.51358879171796], + [13.326132837501618, 52.51358864262928], + [13.326132837608377, 52.51358864200883], + [13.326123159964977, 52.51358802270414], + [13.326123160071736, 52.513588022083674], + [13.326120838290084, 52.51358787366785], + [13.326197641271802, 52.51355242053072], + [13.326196230286307, 52.513560602947194], + [13.326194229091556, 52.51356047462465], + [13.32619337030816, 52.513565461209225], + [13.326144091874617, 52.51358820869837], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6410F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325220866609474, 52.51394952857186], + [13.32521349688433, 52.51394905600263], + [13.32521336504477, 52.513949821274316], + [13.325220734769907, 52.51395029384353], + [13.325218207843989, 52.51396496155082], + [13.325200416285517, 52.5139638207019], + [13.325202943211368, 52.51394915299461], + [13.325204432044705, 52.51394924846315], + [13.325204563884267, 52.51394848319148], + [13.325200237953032, 52.513948205799565], + [13.325200106113467, 52.513948971071244], + [13.32520160326137, 52.51394906707294], + [13.325199076335524, 52.51396373478022], + [13.325184188002472, 52.51396278009496], + [13.325186714928252, 52.513948112387645], + [13.325191181428155, 52.51394839879325], + [13.325191313267721, 52.51394763352156], + [13.325186846767817, 52.51394734711597], + [13.32518919058143, 52.51393374228598], + [13.325191498273059, 52.5139338902622], + [13.325205046656286, 52.513934759025815], + [13.325223210423237, 52.513935923741855], + [13.325220866609474, 52.51394952857186], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '64110', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325267650080018, 52.51399951081095], + [13.325252761745492, 52.51399855612564], + [13.325252017328772, 52.51399850839138], + [13.325250528495337, 52.51399841292286], + [13.325222240663344, 52.51399659902099], + [13.325223954788605, 52.51398664928391], + [13.325224028032927, 52.51398622413297], + [13.32522738241388, 52.513966753425386], + [13.32525715907957, 52.51396866279581], + [13.325257903496292, 52.513968710530065], + [13.325272791830947, 52.51396966521535], + [13.325270448013725, 52.51398327004528], + [13.325270374769415, 52.51398369519623], + [13.325267650080018, 52.51399951081095], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '64111', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32522244151994, 52.51398320065591], + [13.325222368275629, 52.51398362580682], + [13.325220156296627, 52.51399646536503], + [13.325196632729858, 52.5139949569623], + [13.325183084346824, 52.51399408819868], + [13.32517936226362, 52.513993849527374], + [13.325181574242475, 52.51398100996917], + [13.32518164748678, 52.51398058481825], + [13.325184504013778, 52.51396400393178], + [13.325203114430165, 52.51396519728839], + [13.325203858846821, 52.51396524502265], + [13.32522529804714, 52.51396661976945], + [13.325223906405952, 52.513974697637224], + [13.325223833161669, 52.51397512278816], + [13.32522244151994, 52.51398320065591], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '646AB', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326111631609145, 52.51360561910057], + [13.326111631609145, 52.51360561910057], + [13.326111518291533, 52.51360627687137], + [13.326061493426302, 52.513603069128045], + [13.3260622073362, 52.51359892511939], + [13.3260622073362, 52.51359892511939], + [13.32606352570922, 52.51359127240206], + [13.32606352570922, 52.51359127240206], + [13.326064241568309, 52.513587117076774], + [13.32606769532924, 52.51358733854221], + [13.32606769532924, 52.51358733854221], + [13.32609598119997, 52.51358916375808], + [13.32609598119997, 52.51358916375808], + [13.326114264484207, 52.51359033613668], + [13.326114151166678, 52.51359099390747], + [13.326111631609145, 52.51360561910057], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '648F8', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32619350820641, 52.51408974267243], + [13.32619336171724, 52.514090592974256], + [13.32612576858989, 52.51408625870214], + [13.326119813248592, 52.51408587682794], + [13.326120032982319, 52.51408460137517], + [13.326106335698464, 52.51408372306457], + [13.32602506071963, 52.51407851147089], + [13.326018792189084, 52.51407810951403], + [13.32602362630272, 52.51405004969336], + [13.326124867121024, 52.51405654141386], + [13.326125350534555, 52.51405373541769], + [13.326198899003888, 52.51405845156404], + [13.326198490312699, 52.51406082383068], + [13.32619350820641, 52.51408974267243], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '64CE8', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326321931376542, 52.51371214977673], + [13.326310794984964, 52.51371126033925], + [13.326310794984964, 52.51371126033925], + [13.326309842821793, 52.51371678730166], + [13.326259222408032, 52.51371354137079], + [13.326260980247369, 52.5137033377479], + [13.326235691952514, 52.513701716187455], + [13.326181702250457, 52.51372663679828], + [13.326142230333565, 52.51395575561197], + [13.326186567300871, 52.51398699387679], + [13.326244588062313, 52.51399071434013], + [13.326246345923865, 52.51398051071772], + [13.326264211951289, 52.51398165634033], + [13.326257063308969, 52.51402315107145], + [13.326275152659294, 52.514024311014204], + [13.326268502065721, 52.51406291471873], + [13.326125350534555, 52.51405373541769], + [13.326130565537166, 52.51402346467141], + [13.326124723490192, 52.51402309006198], + [13.32612461063245, 52.51402307925111], + [13.326045701927743, 52.51401802296419], + [13.326045684349097, 52.51401812500041], + [13.326029307163472, 52.51401707484646], + [13.326031213728342, 52.51400600808189], + [13.326011803156215, 52.51398717844973], + [13.326031917645752, 52.513977893996575], + [13.326032459653886, 52.51397474787434], + [13.326044370335513, 52.51397551162276], + [13.326045504481051, 52.51396892839831], + [13.326086224123982, 52.513971539463114], + [13.326105136868247, 52.51386175887537], + [13.326094587300508, 52.51386108240569], + [13.326087990719193, 52.51385643468888], + [13.326094426763065, 52.513819076005596], + [13.32609457564483, 52.51381908555233], + [13.326094648888514, 52.5138186604014], + [13.326094500006754, 52.513818650854645], + [13.326095269065396, 52.51381418676971], + [13.32609541794716, 52.51381419631645], + [13.326095491190827, 52.5138137711655], + [13.326095342309074, 52.51381376161876], + [13.326095898960942, 52.51381053047157], + [13.326110787313922, 52.51381148515706], + [13.326111358614451, 52.51380816897967], + [13.326103914437914, 52.51380769163691], + [13.326109656735746, 52.51377435980255], + [13.326117100912361, 52.5137748371453], + [13.326119063838728, 52.51376344309982], + [13.326120403790526, 52.51376352902153], + [13.326121282712446, 52.51375842721013], + [13.326119942760647, 52.51375834128843], + [13.326121905685524, 52.5137469472429], + [13.326114461508846, 52.513746469900155], + [13.326120203790607, 52.513713138065434], + [13.326127647967358, 52.51371361540821], + [13.326129610888211, 52.513702221362614], + [13.326130950840039, 52.513702307284305], + [13.326131829759502, 52.51369720547283], + [13.326130489807676, 52.51369711955116], + [13.32613245272706, 52.513685725505525], + [13.32612500855024, 52.513685248162794], + [13.32613075081592, 52.5136519163277], + [13.326138194992799, 52.51365239367045], + [13.326140157908162, 52.513640999624776], + [13.32614149786001, 52.51364108554647], + [13.32614237677701, 52.51363598373498], + [13.326141036825163, 52.51363589781327], + [13.326144625734107, 52.51361506541617], + [13.326136571637692, 52.51360939079335], + [13.326114239107305, 52.51360795876507], + [13.326117242139087, 52.51359052716549], + [13.32614166996955, 52.51359209396527], + [13.326153758961077, 52.513586513548525], + [13.326155182753704, 52.51358751668226], + [13.326160386256898, 52.5135851146857], + [13.326161810049538, 52.51358611781945], + [13.32616701347451, 52.51358371585897], + [13.326168437267183, 52.51358471899274], + [13.3261823130671, 52.51357831376479], + [13.32618088927435, 52.513577310631014], + [13.32618609269925, 52.51357490867056], + [13.326184669356024, 52.51357390585355], + [13.326189872895311, 52.51357150406492], + [13.32618844846026, 52.513570500478664], + [13.326200538379549, 52.51356491963348], + [13.326201226618497, 52.513560923326864], + [13.326205032324568, 52.513538826760715], + [13.326205032324568, 52.513538826760715], + [13.326206414026622, 52.51353074827125], + [13.326207795728173, 52.513522669781786], + [13.326207795728173, 52.513522669781786], + [13.326209660929006, 52.51351184287024], + [13.326212984915932, 52.51349264428455], + [13.326213204629537, 52.51349136883072], + [13.326220697116307, 52.51344787717687], + [13.326258020984948, 52.51345027049401], + [13.32625797989302, 52.51345050902068], + [13.326258724310849, 52.51345055675496], + [13.326258765402779, 52.513450318228294], + [13.326275887013075, 52.513451416116695], + [13.32627584592114, 52.51345165464336], + [13.32627659033899, 52.51345170237765], + [13.32627663143092, 52.51345146385098], + [13.326308841017452, 52.51345352922506], + [13.32630950074123, 52.51345373602404], + [13.32631274585357, 52.51345028861131], + [13.326366950058368, 52.513488478879275], + [13.326360273740605, 52.51348958507575], + [13.326321931376542, 52.51371214977673], + ], + }, + place: { + geo: { + point: { + type: 'Point', + coordinates: [13.3262843, 52.5135435], + }, + }, + description: 'loses Mobiliar im Foyer', + type: 'room', + categories: ['learn'], + uid: '31b1ab4c-1803-51ed-8c66-59bfc97cd350', + name: 'MA Foyer', + floor: '0', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '65A6C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32610647020726, 52.513824748529174], + [13.326107422375342, 52.513819221566855], + [13.32609774494591, 52.51381860102125], + [13.326096792777848, 52.5138241279836], + [13.32610647020726, 52.513824748529174], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '65D15', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325368539189405, 52.514008043395435], + [13.32526804292379, 52.51400159926969], + [13.325263208792125, 52.5140296592312], + [13.325363705056917, 52.51403610335692], + [13.325368539189405, 52.514008043395435], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '65D18', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325267518240157, 52.51400027608261], + [13.325160770759446, 52.513993431109114], + [13.325155497162237, 52.5140240419762], + [13.325262244641985, 52.514030886949705], + [13.325267518240157, 52.51400027608261], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '65D19', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325159875591423, 52.51399337370821], + [13.325110446326295, 52.51399020415289], + [13.32510517272953, 52.51402081502002], + [13.325154601994218, 52.51402398457531], + [13.325159875591423, 52.51399337370821], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '65F53', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326157380640069, 52.514260955541815], + [13.326151657000095, 52.5142635974583], + [13.326117413787296, 52.51426140168171], + [13.326112715579862, 52.51425809148539], + [13.326114180482621, 52.514249588467045], + [13.326115645384807, 52.51424108544873], + [13.326121369024005, 52.51423844353221], + [13.326155612237041, 52.514240639308795], + [13.326160310445244, 52.51424394950516], + [13.326159160496987, 52.514250624374554], + [13.326158845542944, 52.51425245252347], + [13.326157380640069, 52.514260955541815], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6D573', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32614004630669, 52.51362766719533], + [13.326138691310078, 52.51363553248808], + [13.326129386086059, 52.51363493580945], + [13.326129041843602, 52.513636934018976], + [13.326090555453401, 52.5136344661571], + [13.326094217605332, 52.513613208609065], + [13.326097344159445, 52.51361340909303], + [13.32609822307539, 52.513608307281466], + [13.326114004729746, 52.513609319248125], + [13.326135350546839, 52.51361068800542], + [13.326142146515078, 52.51361547619703], + [13.32614004630669, 52.51362766719533], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6DD8B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326047667591752, 52.51405030060897], + [13.326041427824325, 52.514049900795385], + [13.326041427731896, 52.514049901331894], + [13.32603011240009, 52.514049175759084], + [13.326025930421306, 52.51404890779798], + [13.326029153183526, 52.514030201114835], + [13.326050890176681, 52.51403159495562], + [13.326047667591752, 52.51405030060897], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6DD8C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326122940223872, 52.51403277623846], + [13.326033610110015, 52.5140270481256], + [13.32603507510662, 52.51401854447352], + [13.326045496952666, 52.51401921275336], + [13.32612440585099, 52.514024268927834], + [13.326122940223872, 52.51403277623846], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6DD8D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326119129295837, 52.51405488394468], + [13.326113176171907, 52.514054502212666], + [13.326113174657047, 52.51405449798946], + [13.326111388041085, 52.514054383511684], + [13.326111387379344, 52.514054387352786], + [13.32609530795739, 52.5140533562924], + [13.326095308488211, 52.51405335321124], + [13.326086375403973, 52.51405278082213], + [13.326077442504653, 52.51405220844485], + [13.326077442119288, 52.51405221068168], + [13.326061362508888, 52.51405117960917], + [13.32606136276312, 52.51405117813228], + [13.326053620762742, 52.51405068206208], + [13.3260568408074, 52.51403197524737], + [13.326122350091778, 52.51403617276752], + [13.326119129295837, 52.51405488394468], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6DD8E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326408949262904, 52.514098276592016], + [13.32639726872303, 52.514103668095046], + [13.326196041621102, 52.51409076481766], + [13.326196188110279, 52.514089914515814], + [13.32620117021658, 52.51406099567408], + [13.326201315227648, 52.514060153950794], + [13.326402542331381, 52.51407305722822], + [13.326412130232999, 52.51407981252646], + [13.32641053974828, 52.51408904455923], + [13.326408949262904, 52.514098276592016], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6DD8F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326110635144607, 52.514104201594556], + [13.326045126394682, 52.514100000978495], + [13.326048349156514, 52.51408129434086], + [13.326054304497736, 52.51408167621185], + [13.32610611596475, 52.51408499851737], + [13.326113857907348, 52.51408549495374], + [13.326110635144607, 52.514104201594556], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6DD90', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32603917105409, 52.51409961910431], + [13.326017434061368, 52.51409822526354], + [13.326020656823603, 52.51407951862271], + [13.326024840985939, 52.51407978692369], + [13.326036156132588, 52.51408051248636], + [13.326042393816008, 52.51408091246598], + [13.32603917105409, 52.51409961910431], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6DD91', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326108584294154, 52.51411610582048], + [13.326029676028247, 52.51411104598752], + [13.326019254182485, 52.5141103777077], + [13.32602071907556, 52.51410187468916], + [13.326110049187449, 52.514107602801985], + [13.326108584294154, 52.51411610582048], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '6DDDD', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325796823333762, 52.51396024063275], + [13.325796662213856, 52.51396117586482], + [13.32579502459447, 52.51396107027695], + [13.32562768159503, 52.51395033974076], + [13.325622468670028, 52.51395000547755], + [13.325620830853712, 52.513949901034735], + [13.325620830952353, 52.51394990046222], + [13.325620992011572, 52.513948965582145], + [13.325634600826746, 52.51386997208753], + [13.325634800704314, 52.51386881187945], + [13.32563812987282, 52.513867275198876], + [13.325634644880559, 52.513864819795415], + [13.325634816501555, 52.513863823604794], + [13.325642729554307, 52.5138601710907], + [13.325645526597025, 52.51386035044542], + [13.32564853699824, 52.51386247146855], + [13.32565186616672, 52.51386093478798], + [13.32565330209694, 52.513861026864085], + [13.325694468358225, 52.51386366661377], + [13.325694358500463, 52.51386430429345], + [13.325700313839286, 52.513864686167665], + [13.325700423695944, 52.51386404849447], + [13.325748066388925, 52.51386710353934], + [13.325747956541168, 52.513867741160915], + [13.325753911880403, 52.51386812303513], + [13.325754021727045, 52.513867485420036], + [13.325795188604262, 52.51387012520888], + [13.325796624534235, 52.51387021728822], + [13.325799357254718, 52.513872142682004], + [13.325803024706898, 52.51387044987018], + [13.325805821749189, 52.51387062923114], + [13.325812317113423, 52.513875205672015], + [13.325812145485562, 52.51387620186223], + [13.325807899857624, 52.51387816154663], + [13.32581063257805, 52.51388008694039], + [13.325810432692595, 52.51388124714795], + [13.32581043214997, 52.51388124711316], + [13.325796823371588, 52.51396024041222], + [13.325796823333762, 52.51396024063275], + ], + }, + place: { + geo: { + point: { + type: 'Point', + coordinates: [13.325708, 52.5138796], + }, + }, + type: 'room', + categories: ['education'], + uid: '56ce0744-ae39-5209-b18f-d3a6edcb8f0a', + name: 'MA 042', + floor: '0', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '70BB7', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325867954177527, 52.513975805181126], + [13.325877355819038, 52.51397640815371], + [13.325896114661633, 52.513977611019186], + [13.325982467079223, 52.513983148243746], + [13.32600122595533, 52.513984350969864], + [13.32601062763847, 52.513984953834125], + [13.326028347243309, 52.51397677481258], + [13.32604244152589, 52.51389496346191], + [13.326027839997334, 52.513885043359736], + [13.326025138567106, 52.51388487013599], + [13.326010101331969, 52.513883905906866], + [13.325902905214122, 52.51387703216831], + [13.325887867982413, 52.51387606793604], + [13.325867446944743, 52.51388407373608], + [13.325867012686677, 52.51388659442586], + [13.325864529715838, 52.51390100704058], + [13.32586341640811, 52.513907469334946], + [13.325853409139294, 52.513965557253314], + [13.325867954177527, 52.513975805181126], + ], + }, + place: { + geo: { + point: { + type: 'Point', + coordinates: [13.325944, 52.5138959], + }, + }, + type: 'room', + categories: ['education'], + uid: '96b7e555-1214-5ca8-8294-e8209ac04f5a', + name: 'MA 041', + floor: '0', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '70C60', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325931437520264, 52.51357685363762], + [13.32600931657659, 52.513582832024646], + [13.326009875049278, 52.513579589366316], + [13.326037865149914, 52.513581384175055], + [13.326037865149914, 52.513581384175055], + [13.326055596714355, 52.513548403076], + [13.326059891402805, 52.51354977698632], + [13.326058877163806, 52.513550870981284], + [13.326069200203813, 52.51355405955309], + [13.326068124738436, 52.51355527432339], + [13.326057780039655, 52.513552054949514], + [13.326042629422473, 52.513581689674425], + [13.326056426417571, 52.51358257437887], + [13.326083054534417, 52.51357028310861], + [13.326089209640044, 52.513561786908376], + [13.32607999566598, 52.51355900326153], + [13.3260811554484, 52.513557752278246], + [13.326090299328195, 52.513560580669505], + [13.326157189563386, 52.51352968857315], + [13.326157189238572, 52.513529688625844], + [13.326154655388706, 52.51352477592061], + [13.326156555714455, 52.51352363982022], + [13.326159494772781, 52.513529314607545], + [13.326174955004484, 52.51352688955799], + [13.326201993184222, 52.51351538222424], + [13.326203350253751, 52.51350748755359], + [13.326170280928089, 52.51350750820152], + [13.326149399495819, 52.513509765127715], + [13.32615273221812, 52.51351622670991], + [13.326150423381883, 52.51351657077765], + [13.32614806843563, 52.51350990899259], + [13.326147070533505, 52.51351007017434], + [13.326143622227832, 52.51350784325961], + [13.326203850219908, 52.51350476858697], + [13.326203821836899, 52.51350476676848], + [13.3262081845243, 52.51347944104427], + [13.326212800039466, 52.51347973627347], + [13.326218104961601, 52.51344894277329], + [13.326213518234862, 52.513448648658766], + [13.326214723201032, 52.51344383861279], + [13.32619630337871, 52.51344338014589], + [13.32616205075095, 52.5134452114212], + [13.326158710218527, 52.51343581848163], + [13.326087336297213, 52.513445306633635], + [13.326015954538285, 52.513468841765665], + [13.325964968794622, 52.513499963249686], + [13.32592878911265, 52.51354155300742], + [13.325942245173344, 52.51354406415593], + [13.325931437520264, 52.51357685363762], + ], + }, + place: { + geo: { + point: { + type: 'Point', + coordinates: [13.3260909, 52.5134807], + }, + }, + type: 'room', + categories: ['education'], + uid: 'ed50a94d-eb06-5d07-8058-dfbdeb6c3a0b', + name: 'MA 001', + floor: '0', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '77A92', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325090166659564, 52.514071047633294], + [13.3250416602507, 52.51406793725408], + [13.325050119994058, 52.51401883232175], + [13.325098626403626, 52.514021942700964], + [13.325090166659564, 52.514071047633294], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '77D44', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326029307162523, 52.514017074846386], + [13.32602362630272, 52.51405004969336], + [13.326018792189071, 52.51407810951403], + [13.32601328712302, 52.51411006385766], + [13.32600761179871, 52.51410969993892], + [13.325995831638554, 52.51411351813832], + [13.32599322738652, 52.5141133511459], + [13.325979753429538, 52.51411248715557], + [13.325966279472818, 52.51411162316526], + [13.325958611971757, 52.51411113150217], + [13.325895903639912, 52.51410028899733], + [13.325895903639912, 52.51410028899733], + [13.325894750120987, 52.514072906590705], + [13.325894750120987, 52.514072906590705], + [13.325841915436873, 52.51406433149142], + [13.325788328355806, 52.51405755455173], + [13.325633984807904, 52.51404643300916], + [13.325633984807904, 52.51404643300916], + [13.325584903889402, 52.51404504481958], + [13.325535799165458, 52.51404514998604], + [13.325486809499273, 52.51404674821115], + [13.325486809499273, 52.51404674821115], + [13.325476591556317, 52.51407268496999], + [13.325411284763998, 52.51407534747914], + [13.325403766153464, 52.51407486536306], + [13.325403473175033, 52.51407656596675], + [13.32537652528451, 52.51407483798632], + [13.325376818262932, 52.51407313738263], + [13.325363046552267, 52.514072254298775], + [13.325363837593855, 52.514067662668765], + [13.325361306575674, 52.514067500372185], + [13.325367774066851, 52.51402995954512], + [13.325364796399484, 52.51402976860805], + [13.325367447847906, 52.51401437814435], + [13.32537042551529, 52.514014569081404], + [13.32537689299081, 52.51397702825397], + [13.325379275124746, 52.51397718100362], + [13.325381486383705, 52.513964345611136], + [13.325401529945516, 52.51394804589665], + [13.3254124733584, 52.51394874762111], + [13.325412839579737, 52.51394662186273], + [13.325431598401149, 52.51394782473517], + [13.325431232179897, 52.51394995049301], + [13.325517584547786, 52.51395548766541], + [13.32551795076865, 52.51395336191017], + [13.32553670959293, 52.51395456478263], + [13.32553634337216, 52.51395669053732], + [13.32554728678719, 52.513957392261815], + [13.325567401252775, 52.51394810781111], + [13.32558444840371, 52.51394920092539], + [13.325617723839631, 52.513951334645675], + [13.325622190342251, 52.513951621051156], + [13.325622468670028, 52.51395000547755], + [13.32562768159503, 52.51395033974076], + [13.325641227982652, 52.513951208375936], + [13.325640949169488, 52.51395282392306], + [13.325646904991258, 52.513953205828116], + [13.325646904991572, 52.51395320582626], + [13.325655613596972, 52.51395376424827], + [13.32580538487233, 52.513963368030915], + [13.325832488206403, 52.51396510598326], + [13.325849535358822, 52.51396619909823], + [13.325866046217264, 52.51397783207483], + [13.32587698963745, 52.51397853380003], + [13.325877355839939, 52.51397640815505], + [13.325896114661633, 52.513977611019186], + [13.325895748436743, 52.51397973677362], + [13.32598210085428, 52.513985273998195], + [13.325982467079223, 52.513983148243746], + [13.32600122595533, 52.513984350969864], + [13.326000859734073, 52.51398647672452], + [13.326011803156215, 52.51398717844973], + [13.326031213728342, 52.51400600808189], + [13.326029307162523, 52.514017074846386], + ], + }, + }, + ], + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCFloor', + }, + { + errorNames: [], + instance: { + uid: '3c56f5c4-006f-580e-8aff-9a9315f3fd81', + name: 'H_4', + type: 'floor', + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.32687, 52.51211], + }, + polygon: { + type: 'Polygon', + coordinates: [ + [ + [13.3254469, 52.5123792], + [13.3256455, 52.5123886], + [13.3256706, 52.5122521], + [13.3274413, 52.5123518], + [13.3274581, 52.5126071], + [13.327813, 52.5126284], + [13.3279179, 52.5123973], + [13.3282613, 52.5124033], + [13.3282347, 52.5125532], + [13.328432, 52.5125591], + [13.3285734, 52.5118008], + [13.3283154, 52.5117772], + [13.3282977, 52.5118288], + [13.3258416, 52.5116718], + [13.3258416, 52.5116266], + [13.325554, 52.5116065], + [13.3254469, 52.5123792], + ], + ], + }, + }, + type: 'building', + categories: ['education'], + name: 'Hauptgebäude', + alternateNames: ['H'], + uid: 'ebe95e80-f826-5a70-a844-436b561d5181', + address: { + addressCountry: 'Germany', + addressLocality: 'Berlin', + addressRegion: 'Berlin', + postalCode: '10623', + streetAddress: 'Straße des 17. Juni 135', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + floorName: '4', + plan: { + type: 'FeatureCollection', + crs: { + type: 'name', + properties: { + name: 'urn:ogc:def:crs:EPSG::3857', + }, + }, + features: [ + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: 'FA30', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325708952557708, 52.51213751938585], + [13.325687489715303, 52.51213614314453], + [13.325665360785402, 52.51213472419226], + [13.32567629749104, 52.51207123499326], + [13.325678073726221, 52.512071348889094], + [13.32569198756865, 52.51207224107313], + [13.325695836078308, 52.51207248784744], + [13.325692630899715, 52.512091094403324], + [13.325716684085435, 52.51209263674278], + [13.325708952557708, 52.51213751938585], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '168C0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325796457385175, 52.51205393359172], + [13.32577973116781, 52.51205286107259], + [13.325763597029319, 52.51205182651873], + [13.3256755253626, 52.51204617918351], + [13.32567710449652, 52.51203701205105], + [13.325679903157976, 52.5120207653509], + [13.325681169590682, 52.51201341349216], + [13.32570218837419, 52.51201476125953], + [13.325716990334783, 52.51201571039149], + [13.325728831903488, 52.51201646969707], + [13.325743633864668, 52.51201741882905], + [13.325755475433837, 52.51201817813464], + [13.325770277395579, 52.51201912726662], + [13.325782118965208, 52.5120198865722], + [13.325796920927528, 52.512020835704206], + [13.32580210161442, 52.51202116790038], + [13.325796457385175, 52.51205393359172], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '168CD', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32587638798708, 52.51205905890447], + [13.325833166253032, 52.512056287439044], + [13.325816588054401, 52.51205522441122], + [13.325797937581422, 52.51205402850491], + [13.325803581810685, 52.51202126281356], + [13.325808762497617, 52.51202159500977], + [13.325823564460519, 52.51202254414174], + [13.32583525801143, 52.51202329395604], + [13.325850059974902, 52.51202424308804], + [13.325861753526269, 52.51202499290231], + [13.325876703509957, 52.51202595152564], + [13.325882032217095, 52.51202629321315], + [13.32587638798708, 52.51205905890447], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '168DA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325956318598298, 52.512064184217316], + [13.325938852278755, 52.51206306424155], + [13.325922422097214, 52.51206201070502], + [13.325877868183495, 52.51205915381768], + [13.325883512413522, 52.51202638812637], + [13.325888545081424, 52.51202671083123], + [13.32590334704604, 52.51202765996325], + [13.325915188617966, 52.51202841926885], + [13.325929990583168, 52.51202936840087], + [13.32594183215555, 52.512030127706495], + [13.32595663412133, 52.512031076838504], + [13.325961962829078, 52.512031418526014], + [13.325956318598298, 52.512064184217316], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '168E7', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326036249218841, 52.51206930953027], + [13.325992287376387, 52.512066490608156], + [13.325975857193573, 52.512065437071605], + [13.32595779879489, 52.512064279130534], + [13.325963443025685, 52.51203151343923], + [13.32596847569417, 52.51203183614412], + [13.325983277660526, 52.512032785276155], + [13.325995119233827, 52.51203354458176], + [13.326009921200752, 52.5120344937138], + [13.326021762774515, 52.51203525301942], + [13.326036564742013, 52.512036202151464], + [13.326041893450396, 52.512036543839], + [13.326036249218841, 52.51206930953027], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '168F4', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326116179848707, 52.51207443484333], + [13.326098565505399, 52.512073305376184], + [13.326082135320028, 52.51207225183961], + [13.326037729415608, 52.51206940444348], + [13.326043373647172, 52.5120366387522], + [13.32604840631625, 52.51203696145711], + [13.326063208284321, 52.512037910589136], + [13.326075049859007, 52.51203866989479], + [13.32608985182765, 52.51203961902682], + [13.326101693402798, 52.512040378332465], + [13.326116495372027, 52.51204132746451], + [13.326121824081019, 52.512041669152055], + [13.326116179848707, 52.51207443484333], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16901', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326196110487883, 52.51207956015645], + [13.326140899137977, 52.51207601989386], + [13.326124468951594, 52.51207496635727], + [13.326117660045645, 52.51207452975654], + [13.32612330427797, 52.512041764065266], + [13.326128336947631, 52.51204208677017], + [13.326143138917438, 52.51204303590222], + [13.326154980493504, 52.51204379520787], + [13.326169782463873, 52.512044744339946], + [13.326181624040402, 52.51204550364562], + [13.326196426011359, 52.51204645277768], + [13.326201754720977, 52.51204679446521], + [13.326196110487883, 52.51207956015645], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1690E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326276041136387, 52.51208468546969], + [13.326256650552288, 52.51208344210666], + [13.326240220363134, 52.51208238857004], + [13.326197590685, 52.51207965506968], + [13.326203234918097, 52.51204688937844], + [13.326208267588344, 52.512047212083345], + [13.32622306955987, 52.5120481612154], + [13.326234911137322, 52.51204892052108], + [13.326249713109418, 52.512049869653175], + [13.326261554687333, 52.512050628958825], + [13.326276356660006, 52.51205157809093], + [13.32628168537024, 52.51205191977847], + [13.326276041136387, 52.51208468546969], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1691B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32635597179421, 52.51208981078302], + [13.32630875349708, 52.51208678305163], + [13.326292323306676, 52.512085729514986], + [13.32627752133367, 52.51208478038291], + [13.32628316556754, 52.51205201469168], + [13.32628819823837, 52.51205233739659], + [13.326303000211622, 52.51205328652868], + [13.32631484179045, 52.51205404583438], + [13.326329643764282, 52.51205499496647], + [13.326341485343567, 52.51205575427216], + [13.326356287317976, 52.51205670340427], + [13.326361616028832, 52.51205704509182], + [13.32635597179421, 52.51208981078302], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16928', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326435902461355, 52.512094936096446], + [13.326406002469968, 52.51209301884956], + [13.326389720296984, 52.51209197480424], + [13.326357451991669, 52.512089905696236], + [13.3263630962263, 52.51205714000504], + [13.326368128897721, 52.51205746270996], + [13.326382930872699, 52.51205841184206], + [13.326394772452906, 52.512059171147776], + [13.326409574428462, 52.51206012027986], + [13.32642141600913, 52.51206087958557], + [13.326436217985256, 52.51206182871772], + [13.326441546696739, 52.512062170405265], + [13.326435902461355, 52.512094936096446], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16933', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326487857399995, 52.51209826755023], + [13.326473203442541, 52.51209732790942], + [13.326458401465642, 52.51209637877729], + [13.326437382658984, 52.512095031009665], + [13.326443026894388, 52.512062265318484], + [13.326448059566387, 52.512062588023404], + [13.326462565503551, 52.51206351817289], + [13.326471594709501, 52.51206409714353], + [13.326486248666935, 52.51206503678431], + [13.326493501635884, 52.51206550185906], + [13.326487857399995, 52.51209826755023], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16949', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326617982816137, 52.5120926170984], + [13.326616888365434, 52.51209897055649], + [13.32661618478982, 52.51210305492243], + [13.326611152116584, 52.51210273221749], + [13.326610565803469, 52.512106135855745], + [13.326519385612546, 52.51210028920168], + [13.326504583634641, 52.51209934006955], + [13.326489337597735, 52.51209836246344], + [13.326494981833642, 52.51206559677227], + [13.3264970541105, 52.512065729650786], + [13.326511856088258, 52.512066678782915], + [13.326523697670702, 52.51206743808864], + [13.326538499649034, 52.512068387220786], + [13.326550341231926, 52.512069146526514], + [13.326565143210832, 52.51207009565865], + [13.3265769847942, 52.5120708549644], + [13.326591786773681, 52.512071804096564], + [13.326616210040534, 52.51207337016463], + [13.326615608093222, 52.512076864566595], + [13.326620640766487, 52.51207718727154], + [13.326619546316566, 52.512083540729655], + [13.326617982816137, 52.5120926170984], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16950', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326597615856604, 52.51212875175282], + [13.326561499026992, 52.51212643587035], + [13.32656168664739, 52.5121253467061], + [13.32656326578529, 52.51211617957373], + [13.326564360236919, 52.51210982611565], + [13.3266004770667, 52.512112141998095], + [13.326597615856604, 52.51212875175282], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '169EE', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326585639401694, 52.512198276736456], + [13.326585639401694, 52.512198276736456], + [13.326585639401694, 52.512198276736456], + [13.326521102774391, 52.51219413852031], + [13.326521102774391, 52.51219413852031], + [13.326521102774391, 52.51219413852031], + [13.326532836884983, 52.51212602037378], + [13.326533576983897, 52.512126067830366], + [13.326548378962414, 52.51212701696253], + [13.326558000248616, 52.51212763389842], + [13.32655797679607, 52.51212777004395], + [13.326597350061023, 52.51213029473548], + [13.326594066702265, 52.51214935510966], + [13.326611496033522, 52.51215047271279], + [13.32661040939746, 52.51215678078899], + [13.32660884589179, 52.51216585715761], + [13.32660871299378, 52.512166628648956], + [13.326591283662609, 52.51216551104584], + [13.326585639401694, 52.512198276736456], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '169FC', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326637593880807, 52.51214948493734], + [13.326635077544111, 52.51214932358488], + [13.326623235959785, 52.51214856427915], + [13.326603993385687, 52.51214733040733], + [13.326605650700298, 52.51213770945656], + [13.326603430403315, 52.51213756708673], + [13.326604759381478, 52.512129852173366], + [13.326640580173752, 52.51213214907321], + [13.326637593880807, 52.51214948493734], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A1E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326672156506358, 52.51215170116096], + [13.326653209970507, 52.51215048627178], + [13.326641072346256, 52.51214970798341], + [13.326639296108576, 52.512149594087546], + [13.326640738441464, 52.51214122113747], + [13.326673598839315, 52.5121433282109], + [13.326672156506358, 52.51215170116096], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A28', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326690732993177, 52.51215289232184], + [13.326689400814825, 52.51215280689994], + [13.326675634971975, 52.51215192420703], + [13.326673858734216, 52.512151810311146], + [13.326675480870167, 52.51214239357868], + [13.32664091824444, 52.51214017735506], + [13.326642282401528, 52.5121322582234], + [13.326657824481444, 52.51213325481218], + [13.326693719286398, 52.51213555645772], + [13.326690732993177, 52.51215289232184], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A2F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325716863888225, 52.512091592960324], + [13.325694512927916, 52.512090159771084], + [13.325697538303741, 52.51207259699762], + [13.325699314538982, 52.512072710893456], + [13.325710416009326, 52.512073422742425], + [13.325719889264162, 52.5120740301869], + [13.325716863888225, 52.512091592960324], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A39', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32664156806156, 52.51221415966838], + [13.326590797269859, 52.51221090414508], + [13.326597833054858, 52.5121700604865], + [13.326603013747777, 52.512170392682734], + [13.326603498434713, 52.512167579008455], + [13.326617856355313, 52.51216849966665], + [13.32663428655347, 52.51216955320334], + [13.326649088534136, 52.512170502335515], + [13.32664156806156, 52.51221415966838], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A44', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326695949650418, 52.512211223086204], + [13.326692989254068, 52.51221103325977], + [13.326691894797573, 52.512217386717744], + [13.32664304825963, 52.51221425458161], + [13.326650568732218, 52.51217059724871], + [13.326663002396252, 52.51217139451974], + [13.32667950660541, 52.51217245280212], + [13.326699119231149, 52.51217371040225], + [13.326697758980346, 52.51218160684294], + [13.326701015416369, 52.51218181565201], + [13.326695949650418, 52.512211223086204], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A53', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326751910386815, 52.512199119371815], + [13.326748142330421, 52.51222099342003], + [13.326697815590286, 52.512217766370625], + [13.326698910046794, 52.51221141291261], + [13.326697429848606, 52.51221131799942], + [13.326702495614569, 52.51218191056524], + [13.326703087693838, 52.51218194853052], + [13.326703267497146, 52.51218090474814], + [13.326699641011567, 52.51218067221076], + [13.326700821459074, 52.51217381955245], + [13.326716215520468, 52.512174806649924], + [13.326732645720988, 52.51217586018665], + [13.326755662804358, 52.5121773360872], + [13.326753473894577, 52.51219004300324], + [13.326751910386815, 52.512199119371815], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A60', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326802523927771, 52.51221805683795], + [13.32679956353095, 52.51221786701153], + [13.326798469074266, 52.512224220469484], + [13.32674962252873, 52.51222108833326], + [13.326753390585118, 52.51219921428503], + [13.326754954092893, 52.51219013791646], + [13.326757143002679, 52.51217743100041], + [13.326768910579387, 52.51217818556052], + [13.326785340781177, 52.51217923909725], + [13.326805693509149, 52.51218054415401], + [13.326804333258108, 52.51218844059473], + [13.326807589694633, 52.51218864940379], + [13.326802523927771, 52.51221805683795], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A6F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326909098221684, 52.51222489058987], + [13.326906877923728, 52.51222474822002], + [13.326905783466835, 52.51223110167802], + [13.326856196814377, 52.512227922085074], + [13.326858471720664, 52.51221471596885], + [13.326861528379514, 52.51219697166832], + [13.326862357038523, 52.51219216119295], + [13.326862357038523, 52.51219216119295], + [13.326862622834767, 52.512190618210305], + [13.326863717289704, 52.51218426475229], + [13.326863717289704, 52.51218426475229], + [13.326863717289704, 52.51218426475229], + [13.326863717289704, 52.51218426475229], + [13.326915524240762, 52.512187586715065], + [13.326909098221684, 52.51222489058987], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A94', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326914474006504, 52.51218499580046], + [13.326914395831164, 52.5121854496189], + [13.326899815874556, 52.51218451472367], + [13.326899643888813, 52.512185513124194], + [13.326838511688385, 52.51218159320816], + [13.326822081485325, 52.51218053967139], + [13.32678552058443, 52.51217819531487], + [13.326769090382642, 52.512177141778125], + [13.326732825524227, 52.51217481640427], + [13.3267163953237, 52.51217376286753], + [13.326679686408637, 52.512171409019736], + [13.326663182199471, 52.51217035073738], + [13.326634466356678, 52.51216850942097], + [13.326618036158518, 52.51216745588427], + [13.326610043089275, 52.51216694335289], + [13.326610293250235, 52.51216549113389], + [13.326611778580617, 52.512156868583716], + [13.32661313883003, 52.512148972142995], + [13.326623056156741, 52.512149608061534], + [13.326634897741059, 52.51215036736727], + [13.326640892543207, 52.512150751765795], + [13.326653030167451, 52.51215153005417], + [13.326675455168907, 52.51215296798944], + [13.326689221011756, 52.51215385068234], + [13.326710831905384, 52.51215523641534], + [13.326722969530868, 52.5121560147037], + [13.326734219037615, 52.51215673604419], + [13.326746060623854, 52.51215749534994], + [13.326838128963873, 52.512163398952225], + [13.326849970551901, 52.51216415825799], + [13.326885051257664, 52.51216640770134], + [13.326897188886237, 52.51216718598975], + [13.326902739631086, 52.512167541914344], + [13.326902552010413, 52.51216863107861], + [13.326917131967077, 52.512169565973835], + [13.32691603751295, 52.512175919431876], + [13.326914474006504, 52.51218499580046], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16AA1', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326730920374784, 52.51215546921573], + [13.326723149333953, 52.51215497092134], + [13.326711011708467, 52.51215419263293], + [13.326709531510245, 52.51215409771971], + [13.326710063101896, 52.512151011754376], + [13.32671115755506, 52.51214465829633], + [13.326703756564006, 52.51214418373022], + [13.326702662110861, 52.512150537188276], + [13.326702130519212, 52.51215362315362], + [13.326692435221085, 52.51215300147205], + [13.326695734215026, 52.51213385033417], + [13.326734219368937, 52.51213631807786], + [13.326730920374784, 52.51215546921573], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16AA8', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326762818648033, 52.51215751459559], + [13.326746240426942, 52.512156451567535], + [13.3267343988407, 52.51215569226178], + [13.326732622602782, 52.51215557836593], + [13.326735608896204, 52.5121382425018], + [13.326765804941617, 52.51214017873147], + [13.326762818648033, 52.51215751459559], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16B03', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326901111865517, 52.51216005035682], + [13.326911621275864, 52.5121607242407], + [13.326910542457217, 52.51216698693506], + [13.32689736868938, 52.512166142207384], + [13.326885231060794, 52.512165363918946], + [13.32687205729344, 52.51216451919127], + [13.326873136112011, 52.512158256496924], + [13.326882757402771, 52.512158873432874], + [13.326884711783487, 52.51214752797207], + [13.326879309058643, 52.51214718153881], + [13.326873388264335, 52.51214680188591], + [13.326869761777855, 52.512146569348516], + [13.326871575442205, 52.512136040760865], + [13.32691982991715, 52.51213913493191], + [13.32691801625265, 52.51214966351958], + [13.326914463775866, 52.512149435727835], + [13.326908542981261, 52.512149056074946], + [13.326903066246294, 52.51214870489603], + [13.326901111865517, 52.51216005035682], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16B22', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.3269656948796, 52.51221778302792], + [13.326963862019197, 52.51222840215119], + [13.326962771116607, 52.51223475583706], + [13.3269117042614, 52.51223148133091], + [13.326912798718293, 52.51222512787292], + [13.326910578420327, 52.51222498550308], + [13.326916113240355, 52.51219285515837], + [13.326938316220595, 52.51219427885671], + [13.326954598406562, 52.512195322902166], + [13.326969400394143, 52.512196272034416], + [13.326968219945812, 52.5122031246927], + [13.326968219945812, 52.5122031246927], + [13.326968040142392, 52.51220416847505], + [13.326968040142392, 52.51220416847505], + [13.3269656948796, 52.51221778302792], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16B54', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327076555778465, 52.51219538879854], + [13.327075820929997, 52.51219965469176], + [13.327072416472301, 52.512199436391356], + [13.327072056865559, 52.512201523956115], + [13.327060955373186, 52.51220081210694], + [13.327044377144903, 52.51219974907879], + [13.32695482511513, 52.5121940068287], + [13.326938542929161, 52.51219296278325], + [13.32691974440584, 52.51219175738533], + [13.326920104012482, 52.512189669820565], + [13.326916699555554, 52.51218945152018], + [13.326917356228472, 52.51218563944535], + [13.326915876029817, 52.51218554453212], + [13.326915954205157, 52.51218509071369], + [13.326917517711616, 52.5121760143451], + [13.326918612165745, 52.512169660887054], + [13.32692157256308, 52.512169850713505], + [13.326921760183762, 52.512168761549276], + [13.326923388402303, 52.51216886595381], + [13.326924811192141, 52.51216060645836], + [13.326937170851226, 52.51216139898377], + [13.326950492639718, 52.51216225320278], + [13.326969365173847, 52.5121634633464], + [13.326982686962959, 52.51216431756542], + [13.327001559497972, 52.51216552770904], + [13.327014881287713, 52.51216638192805], + [13.327021172132957, 52.512166785309255], + [13.327019929146047, 52.512174001022295], + [13.327031474697453, 52.512174741345454], + [13.32703271768437, 52.5121675256324], + [13.327046631554285, 52.512168417816724], + [13.327064245921935, 52.5121695472841], + [13.327075051374582, 52.51217024015068], + [13.327073628584378, 52.512178499646105], + [13.327079401360507, 52.51217886980769], + [13.32707811928534, 52.51218631242995], + [13.327076555778465, 52.51219538879854], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16B62', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32712298695877, 52.51223860555081], + [13.327122246859217, 52.512238558094204], + [13.327121152401922, 52.51224491155215], + [13.327070085534901, 52.512241637045854], + [13.327077606012969, 52.51219797971312], + [13.327099586968577, 52.51219938917455], + [13.327116017178291, 52.51220044271136], + [13.327131115209182, 52.51220141082628], + [13.327129762774922, 52.5122092618851], + [13.327125544207453, 52.512208991382415], + [13.327125364404017, 52.51221003516479], + [13.327127880742507, 52.51221019651728], + [13.32712631723402, 52.51221927288583], + [13.32712298695877, 52.51223860555081], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16B72', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327192942061993, 52.51224951484371], + [13.327127073198348, 52.51224529120506], + [13.327128167655653, 52.512238937747114], + [13.327124467157875, 52.51223870046404], + [13.327127797433125, 52.512219367799055], + [13.327129360941615, 52.51221029143052], + [13.327131285200467, 52.51221041481769], + [13.327132035684325, 52.512206058160785], + [13.327137216381281, 52.512206390357086], + [13.327137998135145, 52.51220185217279], + [13.327153910276062, 52.51220287249], + [13.327170488506994, 52.51220393551814], + [13.327200462541624, 52.512205857511034], + [13.327198273630183, 52.512218564427016], + [13.32719671012123, 52.51222764079556], + [13.327192942061993, 52.51224951484371], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16B87', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327240883697124, 52.51217862536643], + [13.327239588522689, 52.512178542317365], + [13.327238494068547, 52.5121848957754], + [13.327237962476413, 52.5121879817407], + [13.327235002077709, 52.51218779191426], + [13.327223160483022, 52.51218703260842], + [13.3271893749343, 52.51218486621397], + [13.327192673931032, 52.51216571507616], + [13.327242556647859, 52.512168913652], + [13.327240883697124, 52.51217862536643], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16B91', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327262052721345, 52.512189526453554], + [13.32726053551696, 52.512189429167485], + [13.327248323871986, 52.512188646133325], + [13.327245363473235, 52.512188456306866], + [13.327245895065362, 52.51218537034155], + [13.327246989519526, 52.51217901688352], + [13.327242585926394, 52.51217873451666], + [13.327244258877133, 52.51216902280221], + [13.327265351718482, 52.51217037531575], + [13.327262052721345, 52.512189526453554], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16BA0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327341853101439, 52.51218454912103], + [13.327338152602499, 52.51218431183794], + [13.327336432745595, 52.5121942958434], + [13.32731345264769, 52.51219282231548], + [13.327301833081572, 52.512192077246624], + [13.327298317607784, 52.51219185182769], + [13.327299939745458, 52.512182435095255], + [13.327265377088253, 52.512180218871315], + [13.327267053947818, 52.51217048446597], + [13.32726883018712, 52.51217059836185], + [13.327280819802555, 52.512171367159006], + [13.327282596041893, 52.512171481054885], + [13.327282345881063, 52.51217293327389], + [13.327343182081245, 52.51217683420769], + [13.327341853101439, 52.51218454912103], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16BA7', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32729661537838, 52.512191742677466], + [13.327295172183886, 52.512191650137076], + [13.327283034548264, 52.51219087184859], + [13.327263754950666, 52.51218963560376], + [13.327265197285078, 52.512181262653726], + [13.327298057712872, 52.51218336972745], + [13.32729661537838, 52.512191742677466], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16BC6', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327330928024788, 52.51221169963694], + [13.327330677863511, 52.512213151855924], + [13.327280203060573, 52.51220991531475], + [13.327263624826982, 52.51220885228656], + [13.32722706390254, 52.51220650792978], + [13.327210559680202, 52.512205449647276], + [13.327170668310371, 52.51220289173576], + [13.327154090079432, 52.51220182870761], + [13.327116196981649, 52.512199398928985], + [13.327099766771937, 52.51219834539217], + [13.327092365776693, 52.512197870826014], + [13.327092537762502, 52.512196872425484], + [13.32707795780211, 52.51219593753021], + [13.327078035977474, 52.512195483711764], + [13.327079599484353, 52.51218640734318], + [13.327080693938798, 52.51218005388515], + [13.327095273899252, 52.51218098878044], + [13.327095461519988, 52.5121798996162], + [13.327158147952515, 52.51218391919139], + [13.32716998954607, 52.512184678497206], + [13.327222980679792, 52.51218807639081], + [13.327234822274475, 52.51218883569664], + [13.327248144068744, 52.51218968991573], + [13.327260355713712, 52.51219047294986], + [13.32728285474501, 52.512191915630986], + [13.327294992380624, 52.51219269391948], + [13.327301653278317, 52.51219312102899], + [13.327313272844425, 52.512193866097896], + [13.327333773608057, 52.51219518064613], + [13.327332413356986, 52.5122030770868], + [13.327330928024788, 52.51221169963694], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16BDB', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327249997296791, 52.5122310576718], + [13.327246229237216, 52.51225293171994], + [13.327233647542691, 52.512252124957506], + [13.327234742000194, 52.51224577149955], + [13.327228821202837, 52.51224539184663], + [13.327227726745349, 52.512251745304575], + [13.32719442226125, 52.512249609756935], + [13.327198190320498, 52.51222773570879], + [13.327199753829449, 52.51221865934024], + [13.327201942740897, 52.512205952424246], + [13.32721037987682, 52.51220649342965], + [13.327226884099156, 52.512207551712166], + [13.327239465793571, 52.51220835847462], + [13.327238238439737, 52.51221548342396], + [13.327234167891518, 52.512215222412586], + [13.327233988088063, 52.51221626619495], + [13.327239760865531, 52.51221663635653], + [13.32724116802284, 52.512208467624845], + [13.327253749717519, 52.51220927438728], + [13.32725156080588, 52.51222198130328], + [13.327249997296791, 52.5122310576718], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16BEA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327333857045476, 52.5122585505832], + [13.327247709436588, 52.51225302663318], + [13.327251477496175, 52.512231152585045], + [13.32725304100527, 52.51222207621651], + [13.327255229916906, 52.512209369300514], + [13.327263445023581, 52.51220989606894], + [13.327280023257167, 52.51221095909712], + [13.32731887849369, 52.51221345056944], + [13.327318096739596, 52.51221798875373], + [13.327319798969057, 52.51221809790395], + [13.327320580723157, 52.51221355971965], + [13.3273368629182, 52.512214603765216], + [13.327336315690335, 52.5122177804942], + [13.327340830299033, 52.51221806997955], + [13.327333857045476, 52.5122585505832], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16C01', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327408606580892, 52.512251184163254], + [13.327408606580892, 52.512251184163254], + [13.327408606580892, 52.512251184163254], + [13.3273418495228, 52.51224690388965], + [13.3273418495228, 52.51224690388965], + [13.3273418495228, 52.51224690388965], + [13.327347650114543, 52.51221323072058], + [13.327332330048952, 52.51221224836861], + [13.327332408224343, 52.512211794550176], + [13.327333893556544, 52.51220317200004], + [13.327335066186809, 52.512196364723614], + [13.327350830312357, 52.51219737554953], + [13.327356818538735, 52.51216261305772], + [13.327365403696557, 52.51216316355447], + [13.327380057673073, 52.51216410319548], + [13.327404480967967, 52.51216566926382], + [13.327418394845449, 52.51216656144823], + [13.327440005762092, 52.51216794718145], + [13.327439849411638, 52.512168854818306], + [13.327438285906684, 52.51217793118694], + [13.327437074189902, 52.51218496537261], + [13.327420199912554, 52.51218388336174], + [13.327408606580892, 52.512251184163254], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16C13', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327423311287667, 52.512165821388194], + [13.327418574648464, 52.51216551766585], + [13.327404660770975, 52.51216462548143], + [13.32740022017184, 52.51216434074174], + [13.327356998341735, 52.51216156927533], + [13.327359687568112, 52.51214595792124], + [13.327363361798724, 52.512124628454806], + [13.327364526607251, 52.51211786656012], + [13.327430839554033, 52.51212211867302], + [13.32742968256288, 52.512128835185855], + [13.327423311287667, 52.512165821388194], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16C1C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327479114820804, 52.51216939961714], + [13.327464016782212, 52.51216843150213], + [13.327447734584105, 52.512167387456564], + [13.327426271687195, 52.51216601121465], + [13.327432642962425, 52.51212902501233], + [13.327435603362007, 52.5121292148388], + [13.327436752535654, 52.51212254370778], + [13.32748663527037, 52.51212574228384], + [13.327479114820804, 52.51216939961714], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16C25', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327529145578506, 52.51217260768453], + [13.327515231698777, 52.51217171550011], + [13.327498949499454, 52.5121706714545], + [13.327480595020683, 52.512169494530376], + [13.327488115470267, 52.512125837197075], + [13.32753444572871, 52.51212880798139], + [13.32753366397783, 52.512133346165704], + [13.327535884277838, 52.512133488535575], + [13.327529145578506, 52.51217260768453], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16C3A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.3276366527108, 52.51215665145325], + [13.327635167382295, 52.512165274003465], + [13.327634713966113, 52.51216790615038], + [13.327625388704819, 52.51216730819697], + [13.327625208901834, 52.512168351979355], + [13.327634386143098, 52.51216894044144], + [13.32763292426633, 52.51217742684614], + [13.327627003465512, 52.51217704719317], + [13.327626690764525, 52.5121788624669], + [13.327614553123023, 52.51217808417832], + [13.327598122901328, 52.512177030641396], + [13.327564966419105, 52.51217490458487], + [13.327548536198593, 52.512173851047926], + [13.327530625778493, 52.51217270259778], + [13.327537364477843, 52.51213358344879], + [13.327539584777853, 52.51213372581867], + [13.327540366528735, 52.51212918763432], + [13.32763805973655, 52.51213545190806], + [13.32763727798554, 52.51213999009237], + [13.327639498285874, 52.51214013246224], + [13.3276366527108, 52.51215665145325], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16C57', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327739970693912, 52.51216327639743], + [13.327738485365154, 52.51217189894762], + [13.327738031948886, 52.51217453109453], + [13.327728706686184, 52.512173933141135], + [13.327728526883165, 52.51217497692352], + [13.327737704125823, 52.5121755653856], + [13.327736242248797, 52.51218405179029], + [13.327730321447081, 52.51218367213731], + [13.32773000874605, 52.51218548741104], + [13.32771838917285, 52.5121847423421], + [13.327701810928628, 52.51218367931379], + [13.327664139830526, 52.512181263771836], + [13.327647709607648, 52.512180210234874], + [13.327640308606478, 52.51217973566871], + [13.327640621307461, 52.51217792039497], + [13.327634700506586, 52.512177540742016], + [13.32763616238336, 52.51216905433734], + [13.327645339624766, 52.512169642799414], + [13.327645519427751, 52.51216859901702], + [13.327636194166324, 52.51216800106362], + [13.32763664758251, 52.5121653689167], + [13.327638132911016, 52.51215674636648], + [13.327640978486102, 52.51214022737549], + [13.32764319878645, 52.512140369745346], + [13.327643980537475, 52.51213583156101], + [13.327741673760059, 52.5121420958349], + [13.32774089200891, 52.51214663401922], + [13.32774281626949, 52.51214675740643], + [13.327739970693912, 52.51216327639743], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16CD7', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328274599688298, 52.51221765461011], + [13.328273119486699, 52.51221755969686], + [13.328258317470933, 52.51221661056434], + [13.328240185002056, 52.51221544787699], + [13.328239825395565, 52.51221753544175], + [13.328231462257024, 52.51221699918187], + [13.32823390132644, 52.51220284004684], + [13.328276679151383, 52.512205583039844], + [13.328274599688298, 52.51221765461011], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16CD8', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328277085662824, 52.51220322318403], + [13.328276858954526, 52.51220453925747], + [13.328234081129576, 52.51220179626447], + [13.32823430783786, 52.51220048019101], + [13.32822453850796, 52.51219985376354], + [13.328221583481717, 52.5122170081002], + [13.328151865995498, 52.51221253768606], + [13.328155024277056, 52.51219420342151], + [13.328156509606574, 52.512185580871304], + [13.328157729139848, 52.512178501303765], + [13.328160393502271, 52.51217867214762], + [13.328162050816099, 52.51216905119684], + [13.328231176222877, 52.51217348364571], + [13.32822951890886, 52.51218310459647], + [13.328237215956703, 52.512183598145384], + [13.328237442664806, 52.512182282071926], + [13.328239959007393, 52.51218244342445], + [13.328255353103405, 52.5121834305223], + [13.32828022049, 52.51218502506495], + [13.328279071314252, 52.51219169619589], + [13.328277085662824, 52.51220322318403], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16D03', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328250499357846, 52.512256348746824], + [13.328226446083226, 52.51225480640647], + [13.32822939329699, 52.51223769745177], + [13.328240050747855, 52.51223838082719], + [13.328250412158567, 52.51223904521998], + [13.328253446571741, 52.51223923979212], + [13.328250499357846, 52.512256348746824], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16D78', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32813175934566, 52.512223269787256], + [13.328130547627397, 52.51223030397289], + [13.328086437630565, 52.51222747555807], + [13.32807015541769, 52.512226431512325], + [13.32750072227059, 52.51218991838806], + [13.327484292051636, 52.512188864851154], + [13.327437813776722, 52.51218588457557], + [13.327439174026557, 52.5121779881349], + [13.327440737531516, 52.51216891176625], + [13.32744089388197, 52.51216800412939], + [13.327447554781086, 52.512168431238955], + [13.327463836979181, 52.51216947528453], + [13.327498769696419, 52.512171715236896], + [13.327515051895737, 52.512172759282485], + [13.32754835639554, 52.51217489483033], + [13.327564786616051, 52.51217594836726], + [13.327597943098263, 52.51217807442377], + [13.327614373319953, 52.512179127960714], + [13.327647529804558, 52.51218125401727], + [13.327663960027442, 52.512182307554234], + [13.327701631125532, 52.512184723096205], + [13.327718209369749, 52.512185786124476], + [13.327755066360554, 52.5121881494642], + [13.32777164460606, 52.512189212492494], + [13.327804801098276, 52.51219133854912], + [13.327821231324927, 52.51219239208614], + [13.327855053909857, 52.512194560853736], + [13.32787133611763, 52.51219560489943], + [13.32791574214082, 52.51219845229677], + [13.327932320390218, 52.512199515325115], + [13.327961184307522, 52.512201366133404], + [13.32797776255801, 52.51220242916178], + [13.328011215100407, 52.512204574201135], + [13.328027793352115, 52.51220563722953], + [13.328064946399794, 52.51220801955205], + [13.328081376632676, 52.5122090730891], + [13.328110240556267, 52.51221092389748], + [13.328126522770111, 52.5122119679432], + [13.328133627736271, 52.51221242352682], + [13.328133322852509, 52.51221419341867], + [13.32813175934566, 52.512223269787256], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16DAC', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328272350925022, 52.51223939666239], + [13.328250591961996, 52.51223800143756], + [13.328240230551284, 52.5122373370448], + [13.328238158269155, 52.51223720416624], + [13.328238306802406, 52.51223634191123], + [13.328239369987632, 52.51223016998061], + [13.328240933494778, 52.51222109361203], + [13.328241089845454, 52.51222018597518], + [13.328241707430568, 52.51221660080959], + [13.328258137667692, 52.5122176543467], + [13.328272939683456, 52.51221860347922], + [13.328275900086645, 52.51221879330573], + [13.32827449293045, 52.512226962037445], + [13.328272350925022, 52.51223939666239], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A922', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325436032077741, 52.51238352592872], + [13.325438474400226, 52.512383682535486], + [13.325438474400226, 52.512383682535486], + [13.325466672124147, 52.51238549063171], + [13.325466672124147, 52.51238549063171], + [13.325468004300115, 52.51238557605358], + [13.32547514959716, 52.512344097050516], + [13.325436072436217, 52.51234159134233], + [13.325432163632327, 52.51236428226311], + [13.325439268570467, 52.51236473784642], + [13.325436032077741, 52.51238352592872], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A923', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32547556556842, 52.51235210738678], + [13.325507537792669, 52.51235415751165], + [13.325501752758672, 52.51238774007428], + [13.325469780534728, 52.51238568994941], + [13.32547556556842, 52.51235210738678], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A924', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32551286321954, 52.51233366805138], + [13.325543947328162, 52.51233566122838], + [13.325534190949993, 52.51239229776653], + [13.325503106841897, 52.512390304589545], + [13.32551286321954, 52.51233366805138], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A925', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325545723562978, 52.51233577512421], + [13.325536389336296, 52.512389961042935], + [13.325602406066007, 52.512394194171215], + [13.325605642559646, 52.51237540608892], + [13.32561274749959, 52.51237586167225], + [13.325618845233754, 52.51234046383583], + [13.325545723562978, 52.51233577512421], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A926', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325494040672307, 52.51232043973287], + [13.325470949621725, 52.51231895908712], + [13.325460588253133, 52.5123182946948], + [13.325454667471151, 52.51231791504205], + [13.325454745647098, 52.51231746122363], + [13.32545296941251, 52.512317347327816], + [13.325452891236562, 52.512317801146224], + [13.325440309575049, 52.51231699438411], + [13.325442951921202, 52.512301655321565], + [13.32545553358277, 52.512302462083674], + [13.32545390752379, 52.51231190150679], + [13.325455683758374, 52.51231201540261], + [13.325457309817367, 52.51230257597949], + [13.325483065219492, 52.512304227468974], + [13.325481439160423, 52.5123136668921], + [13.325483215395087, 52.51231378078792], + [13.325484841454156, 52.51230434136481], + [13.325496683018702, 52.512305100670325], + [13.325494040672307, 52.51232043973287], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A927', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32549164848728, 52.51233432657645], + [13.325491056409058, 52.512334288611186], + [13.325480695040161, 52.51233362421885], + [13.325476994551304, 52.51233338693587], + [13.32547533721966, 52.512343007886294], + [13.325443364996888, 52.51234095776144], + [13.325443552619365, 52.51233986859722], + [13.325436447681183, 52.51233941301393], + [13.325440121952761, 52.51231808354833], + [13.325460400630845, 52.512319383859], + [13.32547076199943, 52.51232004825132], + [13.325493853050006, 52.51232152889708], + [13.32549164848728, 52.51233432657645], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A928', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325508632257565, 52.512347804053825], + [13.325507772320885, 52.512352796056405], + [13.325487345621884, 52.51235148625439], + [13.325477724350812, 52.51235086931865], + [13.325475800096621, 52.512350745931506], + [13.325478551893136, 52.512334771523285], + [13.325480476147343, 52.512334894910424], + [13.325490837516233, 52.51233555930275], + [13.325493205829138, 52.51233571116384], + [13.325498459253408, 52.512305214566155], + [13.325513705268104, 52.512306192172005], + [13.325515481502846, 52.51230630606784], + [13.325510790945685, 52.51233353517291], + [13.325511086984815, 52.512333554155546], + [13.325510070696652, 52.512339453794965], + [13.325508632257565, 52.512347804053825], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A929', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325540646051385, 52.51233223772517], + [13.325540567875404, 52.512332691543584], + [13.32551570058851, 52.51233109700198], + [13.325519922089729, 52.512306590807405], + [13.325544789376789, 52.512308185349], + [13.325542209570948, 52.51232316135682], + [13.325540646051385, 52.51233223772517], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A92A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325619314289822, 52.51233774092536], + [13.325608360840654, 52.51233703856773], + [13.325594447000073, 52.51233614638374], + [13.325542048071076, 52.51233278645676], + [13.325542126247063, 52.512332332638366], + [13.325543689766628, 52.51232325627], + [13.325546269572481, 52.5123082802622], + [13.325623535791777, 52.51231323473081], + [13.325619314289822, 52.51233774092536], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A92B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325633260863464, 52.512256779719266], + [13.325628726669185, 52.51228310118773], + [13.325627663478, 52.51228927311825], + [13.325624317550883, 52.51230869654661], + [13.32551626326181, 52.51230176788365], + [13.325515794206447, 52.512304490794186], + [13.325514017971706, 52.51230437689834], + [13.32549877195699, 52.512303399292485], + [13.325496995722295, 52.51230328539665], + [13.325497464777632, 52.51230056248614], + [13.325443733680064, 52.512297117137386], + [13.32544707960616, 52.512277693708995], + [13.325448142797015, 52.51227152177847], + [13.325452676989903, 52.51224520030992], + [13.32545374017917, 52.5122390283794], + [13.325458321270672, 52.51221243461968], + [13.325459384458352, 52.51220626268909], + [13.325464043718435, 52.51217921511082], + [13.325465106904502, 52.512173043180184], + [13.32546965671203, 52.512146630947555], + [13.32547071989651, 52.512140459016884], + [13.325475316602397, 52.512113774493045], + [13.325476379785274, 52.512107602562374], + [13.325481242279603, 52.5120793750557], + [13.32548230546081, 52.512073203124956], + [13.325484603807386, 52.5120598608629], + [13.32553034185203, 52.51206279368051], + [13.325529982246849, 52.512064881245365], + [13.325606656386748, 52.512069797748765], + [13.325607015991976, 52.51206771018393], + [13.325614861029944, 52.512068213223856], + [13.32564150455579, 52.51206992166134], + [13.325665187690747, 52.51207144027247], + [13.325651303775604, 52.51215203842636], + [13.325650240590807, 52.51215821035701], + [13.32564569078188, 52.51218462258957], + [13.325644627595485, 52.5121907945202], + [13.325639968333961, 52.512217842098444], + [13.325638905145965, 52.51222401402904], + [13.325634324053057, 52.51225060778872], + [13.325633260863464, 52.512256779719266], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A92C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325621537298785, 52.51204248794269], + [13.325633674905005, 52.51204326623088], + [13.325649957060037, 52.51204431027603], + [13.325669643666174, 52.51204557262152], + [13.325667865185382, 52.512055896991], + [13.325666301685098, 52.51206497335974], + [13.325665844361136, 52.51206762819761], + [13.325642161226158, 52.51206610958649], + [13.325615517700285, 52.512064401149], + [13.325476231284641, 52.51205546981757], + [13.325489286489505, 52.511979682137955], + [13.325630793202071, 52.511988755839255], + [13.325621537298785, 52.51204248794269], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A92D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325673982374017, 52.512020385698115], + [13.32567118371259, 52.51203663239828], + [13.325669831286074, 52.51204448345727], + [13.325650144679932, 52.51204322111179], + [13.325633862524903, 52.51204217706664], + [13.32562572144753, 52.51204165504407], + [13.325625955972376, 52.51204029358874], + [13.325623735678565, 52.512040151218955], + [13.325632569437138, 52.511988869735085], + [13.325639822397056, 52.51198933480975], + [13.325655660493481, 52.511990350380934], + [13.32567889957021, 52.511991840518135], + [13.325673982374017, 52.512020385698115], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A92E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32568069758947, 52.511981402693934], + [13.32567955623821, 52.51198802844318], + [13.325656317161458, 52.51198653830602], + [13.325640479065017, 52.51198552273484], + [13.325625529086466, 52.51198456411156], + [13.325627545994436, 52.51197285559571], + [13.325625769759375, 52.51197274169987], + [13.325625957378664, 52.511971652535614], + [13.325627630316918, 52.51196194082088], + [13.325627817936123, 52.51196085165663], + [13.325629594171186, 52.51196096555243], + [13.325636958217325, 52.51191821585477], + [13.32565708888197, 52.51191950667423], + [13.325670706684873, 52.51192037987564], + [13.32569098537011, 52.51192168018644], + [13.325690829021076, 52.51192258782333], + [13.32568918735577, 52.51193211801074], + [13.32568799910233, 52.51193901605112], + [13.325686357435798, 52.5119485462385], + [13.325685169181467, 52.511955444278875], + [13.32568352751369, 52.51196497446624], + [13.325682339258478, 52.511971872506585], + [13.32568069758947, 52.511981402693934], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A932', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325742097137823, 52.51175528181991], + [13.325700207588179, 52.511752595776386], + [13.325684665529765, 52.51175159918779], + [13.325593876037498, 52.51174577757943], + [13.325593876037498, 52.51174577757943], + [13.325593877315105, 52.511745766459086], + [13.3255938773245, 52.51174575531202], + [13.325593876065627, 52.51174574419249], + [13.32559387354463, 52.51174573315475], + [13.325593869773787, 52.51174572225248], + [13.325593864771479, 52.51174571153883], + [13.325593858562067, 52.51174570106599], + [13.325593851175809, 52.51174569088502], + [13.325593842648674, 52.51174568104552], + [13.32559383302222, 52.511745671595364], + [13.325593822343343, 52.51174566258063], + [13.325593810664078, 52.51174565404524], + [13.325593798041309, 52.51174564603081], + [13.325593784536553, 52.5117456385763], + [13.325593770215571, 52.5117456317181], + [13.325593755148159, 52.51174562548963], + [13.325593739407736, 52.51174561992116], + [13.325593723070963, 52.51174561503987], + [13.32559370621743, 52.51174561086954], + [13.325593688929255, 52.51174560743051], + [13.325593671290669, 52.511745604739474], + [13.325593653387596, 52.511745602809604], + [13.325593635307259, 52.511745601650254], + [13.325593617137761, 52.51174560126708], + [13.325593598967597, 52.51174560166198], + [13.325593580885304, 52.51174560283301], + [13.32559356297897, 52.511745604774454], + [13.325593545335844, 52.511745607476854], + [13.32559352804187, 52.511745610927086], + [13.325593511181305, 52.51174561510828], + [13.32559349483629, 52.511745620000134], + [13.32559347908647, 52.511745625578776], + [13.32559346400856, 52.51174563181699], + [13.325593449676033, 52.511745638684445], + [13.325593436158696, 52.51174564614765], + [13.325593423522418, 52.51174565417028], + [13.325593411828764, 52.511745662713196], + [13.325593401134698, 52.51174567173481], + [13.325593391492319, 52.511745681191194], + [13.32559338294861, 52.51174569103623], + [13.32559337554519, 52.51174570122199], + [13.325593369318128, 52.51174571169881], + [13.325593364297768, 52.51174572241568], + [13.325593360508558, 52.5117457333204], + [13.325593357968962, 52.51174574435979], + [13.325566397877814, 52.511744015623385], + [13.325566710573396, 52.51174220034954], + [13.325540363089253, 52.511740510894654], + [13.32554227053163, 52.51172943772416], + [13.325508226031015, 52.51172725472069], + [13.325509640977318, 52.51171904060651], + [13.325745732223394, 52.51173417926142], + [13.325742097137823, 52.51175528181991], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A933', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325892337521495, 52.51180400795192], + [13.325890561285737, 52.51180389405605], + [13.325875315262325, 52.51180291645008], + [13.325864213789183, 52.51180220460107], + [13.325848967766362, 52.51180122699509], + [13.325837866293641, 52.51180051514607], + [13.325822620271403, 52.511799537540114], + [13.32581151879911, 52.511798825691095], + [13.325796272777467, 52.51179784808514], + [13.325785171305602, 52.51179713623614], + [13.325769925284535, 52.51179615863018], + [13.325758823813102, 52.511795446781186], + [13.325743577792617, 52.511794469175236], + [13.3256942872627, 52.51179130856572], + [13.325678449165256, 52.51179029299451], + [13.325659206617445, 52.51178905912294], + [13.325661114063763, 52.51177798595255], + [13.325659337828597, 52.511777872056705], + [13.325659525446225, 52.51177678289241], + [13.325661198369565, 52.5117670711774], + [13.325661385987088, 52.51176598201308], + [13.325663162222257, 52.51176609590892], + [13.32566505403178, 52.511755113502176], + [13.325682076285757, 52.511756205003934], + [13.325682232633612, 52.51175529736703], + [13.325684008868837, 52.51175541126287], + [13.325700439044862, 52.51175646479936], + [13.325701327162486, 52.511756521747294], + [13.32570117081463, 52.51175742938419], + [13.325795607329587, 52.51176348484631], + [13.325811445429766, 52.511764500417556], + [13.325867248832362, 52.51176807864527], + [13.32587953446273, 52.51176886642484], + [13.32589818493816, 52.5117700623312], + [13.32589668399785, 52.51177877564563], + [13.325895527022622, 52.51178549215884], + [13.325892337521495, 52.51180400795192], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A934', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325904618138848, 52.51173358481825], + [13.325821875159559, 52.511728279170235], + [13.325816402988371, 52.511760046462555], + [13.325814034674279, 52.51175989460143], + [13.325813409282791, 52.511763525149114], + [13.325811633047232, 52.51176341125328], + [13.325795794947053, 52.51176239568203], + [13.325794018711536, 52.511762281786204], + [13.325794644103013, 52.511758651238495], + [13.325782654513421, 52.511757882441586], + [13.325782889035192, 52.5117565209862], + [13.325777264289526, 52.51175616031603], + [13.325777811506928, 52.511752983586824], + [13.325779015384946, 52.5117459947825], + [13.32577987529758, 52.51174100277943], + [13.325781079174929, 52.5117340139751], + [13.325781501313651, 52.5117315633554], + [13.325787228888009, 52.51173132707974], + [13.325796381829887, 52.51167819191935], + [13.325805263007556, 52.51167876139856], + [13.325815180322751, 52.511679397317], + [13.325822433284687, 52.5116798623917], + [13.325832350600137, 52.51168049831015], + [13.325839603562274, 52.51168096338484], + [13.325849520877966, 52.51168159930329], + [13.325861954527696, 52.511682396574194], + [13.325871871843711, 52.511683032492655], + [13.32587912480625, 52.51168349756735], + [13.325889042122522, 52.511684133485794], + [13.325896295085258, 52.5116845985605], + [13.325906212401767, 52.51168523447896], + [13.325912873286073, 52.51168566158837], + [13.325904618138848, 52.51173358481825], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A935', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325899145966892, 52.51176535211055], + [13.325882123707517, 52.5117642606087], + [13.325881498315946, 52.51176789115639], + [13.325879722080222, 52.51176777726055], + [13.32586743644985, 52.51176698948098], + [13.32586566021415, 52.51176687558513], + [13.325866285605708, 52.51176324503746], + [13.325819955459517, 52.51176027425424], + [13.325825114935459, 52.511730322235756], + [13.325904305443522, 52.51173540009208], + [13.325899145966892, 52.51176535211055], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A936', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326219155016657, 52.51177550215272], + [13.32621757590258, 52.51178466928559], + [13.326217419554622, 52.51178557692254], + [13.326097079535087, 52.51177786047868], + [13.32609664176084, 52.51178040186205], + [13.326094865524542, 52.5117802879662], + [13.326082579890322, 52.51177950018659], + [13.32608080365407, 52.51177938629072], + [13.3260812414283, 52.51177684490735], + [13.326049417196154, 52.51177480427343], + [13.326049104500306, 52.51177661954725], + [13.326033562433993, 52.5117756229586], + [13.326033875129838, 52.51177380768478], + [13.325994945955737, 52.51177131146745], + [13.325994633259908, 52.51177312674129], + [13.325979091194826, 52.511772130152636], + [13.325979403890653, 52.511770314878795], + [13.325932777697501, 52.51176732511288], + [13.32593233992337, 52.51176986649625], + [13.325930563687505, 52.511769752600394], + [13.325918278056228, 52.511768964820824], + [13.325916501820405, 52.51176885092497], + [13.325916939594519, 52.5117663095416], + [13.325905986140333, 52.5117656071839], + [13.325919682190104, 52.51168609818912], + [13.325944549492325, 52.51168769273095], + [13.325954466809536, 52.51168832864943], + [13.32599680043387, 52.51169104316708], + [13.326006717751836, 52.51169167908557], + [13.32604446276929, 52.51169409937232], + [13.326054380087946, 52.5116947352908], + [13.326099082033524, 52.51169760166968], + [13.326108999352963, 52.51169823758818], + [13.326147632494267, 52.511700714822915], + [13.32615754981442, 52.51170135074141], + [13.326194850781045, 52.51170374255431], + [13.32620476810187, 52.5117043784728], + [13.326231115611638, 52.51170606792795], + [13.326219155016657, 52.51177550215272], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A937', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326591246594782, 52.511810832183386], + [13.326566675308774, 52.51180925662396], + [13.326550837191144, 52.511808241052535], + [13.32647978769601, 52.51180368521815], + [13.326480162931299, 52.51180150688955], + [13.326411185720104, 52.51179708393373], + [13.326410873024068, 52.511798899207584], + [13.326395330949541, 52.51179790261883], + [13.326395643645577, 52.511796087345004], + [13.326355530292956, 52.511793515196906], + [13.326355217596952, 52.511795330470754], + [13.326339675523696, 52.51179433388201], + [13.326339988219688, 52.51179251860817], + [13.326299874870326, 52.51178994646014], + [13.326284036758857, 52.511788930888756], + [13.32624392341276, 52.51178635874074], + [13.326243610716821, 52.51178817401458], + [13.326228068646095, 52.51178717742587], + [13.326228381342032, 52.51178536215204], + [13.326223792730739, 52.5117850679211], + [13.326225371844828, 52.511775900788194], + [13.326237332439936, 52.51170646656344], + [13.326245029465523, 52.51170696011214], + [13.326254946787081, 52.51170759603065], + [13.326299056666793, 52.511710424444374], + [13.326308973989127, 52.5117110603629], + [13.326354564069794, 52.511713983689845], + [13.326364481392934, 52.511714619608384], + [13.326409479398249, 52.5117175049701], + [13.32641939672219, 52.511718140888625], + [13.326463062553167, 52.51172094082849], + [13.326472979877883, 52.51172157674704], + [13.326516645712264, 52.51172437668693], + [13.32652656303776, 52.51172501260548], + [13.326574077390223, 52.5117280593198], + [13.326583994716534, 52.511728695238354], + [13.326605161547816, 52.51173005249738], + [13.326591246594782, 52.511810832183386], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A938', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326587494239096, 52.51183261546933], + [13.326663132359533, 52.5118374655348], + [13.326660755865356, 52.51185126161584], + [13.326671561311768, 52.511851954482346], + [13.32667054504734, 52.51185785412227], + [13.326766017834528, 52.51186397602501], + [13.326765830216416, 52.51186506518929], + [13.32667035742926, 52.511858943286555], + [13.326667777679718, 52.511873919295525], + [13.326663633124939, 52.51187365353852], + [13.32666221035324, 52.51188191303433], + [13.32665643758056, 52.511881542872786], + [13.32665624996228, 52.5118826320371], + [13.326652401447184, 52.51188238526272], + [13.326654011837142, 52.5118730366026], + [13.326658156391868, 52.51187330235961], + [13.326660892489762, 52.511857418713724], + [13.326631732587279, 52.5118555489233], + [13.326632123458227, 52.511853279831044], + [13.326633899695905, 52.511853393726895], + [13.326634212392635, 52.51185157845307], + [13.32661881833288, 52.51185059135559], + [13.326607568827889, 52.51184987001513], + [13.326592174768745, 52.51184888291767], + [13.326580925264194, 52.51184816157722], + [13.326565531205636, 52.51184717447975], + [13.32655428170153, 52.511846453139306], + [13.326538887643565, 52.51184546604185], + [13.326527638139893, 52.511844744701385], + [13.326512244082538, 52.511843757603955], + [13.326500994579304, 52.511843036263514], + [13.326485600522538, 52.51184204916606], + [13.326474351019739, 52.511841327825636], + [13.326458956963574, 52.51184034072819], + [13.326447707461217, 52.51183961938775], + [13.326432313405652, 52.511838632290335], + [13.326421063903728, 52.51183791094991], + [13.326405669848755, 52.51183692385248], + [13.326394420347269, 52.51183620251204], + [13.326379026292907, 52.51183521541462], + [13.326367776791857, 52.51183449407421], + [13.32635238273809, 52.5118335069768], + [13.326341133237474, 52.511832785636386], + [13.3263257391843, 52.51183179853898], + [13.326314489684119, 52.511831077198565], + [13.326299095631553, 52.511830090101164], + [13.326287994151537, 52.51182937825209], + [13.32627260009957, 52.511828391154694], + [13.326261498619987, 52.51182767930559], + [13.32624610456861, 52.511826692208224], + [13.32623500308946, 52.51182598035914], + [13.326219609038672, 52.51182499326177], + [13.326208507559944, 52.51182428141269], + [13.326193113509762, 52.51182329431533], + [13.326182012031467, 52.51182258246624], + [13.32616661798187, 52.511821595368886], + [13.326155516504006, 52.51182088351982], + [13.326140122455001, 52.511819896422445], + [13.32612902097758, 52.51181918457338], + [13.326113626929162, 52.51181819747603], + [13.326102525452162, 52.51181748562697], + [13.326087131404346, 52.51181649852963], + [13.326076029927773, 52.51181578668058], + [13.326060635880554, 52.51181479958324], + [13.326049534404413, 52.51181408773419], + [13.32603414035779, 52.51181310063684], + [13.326023038882077, 52.511812388787824], + [13.326007644836043, 52.511811401690466], + [13.325996543360764, 52.51181068984144], + [13.32598114931532, 52.5118097027441], + [13.32597004784047, 52.511808990895084], + [13.325954653795629, 52.51180800379775], + [13.325943552321206, 52.51180729194872], + [13.325928158276955, 52.51180630485141], + [13.325917056802956, 52.51180559300238], + [13.325901662759305, 52.51180460590508], + [13.325893965737619, 52.51180411235644], + [13.325897155238739, 52.51178559656336], + [13.32589831221398, 52.511778880050166], + [13.325900032041364, 52.51176889604403], + [13.325918090438742, 52.511770053985124], + [13.325930376070012, 52.5117708417647], + [13.326082392272776, 52.511780589350906], + [13.326094677906998, 52.5117813771305], + [13.326225231286625, 52.51178974847551], + [13.326225387634613, 52.51178884083857], + [13.326281635130117, 52.51179244754058], + [13.326281822747715, 52.51179135837628], + [13.326283598984492, 52.511791472272144], + [13.326299437095946, 52.51179248784349], + [13.32630121333277, 52.51179260173935], + [13.326301025715159, 52.51179369090365], + [13.326479537539115, 52.511805137437214], + [13.326479162303762, 52.51180731576582], + [13.326548435561357, 52.51181175770436], + [13.326548623179058, 52.511810668540065], + [13.326550399416533, 52.51181078243592], + [13.326566237534147, 52.51181179800735], + [13.326568013771656, 52.51181191190322], + [13.326567826153951, 52.51181300106751], + [13.326590621202428, 52.51181446273105], + [13.326587494239096, 52.51183261546933], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A93A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326663452286, 52.5117435174342], + [13.326658049562813, 52.511743171000944], + [13.326657971389023, 52.511743624819395], + [13.32666337411221, 52.511743971252656], + [13.326661091436767, 52.51175722275176], + [13.326643921138626, 52.51175612175841], + [13.326646203814006, 52.511742870259305], + [13.32664805406164, 52.51174298890082], + [13.326648132235437, 52.51174253508237], + [13.326643691641124, 52.5117422503427], + [13.326643613467336, 52.511742704161165], + [13.326645463714955, 52.51174282280269], + [13.32664318103958, 52.5117560743018], + [13.32662978524695, 52.511755215337146], + [13.326632067922274, 52.511741963838055], + [13.32663369614016, 52.5117420682426], + [13.326633774313946, 52.51174161442414], + [13.32663140599703, 52.51174146256298], + [13.326629045147916, 52.51175516788055], + [13.326624604553741, 52.511754883140874], + [13.326611874850594, 52.51175406688721], + [13.326607064207016, 52.51175375841924], + [13.326611082339896, 52.511730432150244], + [13.326616559072622, 52.51173078332916], + [13.326626180359943, 52.511731400265084], + [13.32663284125124, 52.511731827374575], + [13.32664246253879, 52.51173244431051], + [13.326649123430249, 52.51173287142001], + [13.326658744718028, 52.51173348835592], + [13.326665109570012, 52.51173389648278], + [13.326663452286, 52.5117435174342], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A93C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326766440994396, 52.5119527411022], + [13.326751490991224, 52.511951782478654], + [13.326737725147007, 52.511950899785695], + [13.326651281572463, 52.51194535685369], + [13.326651578635596, 52.51194363234358], + [13.326653767521094, 52.51193092542703], + [13.326654392916717, 52.51192729487944], + [13.326656581800579, 52.511914587962835], + [13.326657207195737, 52.51191095741523], + [13.326659396077964, 52.51189825049864], + [13.326660021472655, 52.511894619951], + [13.32666221035324, 52.51188191303433], + [13.326663633124939, 52.51187365353852], + [13.326667777679718, 52.511873919295525], + [13.32667035742926, 52.511858943286555], + [13.326765830216416, 52.51186506518929], + [13.326778855962058, 52.511865900425654], + [13.326781372299306, 52.511866061778115], + [13.326780043337402, 52.51187377669182], + [13.326777527000152, 52.51187361533934], + [13.326764501254544, 52.511872780103], + [13.326732490215772, 52.511870727492365], + [13.326731515550938, 52.51187176618968], + [13.32676431363636, 52.5118738692673], + [13.326777339381955, 52.51187470450366], + [13.326779855719208, 52.511874865856115], + [13.326766440994396, 52.5119527411022], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A93D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326760781154443, 52.511985597557675], + [13.326745831151424, 52.511984638934145], + [13.32673206530733, 52.51198375624121], + [13.326645621733622, 52.51197821330921], + [13.326645856257501, 52.511976851853866], + [13.326648045146325, 52.51196414493739], + [13.326648670542891, 52.51196051438983], + [13.32665085943009, 52.511947807473305], + [13.32665109395364, 52.51194644601796], + [13.32673753752815, 52.51195198894997], + [13.326751303372362, 52.51195287164293], + [13.326766253375528, 52.511953830266464], + [13.326760781154443, 52.511985597557675], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A942', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327374012645112, 52.5118977311553], + [13.327372532445445, 52.511897636242054], + [13.327371985225497, 52.51190081297123], + [13.327270739576049, 52.51189432090601], + [13.327258157880888, 52.51189351414355], + [13.32725578956183, 52.511893362282365], + [13.327256180433142, 52.5118910931901], + [13.327226280405654, 52.5118891759428], + [13.327211626432272, 52.51188823630181], + [13.32682581258898, 52.511863497169095], + [13.326811158624153, 52.5118625575282], + [13.326782294754954, 52.511860706720356], + [13.32678155991742, 52.511864972613836], + [13.326779043580169, 52.51186481126136], + [13.326766017834528, 52.51186397602501], + [13.32667054504734, 52.51185785412227], + [13.326671561311768, 52.511851954482346], + [13.32667393780599, 52.51183815840131], + [13.326674985339142, 52.511832077234004], + [13.32667706476978, 52.51182000566306], + [13.326677799605893, 52.51181573976956], + [13.326693008090272, 52.51181671496751], + [13.326756694172689, 52.51182079864423], + [13.326769275858673, 52.51182160540663], + [13.32678881447735, 52.51182285826114], + [13.32678807964109, 52.511827124154635], + [13.327265517802596, 52.51185773841627], + [13.327269403055372, 52.51183518363903], + [13.327261113938524, 52.511834652124904], + [13.327261895679033, 52.511830113940334], + [13.327263068289488, 52.51182330666348], + [13.32726356860317, 52.51182040222536], + [13.327260016124548, 52.51182017443358], + [13.32726068842094, 52.51181627159485], + [13.327268385458012, 52.51181676514367], + [13.327268385458012, 52.51181676514367], + [13.327268667272127, 52.51181678920413], + [13.327268945731191, 52.511816825001496], + [13.327269219536896, 52.51181687236888], + [13.327269487412641, 52.511816931085455], + [13.327269748109446, 52.5118170008774], + [13.327270000411842, 52.511817081419395], + [13.327270243143467, 52.511817172335846], + [13.327270475172607, 52.511817273202865], + [13.32727069541742, 52.51181738355018], + [13.327270902851033, 52.51181750286332], + [13.327271096506294, 52.51181763058598], + [13.327271275480287, 52.511817766122626], + [13.32727143893855, 52.51181790884137], + [13.327271586118973, 52.51181805807676], + [13.327271716335337, 52.511818213133], + [13.327271828980503, 52.51181837328717], + [13.32727192352927, 52.51181853779251], + [13.32727199954081, 52.51181870588205], + [13.327272056660723, 52.51181887677207], + [13.327272094622685, 52.51181904966581], + [13.327272113249702, 52.51181922375713], + [13.327272112454928, 52.511819398234394], + [13.327272092242067, 52.5118195722841], + [13.327272045337663, 52.51181984457518], + [13.327326812719551, 52.511823356364815], + [13.327325765187636, 52.51182943753215], + [13.327324608211764, 52.51183615404532], + [13.327322888382087, 52.511846138051375], + [13.327321731405332, 52.511852854564474], + [13.327320965298892, 52.511857301985366], + [13.327365925500793, 52.51186018491967], + [13.327378841103936, 52.51186101309285], + [13.327378215710754, 52.51186464364052], + [13.327403897360025, 52.511867592485295], + [13.327402183443947, 52.51187754214827], + [13.327376058103471, 52.51187716902985], + [13.32737525290913, 52.51188184335991], + [13.327376733108812, 52.511881938273135], + [13.327374012645112, 52.5118977311553], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A943', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327385674852577, 52.511845667495045], + [13.327325874787478, 52.51184183300033], + [13.327326828511113, 52.511836296415154], + [13.327327985487003, 52.51182957990201], + [13.327328845401277, 52.51182458789898], + [13.327336246399184, 52.51182506246515], + [13.327336434016823, 52.511823973300864], + [13.32738883308433, 52.51182733322939], + [13.327385674852577, 52.511845667495045], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A944', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327408679465915, 52.511848519088225], + [13.327417227619497, 52.51184906721215], + [13.327422090045086, 52.51182083970416], + [13.327422090045086, 52.51182083970416], + [13.32742235525377, 52.51181968654735], + [13.327422750854462, 52.511818547440036], + [13.32742327492401, 52.51181742791979], + [13.32742392491476, 52.511816333428875], + [13.327424697666904, 52.51181526928802], + [13.32742558942387, 52.511814240670276], + [13.327426595850563, 52.51181325257607], + [13.32742771205443, 52.51181230980884], + [13.327428932609275, 52.51181141695165], + [13.327430251581616, 52.51181057834498], + [13.32743166255953, 52.5118097980655], + [13.327433158683817, 52.51180907990643], + [13.327434732681393, 52.51180842735892], + [13.327436376900565, 52.511807843595214], + [13.3274380833483, 52.511807331453184], + [13.327439843729035, 52.51180689342245], + [13.327441649485024, 52.511806531632494], + [13.327443491837961, 52.511806247842024], + [13.327445361831598, 52.51180604343064], + [13.327458317736763, 52.51180687418802], + [13.32747089943565, 52.51180768095054], + [13.327479040535048, 52.511808202973334], + [13.327466032368324, 52.51188371836447], + [13.327403308901825, 52.51187969641606], + [13.32740367632057, 52.511877563469326], + [13.327405364882868, 52.511867760990725], + [13.327406224798565, 52.51186276898773], + [13.327365925500793, 52.51186018491967], + [13.327367143832454, 52.51185888654804], + [13.327323420120624, 52.51185608289984], + [13.32732564026524, 52.51184319445571], + [13.327408679465915, 52.511848519088225], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A945', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327479228152514, 52.51180711380903], + [13.327471087053103, 52.511806591786225], + [13.327458505354215, 52.51180578502371], + [13.32745317663476, 52.51180544333605], + [13.327455365504338, 52.51179273641918], + [13.32745240510465, 52.511792546592694], + [13.32745232693076, 52.511793000411174], + [13.327454547230525, 52.511793142781016], + [13.327452436534832, 52.511805395879435], + [13.32743911473638, 52.51180454166029], + [13.327441225432022, 52.511792288561885], + [13.327443445731756, 52.51179243093174], + [13.32744352390565, 52.51179197711327], + [13.327438343206278, 52.51179164491693], + [13.327438265032395, 52.51179209873541], + [13.327440485332119, 52.511792241105255], + [13.327438374636476, 52.511804494203666], + [13.327425052838299, 52.51180363998454], + [13.327427163533894, 52.511791386886124], + [13.327429383833579, 52.51179152925598], + [13.327429462007464, 52.511791075437515], + [13.327427241707776, 52.511790933067665], + [13.327429055341524, 52.51178040447936], + [13.327434680100765, 52.511780765149666], + [13.327444301399568, 52.51178138208573], + [13.327450962298816, 52.51178180919528], + [13.327460583597846, 52.511782426131354], + [13.32746724449726, 52.51178285324093], + [13.327476865796514, 52.51178347017697], + [13.327483230656112, 52.51178387830389], + [13.327479228152514, 52.51180711380903], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A946', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327842558478599, 52.511877670842544], + [13.327840916820948, 52.511887201030085], + [13.327840682298373, 52.51188856248545], + [13.327819811469134, 52.51188722420868], + [13.327819420598155, 52.511889493300956], + [13.3278038784917, 52.5118884967119], + [13.327804269362671, 52.51188622761959], + [13.327772445050547, 52.51188418698484], + [13.327756606905062, 52.51188317141313], + [13.327724782595137, 52.51188113077839], + [13.327724391724214, 52.511883399870676], + [13.327708849619919, 52.51188240328161], + [13.327709240490835, 52.51188013418935], + [13.327659949819498, 52.51187697357837], + [13.327659558948623, 52.511879242670645], + [13.327644016845795, 52.5118782460816], + [13.327644407716665, 52.51187597698933], + [13.32761258341196, 52.51187393635464], + [13.32761219254111, 52.51187620544692], + [13.327596650439357, 52.511875208857894], + [13.32759704131019, 52.511872939765624], + [13.32756521700768, 52.51187089913095], + [13.327549378866976, 52.511869883559285], + [13.327528360026621, 52.511868535791294], + [13.327542290635073, 52.511787665342126], + [13.327565825816084, 52.51178917446264], + [13.327575299096715, 52.51178978190739], + [13.327613340240575, 52.51179222117767], + [13.32762281352187, 52.51179282862243], + [13.32766122471844, 52.51179529162104], + [13.327670698000386, 52.51179589906581], + [13.327726131504441, 52.51179945356677], + [13.327735604787282, 52.511800061011535], + [13.327773275889909, 52.51180247655361], + [13.327782749173412, 52.51180308399837], + [13.327821456419073, 52.51180556597975], + [13.327830929703232, 52.51180617342453], + [13.327854612914225, 52.51180769203648], + [13.327842558478599, 52.511877670842544], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A947', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.3275223756655, 52.51187026268589], + [13.327508461785747, 52.511869370501444], + [13.327508242898094, 52.511870641193106], + [13.327506466658141, 52.51187052729723], + [13.327492552778706, 52.51186963511279], + [13.327490776538795, 52.51186952121691], + [13.327490995426432, 52.51186825052522], + [13.327474565207504, 52.511867196988284], + [13.327488855415783, 52.511784238974194], + [13.327507653955063, 52.511785444372315], + [13.327517127234893, 52.51178605181706], + [13.327536665874947, 52.511787304671806], + [13.3275223756655, 52.51187026268589], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A949', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328284657876104, 52.51188885879391], + [13.32829237786618, 52.51189008794371], + [13.328292284057193, 52.51189063252585], + [13.328290830017542, 52.51189907354909], + [13.32828971994388, 52.511905517771105], + [13.328288265903236, 52.511913958794324], + [13.328288172094148, 52.511914503376445], + [13.32828012377244, 52.511915180264175], + [13.328279685996632, 52.51191772164751], + [13.328267814779693, 52.511916960443216], + [13.328267502082658, 52.51191877571703], + [13.328265799850824, 52.51191866656678], + [13.328249991297964, 52.511917652893224], + [13.328248259462153, 52.51191754184471], + [13.328248572159177, 52.51191572657089], + [13.328246677501182, 52.511915605081924], + [13.328252243503877, 52.51188329320805], + [13.328170832422481, 52.51187807297907], + [13.328179369027417, 52.511828516003604], + [13.328187510135248, 52.51182903802652], + [13.328196983424474, 52.51182964547134], + [13.328203644331039, 52.51183007258097], + [13.328213117620484, 52.5118306800258], + [13.328219778527206, 52.51183110713544], + [13.328229251816882, 52.51183171458029], + [13.32824094540899, 52.51183246439499], + [13.328250418698959, 52.51183307183984], + [13.328257079606038, 52.51183349894948], + [13.328266552896226, 52.511834106394325], + [13.328273213803465, 52.51183453350397], + [13.328282687093871, 52.511835140948826], + [13.328293788606244, 52.51183585279824], + [13.328284657876104, 52.51188885879391], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A94A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32824460521901, 52.51191547220337], + [13.328198126891934, 52.51191249192719], + [13.328182288736615, 52.51191147635537], + [13.328165266420555, 52.51191038485295], + [13.328170457186657, 52.51188025130767], + [13.328249795985805, 52.5118853386581], + [13.32824460521901, 52.51191547220337], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A94E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328562363791583, 52.51192566141441], + [13.328526838938833, 52.511923383496146], + [13.328525353627722, 52.5119320060467], + [13.328378665609788, 52.5119226001427], + [13.328362827450297, 52.51192158457084], + [13.328322862002734, 52.5119190219129], + [13.328326348573022, 52.511898781609915], + [13.32856436505207, 52.51191404366202], + [13.328562363791583, 52.51192566141441], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A94F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328383844072691, 52.511999832293455], + [13.328382436930717, 52.512008001025464], + [13.328379810264288, 52.5120232493252], + [13.32836944885152, 52.51202258493239], + [13.328355534954614, 52.5120216927478], + [13.328326819040626, 52.512019851430615], + [13.328327006659707, 52.512018762266344], + [13.328328617056377, 52.512009413606414], + [13.32832980530979, 52.51200251556602], + [13.328331415705263, 52.51199316690605], + [13.32833260395779, 52.51198626886566], + [13.328334214352074, 52.51197692020563], + [13.328336778473581, 52.511962034960554], + [13.328355280995657, 52.511963221376256], + [13.328371119154948, 52.5119642369481], + [13.328389769698134, 52.51196543285515], + [13.328383844072691, 52.511999832293455], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A955', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328480446382644, 52.5122452611766], + [13.328346192070809, 52.512236652544274], + [13.328298677596294, 52.51223360582882], + [13.328292830799812, 52.512233230921474], + [13.328293698546423, 52.51222819353692], + [13.328295105702647, 52.51222002480519], + [13.328296723931677, 52.51221063076371], + [13.328316706654164, 52.51221191209263], + [13.328331952731714, 52.51221288969917], + [13.328350085203025, 52.512214052386526], + [13.328359247337671, 52.51216086486633], + [13.328493501652485, 52.51216947349875], + [13.328480446382644, 52.5122452611766], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A956', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32842506738697, 52.51228135318814], + [13.32841766637742, 52.51228087862186], + [13.328407304964182, 52.51228021422907], + [13.32838954254187, 52.51227907526999], + [13.328392528846043, 52.51226173940612], + [13.328402594218685, 52.512262384816275], + [13.328402860015277, 52.51226084183364], + [13.328392794642637, 52.512260196423476], + [13.328395296256701, 52.51224567423383], + [13.32841720324451, 52.51224707895002], + [13.328414701630354, 52.512261601139684], + [13.328411741226567, 52.51226141131316], + [13.328411475429965, 52.512262954295814], + [13.32841769227793, 52.512263352931484], + [13.328417958074533, 52.51226180994886], + [13.328416477872631, 52.512261715035585], + [13.3284189794868, 52.51224719284593], + [13.328430821102149, 52.512247952151995], + [13.328428319487934, 52.512262474341625], + [13.328426839286003, 52.51226237942838], + [13.3284265734894, 52.51226392241103], + [13.32842805369133, 52.5122640173243], + [13.32842506738697, 52.51228135318814], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A957', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32838599005746, 52.51227884747819], + [13.328343064205637, 52.5122760949938], + [13.328343337819977, 52.5122745066293], + [13.328344823154584, 52.51226588407923], + [13.328344940417816, 52.51226520335159], + [13.328387866269768, 52.512267955835995], + [13.32838599005746, 52.51227884747819], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A958', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32834312092258, 52.512265774929006], + [13.328341635587968, 52.51227439747907], + [13.328341361973646, 52.512275985843544], + [13.32832396960345, 52.51227487061282], + [13.328301322517833, 52.51227341844004], + [13.328282523957126, 52.51227221304171], + [13.32828868418297, 52.512236452149715], + [13.32829808346335, 52.51223705484888], + [13.328345597937822, 52.51224010156433], + [13.328347522200097, 52.51224022495157], + [13.328346373021567, 52.51224689608243], + [13.328343949582685, 52.51226096445366], + [13.32834312092258, 52.512265774929006], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A959', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328443705357591, 52.51239643019074], + [13.32844264216457, 52.51240260212119], + [13.328438061050079, 52.51242919588028], + [13.328436997855485, 52.51243536781068], + [13.328434871465376, 52.512447711671534], + [13.32842895065768, 52.51244733201852], + [13.328414148638691, 52.51244638288597], + [13.328275009675714, 52.51243746104017], + [13.328260207660046, 52.51243651190768], + [13.328254286853861, 52.51243613225467], + [13.328256413243325, 52.5124237883938], + [13.328257476437592, 52.51241761646339], + [13.328262057550685, 52.51239102270425], + [13.328263120743372, 52.512384850773785], + [13.32826778002541, 52.51235780319611], + [13.328268843216486, 52.51235163126562], + [13.328273393045464, 52.51232521903352], + [13.328274456234945, 52.51231904710302], + [13.328278161760652, 52.512297536109784], + [13.328279537651127, 52.51228954890553], + [13.32828214871462, 52.51227439137014], + [13.328300947275311, 52.51227559676846], + [13.32832359436092, 52.51227704894125], + [13.328406929721597, 52.51228239255749], + [13.328417291134821, 52.51228305695029], + [13.328434905537666, 52.51228418641802], + [13.328445266951315, 52.51228485081081], + [13.328462733334677, 52.512285970787254], + [13.32846070076982, 52.51229777006627], + [13.328459637581599, 52.512303941996834], + [13.328455040852642, 52.51233062652003], + [13.328453977662834, 52.51233679845056], + [13.328449427832455, 52.512363210682594], + [13.328448364641062, 52.51236938261307], + [13.328443705357591, 52.51239643019074], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A95A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328416124782983, 52.51255653732577], + [13.328409019813986, 52.51255608174216], + [13.328406049105162, 52.512573326841476], + [13.328239674436446, 52.512562658592], + [13.328242645144417, 52.51254541349267], + [13.32823554017723, 52.512544957909064], + [13.32824155976247, 52.51251001389178], + [13.32825280929401, 52.51251073523248], + [13.328266723188545, 52.51251162741705], + [13.328352722904636, 52.51251714187694], + [13.328357350943717, 52.51249027582723], + [13.32835971926654, 52.51249042768842], + [13.328376445546663, 52.5124915002082], + [13.3284267724097, 52.512494727258826], + [13.328416124782983, 52.51255653732577], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A95B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328349608208173, 52.512514372702086], + [13.328267160976205, 52.512509086033965], + [13.328253247081658, 52.51250819384941], + [13.32824199755011, 52.51250747250871], + [13.328246187800685, 52.51248314784203], + [13.32835379845951, 52.512490048035424], + [13.328349608208173, 52.512514372702086], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A95C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328377758908118, 52.51248387605893], + [13.328361032627958, 52.51248280353918], + [13.32824750116184, 52.51247552369275], + [13.32825081583321, 52.512456281792126], + [13.328251879029063, 52.512450109861746], + [13.328254130501657, 52.512437039891466], + [13.328260051307836, 52.51243741954448], + [13.328274853323506, 52.51243836867699], + [13.328384388249399, 52.51244539225769], + [13.328377758908118, 52.51248387605893], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A95D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328428085771264, 52.51248710310956], + [13.32837923910993, 52.51248397097217], + [13.32838586845122, 52.51244548717094], + [13.328413992286436, 52.51244729052278], + [13.328428794305426, 52.51244823965533], + [13.328434715113117, 52.512448619308344], + [13.328432463639823, 52.51246168927859], + [13.32843140044365, 52.51246786120897], + [13.328428085771264, 52.51248710310956], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1A95F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32842787977061, 52.51228153352332], + [13.328435280780276, 52.51228200808961], + [13.328445642193934, 52.512282672482414], + [13.328463108577301, 52.51228379245883], + [13.32846609488185, 52.51226645659497], + [13.328456325548673, 52.51226583016748], + [13.328456591345297, 52.512264287184834], + [13.328466360678476, 52.51226491361233], + [13.328468862292857, 52.5122503914227], + [13.328447991444772, 52.51224905314576], + [13.32844548983048, 52.51226357533542], + [13.328447710133434, 52.51226371770529], + [13.328447444336826, 52.51226526068794], + [13.328441227488577, 52.51226486205226], + [13.328441493285196, 52.51226331906962], + [13.328442973487158, 52.512263413982886], + [13.328445475101432, 52.51224889179325], + [13.328433633485828, 52.51224813248718], + [13.328431131871593, 52.51226265467682], + [13.328432612073533, 52.51226274959008], + [13.328432346276925, 52.512264292572716], + [13.328430866074989, 52.512264197659455], + [13.32842787977061, 52.51228153352332], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1DB5F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326737539113893, 52.51212052153713], + [13.326735124148966, 52.51213454076942], + [13.326656673645102, 52.51212951036885], + [13.326626108371967, 52.5121275504633], + [13.3266050147333, 52.51212619789759], + [13.326607219272143, 52.51211340021776], + [13.326622169272053, 52.512114358841266], + [13.326624733414965, 52.512099473596535], + [13.326618072523852, 52.51209904648708], + [13.326621824924915, 52.51207726320211], + [13.32662848581608, 52.512077690311585], + [13.326632488373136, 52.51205445480752], + [13.326725444817209, 52.51206041535764], + [13.32674217105769, 52.51206148787703], + [13.326747647791386, 52.51206183905594], + [13.326743754678546, 52.51208443921414], + [13.326737539113893, 52.51212052153713], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22A18', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325746093667425, 52.511755538085545], + [13.32577510551267, 52.511757398384276], + [13.32577959269331, 52.511731349204545], + [13.325750580847847, 52.51172948890583], + [13.325746093667425, 52.511755538085545], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22B0B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328289954620818, 52.51191718712969], + [13.328314673988773, 52.51191877218106], + [13.328319810034007, 52.51188895630868], + [13.328295090665833, 52.511887371257316], + [13.328289954620818, 52.51191718712969], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22B8A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328345526733935, 52.512261799713386], + [13.328386380303353, 52.51226441931922], + [13.32838967148967, 52.512245313563476], + [13.328348817920025, 52.51224269395763], + [13.328345526733935, 52.512261799713386], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22C46', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325771139965187, 52.5121287973454], + [13.325745532571649, 52.512127155347095], + [13.325749980740426, 52.51210133307819], + [13.32577558813416, 52.512102975076495], + [13.325771139965187, 52.5121287973454], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22C7E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328188565716333, 52.51228357796788], + [13.328164142393579, 52.51228201189925], + [13.328168676573622, 52.51225569043058], + [13.328193099896573, 52.51225725649921], + [13.328188565716333, 52.51228357796788], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22F14', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32808405229324, 52.51230582862151], + [13.328131233707426, 52.512308853981324], + [13.328141302719448, 52.51225040216828], + [13.328131237350652, 52.512249756758166], + [13.328134364367475, 52.51223160402107], + [13.3280972483211, 52.51222922407135], + [13.328095583183497, 52.5122388904129], + [13.328094199479905, 52.51224692299], + [13.328094199479905, 52.51224692299], + [13.32808405229324, 52.51230582862151], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22F26', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328032245253961, 52.51230250665785], + [13.328082202041774, 52.51230570997997], + [13.328091997438879, 52.512248846531364], + [13.328073568949, 52.51224766486238], + [13.328060477678436, 52.51224682542578], + [13.328042040650228, 52.51224564320924], + [13.328042040650228, 52.51224564320924], + [13.328032245253961, 52.51230250665785], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22F39', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327980438218589, 52.51229918469424], + [13.328028359726169, 52.51230225751056], + [13.32802945418511, 52.51229590405265], + [13.328031489461582, 52.512296034558375], + [13.32804019039887, 52.51224552456768], + [13.328021761910389, 52.51224434289869], + [13.328008662131245, 52.512243502916476], + [13.327990226448161, 52.5122423628442], + [13.327987391935675, 52.51225881754539], + [13.327986102017803, 52.512266305547996], + [13.327980438218589, 52.51229918469424], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22F4B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327930962503467, 52.512296012219004], + [13.327978587967396, 52.51229906605266], + [13.327984157977875, 52.512266731489966], + [13.32798554168446, 52.51225869890383], + [13.327988383362776, 52.512242202604035], + [13.327969954846083, 52.51224102093315], + [13.327956855067931, 52.51224018095096], + [13.327938426581682, 52.51223899928199], + [13.327935584902042, 52.51225549559086], + [13.327934201197136, 52.51226352816793], + [13.327929725645891, 52.512289509272705], + [13.327932056962226, 52.51228965876108], + [13.327930962503467, 52.512296012219004], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22F5D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327876824159599, 52.512292540767106], + [13.327925041700098, 52.51229563256603], + [13.327926136158853, 52.51228927910808], + [13.32792787539484, 52.51228939063115], + [13.327932444768344, 52.51226286494501], + [13.327933688524235, 52.512255957996615], + [13.327936576330602, 52.51223888064042], + [13.3279181478153, 52.51223769896957], + [13.32790504803813, 52.51223685898735], + [13.327886619553288, 52.512235677318415], + [13.327876824159599, 52.512292540767106], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22F6F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327827348451954, 52.51228936829195], + [13.327874973908685, 52.51229242212554], + [13.327885074968247, 52.51223378424682], + [13.327886458672925, 52.51222575166062], + [13.327888169931844, 52.51221581757523], + [13.32787263940108, 52.51221482172852], + [13.327857981777683, 52.51221388185425], + [13.327842468734904, 52.51221288712883], + [13.327840795782045, 52.512222598843216], + [13.32783654020517, 52.51222232596763], + [13.327834433379559, 52.51223455636517], + [13.327833143484778, 52.51224204436924], + [13.327826111594531, 52.512282865345654], + [13.327828442910516, 52.51228301483402], + [13.327827348451954, 52.51228936829195], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22F81', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327773210116264, 52.512285896840126], + [13.327821427649475, 52.512288988638986], + [13.32782252210804, 52.512282635181045], + [13.327824261343757, 52.5122827467041], + [13.327831293233983, 52.512241925727665], + [13.327832676939266, 52.51223389314153], + [13.327834689954363, 52.51222220732608], + [13.327830434377528, 52.5122219344505], + [13.327831372482004, 52.512216488629356], + [13.32782145513781, 52.51221585271063], + [13.327822189986135, 52.512211586817386], + [13.327817046289018, 52.51221125699388], + [13.32780572275447, 52.512210530907566], + [13.327786406137148, 52.51220929228978], + [13.327773210116264, 52.512285896840126], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22F93', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327723882436139, 52.51228273385639], + [13.327771359865633, 52.512285778198574], + [13.32778455588647, 52.51220917364822], + [13.32776523926974, 52.51220793503041], + [13.327753915736052, 52.5122072089441], + [13.32774063093696, 52.51220635709775], + [13.327738957984394, 52.512216068812165], + [13.327732926167641, 52.51221568204068], + [13.327730913151324, 52.51222736786521], + [13.327729623234893, 52.51223485586787], + [13.32772265391001, 52.51227531378193], + [13.32772249755884, 52.51227622141876], + [13.327724976894512, 52.51227638039844], + [13.327723882436139, 52.51228273385639], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22FB7', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327565982076578, 52.51227260898665], + [13.327614347615238, 52.51227571027669], + [13.32761544207341, 52.51226935681875], + [13.327617033288591, 52.512269458850476], + [13.327621496329384, 52.51224355035657], + [13.327622786257018, 52.51223606235161], + [13.327624162927542, 52.512228070603], + [13.327625452789903, 52.512220582596896], + [13.327625734219765, 52.51221894885961], + [13.327575777465093, 52.51221574553784], + [13.327575527307026, 52.51221719774713], + [13.327574237420412, 52.512224685752386], + [13.32756598208574, 52.512272608987246], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22FB8', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327516802431358, 52.51226945549439], + [13.32756413182651, 52.512272490345126], + [13.327572387161156, 52.51222456711027], + [13.327573677047637, 52.512217079105696], + [13.327577327835032, 52.512195885794156], + [13.327558011231815, 52.51219464717689], + [13.327546687701545, 52.51219392109061], + [13.327533550926471, 52.51219307873564], + [13.327531877974499, 52.512202790450054], + [13.327525698139567, 52.51220239418729], + [13.32751526953444, 52.512262933565445], + [13.327517896889352, 52.51226310203644], + [13.327516802431358, 52.51226945549439], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22FBA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327462368080234, 52.512265965060166], + [13.327510881631579, 52.51226907584145], + [13.327511976089552, 52.512262722383525], + [13.3275134192845, 52.512262814923886], + [13.32752384788959, 52.51220227554574], + [13.327521516574643, 52.512202126057396], + [13.327523189526595, 52.51219241434299], + [13.327500542467389, 52.512190962170486], + [13.327484112248442, 52.512189908633566], + [13.327475564094147, 52.51218936050962], + [13.327473793423168, 52.51219963949706], + [13.32747250350795, 52.51220712749973], + [13.327462368080234, 52.512265965060166], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22FBB', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327412596362558, 52.51226277360269], + [13.327413690820357, 52.51225642014473], + [13.327410730420896, 52.512256230318265], + [13.327421018308574, 52.512196507813194], + [13.327424348758026, 52.51219672136797], + [13.327426162425287, 52.5121861927804], + [13.327473713844313, 52.51218924186808], + [13.32747194317334, 52.51219952085551], + [13.327470559469614, 52.5122075534417], + [13.32746051783044, 52.51226584641865], + [13.327412596362558, 52.51226277360269], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22FBC', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32762026841592, 52.51227608992965], + [13.32766774583824, 52.51227913427178], + [13.327673397170186, 52.51224632773922], + [13.327674687041993, 52.51223883974285], + [13.327675586842972, 52.5122336162837], + [13.327657306354713, 52.51223244410424], + [13.327644206582542, 52.51223160412208], + [13.327625630084693, 52.51223041296188], + [13.327624730285358, 52.51223563641197], + [13.327623440368269, 52.5122431244146], + [13.32761888353881, 52.51226957749202], + [13.327621362874103, 52.51226973647169], + [13.32762026841592, 52.51227608992965], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '22FBF', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32768005596966, 52.512218532007914], + [13.327730012731934, 52.51222173532977], + [13.327731075917116, 52.51221556339913], + [13.327728596581407, 52.512215404419464], + [13.327730269533957, 52.51220569270509], + [13.327682792107144, 52.51220264836289], + [13.327681607750742, 52.5122095237121], + [13.327680317885992, 52.51221701173637], + [13.32768005596966, 52.512218532007914], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '231BE', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32788681499184, 52.51223454277235], + [13.327905243476694, 52.512235724441304], + [13.327918343253863, 52.51223656442351], + [13.327957050506509, 52.51223904640486], + [13.327970150284674, 52.512239886387086], + [13.328008857569845, 52.51224236837038], + [13.32802195734899, 52.512243208352636], + [13.328060664607483, 52.51224569033407], + [13.328073764387621, 52.512246530316304], + [13.3280921928775, 52.512247711985296], + [13.328092349228404, 52.512246804348436], + [13.328093732931992, 52.51223877177134], + [13.328095398069582, 52.512229105429775], + [13.328086257827191, 52.512228519340454], + [13.328069975614312, 52.512227475294736], + [13.328049696858825, 52.51222617498325], + [13.328048023905378, 52.51223588669761], + [13.328037662497728, 52.51223522230485], + [13.328039335451141, 52.512225510590504], + [13.327972527305572, 52.512221226727696], + [13.327954371914037, 52.51222006257015], + [13.327953715240923, 52.512223874644924], + [13.32794542611593, 52.51222334313075], + [13.32794440983588, 52.51222924277032], + [13.327934048429789, 52.5122285783776], + [13.327935721382907, 52.51221886666324], + [13.327890016452784, 52.512215957870026], + [13.32788830892387, 52.51222587030218], + [13.327886925219191, 52.512233902888376], + [13.32788681499184, 52.51223454277235], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '24DA1', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327078063959712, 52.51217772873924], + [13.327131388131114, 52.51218114798824], + [13.3271330141771, 52.512171708564885], + [13.327140415172783, 52.51217218313102], + [13.32713878912678, 52.51218162255438], + [13.327144512301471, 52.5121819895354], + [13.32715503431255, 52.512182664227055], + [13.327158012790592, 52.51216537374485], + [13.327159492989779, 52.51216546865807], + [13.327159492989779, 52.51216546865807], + [13.327156514511728, 52.51218275914027], + [13.327158327755729, 52.512182875409], + [13.327170169349298, 52.51218363471482], + [13.327187302655355, 52.51218473333543], + [13.327190601652072, 52.51216558219765], + [13.327185272934779, 52.512165240510015], + [13.327186625366231, 52.51215738945114], + [13.327161165939671, 52.51215575694361], + [13.327160853238814, 52.51215757221735], + [13.32715937303962, 52.51215747730412], + [13.327159685740478, 52.512155662030395], + [13.327082715387032, 52.512150726542544], + [13.327080424852948, 52.51216402342263], + [13.327080346677702, 52.51216447724104], + [13.327078063959712, 52.51217772873924], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '24DC5', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326923566032303, 52.51215827834349], + [13.326925194250855, 52.512158382748055], + [13.32692507698799, 52.51215906347568], + [13.326937436647079, 52.51215985600109], + [13.326950758435569, 52.51216071022009], + [13.32696963096971, 52.51216192036369], + [13.326982952758822, 52.51216277458272], + [13.327001825293848, 52.512163984726335], + [13.327015147083598, 52.51216483894537], + [13.327021437928847, 52.51216524232656], + [13.327021555191722, 52.512164561598944], + [13.327027179947532, 52.5121649222692], + [13.327030424219277, 52.51214608880424], + [13.326926810303487, 52.512139444878535], + [13.326923566032303, 52.51215827834349], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '24E50', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326415362564576, 52.512199838456674], + [13.326513055611498, 52.51220610272871], + [13.326514150067664, 52.512199749270714], + [13.32651711046325, 52.51219993909716], + [13.326528258263066, 52.51213522458891], + [13.326521227323434, 52.512134773751136], + [13.326522822097123, 52.51212551585511], + [13.326470645126236, 52.51212217016433], + [13.326455843149402, 52.51212122103222], + [13.32642993969071, 52.51211956005099], + [13.326428344917273, 52.512128817947016], + [13.326425569546762, 52.51212863998474], + [13.326414421748902, 52.512193354493036], + [13.326416457020567, 52.51219348499871], + [13.326415362564576, 52.512199838456674], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '24E63', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326311748742143, 52.512193194531996], + [13.326359670133078, 52.51219626734715], + [13.326368066166655, 52.51214752723867], + [13.326369449866904, 52.51213949466148], + [13.326370075268683, 52.512135864114036], + [13.326320118605512, 52.51213266079318], + [13.326318579335325, 52.51214159647814], + [13.326317035373998, 52.51215055939216], + [13.326315651672969, 52.512158591969346], + [13.326310807926586, 52.51218671056834], + [13.326312843197943, 52.512186841074005], + [13.326311748742143, 52.512193194531996], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '24E64', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326257906565598, 52.51218974206403], + [13.326305827952767, 52.51219281487914], + [13.326306922408548, 52.512186461421166], + [13.326308957679906, 52.512186591926834], + [13.32631380142627, 52.51215847332783], + [13.326315185127296, 52.51215044075063], + [13.326316313981199, 52.51214388759432], + [13.326297885509444, 52.51214270592393], + [13.32628478576326, 52.512141865942034], + [13.32626635732197, 52.51214068427353], + [13.326265226906227, 52.51214724649714], + [13.326263843203753, 52.51215527908339], + [13.326257906565598, 52.51218974206403], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '24E65', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326208134935372, 52.51218655060746], + [13.326256056319059, 52.51218962342252], + [13.326261992957193, 52.51215516044187], + [13.32626337665966, 52.512147127855634], + [13.32626492218279, 52.5121381558743], + [13.326266305884177, 52.51213012328804], + [13.326266461452839, 52.51212922018936], + [13.326216504797221, 52.51212601686859], + [13.326215879395605, 52.512129647416046], + [13.32621449573857, 52.51213768000517], + [13.32620719416434, 52.51218006664665], + [13.326209229390978, 52.51218019714945], + [13.326208134935372, 52.51218655060746], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '24E66', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326154292766972, 52.51218309813958], + [13.32620221414689, 52.51218617095462], + [13.32620330860248, 52.51217981749662], + [13.326205343873523, 52.512179948002284], + [13.326212645447734, 52.5121375613608], + [13.32621402914917, 52.51212952877454], + [13.326216491667424, 52.51211523349387], + [13.326206611351516, 52.51211459994821], + [13.326208206124356, 52.51210534205217], + [13.326168129788163, 52.51210277227709], + [13.326154292766972, 52.51218309813958], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251AA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326104521144265, 52.51217990668307], + [13.326152442520709, 52.51218297949807], + [13.326166279541855, 52.51210265363558], + [13.326142463304848, 52.51210112649074], + [13.326130518164845, 52.5121003606121], + [13.326119098251187, 52.51209962834427], + [13.326117503490154, 52.51210888617321], + [13.326114728120901, 52.512108708210945], + [13.326114330040024, 52.51211113674154], + [13.326113133957625, 52.51211808017739], + [13.326111194599628, 52.51212922082233], + [13.326109935984684, 52.51213652726277], + [13.326103580328937, 52.51217342271941], + [13.326105615599678, 52.51217355322507], + [13.326104521144265, 52.51217990668307], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251AB', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326050678984, 52.51217645421528], + [13.326098600356676, 52.51217952703024], + [13.326099694812076, 52.51217317357224], + [13.326101730082804, 52.51217330407788], + [13.326108148272482, 52.51213604560285], + [13.326109344353481, 52.51212910218081], + [13.326110063568532, 52.51212492703309], + [13.326090747007555, 52.512123688453016], + [13.326078535389682, 52.512122905382796], + [13.326060106924324, 52.512121723712454], + [13.326050678984, 52.51217645421528], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251AC', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326000907368822, 52.51217326275882], + [13.326048828738022, 52.512176335573784], + [13.326058256678316, 52.51212160507095], + [13.326038052034711, 52.512120309512184], + [13.326026728501198, 52.51211958342437], + [13.32600830003724, 52.51211840175405], + [13.326007675022515, 52.51212203005592], + [13.32600638513304, 52.51212951805101], + [13.325999966553605, 52.51216677879518], + [13.326002001824039, 52.512166909300845], + [13.326000907368822, 52.51217326275882], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251AD', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32594706521669, 52.51216981029114], + [13.32599498658213, 52.51217288310604], + [13.325996081037333, 52.51216652964801], + [13.325998116307758, 52.51216666015368], + [13.32600453488717, 52.51212939940951], + [13.32600573096797, 52.51212245598747], + [13.326006449792013, 52.51211828310882], + [13.325987133245544, 52.51211704446152], + [13.325975809731965, 52.512116318429364], + [13.325956493155358, 52.512115079788266], + [13.325955868140035, 52.51211870809385], + [13.325954578261756, 52.51212619610801], + [13.325947065230894, 52.51216981029204], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251AE', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325945214970986, 52.51216969164963], + [13.325897293609039, 52.512166618834776], + [13.325898388064058, 52.51216026537677], + [13.325896352793931, 52.51216013487113], + [13.325904686276747, 52.512111757826226], + [13.325924002822285, 52.51211299646542], + [13.32593532632968, 52.51211372252852], + [13.325954642909627, 52.51211496114676], + [13.325953924017586, 52.512119134021034], + [13.325952727755723, 52.512126077431446], + [13.325950540076294, 52.512138778685156], + [13.325945214970986, 52.51216969164963], + [13.325944985049127, 52.512169676906574], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251B0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.3257936798649, 52.512159974910894], + [13.325841601219626, 52.512163047725686], + [13.325852377634897, 52.51210048887033], + [13.325853573684725, 52.51209354544635], + [13.325855438117728, 52.51208272185556], + [13.325838664528144, 52.5120816462989], + [13.32582230798075, 52.512080597483795], + [13.325813141623446, 52.51208000971832], + [13.32581024914475, 52.51209680100045], + [13.325804624398932, 52.51209644033029], + [13.3257936798649, 52.512159974910894], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251B1', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325857288480478, 52.51208284049538], + [13.325855423999764, 52.51209366409233], + [13.32585422792032, 52.51210060751438], + [13.325853074839953, 52.512107301318146], + [13.32587239138799, 52.51210853993445], + [13.325883714890589, 52.51210926602043], + [13.325924198264156, 52.51211186189648], + [13.325935521767619, 52.51211258798244], + [13.325976005159053, 52.51211518385946], + [13.325987328667704, 52.512115909833405], + [13.32602692393981, 52.512118448874574], + [13.32603812230058, 52.51211916693606], + [13.326079618945778, 52.51212182778462], + [13.326090942451808, 52.51212255387063], + [13.326110259006535, 52.512123792487], + [13.326111263672962, 52.51211796025096], + [13.326112459755349, 52.51211101681512], + [13.326112877874746, 52.512108589569436], + [13.326110102505515, 52.51210841160719], + [13.326111697278085, 52.51209915371112], + [13.326052933462712, 52.51209538565691], + [13.326051338690291, 52.512104643552966], + [13.326006488728915, 52.51210176768291], + [13.326008083501211, 52.512092509786854], + [13.325911870722418, 52.512086340428745], + [13.32591027595039, 52.51209559832482], + [13.325902874967978, 52.51209512375881], + [13.325904469739992, 52.51208586586273], + [13.325857288480478, 52.51208284049538], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251B2', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325843451465039, 52.512163166367166], + [13.325891372823232, 52.51216623918198], + [13.325892467278244, 52.51215988572395], + [13.32589450254836, 52.51216001622961], + [13.325902836183836, 52.51211163919231], + [13.32588351945838, 52.51211040053334], + [13.325872195946124, 52.51210967450341], + [13.325852879381651, 52.512108435982675], + [13.325843451465039, 52.512163166367166], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251B3', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326361520379896, 52.51219638598866], + [13.326409441774306, 52.51219945880385], + [13.326410536230282, 52.512193105345865], + [13.326412571501937, 52.512193235851534], + [13.326423719299761, 52.51212852134322], + [13.326420943929266, 52.512128343380944], + [13.326422538702689, 52.51211908548493], + [13.326404999588677, 52.512117960842055], + [13.32639019761326, 52.51211701170994], + [13.326375357405954, 52.51211606012631], + [13.326372120953568, 52.51213484820946], + [13.326371300113749, 52.512139613303], + [13.326361520379896, 52.51219638598866], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '251D7', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326320314043532, 52.5121315262471], + [13.326370270706718, 52.512134729567926], + [13.326373507159094, 52.5121159414848], + [13.32633853749429, 52.5121136991602], + [13.326336942721092, 52.51212295705624], + [13.326321955722477, 52.512121996059996], + [13.326321754148829, 52.51212316622484], + [13.326320558069206, 52.51213010964251], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '252E9', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326216700235202, 52.51212488232251], + [13.326266656890834, 52.512128085643276], + [13.326266906269701, 52.512126637962474], + [13.326268102380084, 52.51211969453935], + [13.326269893372244, 52.512109297562], + [13.326222712056412, 52.5121062722016], + [13.32622111728354, 52.51211553009766], + [13.326218341913865, 52.51211535213539], + [13.326216700235202, 52.51212488232251], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '252EA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326266552760075, 52.51213954972746], + [13.326284981201367, 52.51214073139596], + [13.326298080948783, 52.51214157139916], + [13.326316509415696, 52.51214275306927], + [13.326316822898908, 52.51214093325451], + [13.326318018987115, 52.51213398983222], + [13.326318463803927, 52.51213140760602], + [13.326319903902112, 52.512123047583316], + [13.326320105475768, 52.51212187741849], + [13.326317330105693, 52.5121216994562], + [13.32631892487883, 52.51211244156016], + [13.326271743589228, 52.51210941620162], + [13.32626995259655, 52.51211981318195], + [13.326268756516285, 52.512126756604], + [13.326268062320503, 52.512130786511676], + [13.326266866239639, 52.5121377299337], + [13.326266552760075, 52.51213954972746], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2727A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327264601988485, 52.51209067415], + [13.327337131763844, 52.51209532489838], + [13.327338617088158, 52.51208670234807], + [13.327340805987642, 52.51207399542271], + [13.32734143138682, 52.512070364875214], + [13.327343620281543, 52.51205765796798], + [13.327343835263914, 52.5120564099582], + [13.32727130548773, 52.5120517592098], + [13.327269187270133, 52.5120640577101], + [13.327267897048776, 52.51207154569281], + [13.32726460197368, 52.512090674149064], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2727B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.3272715009248, 52.512050624663694], + [13.327344030701015, 52.51205527541209], + [13.327346434576459, 52.51204132049503], + [13.327347059974697, 52.51203768994749], + [13.327349248867717, 52.51202498303112], + [13.32734946384821, 52.51202373503041], + [13.327276934071326, 52.512019084282], + [13.327274909344137, 52.51203083818873], + [13.327273525637468, 52.51203887076511], + [13.3272715009248, 52.512050624663694], + [13.327276020807254, 52.51205091448725], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2727C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32726032924455, 52.51201687247071], + [13.32734965928501, 52.512022600484315], + [13.327349874265485, 52.512021352483586], + [13.327352063156866, 52.512008645567164], + [13.327352688552606, 52.512005015028684], + [13.327354877443913, 52.511992308103146], + [13.327355131511382, 52.511990833193224], + [13.327265801464774, 52.51198510517924], + [13.32726365198846, 52.511997585207375], + [13.327262455914738, 52.512004528638656], + [13.32726032924455, 52.51201687247071], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2727E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327265996906576, 52.51198397063349], + [13.327355326947895, 52.51198969864711], + [13.327355581013784, 52.51198822374622], + [13.327357769903415, 52.51197551682067], + [13.327358395298203, 52.51197188628217], + [13.327360584184627, 52.511959179365654], + [13.327360799166035, 52.511957931355845], + [13.327271469123886, 52.511952203342204], + [13.327269350915888, 52.5119645018427], + [13.327268154502724, 52.51197144524296], + [13.327265996906576, 52.51198397063349], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '27280', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327222269491264, 52.51208795970888], + [13.327228189083753, 52.51208833928454], + [13.327246612017142, 52.51208952059846], + [13.327262751739214, 52.51209055550847], + [13.327266140593013, 52.51207088247726], + [13.327267336652408, 52.512063939063296], + [13.327271769181545, 52.51203820754958], + [13.32727296507278, 52.51203126412488], + [13.327275083611244, 52.51201896562695], + [13.32725828355851, 52.51201788837526], + [13.327260605345158, 52.51200440997656], + [13.327266304244183, 52.51197132661001], + [13.32726759424802, 52.51196383860212], + [13.3272696189671, 52.5119520847066], + [13.327263439041955, 52.51195168843793], + [13.327252115512122, 52.51195096246372], + [13.327245935664846, 52.51195056620004], + [13.327222268286407, 52.51208795963162], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '27A51', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326741170022352, 52.5121341943128], + [13.32676544527464, 52.512135750889605], + [13.326766883697637, 52.512127400630405], + [13.32679959608173, 52.51212949821258], + [13.32680080779639, 52.51212246402685], + [13.326768983501639, 52.512120423390726], + [13.326754995642217, 52.51211952646174], + [13.32674974095302, 52.51211918952078], + [13.326750561791702, 52.51211442442719], + [13.326744640998506, 52.51211404477431], + [13.326741170022352, 52.5121341943128], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '27AAE', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326723849919093, 52.51205664244028], + [13.32672607021647, 52.512056784810106], + [13.326742796456967, 52.512057857329495], + [13.326748273190667, 52.51205820850841], + [13.32675492977937, 52.51201956585912], + [13.326749453045606, 52.51201921468021], + [13.326734503042852, 52.51201825605667], + [13.32673050650752, 52.51201799979097], + [13.326727776264631, 52.51203384941916], + [13.326726580176494, 52.512040792831286], + [13.326723849919093, 52.51205664244028], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '27AC0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326633113772303, 52.51205082426001], + [13.32672199967128, 52.512056523798755], + [13.326724729899064, 52.51204067418783], + [13.326726019661638, 52.51203318617574], + [13.326728656107962, 52.512017881139734], + [13.326639770359701, 52.512012181610665], + [13.326639555377563, 52.51201342962046], + [13.326637366483812, 52.51202613653684], + [13.326636741086924, 52.5120297670753], + [13.326634552189969, 52.5120424740007], + [13.326633113772303, 52.51205082426001], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '27AD2', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326639965796566, 52.512011047064576], + [13.32672455912163, 52.51201647135502], + [13.32672455912163, 52.51201647135502], + [13.32672455912163, 52.51201647135502], + [13.326727390999578, 52.51200003179099], + [13.326730027440357, 52.511984726763956], + [13.326731877689754, 52.51198484539641], + [13.326645434116072, 52.51197930246442], + [13.32664518395568, 52.51198075469251], + [13.326642995065187, 52.511993461608945], + [13.326642369669239, 52.511997092147425], + [13.326640180777115, 52.512009799063854], + [13.326639965796566, 52.512011047064576], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2A549', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32551303339893, 52.51189916582678], + [13.325609246122392, 52.5119053351844], + [13.325635794078087, 52.51175121843699], + [13.325539581350293, 52.51174504907926], + [13.32551303339893, 52.51189916582678], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2A5FE', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325637114566343, 52.51191730821786], + [13.325691141719155, 52.511920772549544], + [13.32569729404845, 52.51188505703754], + [13.325643266895081, 52.511881592705876], + [13.325641085829243, 52.51189425424063], + [13.325639522340415, 52.51190333060964], + [13.325637114566343, 52.51191730821786], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2A5FF', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325643423243838, 52.51188068506895], + [13.325697450397222, 52.511884149400636], + [13.325705080209374, 52.51183985671967], + [13.325651053055285, 52.511836392387956], + [13.325645987217914, 52.51186580066325], + [13.325644423875733, 52.51187487619278], + [13.325643423243838, 52.51188068506895], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2A600', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32565120940372, 52.51183548475104], + [13.325705236557821, 52.511838949082744], + [13.325712850719388, 52.51179474716511], + [13.325658823564591, 52.51179128283338], + [13.325657830753924, 52.5117970463278], + [13.325656267272045, 52.51180612269697], + [13.32565120940372, 52.51183548475104], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2BFFE', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327209072329353, 52.5121645641834], + [13.327267503198978, 52.51216831088316], + [13.327270442587073, 52.51215124731013], + [13.327212011717156, 52.512147500610354], + [13.327209072329353, 52.5121645641834], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2C010', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327323420120624, 52.51185608289984], + [13.327385721778846, 52.5118600778015], + [13.327387941923693, 52.511847189357354], + [13.32732564026524, 52.51184319445571], + [13.327323420120624, 52.51185608289984], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2CC30', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327146332647093, 52.51215173163538], + [13.327193254962058, 52.51215474038473], + [13.327194427589944, 52.51214793310823], + [13.327147505274894, 52.512144924358886], + [13.327146332647093, 52.51215173163538], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2D02B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325586979007364, 52.51194685396785], + [13.32560192898509, 52.51194781259109], + [13.32559812969666, 52.51196986816754], + [13.325595925169509, 52.51198266584766], + [13.32549971244823, 52.511976496490114], + [13.325502167134006, 52.51196224659095], + [13.325503214674587, 52.5119561654238], + [13.325505716262834, 52.511941643233506], + [13.32552791919754, 52.511943066931416], + [13.325528294435648, 52.51194088860286], + [13.32550609150093, 52.511939464904984], + [13.325508733801456, 52.511924125841475], + [13.325509781340203, 52.51191804467426], + [13.325512705066206, 52.51190107186425], + [13.325608917789609, 52.51190724122187], + [13.325606455292858, 52.51192153650301], + [13.325602304223246, 52.511945634262574], + [13.32558735424551, 52.511944675639306], + [13.325586979007364, 52.51194685396785], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2D325', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325639522340415, 52.51190333060964], + [13.325639279999583, 52.51190473744684], + [13.325633359215956, 52.51190435779406], + [13.325632929256388, 52.511906853795516], + [13.325632929256388, 52.511906853795516], + [13.325632677036918, 52.511908443531716], + [13.325632600923587, 52.511908759833], + [13.325632600923587, 52.511908759833], + [13.32562598735697, 52.51194715287369], + [13.32562598735697, 52.51194715287369], + [13.325625612118799, 52.51194933120221], + [13.325625612118799, 52.51194933120221], + [13.325623485768453, 52.51196167506394], + [13.325623391958853, 52.5119622196461], + [13.325627536507325, 52.511962485403025], + [13.325625957378664, 52.511971652535614], + [13.325621812830214, 52.511971386778654], + [13.325619610869074, 52.511984169562126], + [13.32561960922223, 52.51198416945651], + [13.325618949988197, 52.51198799642811], + [13.325603111892622, 52.511986980856925], + [13.32560376856054, 52.511983168782], + [13.325597405365324, 52.511982760760866], + [13.325599609892484, 52.51196996308074], + [13.32560151972422, 52.511958876154885], + [13.325600039729185, 52.51195878007604], + [13.325601618856965, 52.511949612943404], + [13.325603099052804, 52.511949707856594], + [13.325603784419084, 52.51194572917576], + [13.32560408699243, 52.51194397268004], + [13.325602606796592, 52.511943877766846], + [13.325604185923295, 52.51193471063423], + [13.325605666119138, 52.511934805547426], + [13.325607933552504, 52.51192164265622], + [13.325610397985459, 52.51190733613506], + [13.325610397985459, 52.51190733613506], + [13.325610397985459, 52.51190733613506], + [13.325610687231011, 52.5119056570068], + [13.32561072631824, 52.5119054300976], + [13.32561072631824, 52.5119054300976], + [13.325616159439848, 52.5118738897153], + [13.325614679243987, 52.5118737948021], + [13.325616258365626, 52.51186462766934], + [13.325617738561492, 52.51186472258253], + [13.325628127920044, 52.51180441007842], + [13.325626647718718, 52.5118043151967], + [13.325628226835338, 52.51179514806387], + [13.325629707074318, 52.511795242727], + [13.325637274274012, 52.511751313350175], + [13.32565947721316, 52.51175273704813], + [13.325657053820855, 52.51176680542046], + [13.325661198369565, 52.5117670711774], + [13.325659525446225, 52.51177678289241], + [13.325655380897528, 52.51177651713545], + [13.32565194123974, 52.51179648514763], + [13.325651902152696, 52.511796712056864], + [13.32565782293652, 52.511797091709646], + [13.325656243819815, 52.51180625884248], + [13.325650323036015, 52.511805879189694], + [13.32565029958378, 52.51180601533524], + [13.325646930278113, 52.51182557491068], + [13.325645288619963, 52.51183510509825], + [13.325640066434218, 52.51186542101045], + [13.325639941499904, 52.511866146280475], + [13.325645862283611, 52.51186652593326], + [13.325644423875733, 52.51187487619278], + [13.32564428316188, 52.511875693066], + [13.3256383623782, 52.51187531341323], + [13.325635165045592, 52.51189387458786], + [13.325634936333529, 52.51189519053273], + [13.325640859123407, 52.51189557031415], + [13.325639522340415, 52.51190333060964], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2F7C6', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32673376359128, 52.51181795179693], + [13.326756928694858, 52.511819437188855], + [13.326771730678391, 52.51182038632108], + [13.32677393518608, 52.51180758864057], + [13.326735968098832, 52.51180515411644], + [13.32673376359128, 52.51181795179693], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2F88D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326726409369451, 52.512016589996534], + [13.326755125216277, 52.512018431313], + [13.326760593535292, 52.51198668672196], + [13.326731877688191, 52.511984845405465], + [13.326726409369451, 52.512016589996534], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2F93D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327361209582074, 52.511955548808984], + [13.327361209580523, 52.51195554881806], + [13.327360994602254, 52.51195679680972], + [13.32726452261408, 52.51195061065835], + [13.327252310948264, 52.51194982774402], + [13.327246132325008, 52.511949431620096], + [13.327254085362387, 52.51190325552463], + [13.327256453681448, 52.51190340738579], + [13.327269775476298, 52.51190426160488], + [13.32730347005472, 52.511906422165985], + [13.327304444720372, 52.51190538346867], + [13.32726996309462, 52.51190317244061], + [13.327256641299767, 52.51190231822152], + [13.327254272980712, 52.51190216636033], + [13.327255601943573, 52.51189445144667], + [13.32725797026264, 52.51189460330785], + [13.327270551957797, 52.511895410070316], + [13.327366320868485, 52.51190155095656], + [13.327363428418758, 52.51191834223923], + [13.327367572977778, 52.511918607996286], + [13.327366212745442, 52.51192650442826], + [13.327366212743883, 52.51192650443735], + [13.327364023862291, 52.51193921134485], + [13.32736402386072, 52.51193921135394], + [13.327363398466872, 52.511942841892456], + [13.327363398465307, 52.51194284190151], + [13.327361209582074, 52.511955548808984], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2FBE0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325779977592257, 52.51209747526459], + [13.325775833042895, 52.51209720950764], + [13.325775317086967, 52.512100204709306], + [13.32577280075343, 52.51210004335687], + [13.32575859087014, 52.51209913219019], + [13.325750597810922, 52.51209861965891], + [13.325751113766827, 52.512095624457245], + [13.325746969217635, 52.512095358700286], + [13.325740910640105, 52.51213052962891], + [13.325773919014384, 52.5121326461932], + [13.325779977592257, 52.51209747526459], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2FBE1', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.325792705125972, 52.512148258096346], + [13.325788133700676, 52.51214796496725], + [13.325724912141922, 52.51214391107194], + [13.325720619573294, 52.51214363582367], + [13.325732470930946, 52.512074836949054], + [13.325779393149094, 52.5120778456974], + [13.32577949477668, 52.51207725573344], + [13.325804658112665, 52.51207886925781], + [13.325792705125972, 52.512148258096346], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2FF89', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.3281696928546, 52.51224979079102], + [13.32816569631093, 52.51224953452526], + [13.328159614256059, 52.51228484159874], + [13.32819203066624, 52.51228692019891], + [13.328198112721445, 52.51225161312544], + [13.328194116177594, 52.51225135685965], + [13.328193631489755, 52.5122541705339], + [13.32818978296608, 52.51225392375946], + [13.3281760170931, 52.51225304106621], + [13.328169208166782, 52.51225260446526], + [13.3281696928546, 52.51224979079102], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2FF8A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328237418681491, 52.512236284963286], + [13.32822202458592, 52.51223529786545], + [13.328210337346503, 52.51230314372004], + [13.328206192782451, 52.512302877962966], + [13.32820627095808, 52.51230242414451], + [13.328140401997032, 52.51229820050488], + [13.328140323821412, 52.512298654323324], + [13.3281367713383, 52.512298426531515], + [13.328148458576258, 52.51223058067688], + [13.328131584281394, 52.512229498665825], + [13.328134210973289, 52.51221425036663], + [13.32813436732393, 52.51221334272978], + [13.328240201724535, 52.51222012902724], + [13.328240045373864, 52.51222103666408], + [13.328238481866723, 52.51223011303266], + [13.328237418681491, 52.512236284963286], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2FFD9', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32762483454018, 52.512208751001374], + [13.327627461895522, 52.51220891947236], + [13.327625929660222, 52.5122178142327], + [13.327575972982883, 52.51221461099685], + [13.327579178092812, 52.51219600443618], + [13.327626507492425, 52.51219903928697], + [13.32762483454018, 52.512208751001374], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '30036', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32767837379635, 52.512217437656744], + [13.32767764207471, 52.512221685397215], + [13.327676055898705, 52.51223089335497], + [13.327675782281561, 52.51223248173762], + [13.327657501793306, 52.51223130955816], + [13.32764440202112, 52.51223046957601], + [13.327625825523267, 52.51222927841582], + [13.327626013145856, 52.512228189242514], + [13.32762739685062, 52.51222015665631], + [13.327627779908477, 52.51221793295511], + [13.327629147979085, 52.51220999112354], + [13.327629312145776, 52.512209038113916], + [13.327635195941596, 52.512209415394025], + [13.327636180950968, 52.5122036972818], + [13.327643581952087, 52.51220417184801], + [13.32764426989499, 52.512200178245834], + [13.327650301710966, 52.512200565017295], + [13.327661625242952, 52.51220129110358], + [13.32768094185675, 52.51220252972134], + [13.327679757500343, 52.512209405070536], + [13.32767837379635, 52.512217437656744], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '30163', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327332425627144, 52.51212264476825], + [13.327363361798724, 52.512124628454806], + [13.327359687568112, 52.51214595792124], + [13.327359484312698, 52.51214713784916], + [13.327336467208985, 52.5121456619484], + [13.327331854871801, 52.5121724372359], + [13.327281195043764, 52.51216918883056], + [13.327269205428316, 52.512168420033376], + [13.32727237934197, 52.51214999500502], + [13.32721224624268, 52.51214613915503], + [13.327219282792436, 52.51210529090493], + [13.327221642886649, 52.51209159017911], + [13.327273584546798, 52.512094920778246], + [13.327336506363952, 52.51209895544588], + [13.327332425627144, 52.51212264476825], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '301E6', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327727789081262, 52.51223464391043], + [13.327720647308343, 52.51227610277721], + [13.327719056092919, 52.51227600074548], + [13.327717961634562, 52.51228235420342], + [13.327669596554857, 52.51227925294321], + [13.327675154054328, 52.51224699099137], + [13.327676537758638, 52.512238958414315], + [13.327678202634347, 52.51222929205586], + [13.327679492325093, 52.51222180403876], + [13.327679860531196, 52.51221966655397], + [13.327729817293449, 52.51222286987584], + [13.327729062900804, 52.512227249223656], + [13.327727789081262, 52.51223464391043], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '30E95', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327204504476523, 52.51215546172528], + [13.327193254962058, 52.51215474038473], + [13.327194427589944, 52.51214793310823], + [13.327147505274894, 52.512144924358886], + [13.327147739800404, 52.512143562903574], + [13.327143669252726, 52.5121433018922], + [13.327142262099429, 52.512151470624005], + [13.327113398216593, 52.51214961981605], + [13.327113601472094, 52.512148439888136], + [13.327109530924613, 52.512148178876764], + [13.327109327669111, 52.51214935880467], + [13.327073062792637, 52.51214703343063], + [13.327073266048112, 52.51214585350271], + [13.32706919550087, 52.51214559249132], + [13.327068992245392, 52.51214677241924], + [13.327065439767816, 52.512146544627484], + [13.327065861913804, 52.512144094007965], + [13.327062901515838, 52.512143904181514], + [13.327045139128321, 52.5121427652228], + [13.32703226139765, 52.51214193947774], + [13.32703257935115, 52.51214443755389], + [13.327030359052781, 52.51214429518406], + [13.327031766205815, 52.51213612645225], + [13.32702776966876, 52.51213587018653], + [13.327026362515733, 52.51214403891835], + [13.32699453824012, 52.51214199828399], + [13.326994741495579, 52.512140818356066], + [13.3269906709488, 52.512140557344715], + [13.326990467693342, 52.51214173727263], + [13.326954942922523, 52.512139459355254], + [13.326955146177959, 52.512138279427326], + [13.326951075631419, 52.51213801841597], + [13.326950872375978, 52.51213919834388], + [13.32691830800453, 52.512137110252965], + [13.326919715157297, 52.51212894152116], + [13.326917038829018, 52.51212876990978], + [13.326917508314134, 52.512126044477874], + [13.326919087451403, 52.5121168773455], + [13.326923449184912, 52.51209155679804], + [13.327157850656778, 52.512106587074996], + [13.327158225896937, 52.51210440874649], + [13.327154525398978, 52.51210417146343], + [13.327157496048871, 52.51208692636282], + [13.327161196546854, 52.5120871636459], + [13.327161603056663, 52.51208480379001], + [13.32715790255868, 52.512084566506935], + [13.32719175216344, 52.51188806312013], + [13.327211438814054, 52.51188932546609], + [13.327226092787438, 52.51189026510711], + [13.327245779439046, 52.51189152745309], + [13.327244935156916, 52.511896428692395], + [13.32724907971678, 52.51189669444035], + [13.327216074389248, 52.51208829659686], + [13.327212373890978, 52.51208805931378], + [13.327211967381135, 52.51209041916965], + [13.327215667879406, 52.512090656452735], + [13.32721269722921, 52.51210790155333], + [13.327208996730956, 52.51210766427026], + [13.32720862149077, 52.51210984259876], + [13.327212321989018, 52.51211007988181], + [13.327211383888379, 52.51211552570307], + [13.327215972506233, 52.51211581993407], + [13.327214948412754, 52.512121764955566], + [13.327213322370634, 52.51213120437903], + [13.327212298276434, 52.51213714940051], + [13.327207709658614, 52.512136855169494], + [13.327204504476523, 52.51215546172528], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '30F72', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326653743088599, 52.51179988168703], + [13.326734487900536, 52.511805059203205], + [13.326732283392992, 52.51181785688371], + [13.32672987743847, 52.51181907910257], + [13.32665596668329, 52.51181433979955], + [13.326654872246516, 52.51182069325798], + [13.326653265842305, 52.51183050169625], + [13.3266525426586, 52.51183421704796], + [13.326593852806031, 52.51183045373884], + [13.32660682968551, 52.511755119874636], + [13.326611640329082, 52.511755428342596], + [13.326624370032231, 52.511756244596285], + [13.326639505057495, 52.51175721508396], + [13.32665351369134, 52.51176514880909], + [13.32665786798831, 52.51177593565858], + [13.326653743088599, 52.51179988168703], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '30FDA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327074133011287, 52.51216862123741], + [13.327064511717841, 52.512168004301444], + [13.32704689735019, 52.51216687483404], + [13.327032983480272, 52.512165982649734], + [13.32703310074315, 52.512165301922096], + [13.327031472524354, 52.51216519751755], + [13.327034716796128, 52.512146364052604], + [13.327044412099116, 52.51214698573421], + [13.32706217448661, 52.51214812469293], + [13.327077494546195, 52.512149107044834], + [13.327074133011287, 52.51216862123741], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3134B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326917607252732, 52.51211678243227], + [13.326919087451403, 52.5121168773455], + [13.326917508314134, 52.512126044477874], + [13.326916028115464, 52.51212594956467], + [13.326915559064672, 52.51212867247526], + [13.326915570601036, 52.512128675764146], + [13.32691416344828, 52.51213684449594], + [13.326876862443111, 52.512134452682744], + [13.326877065698529, 52.51213327275482], + [13.326873217182243, 52.51213302598044], + [13.326873013926818, 52.51213420590835], + [13.326836008963593, 52.51213183307781], + [13.326836212218987, 52.5121306531499], + [13.326832215683087, 52.51213039688419], + [13.326832012427687, 52.512131576812116], + [13.326804036676968, 52.51212978295222], + [13.326805443829459, 52.51212161422042], + [13.3268010032342, 52.51212132948077], + [13.32680080779639, 52.51212246402685], + [13.326768983501639, 52.512120423390726], + [13.326754995642217, 52.51211952646174], + [13.32674974095302, 52.51211918952078], + [13.326750561791702, 52.51211442442719], + [13.326744640998506, 52.51211404477431], + [13.326745938704978, 52.51210651138829], + [13.326741498110104, 52.51210622664861], + [13.326742584743492, 52.51209991857238], + [13.326741104545206, 52.512099823659156], + [13.326742668045929, 52.51209074729044], + [13.326744148244213, 52.51209084220364], + [13.326745234876837, 52.51208453412736], + [13.326749675471737, 52.512084818867024], + [13.326750425951639, 52.51208046221001], + [13.32675412644742, 52.51208069949306], + [13.32675450168732, 52.512078521164575], + [13.326750801191539, 52.51207828388151], + [13.326753771839405, 52.51206103878084], + [13.326757472335204, 52.512061276063896], + [13.326757878844733, 52.512058916208034], + [13.32675417834893, 52.51205867892496], + [13.326787246188358, 52.511866713722085], + [13.326790650644684, 52.511866932022485], + [13.32679143238679, 52.51186239383796], + [13.326798069904719, 52.5118628194486], + [13.3267982575228, 52.51186173028431], + [13.326811158624153, 52.5118625575282], + [13.32682581258898, 52.511863497169095], + [13.326825624970894, 52.511864586333395], + [13.326845607650704, 52.511865867661896], + [13.326811758065867, 52.51206237104924], + [13.326808057569774, 52.5120621337662], + [13.326807651060207, 52.5120644936221], + [13.326811351556302, 52.512064730905145], + [13.32680838090815, 52.51208197600579], + [13.326804680412076, 52.512081738722735], + [13.326804305172143, 52.51208391705124], + [13.326808005668209, 52.51208415433428], + [13.326921968986237, 52.51209146188483], + [13.326917607252732, 52.51211678243227], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '313D6', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326863601327263, 52.512156268614376], + [13.326862287982982, 52.51216389276401], + [13.326850150355023, 52.51216311447559], + [13.326849970551901, 52.51216415825799], + [13.326838128963873, 52.512163398952225], + [13.326838308766982, 52.51216235516982], + [13.326836828568496, 52.5121622602566], + [13.326838196635393, 52.51215431843406], + [13.32683947089153, 52.5121469211936], + [13.326835030296067, 52.51214663645393], + [13.326834483069556, 52.51214981318296], + [13.32682848826572, 52.512149428784404], + [13.32682841009049, 52.51214988260287], + [13.326834404894333, 52.512150267001424], + [13.326833756039925, 52.51215403369441], + [13.326832387973042, 52.51216197551694], + [13.326816105789963, 52.51216093147152], + [13.32681663738171, 52.51215784550617], + [13.326817731835074, 52.51215149204813], + [13.326812551140522, 52.51215115985187], + [13.32681294201664, 52.51214889075971], + [13.32681952889972, 52.51214931312353], + [13.326819607074945, 52.51214885930508], + [13.326808246551913, 52.51214813084611], + [13.326808168376692, 52.51214858466456], + [13.326812201917422, 52.51214884330308], + [13.326811811041303, 52.512151112395266], + [13.326810330842866, 52.51215101748204], + [13.32680923638952, 52.51215737094007], + [13.326808704797772, 52.5121604569054], + [13.32679542001701, 52.512159605059246], + [13.326797436938175, 52.5121478965437], + [13.326799287186182, 52.51214801518525], + [13.3267993653614, 52.512147561366795], + [13.326794924766185, 52.512147276627125], + [13.326794846590968, 52.51214773044557], + [13.326796696838974, 52.51214784908711], + [13.326794679917818, 52.512159557602644], + [13.32678202422162, 52.51215874609463], + [13.326784041142743, 52.51214703757909], + [13.32678596540063, 52.512147160966265], + [13.326786043575849, 52.51214670714781], + [13.326781454960887, 52.512146412916834], + [13.326781376785668, 52.512146866735286], + [13.326783301043557, 52.51214699012247], + [13.326781284122436, 52.51215869863801], + [13.326764520876107, 52.51215762374579], + [13.326766537797173, 52.512145915230256], + [13.326770756362452, 52.51214618573293], + [13.326772495595502, 52.51214629725595], + [13.32677257377072, 52.51214584343752], + [13.326770834537667, 52.512145731914494], + [13.32677322669841, 52.51213184507042], + [13.326836875230562, 52.51213592633891], + [13.326836171653946, 52.512140010704826], + [13.326840612249436, 52.51214029544451], + [13.326841315826051, 52.512136211078584], + [13.326866775240726, 52.512137843586004], + [13.326863601327263, 52.512156268614376], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '31740', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328098754369153, 52.51220913207013], + [13.328081556435897, 52.51220802930672], + [13.328081376632676, 52.5122090730891], + [13.328064946399794, 52.51220801955205], + [13.328065126203002, 52.51220697576966], + [13.32805476479508, 52.512206311376914], + [13.328055077496288, 52.5122044961032], + [13.328049156691824, 52.5122041164502], + [13.328050618569636, 52.51219563004556], + [13.32805979581659, 52.51219621850768], + [13.328059975619707, 52.51219517472532], + [13.32805065035263, 52.512194576771854], + [13.328051103769138, 52.512191944624945], + [13.328049623568031, 52.512191849711684], + [13.328051108897576, 52.51218322716152], + [13.328052589098698, 52.51218332207477], + [13.328055434675791, 52.512166803083815], + [13.32805765497748, 52.512166945453664], + [13.32805843672905, 52.51216240726935], + [13.328106274826645, 52.51216547473704], + [13.328098754369153, 52.51220913207013], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3182C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328148609552585, 52.51221232887695], + [13.328126702573341, 52.512210924160826], + [13.328126522770111, 52.5122119679432], + [13.328110240556267, 52.51221092389748], + [13.328110420359495, 52.51220988011509], + [13.328100530610616, 52.51220924596604], + [13.32810805106812, 52.512165588632946], + [13.328156130010708, 52.512168671543854], + [13.328153253163636, 52.51218537206217], + [13.328156509606574, 52.512185580871304], + [13.328155024277056, 52.51219420342151], + [13.32815176783412, 52.512193994612346], + [13.328148609552585, 52.51221232887695], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '31DBF', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327946886705188, 52.51189537251092], + [13.32793186266615, 52.51189440914145], + [13.327931487429936, 52.51189658747003], + [13.327915649280785, 52.51189557189828], + [13.327916024516982, 52.51189339356971], + [13.327846307060968, 52.511888923155766], + [13.327846541583543, 52.511887561700426], + [13.327840916820948, 52.511887201030085], + [13.327842558478599, 52.511877670842544], + [13.32784818324121, 52.51187803151289], + [13.327860237676957, 52.511808052706805], + [13.327885771139925, 52.51180968996033], + [13.327895244424983, 52.51181029740512], + [13.32793313756651, 52.51181272718427], + [13.327942610852217, 52.51181333462904], + [13.327960817323557, 52.51181450206202], + [13.327946886705188, 52.51189537251092], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '32233', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328159641655336, 52.5119100241826], + [13.328139214876792, 52.51190871437971], + [13.328138824005585, 52.51191098347199], + [13.328122985851632, 52.51190996790018], + [13.328123376722838, 52.51190769880791], + [13.328091404375778, 52.51190564868167], + [13.328091013504586, 52.511907917773954], + [13.328075471391974, 52.51190692118481], + [13.328075862263148, 52.51190465209255], + [13.328059876090537, 52.511903627029426], + [13.328060048073832, 52.51190262862883], + [13.328044505961929, 52.51190163203971], + [13.328044115090792, 52.51190390113199], + [13.32802857297925, 52.511902904542836], + [13.328028963850372, 52.51190063545058], + [13.327979525135957, 52.511897465348056], + [13.32797913426487, 52.51189973444032], + [13.327963592154797, 52.511898737851205], + [13.327963983025873, 52.51189646875893], + [13.327948662946282, 52.51189548640681], + [13.327962593564688, 52.51181461595792], + [13.327980800036563, 52.51181578339089], + [13.327990273322927, 52.511816390835676], + [13.328046298933263, 52.5118199833022], + [13.328055772220536, 52.511820590747014], + [13.328093517350817, 52.51182301103495], + [13.328102990638744, 52.511823618479745], + [13.32814325211389, 52.51182620012022], + [13.3281527254025, 52.511826807565036], + [13.32817374426207, 52.51182815533325], + [13.328159641655336, 52.5119100241826], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '32747', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328104231215326, 52.51193066142466], + [13.328101864212872, 52.511944402369856], + [13.328097127568931, 52.51194409864745], + [13.328081881496448, 52.511943121040964], + [13.328070631967448, 52.51194239970025], + [13.328055385895546, 52.51194142209376], + [13.328044136366998, 52.511940700753065], + [13.32802889029568, 52.51193972314661], + [13.328017640767559, 52.51193900180592], + [13.328002394696838, 52.511938024199424], + [13.327991145169156, 52.51193730285874], + [13.32797589909902, 52.51193632525227], + [13.327964649571772, 52.511935603911596], + [13.327949403502233, 52.51193462630514], + [13.327938153975406, 52.511933904964444], + [13.327922907906455, 52.51193292735799], + [13.327911658380074, 52.51193220601732], + [13.327896412311716, 52.51193122841089], + [13.327885162785764, 52.51193050707021], + [13.327869916717992, 52.511929529463764], + [13.327858667192473, 52.511928808123095], + [13.3278434211253, 52.511927830516676], + [13.327832171600209, 52.51192710917599], + [13.327816925533615, 52.511926131569574], + [13.327805676008973, 52.51192541022891], + [13.327790429942963, 52.51192443262249], + [13.32777918041876, 52.511923711281824], + [13.327763934353344, 52.51192273367542], + [13.327752684829568, 52.511922012334786], + [13.327737438764737, 52.51192103472837], + [13.327726189241403, 52.51192031338772], + [13.327710943177163, 52.51191933578132], + [13.327699693654255, 52.51191861444068], + [13.32768444759061, 52.51191763683426], + [13.327673198068135, 52.51191691549364], + [13.32765795200508, 52.511915937887245], + [13.327646702483037, 52.51191521654662], + [13.327631456420573, 52.51191423894023], + [13.327620206898974, 52.511913517599595], + [13.32760496083709, 52.51191253999323], + [13.327593711315929, 52.5119118186526], + [13.327578465254632, 52.51191084104622], + [13.327567215733898, 52.5119101197056], + [13.327551969673198, 52.51190914209925], + [13.327540720152898, 52.511908420758616], + [13.327525474092793, 52.51190744315226], + [13.327528194557193, 52.51189165027014], + [13.327470984829537, 52.51188798187348], + [13.327473971083885, 52.51187064600856], + [13.327492177542714, 52.51187181344136], + [13.327492552778706, 52.51186963511279], + [13.327506466658141, 52.51187052729723], + [13.327506091422146, 52.511872705625805], + [13.327527406301815, 52.51187407237645], + [13.327527765902996, 52.51187198481154], + [13.327547008503284, 52.51187321868365], + [13.327547227390955, 52.511871947992006], + [13.327549003631004, 52.51187206188787], + [13.327549378866976, 52.511869883559285], + [13.32756521700768, 52.51187089913095], + [13.327564841771697, 52.51187307745955], + [13.327566618011796, 52.511873191355434], + [13.32756639912413, 52.511874462047096], + [13.327754236540624, 52.511886506537486], + [13.327754455428366, 52.51188523584582], + [13.32775623166896, 52.51188534974172], + [13.327756606905062, 52.51188317141313], + [13.327772445050547, 52.51188418698484], + [13.327772069814428, 52.51188636531344], + [13.327773846055068, 52.51188647920934], + [13.327773627167318, 52.511887749900986], + [13.327913654151972, 52.51189672869404], + [13.327913873039774, 52.51189545800239], + [13.327915649280785, 52.51189557189828], + [13.327931487429936, 52.51189658747003], + [13.327933263670987, 52.51189670136591], + [13.327933044783176, 52.511897972057604], + [13.328043911837787, 52.511905081059936], + [13.328043739854467, 52.51190607946055], + [13.328083039195208, 52.511908599407356], + [13.328107758555703, 52.511910184458664], + [13.328105700892259, 52.51192212963777], + [13.328104231215326, 52.51193066142466], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '32EBC', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328392630880693, 52.5119488230999], + [13.328390207474836, 52.51196289147183], + [13.328371556931645, 52.51196169556479], + [13.328371119154948, 52.5119642369481], + [13.328355280995657, 52.511963221376256], + [13.328355718772345, 52.511960679992924], + [13.328309092417632, 52.51195769022537], + [13.328293846340442, 52.511956712618826], + [13.328282596807961, 52.51195599127809], + [13.328267350731354, 52.511955013671546], + [13.328256101199312, 52.511954292330806], + [13.32824085512329, 52.51195331472429], + [13.328234638276857, 52.51195291608863], + [13.328229605591687, 52.511952593383555], + [13.328214359516256, 52.51195161577704], + [13.328203109985086, 52.51195089443631], + [13.328187863910243, 52.511949916829785], + [13.328176614379515, 52.51194919548908], + [13.328161368305254, 52.511948217882576], + [13.328151598976303, 52.51194759145512], + [13.32815011877496, 52.51194749654186], + [13.3281348727013, 52.51194651893535], + [13.328123623171434, 52.51194579759465], + [13.328108377098358, 52.51194481998815], + [13.328103640454364, 52.51194451626575], + [13.328106007456828, 52.51193077532055], + [13.328104231215326, 52.51193066142466], + [13.328105700892259, 52.51192212963777], + [13.328107477133765, 52.51192224353367], + [13.328109534797205, 52.51191029835458], + [13.32812100635705, 52.51191103393227], + [13.328121209610089, 52.51190985400429], + [13.328122985851632, 52.51190996790018], + [13.328138824005585, 52.51191098347199], + [13.328140600247178, 52.51191109736789], + [13.328140396994122, 52.51191227729588], + [13.328159269561262, 52.51191348743984], + [13.328179918370608, 52.51191481147972], + [13.328180231067627, 52.51191299620588], + [13.328182007309328, 52.51191311010179], + [13.328182288736615, 52.51191147635537], + [13.328198126891934, 52.51191249192719], + [13.328197845464643, 52.511914125673606], + [13.32819962170638, 52.51191423956952], + [13.328199309009351, 52.51191605484334], + [13.328240532621011, 52.51191869817747], + [13.328249709870624, 52.51191928663965], + [13.328249991297964, 52.511917652893224], + [13.328265799850824, 52.51191866656678], + [13.32826551842347, 52.51192030031323], + [13.328359910885636, 52.51192635293157], + [13.328360129773612, 52.5119250822399], + [13.328362202056136, 52.511925215118445], + [13.328362827450297, 52.51192158457084], + [13.328378665609788, 52.5119226001427], + [13.32837804021562, 52.51192623069031], + [13.328380112498191, 52.511926363568854], + [13.328379893610203, 52.51192763426054], + [13.328396101820559, 52.51192867356072], + [13.328394256906975, 52.51193938367615], + [13.328392630880693, 52.5119488230999], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '33236', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328366042151481, 52.51210578199174], + [13.328363384203316, 52.512121211818624], + [13.328352578730305, 52.51212051895185], + [13.328352578730305, 52.51212051895185], + [13.328352578730305, 52.51212051895185], + [13.32833896087415, 52.51211964574989], + [13.328309948920639, 52.5121177854501], + [13.328310433605402, 52.51211497177579], + [13.32831201273919, 52.51210580464335], + [13.328313200997844, 52.51209890660311], + [13.328314780130471, 52.51208973947064], + [13.328315630584838, 52.51208480243736], + [13.328369065868026, 52.51208822880588], + [13.328367652554451, 52.51209643333193], + [13.328366042151481, 52.51210578199174], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '335AA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328489766343054, 52.512129040374035], + [13.32839125928867, 52.512122723921514], + [13.328393886179065, 52.51210747439071], + [13.328395480947133, 52.51209821649456], + [13.32840364218456, 52.512050839080736], + [13.328405236948495, 52.512041581184505], + [13.328407738537615, 52.51202705899433], + [13.32850624559477, 52.51203337544694], + [13.328503650195582, 52.512048442219246], + [13.328502680829162, 52.51205406956792], + [13.328498662646334, 52.51207739583582], + [13.328497693278644, 52.512083023184466], + [13.32849364382053, 52.51210653097959], + [13.328492674451537, 52.5121121583282], + [13.328489766343054, 52.512129040374035], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3391E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328515493644192, 52.51197968872485], + [13.328514524280823, 52.51198531607358], + [13.328510529563012, 52.51200850619618], + [13.328509560198354, 52.512014133544895], + [13.328506683372767, 52.512030834063665], + [13.32840817631555, 52.51202451761104], + [13.328410622243078, 52.512010318535765], + [13.328412217004061, 52.51200106063949], + [13.328420887488154, 52.5119507267316], + [13.328422482244786, 52.511941468835204], + [13.328424858743615, 52.51192767275432], + [13.328523365803623, 52.511933989206995], + [13.328520551528065, 52.5119503266712], + [13.328519582165987, 52.51195595401998], + [13.328515493644192, 52.51197968872485], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '33C93', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328369253487669, 52.51208713964164], + [13.328315818204466, 52.51208371327311], + [13.32831596838825, 52.512082841430335], + [13.328317563154684, 52.512073583534175], + [13.32831875141158, 52.51206668549388], + [13.328320346176833, 52.512057427597696], + [13.328321534432858, 52.51205052955737], + [13.328323113561996, 52.51204136242484], + [13.328324301817144, 52.512034464384534], + [13.32832588094512, 52.51202529725195], + [13.328326631421543, 52.5120209405949], + [13.328369261232424, 52.51202367409668], + [13.32838006670573, 52.51202436696344], + [13.3283774244024, 52.51203970602684], + [13.328375814003609, 52.51204905468675], + [13.328369253487669, 52.51208713964164], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '34266', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328357177105296, 52.512157245002356], + [13.328303741823186, 52.51215381863387], + [13.32830976130072, 52.512118874614345], + [13.32836319658337, 52.51212230098287], + [13.328357177105296, 52.512157245002356], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '34443', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328262508628928, 52.512296532402154], + [13.328261805048392, 52.51230061676796], + [13.328240786186512, 52.51229926899978], + [13.328240598565026, 52.512300358164005], + [13.328218839603064, 52.51229896293922], + [13.328226266279655, 52.512255850188865], + [13.328251281685274, 52.51225745422281], + [13.328250234133849, 52.512263535389735], + [13.328250974234606, 52.51226358284635], + [13.328255148803521, 52.51223934894237], + [13.32827217112159, 52.512240440444785], + [13.328266902095493, 52.51227102780671], + [13.328249879777585, 52.51226993630431], + [13.328250036128603, 52.512269028667454], + [13.328249296027828, 52.512268981210845], + [13.328249061501296, 52.512270342666106], + [13.328266823919979, 52.512271481625135], + [13.328264885166641, 52.51228273632206], + [13.328261776743346, 52.51228253700424], + [13.328260901176993, 52.512287619770575], + [13.328264009600286, 52.51228781908841], + [13.328263884519362, 52.51228854519789], + [13.328262508628928, 52.512296532402154], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '346B6', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327787690154182, 52.51218918605152], + [13.327771824409187, 52.51218816871012], + [13.32777164460606, 52.512189212492494], + [13.327755066360554, 52.5121881494642], + [13.327755246163663, 52.51218710568181], + [13.327743626590047, 52.51218636061287], + [13.32774393929109, 52.512184545339124], + [13.327738018489315, 52.51218416568618], + [13.327739480366347, 52.5121756792815], + [13.32774865760914, 52.51217626774359], + [13.327748837412157, 52.5121752239612], + [13.32773951214932, 52.51217462600779], + [13.32773996556559, 52.51217199386087], + [13.327738485365154, 52.51217189894762], + [13.327739970693912, 52.51216327639743], + [13.327741450894354, 52.51216337131067], + [13.327744296469936, 52.51214685231968], + [13.327746812810718, 52.512147013672184], + [13.32774759456188, 52.51214247548788], + [13.327795210607693, 52.51214552871833], + [13.327787690154182, 52.51218918605152], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '34850', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32784194202749, 52.51218119400417], + [13.327832616763382, 52.51218059605074], + [13.32783243696033, 52.51218163983312], + [13.327841614204374, 52.512182228295224], + [13.327840152327092, 52.51219071469989], + [13.327834231524488, 52.51219033504691], + [13.327833918823394, 52.51219215032065], + [13.327821411128065, 52.512191348303745], + [13.327821231324927, 52.51219239208614], + [13.327804801098276, 52.51219133854912], + [13.327804980901409, 52.51219029476674], + [13.327789466394835, 52.51218929994742], + [13.32779698684837, 52.5121456426142], + [13.327845287799231, 52.51214873976189], + [13.327844506047938, 52.51215327794623], + [13.327846726348948, 52.51215342031608], + [13.32784194202749, 52.51218119400417], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '349EA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32789108217, 52.51219581574157], + [13.327871515920783, 52.51219456111705], + [13.32787133611763, 52.51219560489943], + [13.327855053909857, 52.512194560853736], + [13.327855233713002, 52.51219351707135], + [13.327847536669449, 52.512193023522464], + [13.32784784937056, 52.51219120824875], + [13.327841928567889, 52.5121908285958], + [13.327843390445171, 52.51218234219111], + [13.32785256768936, 52.512182930653246], + [13.327852747492411, 52.51218188687084], + [13.327843422228153, 52.512181288917425], + [13.327848206549625, 52.51215351522932], + [13.327850426850642, 52.512153657599185], + [13.327851208601942, 52.51214911941488], + [13.32789860262484, 52.512152158408405], + [13.32789108217, 52.51219581574157], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '34B84', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32794555608168, 52.5121878379313], + [13.327936230816155, 52.51218723997787], + [13.327936051013083, 52.51218828376024], + [13.327945228258507, 52.51218887222235], + [13.327943766380963, 52.51219735862702], + [13.327937845577464, 52.51219697897404], + [13.327937532876314, 52.51219879424775], + [13.327932500193386, 52.512198471542725], + [13.327932320390218, 52.512199515325115], + [13.32791574214082, 52.51219845229677], + [13.327915921943982, 52.51219740851436], + [13.327892858410923, 52.51219592963749], + [13.327900378865774, 52.51215227230431], + [13.327948901854064, 52.51215538368906], + [13.32794812010263, 52.51215992187337], + [13.327950340403977, 52.51216006424324], + [13.32794555608168, 52.5121878379313], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '34D1E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327995140291856, 52.51220248814276], + [13.327977942361201, 52.51220138537938], + [13.32797776255801, 52.51220242916178], + [13.327961184307522, 52.512201366133404], + [13.327961364110706, 52.51220032235102], + [13.327951150724438, 52.51219966744962], + [13.327951463425597, 52.5121978521759], + [13.32794554262203, 52.51219747252292], + [13.327947004499565, 52.512188986118254], + [13.327956181745146, 52.512189574580376], + [13.327956361548225, 52.51218853079799], + [13.327947036282557, 52.512187932844554], + [13.327951820604872, 52.51216015915649], + [13.327954040906235, 52.51216030152636], + [13.327954822657661, 52.51215576334203], + [13.328002660748016, 52.512158830809625], + [13.327995140291856, 52.51220248814276], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '34EBA', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328051108897576, 52.51218322716152], + [13.328049623568031, 52.512191849711684], + [13.328049170151523, 52.51219448185859], + [13.328039844884593, 52.512193883905134], + [13.328039665081477, 52.51219492768753], + [13.328048842328299, 52.51219551614966], + [13.328047380450503, 52.51220400255432], + [13.328041459646105, 52.512203622901325], + [13.328041146944898, 52.512205438175044], + [13.328027973155312, 52.51220459344714], + [13.328027793352115, 52.51220563722953], + [13.328011215100407, 52.512204574201135], + [13.328011394903607, 52.512203530418766], + [13.327996916533056, 52.512202602038656], + [13.328004436989247, 52.51215894470553], + [13.328052515924554, 52.51216202761639], + [13.32805173417299, 52.51216656580069], + [13.328053954474663, 52.51216670817056], + [13.328051108897576, 52.51218322716152], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3A18E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328487045852436, 52.512144833255626], + [13.32848607648174, 52.51215046060421], + [13.3284835123387, 52.51216534584882], + [13.328362875882162, 52.512157610418384], + [13.328366112330045, 52.51213882233522], + [13.328360413553147, 52.512138456919196], + [13.328362023958528, 52.5121291082594], + [13.328367722735445, 52.51212947367544], + [13.328368676470358, 52.512123937090514], + [13.328371740928437, 52.51210614740777], + [13.328366042151481, 52.51210578199174], + [13.328367652554451, 52.51209643333193], + [13.328373351331422, 52.51209679874797], + [13.328381512780656, 52.51204942010278], + [13.328375814003609, 52.51204905468675], + [13.3283774244024, 52.51203970602684], + [13.32838312317947, 52.51204007144288], + [13.328386046911483, 52.51202309863309], + [13.32838849283892, 52.51200889955781], + [13.328382350001245, 52.51200850566782], + [13.328382436930717, 52.512008001025464], + [13.328383844072691, 52.511999832293455], + [13.328383960397051, 52.51199915700783], + [13.328390103234748, 52.51199955089786], + [13.328393614207306, 52.511979169007546], + [13.32839065380358, 52.51197897918102], + [13.328392264197204, 52.51196963052098], + [13.328395224600946, 52.511969820347495], + [13.328398773718474, 52.51194921698993], + [13.328392630880693, 52.5119488230999], + [13.328394256906975, 52.51193938367615], + [13.328400399744762, 52.51193977756617], + [13.328402729338913, 52.511926253776345], + [13.328421602299361, 52.51192746394515], + [13.328419225800546, 52.51194126002603], + [13.328422482244786, 52.511941468835204], + [13.328420887488154, 52.5119507267316], + [13.328417631043918, 52.51195051792242], + [13.328408960559882, 52.51200085183032], + [13.328412217004061, 52.51200106063949], + [13.328410622243078, 52.512010318535765], + [13.328407365798913, 52.51201010972661], + [13.32840198050435, 52.51204137237533], + [13.328405236948495, 52.512041581184505], + [13.32840364218456, 52.512050839080736], + [13.328400385740427, 52.51205063027156], + [13.32839222450304, 52.5120980076854], + [13.328395480947133, 52.51209821649456], + [13.328393886179065, 52.51210747439071], + [13.328390629734976, 52.51210726558155], + [13.328387549429713, 52.5121251472593], + [13.32848931292809, 52.512131672520994], + [13.328487045852436, 52.512144833255626], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3A901', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32656168664739, 52.5121253467061], + [13.326559984419811, 52.51212523755591], + [13.326559796799417, 52.51212632672015], + [13.326558242591634, 52.51212622706128], + [13.326558156598955, 52.51212672626155], + [13.326548535312744, 52.51212610932564], + [13.326548378962414, 52.51212701696253], + [13.326533576983897, 52.512126067830366], + [13.32653373333422, 52.51212516019349], + [13.32653299323531, 52.512125112736896], + [13.326523001900007, 52.512124472072706], + [13.326470824929098, 52.51212112638193], + [13.326470645126236, 52.51212217016433], + [13.326455843149402, 52.51212122103222], + [13.326456022952256, 52.51212017724979], + [13.326405179391516, 52.51211691705966], + [13.326404999588677, 52.512117960842055], + [13.32639019761326, 52.51211701170994], + [13.3263903774161, 52.51211596792753], + [13.32635662768606, 52.51211380382763], + [13.326342417790654, 52.51211289266081], + [13.326303363854867, 52.51211038844451], + [13.32630318405207, 52.51211143222694], + [13.326289911238899, 52.512110581147624], + [13.326290091041695, 52.51210953736523], + [13.326192648317452, 52.51210328914266], + [13.326192468514677, 52.512104332925084], + [13.32618114497633, 52.51210360683706], + [13.326181324779101, 52.51210256305466], + [13.326142643076983, 52.51210008270627], + [13.326142463274202, 52.51210112648876], + [13.326130518164845, 52.5121003606121], + [13.326130697979151, 52.51209931676258], + [13.326049782822652, 52.51209412831979], + [13.326049603019925, 52.512095172102185], + [13.326051231236395, 52.51209527650672], + [13.326049816266787, 52.51210349062038], + [13.326024208862801, 52.51210184862196], + [13.32602562383234, 52.512093634508325], + [13.32603494907186, 52.51209423246149], + [13.326035128874587, 52.512093188679074], + [13.325864092160403, 52.51208222145863], + [13.325838844690526, 52.51208060253955], + [13.325838664887872, 52.51208164632195], + [13.325838664528144, 52.5120816462989], + [13.32582230798075, 52.512080597483795], + [13.325822487783409, 52.512079553701405], + [13.325813321426107, 52.512078965935906], + [13.325804736287735, 52.51207841543937], + [13.325803996189606, 52.512078367982745], + [13.325803918014541, 52.5120788218012], + [13.325789116052098, 52.51207787266922], + [13.325789194227164, 52.512077418850765], + [13.325779572951749, 52.512076801915], + [13.325710595811959, 52.512072378960006], + [13.325710416009326, 52.512073422742425], + [13.325699314538982, 52.512072710893456], + [13.325699494341608, 52.512071667111044], + [13.325692167371274, 52.51207119729072], + [13.32569198756865, 52.51207224107313], + [13.325678073726221, 52.512071348889094], + [13.325678253528842, 52.51207030510669], + [13.32567647729366, 52.51207019121085], + [13.325677020610208, 52.51206703717272], + [13.325667781881059, 52.512065068272946], + [13.325666301685098, 52.51206497335974], + [13.325667865185382, 52.512055896991], + [13.325669345381352, 52.51205599190419], + [13.32567905316061, 52.51205523789335], + [13.325679275959342, 52.5120539445108], + [13.32576231495952, 52.51205926914112], + [13.325763597029319, 52.51205182651873], + [13.32577973116781, 52.51205286107259], + [13.325778449097971, 52.512060303694966], + [13.325809385199364, 52.512062287380814], + [13.325810010599374, 52.51205865683329], + [13.325815931384499, 52.51205903648608], + [13.325816588054401, 52.51205522441122], + [13.325833166253032, 52.512056287439044], + [13.325832509583119, 52.51206009951392], + [13.325921765427195, 52.512065822779896], + [13.325922422097214, 52.51206201070502], + [13.325938852278755, 52.51206306424155], + [13.325938195608718, 52.512066876316425], + [13.325975200523498, 52.51206924914646], + [13.325975857193573, 52.512065437071605], + [13.325992287376387, 52.512066490608156], + [13.325991630706287, 52.512070302683014], + [13.326081478649835, 52.51207606391447], + [13.326082135320028, 52.51207225183961], + [13.326098565505399, 52.512073305376184], + [13.32609790883518, 52.512077117451035], + [13.32612381228135, 52.51207877843214], + [13.326124468951594, 52.51207496635727], + [13.326140899137977, 52.51207601989386], + [13.32614024246771, 52.51207983196872], + [13.32623956369276, 52.5120862006449], + [13.326240220363134, 52.51208238857004], + [13.326256650552288, 52.51208344210666], + [13.326255993881903, 52.51208725418152], + [13.326291666636246, 52.512089541589866], + [13.326292323306676, 52.512085729514986], + [13.32630875349708, 52.51208678305163], + [13.326308096826626, 52.51209059512647], + [13.326389063626442, 52.5120957868791], + [13.326389720296984, 52.51209197480424], + [13.326406002469968, 52.51209301884956], + [13.326405345799406, 52.51209683092443], + [13.326457744795025, 52.512100190852166], + [13.326458401465642, 52.51209637877729], + [13.326473203442541, 52.51209732790942], + [13.32647254677191, 52.51210113998429], + [13.326503926963975, 52.5121031521444], + [13.326504583634641, 52.51209934006955], + [13.326519385612546, 52.51210028920168], + [13.326518728941869, 52.51210410127655], + [13.326523391564956, 52.512104400253165], + [13.326522914696879, 52.51210716854562], + [13.32656265800933, 52.51210971696544], + [13.326561563557712, 52.512116070423545], + [13.32656326578529, 52.51211617957373], + [13.32656168664739, 52.5121253467061], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3B538', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328348996903546, 52.51220994488843], + [13.328347072641256, 52.512209821501195], + [13.328346728669965, 52.512211818302305], + [13.32833229670303, 52.51221089289807], + [13.328317050625477, 52.51220991529155], + [13.328294329529934, 52.5122084583731], + [13.32829512691782, 52.51220382942511], + [13.328298973139345, 52.512181501558295], + [13.328321694235065, 52.512182958476735], + [13.328321780227784, 52.51218245927648], + [13.328337026305459, 52.512183436883], + [13.32833694031274, 52.51218393608327], + [13.32835137227979, 52.512184861487505], + [13.328351200294339, 52.51218585988805], + [13.32835312455663, 52.512185983275295], + [13.328348996903546, 52.51220994488843], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3B5D5', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.328353468527524, 52.51218398647418], + [13.328337112298179, 52.51218293768272], + [13.328337026305459, 52.512183436883], + [13.328321780227784, 52.51218245927648], + [13.328321866220493, 52.51218196007619], + [13.328299145124769, 52.51218050315773], + [13.328303147692411, 52.51215726765396], + [13.328325868788285, 52.51215872457244], + [13.328326462919083, 52.5121552755523], + [13.32834170899689, 52.51215625315885], + [13.32834111486608, 52.512159702178955], + [13.328357471095536, 52.51216075097043], + [13.328353468527524, 52.51218398647418], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3B7F2', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326854716615856, 52.51222782717187], + [13.326804389867892, 52.51222460012235], + [13.326805484324598, 52.51221824666439], + [13.32680400412618, 52.51221815175117], + [13.326809069893063, 52.512188744317015], + [13.326809661972437, 52.512188782282294], + [13.326809841775763, 52.51218773849992], + [13.326806215289615, 52.512187505962515], + [13.32680739573734, 52.51218065330422], + [13.326821901682056, 52.51218158345378], + [13.32683833188511, 52.51218263699053], + [13.32686223709116, 52.51218416983905], + [13.32686004818098, 52.5121968767551], + [13.326854716615856, 52.51222782717187], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '3BED6', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327068605335919, 52.512241542132635], + [13.327019758771131, 52.51223840999619], + [13.327020853228234, 52.512232056538224], + [13.327014932432725, 52.51223167688533], + [13.327013837975636, 52.51223803034332], + [13.326964251315367, 52.51223485075031], + [13.326970880592912, 52.512196366947634], + [13.326992565505343, 52.51219775742637], + [13.32699279221393, 52.512196441352906], + [13.327009370440965, 52.51219750438103], + [13.327009143732376, 52.51219882045447], + [13.327023649681355, 52.51219975060408], + [13.32702246923291, 52.51220660326236], + [13.327018250666093, 52.512206332759675], + [13.327018070862659, 52.512207376542044], + [13.327022067399641, 52.51220763280776], + [13.327023991658201, 52.51220775619495], + [13.327024570156187, 52.51220439793858], + [13.327029750852331, 52.51220473013486], + [13.327030532606228, 52.512200191950576], + [13.327060728664568, 52.51220212818038], + [13.32707523461464, 52.51220305833], + [13.327068605335919, 52.512241542132635], + ], + }, + }, + ], + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCFloor', + }, + { + errorNames: [], + instance: { + uid: 'd6152601-0154-581a-8bb5-0d1643972a21', + name: 'H_5', + type: 'floor', + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.32687, 52.51211], + }, + polygon: { + type: 'Polygon', + coordinates: [ + [ + [13.3254469, 52.5123792], + [13.3256455, 52.5123886], + [13.3256706, 52.5122521], + [13.3274413, 52.5123518], + [13.3274581, 52.5126071], + [13.327813, 52.5126284], + [13.3279179, 52.5123973], + [13.3282613, 52.5124033], + [13.3282347, 52.5125532], + [13.328432, 52.5125591], + [13.3285734, 52.5118008], + [13.3283154, 52.5117772], + [13.3282977, 52.5118288], + [13.3258416, 52.5116718], + [13.3258416, 52.5116266], + [13.325554, 52.5116065], + [13.3254469, 52.5123792], + ], + ], + }, + }, + type: 'building', + categories: ['education'], + name: 'Hauptgebäude', + alternateNames: ['H'], + uid: 'ebe95e80-f826-5a70-a844-436b561d5181', + address: { + addressCountry: 'Germany', + addressLocality: 'Berlin', + addressRegion: 'Berlin', + postalCode: '10623', + streetAddress: 'Straße des 17. Juni 135', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + floorName: '5', + plan: { + type: 'FeatureCollection', + crs: { + type: 'name', + properties: { + name: 'urn:ogc:def:crs:EPSG::3857', + }, + }, + features: [ + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '147B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326591029418713, 52.5121937700983], + [13.326591029418713, 52.5121937700983], + [13.326591029418713, 52.5121937700983], + [13.326524600245316, 52.51218951052837], + [13.326524600245316, 52.51218951052837], + [13.326524600245316, 52.51218951052837], + [13.32653610454212, 52.51212272647053], + [13.326577326216732, 52.51212536968581], + [13.326586074701945, 52.512125930655976], + [13.326600902643253, 52.51212688145283], + [13.326602533716805, 52.512126986040506], + [13.326599418289492, 52.51214507155161], + [13.326605349466083, 52.51214545187036], + [13.326615877304665, 52.512146126936116], + [13.326614919880111, 52.51215168492244], + [13.326613248185867, 52.51216138934299], + [13.326613096213629, 52.512162271563064], + [13.326602568375092, 52.51216159649728], + [13.326596637198529, 52.512161216178534], + [13.326591029418713, 52.5121937700983], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1484', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326645369560328, 52.51220902843097], + [13.326594954558116, 52.51220579572164], + [13.326601664140153, 52.51216684570659], + [13.326608040155001, 52.51216725454923], + [13.32660857205795, 52.51216416677906], + [13.326621472367263, 52.51216499397235], + [13.32663793138295, 52.51216604935687], + [13.326652611045926, 52.51216699064579], + [13.326645369560328, 52.51220902843097], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1497', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32673433722036, 52.51221473321232], + [13.326701715743676, 52.512212641459136], + [13.326702726361164, 52.51220677469585], + [13.32669679518375, 52.51220639437711], + [13.32669578456626, 52.512212261140384], + [13.326646852354571, 52.512209123510694], + [13.326654093840181, 52.51216708572548], + [13.326667438988641, 52.51216794144267], + [13.326683898005438, 52.51216899682721], + [13.326697687992787, 52.512169881068324], + [13.326696928131307, 52.51217429216857], + [13.326701376514377, 52.51217457740764], + [13.326700768625075, 52.512178106287806], + [13.326702399698878, 52.51217821087547], + [13.326702247726539, 52.51217909309553], + [13.326700728002786, 52.512187915295996], + [13.326699694590294, 52.5121939143923], + [13.32673750584741, 52.512196338924404], + [13.32673433722036, 52.51221473321232], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '14A4', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326737657819868, 52.51219545670432], + [13.326701329357086, 52.512193127251955], + [13.326702210797144, 52.512188010375674], + [13.326703730520888, 52.51217918817521], + [13.326703882493232, 52.51217830595515], + [13.326706551523102, 52.51217847709859], + [13.326706749087133, 52.51217733021254], + [13.32670289382177, 52.51217708300535], + [13.326704064008531, 52.512170289910976], + [13.32672185754116, 52.51217143086727], + [13.326738316559272, 52.51217248625181], + [13.326741578707042, 52.51217269542714], + [13.326737657819868, 52.51219545670432], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '14B1', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32680652197437, 52.51221343027415], + [13.326803556385192, 52.51221324011476], + [13.326802545767531, 52.512219106878064], + [13.326735820014786, 52.51221482829199], + [13.326743061501494, 52.51217279050682], + [13.326774496744584, 52.51217480619627], + [13.32679095576395, 52.51217586158083], + [13.326804449194528, 52.51217672680602], + [13.326803689332912, 52.51218113790625], + [13.326808730834513, 52.512181461177214], + [13.326808122945108, 52.51218499005738], + [13.326811385093208, 52.512185199232704], + [13.32680652197437, 52.51221343027415], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '14C0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326655481048007, 52.512147283860756], + [13.326653330996335, 52.51214714599519], + [13.326641468642366, 52.51214638535771], + [13.326609143728852, 52.512144312620514], + [13.326610906605039, 52.51213407886789], + [13.326607347899051, 52.51213385067663], + [13.32660844969624, 52.51212745458125], + [13.32665834572162, 52.51213065401275], + [13.326655481048007, 52.512147283860756], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '14CD', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326640949377554, 52.5121285127654], + [13.326608624464038, 52.51212644002819], + [13.326609019591208, 52.51212414625604], + [13.32661053931071, 52.512115324055486], + [13.326611929853511, 52.512107251741966], + [13.326644254767206, 52.512109324479155], + [13.326640949377554, 52.5121285127654], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '14E1', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326713460857988, 52.51212531305396], + [13.32669522248724, 52.512124143573786], + [13.32669222863834, 52.512141523308856], + [13.326707797979116, 52.512142521645586], + [13.326706886146471, 52.51214781496591], + [13.326706415032849, 52.51215054984806], + [13.326687731823998, 52.51214935184399], + [13.326675869469437, 52.51214859120647], + [13.326657186261418, 52.5121473932024], + [13.326660225702849, 52.512129748801335], + [13.326641690774663, 52.512128560305214], + [13.326644775805118, 52.512110651238075], + [13.326715208535239, 52.51211516752332], + [13.326713460857988, 52.51212531305396], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '14F0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326744300430132, 52.51215297913416], + [13.326726581036619, 52.51215184293184], + [13.326714718681389, 52.51215108229433], + [13.326712346210371, 52.51215093016683], + [13.32671281732399, 52.51214819528467], + [13.326713865931527, 52.5121421079663], + [13.326707934753998, 52.51214172764753], + [13.326700001804124, 52.512141218971195], + [13.326702684110419, 52.51212564778723], + [13.326722479415503, 52.51212691710111], + [13.326735083168098, 52.512127725278475], + [13.32674850245788, 52.51212858574967], + [13.326744300430132, 52.51215297913416], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '14F9', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326749047924283, 52.512127594966536], + [13.326735257935875, 52.512126710725404], + [13.326722654183277, 52.51212590254806], + [13.326714202255188, 52.51212536059383], + [13.326715949932437, 52.51211521506316], + [13.32675079560163, 52.512117449435884], + [13.326749047924283, 52.512127594966536], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1501', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326867298241233, 52.512160865994545], + [13.326854694486215, 52.51216005781716], + [13.326842090731434, 52.51215924963977], + [13.326840607936772, 52.512159154560116], + [13.326845296275607, 52.512131938071455], + [13.326846679220473, 52.51212390986895], + [13.326873369525208, 52.51212562130344], + [13.326867298241233, 52.512160865994545], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1518', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326922961701435, 52.51214668514466], + [13.326919996111766, 52.512146494985274], + [13.326912656277361, 52.51214602434078], + [13.326907985473698, 52.51214572483975], + [13.32690605542785, 52.51215692903442], + [13.326916583271045, 52.512157604100246], + [13.326915489071368, 52.512163956084606], + [13.326902143918069, 52.51216310036736], + [13.326890281559805, 52.51216233972983], + [13.326876195009623, 52.512161436472724], + [13.326877289209227, 52.512155084488356], + [13.326887817051986, 52.51215575955417], + [13.32688974709777, 52.51214455535951], + [13.326885076294255, 52.51214425585847], + [13.326877736460222, 52.512143785213986], + [13.326874770870745, 52.5121435950546], + [13.326877817909445, 52.51212590654252], + [13.326928232932666, 52.51212913925212], + [13.326927966981735, 52.512130683137215], + [13.326927131135829, 52.51213553534751], + [13.326926849987606, 52.512137167454604], + [13.32692462579534, 52.512137024835084], + [13.326922961701435, 52.51214668514466], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '151F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326886286605971, 52.512154635659485], + [13.326873015592971, 52.512153784696224], + [13.326874596102867, 52.51214460960767], + [13.326877561692346, 52.51214479976706], + [13.326884901526372, 52.51214527041154], + [13.326887867115898, 52.512145460570935], + [13.326886286605971, 52.512154635659485], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1526', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32692120642353, 52.51215687478627], + [13.32690793540985, 52.51215602382301], + [13.326909515919837, 52.51214684873446], + [13.326912481509465, 52.51214703889384], + [13.326919821343864, 52.51214750953833], + [13.326922786933542, 52.512147699697714], + [13.32692120642353, 52.51215687478627], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1555', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326923839379715, 52.51217292059005], + [13.326922319656806, 52.51218174279054], + [13.326922167684483, 52.51218262501059], + [13.326905263823523, 52.51218154110208], + [13.326905157442898, 52.512182158656124], + [13.326899967661104, 52.512181825877185], + [13.326883656918604, 52.51218078000055], + [13.326844955976572, 52.51217829842059], + [13.326828496955917, 52.512177243035985], + [13.326791130532104, 52.51217484702778], + [13.326774671512728, 52.5121737916432], + [13.326738491327397, 52.512171471698764], + [13.326722032309297, 52.51217041631419], + [13.32668407277355, 52.51216798227414], + [13.326667613756756, 52.512166926889606], + [13.326638106151059, 52.512165034803814], + [13.326621647135362, 52.51216397941928], + [13.32661408488504, 52.51216349451287], + [13.326614282448958, 52.512162347626806], + [13.326614434421206, 52.512161465406756], + [13.326616106115452, 52.5121517609862], + [13.326617063540002, 52.51214620299989], + [13.326617124328857, 52.51214585011185], + [13.326641293874415, 52.51214739991077], + [13.326653156228385, 52.51214816054826], + [13.326675694701473, 52.51214960575953], + [13.326687557056033, 52.51215036639704], + [13.326714543913413, 52.51215209684739], + [13.32672640626864, 52.5121528574849], + [13.326841915963419, 52.51216026419284], + [13.326854519718207, 52.51216107237023], + [13.326890106791778, 52.512163354282855], + [13.326901969150045, 52.51216411492042], + [13.326908196888215, 52.512164514255126], + [13.326908060113226, 52.51216530825319], + [13.326924963974259, 52.512166392161674], + [13.326923839379715, 52.51217292059005], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '156A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326858891963788, 52.51222271990634], + [13.326808476945866, 52.512219487196816], + [13.32680948756354, 52.51221362043354], + [13.326808004768953, 52.51221352535386], + [13.326812867887819, 52.51218529431242], + [13.326814054123494, 52.512185370376145], + [13.326814251687567, 52.5121842234901], + [13.32681024814214, 52.51218396677495], + [13.326811418329115, 52.51217717368059], + [13.326828322187758, 52.51217825758907], + [13.326844781208408, 52.51217931297363], + [13.326866133452008, 52.5121806821212], + [13.326858891963788, 52.51222271990634], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '157B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326913876310833, 52.512220314043894], + [13.326911059000683, 52.51222013339247], + [13.32691004838283, 52.512226000155756], + [13.326860374758489, 52.51222281498604], + [13.32686761624673, 52.51218077720091], + [13.326883482150427, 52.51218179455362], + [13.326899792892924, 52.51218284043024], + [13.326920107181857, 52.512184143022054], + [13.326913876310833, 52.512220314043894], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '157E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326746005643756, 52.512153088475785], + [13.326813176236039, 52.51215739558578], + [13.326814695957474, 52.51214857338526], + [13.326820627135929, 52.512148953704035], + [13.326819107414487, 52.51215777590456], + [13.326836159552792, 52.51215886932103], + [13.326842230836453, 52.512123624629886], + [13.326751483808694, 52.512117805752766], + [13.326749789321513, 52.51212764250637], + [13.326750382439297, 52.512127680538256], + [13.326746005643756, 52.512153088475785], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '15A0', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326970049528247, 52.5122083957921], + [13.326966394587922, 52.51222961318413], + [13.32691597956209, 52.512226380474516], + [13.326916990179956, 52.51222051371125], + [13.326915359105653, 52.512220409123586], + [13.326920845312157, 52.51218856097998], + [13.326939676806834, 52.51218976849209], + [13.326956284109652, 52.51219083338468], + [13.32697289141287, 52.51219189827726], + [13.32697156925291, 52.51219957359165], + [13.326970049528247, 52.5122083957921], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '15AC', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327019303030543, 52.51222707421019], + [13.327018292412504, 52.512232940973455], + [13.326967877382865, 52.51222970826382], + [13.326971532323192, 52.51220849087181], + [13.326973052047858, 52.51219966867134], + [13.326974374207818, 52.51219199335695], + [13.326997802368453, 52.51219349561614], + [13.327011147523603, 52.51219435133341], + [13.327029089343709, 52.51219550179772], + [13.327027843169853, 52.512202736002095], + [13.327023543064167, 52.512202460270984], + [13.327019303030543, 52.51222707421019], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '15BB', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327076871561333, 52.5122148886422], + [13.32707315583133, 52.51223645892223], + [13.327024223592703, 52.512233321292236], + [13.327025234210756, 52.51222745452897], + [13.327020785825592, 52.512227169289886], + [13.327024828295041, 52.51220370223673], + [13.327029573239257, 52.51220400649176], + [13.32703025711524, 52.51220003650156], + [13.327035891736536, 52.5122003978044], + [13.327036651598613, 52.512195986704164], + [13.327049700195486, 52.51219682340552], + [13.327066159221456, 52.51219787879016], + [13.327079652657455, 52.51219874401539], + [13.327078315300014, 52.51220650755176], + [13.327076871561333, 52.5122148886422], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '15E2', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327080431196604, 52.512191613620104], + [13.32708027922424, 52.51219249584015], + [13.3270798992933, 52.51219470139028], + [13.327076637143913, 52.51219449221494], + [13.32707612043779, 52.5121974917631], + [13.327066333989722, 52.51219686423708], + [13.327049874963746, 52.51219580885246], + [13.327011322291852, 52.51219333678034], + [13.326997977136692, 52.512192481063074], + [13.326956458877875, 52.512189818831594], + [13.326939851575053, 52.51218875393903], + [13.32692561674439, 52.512187841173976], + [13.326926133450389, 52.51218484162581], + [13.326923019581207, 52.51218464195847], + [13.326923353920344, 52.51218270107436], + [13.326923505892672, 52.51218181885428], + [13.326925025615584, 52.51217299665378], + [13.326926150210136, 52.51216646822544], + [13.326926484548997, 52.51216452734134], + [13.326929153579739, 52.512164698484774], + [13.326930414948801, 52.51215737605837], + [13.32694109107187, 52.51215806063217], + [13.32695443622593, 52.51215891634943], + [13.326973267721542, 52.512160123861534], + [13.326986612876237, 52.512160979578816], + [13.32700544437274, 52.51216218709095], + [13.327018789528054, 52.51216304280821], + [13.327028279416433, 52.51216365131829], + [13.32702713962493, 52.51217026796864], + [13.327038408867542, 52.51217099057435], + [13.327039548659055, 52.51216437392397], + [13.327049854085047, 52.512165034727865], + [13.327063199241223, 52.512165890445154], + [13.327081363481993, 52.512167055171425], + [13.327080147704276, 52.51217411293183], + [13.327083409853692, 52.512174322107185], + [13.327083075514745, 52.51217626299127], + [13.327081950919894, 52.51218279141965], + [13.327080431196604, 52.512191613620104], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '15E9', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327081235437406, 52.512146041189965], + [13.3269282109913, 52.51213622896529], + [13.326928317371706, 52.512135611411274], + [13.326929153217614, 52.51213075920096], + [13.326929419168552, 52.51212921531586], + [13.327082443614962, 52.51213902754054], + [13.327081235437406, 52.512146041189965], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '15F3', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32713689664995, 52.51217538807724], + [13.327136425535981, 52.51217812295939], + [13.327134497902097, 52.51217799935578], + [13.32712233898075, 52.512177219702245], + [13.327085046680647, 52.51217482844784], + [13.327085289836226, 52.51217341689578], + [13.327082101826566, 52.512173212474416], + [13.32708319602649, 52.51216686049004], + [13.327137762891606, 52.51217035942294], + [13.32713689664995, 52.51217538807724], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1602', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32712828847514, 52.51223406256793], + [13.327126805679864, 52.512233967488235], + [13.327125795061633, 52.512239834251496], + [13.3270746386265, 52.51223655400194], + [13.327078354356503, 52.51221498372188], + [13.327079798095196, 52.51220660263147], + [13.32708188011738, 52.512194516216866], + [13.327104270325025, 52.51219595192032], + [13.327120729352304, 52.51219700730497], + [13.327136150423264, 52.51219799613382], + [13.327135162602577, 52.51220373056411], + [13.327131307334811, 52.512203483356885], + [13.327131109770642, 52.512204630242955], + [13.327133333963575, 52.51220477286251], + [13.32712828847514, 52.51223406256793], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1611', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327201304789067, 52.51222358111293], + [13.327197710636325, 52.51224444561691], + [13.327131726242774, 52.51224021457029], + [13.327132736861001, 52.51223434780702], + [13.32712977127042, 52.51223415764762], + [13.327134816758877, 52.51220486794221], + [13.327136892672295, 52.512205001053786], + [13.327137348589602, 52.51220235439363], + [13.327142538373181, 52.51220268717259], + [13.327143267840754, 52.51219845251638], + [13.327158392353157, 52.51219942232931], + [13.327174851381729, 52.512200477713975], + [13.327204952128717, 52.512202407831886], + [13.327202748528098, 52.5122152000225], + [13.327201304789067, 52.51222358111293], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1628', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327254685427022, 52.51222700398215], + [13.327251091273965, 52.51224786848612], + [13.327238487511925, 52.51224706030867], + [13.327239498130345, 52.51224119354539], + [13.327233566948273, 52.512240813226605], + [13.327232556329868, 52.51224667998985], + [13.327199193431758, 52.51224454069661], + [13.327202787584506, 52.51222367619262], + [13.327204231323549, 52.512215295102216], + [13.327206434924173, 52.512202502911585], + [13.32721533169695, 52.51220307338979], + [13.327231642447346, 52.512204119266485], + [13.327243208252417, 52.51220486088814], + [13.32724223562878, 52.512210507096434], + [13.327238528639963, 52.512210269397194], + [13.327238315878516, 52.512211504505245], + [13.327244098781069, 52.51221187531608], + [13.327244554698462, 52.51220922865595], + [13.327249744482854, 52.512209561434894], + [13.327250473950565, 52.512205326778705], + [13.327258332767013, 52.51220583070111], + [13.327256129166203, 52.51221862289173], + [13.327254685427022, 52.51222700398215], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1629', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327142356717227, 52.51217850327817], + [13.32719128896441, 52.51218164090827], + [13.327195597375823, 52.51215662996986], + [13.327213390921255, 52.51215777092626], + [13.327215153797217, 52.512147537173654], + [13.327086892000542, 52.51213931277964], + [13.327082332837868, 52.51216577938119], + [13.327158326095418, 52.51217065221575], + [13.327160932417764, 52.512155522141875], + [13.327162637632423, 52.51215563148353], + [13.327159856542035, 52.512171776110456], + [13.327143694072866, 52.51217073974175], + [13.327142356717227, 52.51217850327817], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1638', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327223243206504, 52.51218368987581], + [13.327215310250672, 52.51218318119942], + [13.327203151327895, 52.512182401545886], + [13.327192994179144, 52.51218175024992], + [13.32719439232379, 52.512173633825476], + [13.327204994311188, 52.51217431364534], + [13.32720772981011, 52.51215843368442], + [13.327214773088578, 52.51215888531302], + [13.327212181963224, 52.512173927164866], + [13.32721625965078, 52.51217418863405], + [13.327218850776141, 52.51215914678218], + [13.327227376850225, 52.512159693490446], + [13.327224816119264, 52.51217455889832], + [13.327223243206504, 52.51218368987581], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1643', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327243657920203, 52.512182233815636], + [13.327243186806156, 52.5121849686978], + [13.327240072935536, 52.51218476903044], + [13.327227914012315, 52.51218398937688], + [13.327224948421316, 52.51218379921748], + [13.327226346566027, 52.512175682793035], + [13.327231907049176, 52.51217603934191], + [13.327234642548229, 52.512160159381], + [13.32724732045001, 52.51216097231245], + [13.327244706528683, 52.51217614649732], + [13.327243657920203, 52.512182233815636], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '164A', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327248051975907, 52.512158031137226], + [13.327247717637274, 52.51215997202136], + [13.327214132318986, 52.51215781846613], + [13.327215895194954, 52.51214758471349], + [13.327249480513347, 52.51214973826873], + [13.327249267752487, 52.512150973376805], + [13.327248051975907, 52.512158031137226], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '1675', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32733471542012, 52.512208008010745], + [13.32733456344769, 52.51220889023078], + [13.327334426672502, 52.51220968422882], + [13.327327754091746, 52.51220925637016], + [13.3273112950595, 52.51220820098546], + [13.327231817215623, 52.512203104713436], + [13.327215506465224, 52.51220205883673], + [13.327175026149996, 52.51219946316091], + [13.327158567121414, 52.51219840777625], + [13.32712090412055, 52.51219599275189], + [13.327104445093257, 52.51219493736725], + [13.327098217353308, 52.51219453803252], + [13.32709836932569, 52.51219365581246], + [13.32708146546039, 52.51219257190389], + [13.327081617432755, 52.51219168968389], + [13.32708313715605, 52.5121828674834], + [13.327084261750894, 52.51217633905505], + [13.327101165616277, 52.512177422963596], + [13.327101256799628, 52.51217689363156], + [13.32712216421266, 52.512178234255295], + [13.327134323134, 52.51217901390882], + [13.327168205007418, 52.512181186479964], + [13.327180067370497, 52.51218194711756], + [13.32720297655977, 52.51218341609892], + [13.32721513548255, 52.51218419575246], + [13.32722773924419, 52.51218500392993], + [13.32723989816741, 52.51218578358347], + [13.327249091499734, 52.512186373077625], + [13.32726214010068, 52.51218720977901], + [13.32733746612004, 52.5121920398279], + [13.327337344542185, 52.51219274560393], + [13.327336235144084, 52.512199185810275], + [13.32733471542012, 52.512208008010745], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '168F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327318601874097, 52.51217187596427], + [13.327352261337287, 52.512174034273556], + [13.327350939179015, 52.51218170958799], + [13.327347528748753, 52.51218149090466], + [13.327345796264815, 52.51219154821322], + [13.327262314868813, 52.512186195225944], + [13.32724911798832, 52.51218534901661], + [13.327249589102367, 52.512182614134446], + [13.327250637710865, 52.51217652681611], + [13.327253426400148, 52.51216033807818], + [13.327248459035046, 52.51216001956119], + [13.327248793373675, 52.51215807867708], + [13.327250009150255, 52.512151020916654], + [13.327250518256578, 52.512148065479465], + [13.327321914866157, 52.51215264356715], + [13.327318601874097, 52.51217187596427], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16A2', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327354130594733, 52.512163182966916], + [13.327352641267737, 52.51217182872342], + [13.327352337323383, 52.51217359316354], + [13.327319419258034, 52.51217148239411], + [13.327322656264009, 52.512152691107005], + [13.327355574329536, 52.51215480187644], + [13.327354130594733, 52.512163182966916], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16B9', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327339317614735, 52.51225352572839], + [13.327252574069519, 52.51224796356583], + [13.327256168222588, 52.51222709906187], + [13.327257611961763, 52.51221871797144], + [13.327259815562583, 52.51220592578082], + [13.32731112029119, 52.51220921553851], + [13.32732757932344, 52.51221027092321], + [13.327340627925864, 52.51221110762459], + [13.327340118818134, 52.51221406306173], + [13.327346050001129, 52.51221444338056], + [13.327339317614735, 52.51225352572839], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '16D9', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327413767675454, 52.51224603509238], + [13.327413767675454, 52.51224603509238], + [13.327413767675454, 52.51224603509238], + [13.327347338422339, 52.51224177552165], + [13.327347338422339, 52.51224177552165], + [13.327347338422339, 52.51224177552165], + [13.327352801835428, 52.51221005971113], + [13.327335749684288, 52.51220896629454], + [13.327335901656713, 52.5122080840745], + [13.327337421380673, 52.51219926187403], + [13.327338530778775, 52.5121928216677], + [13.327355582930004, 52.51219391508429], + [13.327356639137527, 52.51218778365495], + [13.327353673545968, 52.51218759349555], + [13.327354433407299, 52.51218318239529], + [13.327357398998858, 52.5121833725547], + [13.327358759150268, 52.512175476685286], + [13.327384856356586, 52.51217715008808], + [13.327425188404673, 52.512179736256066], + [13.327413767675454, 52.51224603509238], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2169', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326774491901368, 52.5118284559698], + [13.32676025707393, 52.51182754320474], + [13.326745132570098, 52.51182657339187], + [13.326671289409123, 52.5118218384232], + [13.326673401789824, 52.511809575563824], + [13.326747541509963, 52.51181432954841], + [13.326762369454956, 52.51181528034535], + [13.326776604282445, 52.5118161931104], + [13.326774491901368, 52.5118284559698], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '216B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327409338169097, 52.511814842891354], + [13.327280186656894, 52.511806561448914], + [13.327287982692322, 52.511761303557435], + [13.327417134206234, 52.511769584999904], + [13.327409338169097, 52.511814842891354], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '216C', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327397731131045, 52.51184915283841], + [13.32732581553417, 52.51184454147265], + [13.327309949619995, 52.511843524119776], + [13.327303425318943, 52.51184310576908], + [13.32730875945892, 52.51181213984355], + [13.327403065271877, 52.5118181869129], + [13.327397731131045, 52.51184915283841], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '216D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327301007690457, 52.51184669699786], + [13.327299381611823, 52.51185613675291], + [13.327299168853829, 52.51185737186102], + [13.327271737134371, 52.51185561288649], + [13.327274837321095, 52.5118376155965], + [13.327266681945208, 52.51183709265812], + [13.327267472188462, 52.51183250511361], + [13.327268748734905, 52.51182509446476], + [13.327272752283074, 52.51182535117996], + [13.327275396556493, 52.511810000550184], + [13.327306980104087, 52.51181202574791], + [13.327301007690457, 52.51184669699786], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '216E', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327395254020349, 52.511863533025995], + [13.327323338423763, 52.511858921660235], + [13.327307472509656, 52.51185790430738], + [13.327303320681724, 52.51185763808419], + [13.327303533439729, 52.51185640297607], + [13.327305159518378, 52.51184696322103], + [13.327305372276276, 52.511845728112874], + [13.327309524104225, 52.51184599433607], + [13.327325390018384, 52.51184701168889], + [13.327397305615218, 52.511851623054675], + [13.327395254020349, 52.511863533025995], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '216F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32731904939252, 52.511916891935094], + [13.32725944100736, 52.51191306973097], + [13.327261492607201, 52.5119011597598], + [13.32726193744588, 52.51190118828371], + [13.327276765401963, 52.51190213908077], + [13.327321100992565, 52.51190498196392], + [13.32731904939252, 52.511916891935094], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2170', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32732128335696, 52.511903923299805], + [13.327276947766338, 52.511901080416635], + [13.327262119810253, 52.511900129619605], + [13.327261674971579, 52.51190010109568], + [13.327262146079509, 52.51189736621341], + [13.327257994251857, 52.51189709999025], + [13.327260030653186, 52.51188527824103], + [13.327261459172865, 52.511876985372126], + [13.327263632345378, 52.51186436962478], + [13.327267784173063, 52.51186463584796], + [13.327268255280234, 52.51186190096566], + [13.32730636312843, 52.51186434451409], + [13.32732222904251, 52.51186536186692], + [13.327327863666282, 52.51186572316981], + [13.32732128335696, 52.511903923299805], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2171', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.32725825129848, 52.51188516414539], + [13.327256214897163, 52.51189698589458], + [13.327252507908216, 52.51189674819534], + [13.327252355937926, 52.51189763041543], + [13.327239307337022, 52.51189679371405], + [13.327239459307307, 52.51189591149395], + [13.327233972963816, 52.51189555969906], + [13.327234580844907, 52.511892030818686], + [13.327236009365066, 52.51188373794981], + [13.32723961105711, 52.51186282933357], + [13.32726185299066, 52.51186425552914], + [13.327259679818162, 52.51187687127649], + [13.32725825129848, 52.51188516414539], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '2172', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326784665222112, 52.51188253698953], + [13.326725056883417, 52.511878714785894], + [13.326727108481386, 52.51186680481464], + [13.326771444036444, 52.51186964769746], + [13.326786271981916, 52.511870598494376], + [13.326786716820287, 52.51187062701828], + [13.326784665222112, 52.51188253698953], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5B6B', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326674510941869, 52.51180494436786], + [13.326748342674124, 52.51180967860366], + [13.326763170619124, 52.51181062940059], + [13.326770738557373, 52.511811114671644], + [13.326775407922586, 52.511784007898974], + [13.32680770604063, 52.51178607891758], + [13.326812552788747, 52.51175980692213], + [13.326813403817411, 52.51175486648951], + [13.326817476563578, 52.511731223171765], + [13.326688399171251, 52.51172294647601], + [13.326674510941869, 52.51180494436786], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5B7D', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326820310254206, 52.51183139393234], + [13.327255111624925, 52.51185927423982], + [13.327259416246779, 52.51183662676757], + [13.3272589733546, 52.51182179175448], + [13.327271428837674, 52.51182259042401], + [13.327278206683383, 52.51178324340734], + [13.327268716791393, 52.511782634897244], + [13.327270282076867, 52.511773548030135], + [13.327265833690022, 52.51177326279102], + [13.327266575087828, 52.51177331033086], + [13.327239588208258, 52.51177157988024], + [13.326830633317053, 52.511745356899006], + [13.326828824881728, 52.511755855318334], + [13.326827973853037, 52.51176079575095], + [13.326815861870298, 52.51183110869325], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5B8F', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.326792993184053, 52.51183419132831], + [13.326793403502872, 52.51183180933404], + [13.326778573216158, 52.511830858387], + [13.326759892346157, 52.511829660532975], + [13.32674476784233, 52.511828690720115], + [13.326733795163296, 52.51182798713038], + [13.326727310042722, 52.51186574738148], + [13.326771626400665, 52.51186858903331], + [13.326786454346138, 52.511869539830265], + [13.326787355095052, 52.511866921693894], + [13.32679758637763, 52.51186757774376], + [13.326810486690663, 52.511868404937104], + [13.327110971457262, 52.51188767260512], + [13.32711343268475, 52.51187338464395], + [13.327114945477241, 52.51186460254966], + [13.327116539037819, 52.51185493771829], + [13.326792993184053, 52.51183419132831], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5BA4', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327112383740971, 52.51188776316348], + [13.327232193609179, 52.51189544560339], + [13.327237831702455, 52.511862715237925], + [13.327118021833101, 52.51185503279798], + [13.327112383740971, 52.51188776316348], + ], + }, + }, + { + type: 'Feature', + properties: { + Layer: 'SYM_FL_100_', + SubClasses: null, + ExtendedEntity: null, + Linetype: null, + EntityHandle: '5BB6', + Text: null, + }, + geometry: { + type: 'LineString', + coordinates: [ + [13.327233972963816, 52.51189555969906], + [13.327256214897163, 52.51189698589458], + [13.32726185299066, 52.51186425552914], + [13.32723961105711, 52.51186282933357], + [13.327233972963816, 52.51189555969906], + ], + }, + }, + ], + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCFloor', + }, + { + errorNames: [], + instance: { + type: 'message', + uid: '4706ef24-b631-5c20-91d1-3c627decca5a', + image: 'icon ion-android-hand stapps-color-red-dark', + name: 'Lösung für das Problem des Zurücksetzens der StApps-App gefunden', + message: + 'Wie bereits berichtet, klagten User über das Löschen ihres Stundenplans beim Update von Version 0.8.0 auf 0.8.1. Wir haben eine Lösung für das Problem gefunden und testen diese ausführlich bis zum Ende dieser Woche. Wenn alles glatt verläuft, dann kommt am Wochenende die fehlerbereinige Version 0.8.2 heraus.\n\n*(25.Okt 2016)*', + audiences: ['students'], + datePublished: '2018-08-01', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCMessage', + }, + { + errorNames: ['enum'], + instance: { + type: 'invalid-value-in-schema', + uid: 'cdb7059c-a1a2-5229-821d-434c345e2917', + image: 'icon ion-android-hand stapps-color-red-dark', + name: 'Lösung für das Problem des Zurücksetzens der StApps-App gefunden', + message: + 'Wie bereits berichtet, klagten User über das Löschen ihres Stundenplans beim Update von Version 0.8.0 auf 0.8.1. Wir haben eine Lösung für das Problem gefunden und testen diese ausführlich bis zum Ende dieser Woche. Wenn alles glatt verläuft, dann kommt am Wochenende die fehlerbereinige Version 0.8.2 heraus.\n\n*(25.Okt 2016)*', + audiences: ['students'], + datePublished: '2018-08-01', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'foo', + type: 'remote', + }, + }, + schema: 'SCMessage', + }, + { + errorNames: ['additionalProperties'], + instance: { + 'type': 'message', + 'invalid-non-existing-key-in-schema': 1, + 'uid': '4706ef24-b631-5c20-91d1-3c627decca5a', + 'image': 'icon ion-android-hand stapps-color-red-dark', + 'name': 'Lösung für das Problem des Zurücksetzens der StApps-App gefunden', + 'message': + 'Wie bereits berichtet, klagten User über das Löschen ihres Stundenplans beim Update von Version 0.8.0 auf 0.8.1. Wir haben eine Lösung für das Problem gefunden und testen diese ausführlich bis zum Ende dieser Woche. Wenn alles glatt verläuft, dann kommt am Wochenende die fehlerbereinige Version 0.8.2 heraus.\n\n*(25.Okt 2016)*', + 'audiences': ['students'], + 'datePublished': '2018-08-01', + 'origin': { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCMessage', + }, + { + errorNames: [], + instance: { + type: 'organization', + uid: '20e48393-0d2b-5bdc-9d92-5e0dc1e2860e', + name: 'Technische Universität Berlin', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCOrganization', + }, + { + errorNames: [], + instance: { + type: 'person', + uid: '97044080-fdf3-5ec0-8734-c412ac2dde03', + givenName: 'Michael', + familyName: 'Joswig', + gender: 'male', + honorificPrefix: 'Prof. Dr.', + name: 'Michael Joswig', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCPerson', + }, + { + errorNames: [], + instance: { + type: 'person', + uid: 'eb516021-3b37-5358-baef-345a0e10da5b', + givenName: 'Michael', + familyName: 'Gradzielski', + gender: 'male', + honorificPrefix: 'Prof. Dr.', + name: 'Michael Gradzielski', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCPerson', + }, + { + errorNames: [], + instance: { + type: 'person', + familyName: 'Mustermann', + givenName: 'Erika', + honorificPrefix: "Univ.-Prof'in Dr.", + gender: 'female', + jobTitles: [ + 'Direktor/in, Akademie für Bildungsforschung und Lehrerbildung', + 'Professorinnen und Professoren, Politikwissenschaft mit dem Schwerpunkt Internationale Institutionen und Friedensprozesse', + 'Vizepräsidentinnen und Vizepräsidenten, Leitung der Universität (Präsidium)', + 'Senat', + 'Leitung, Projektkoordination - Abteilung Lehre und Qualitätssicherung', + ], + name: "Univ.-Prof'in Dr. Erika Mustermann", + uid: 'be34a419-e9e8-5de0-b998-dd1b19e7f451', + workLocations: [ + { + url: 'http://www.fb03.uni-frankfurt.de/1234567', + email: 'mustermann@soz.uni-frankfurt.de', + faxNumber: '', + telephone: '069/123-36232; -1324325', + hoursAvailable: 'siehe Homepage', + areaServed: { + type: 'room', + categories: ['education'], + uid: '39c1a574-04ef-5157-9c6f-e271d93eb273', + name: '3.G 121', + alternateNames: ['Dienstzimmer'], + geo: { + point: { + coordinates: [8.66919, 50.12834], + type: 'Point', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + { + url: 'http://www2.uni-frankfurt.de/12345/vizepraesidenten', + email: '', + faxNumber: '', + telephone: '069/123-1235', + hoursAvailable: 'siehe Homepage', + areaServed: { + type: 'room', + categories: ['education'], + uid: '5e54aefd-078b-5007-bca1-53dc60f79d37', + name: '4.P 22', + alternateNames: ['Dienstzimmer'], + geo: { + point: { + coordinates: [8.66898, 50.12772], + type: 'Point', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + }, + ], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCPerson', + }, + { + errorNames: [], + instance: { + uid: 'f5fe4d13-d56a-5770-b16e-78782841bf02', + name: 'Validierer (UB)', + type: 'point of interest', + categories: ['validator'], + description: 'EG Eingangsbereich', + geo: { + point: { + type: 'Point', + coordinates: [8.653079867363, 50.120368286434], + }, + }, + inPlace: { + name: 'UB', + address: { + addressCountry: 'Deutschland', + addressLocality: 'Frankfurt am Main', + addressRegion: 'Hessen', + postalCode: '60325', + streetAddress: 'Bockenheimer Landstr. 134-138', + }, + geo: { + point: { + coordinates: [8.65302, 50.12036], + type: 'Point', + }, + polygon: { + coordinates: [ + [ + [8.6524924635887, 50.120309814205], + [8.6525192856789, 50.120423319054], + [8.6526641249657, 50.120426758591], + [8.6526963114738, 50.120547142219], + [8.6526480317116, 50.120554021274], + [8.6527070403099, 50.120839501198], + [8.65344196558, 50.120777590034], + [8.6533936858177, 50.120498988804], + [8.6533454060554, 50.120498988804], + [8.6533239483833, 50.120375165515], + [8.6534956097603, 50.12035796781], + [8.6534580588341, 50.120241023257], + [8.6524924635887, 50.120309814205], + ], + ], + type: 'Polygon', + }, + }, + categories: ['library'], + type: 'building', + uid: '65596790-a217-5d70-888e-16aa17bfda0a', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCPointOfInterest', + }, + { + errorNames: [], + instance: { + uid: '5a5ca30a-1494-5707-9692-ff902e104c12', + name: 'Drucker 1 (IG)', + type: 'point of interest', + categories: ['printer'], + description: 'Raum 124 (Q1) (Bibliothek BzG, EG), 1x KM Farb-Drucker', + geo: { + point: { + type: 'Point', + coordinates: [8.6657989025116, 50.125455096926], + }, + }, + inPlace: { + name: 'IG-Farben-Haus', + address: { + addressCountry: 'Deutschland', + addressLocality: 'Frankfurt am Main', + addressRegion: 'Hessen', + postalCode: '60323', + streetAddress: 'Norbert-Wollheim-Platz 1', + }, + geo: { + point: { + coordinates: [8.66754, 50.12539], + type: 'Point', + }, + polygon: { + coordinates: [ + [ + [8.6657291650772, 50.125584925616], + [8.6659651994705, 50.125568589575], + [8.6659370362759, 50.125409527832], + [8.6663648486137, 50.125404369064], + [8.6663661897182, 50.125483470114], + [8.6665780842304, 50.125483470114], + [8.6665780842304, 50.125404369064], + [8.6670058965683, 50.125416406189], + [8.6669830977917, 50.125504964942], + [8.6671829223633, 50.125527319552], + [8.6671949923038, 50.125484329907], + [8.6672767996788, 50.125493787632], + [8.6672674119473, 50.125550533945], + [8.6672835052013, 50.125590084365], + [8.6673210561275, 50.125612438936], + [8.6673800647259, 50.125631354334], + [8.6674457788467, 50.12562705538], + [8.667494058609, 50.125610719354], + [8.6675289273262, 50.125578047284], + [8.6675503849983, 50.12552645976], + [8.6676281690598, 50.125540216438], + [8.6676093935966, 50.125587504991], + [8.6677998304367, 50.125621036845], + [8.6678387224674, 50.125534197892], + [8.6682437360287, 50.125637372868], + [8.6681927740574, 50.125707015851], + [8.6683765053749, 50.125763761911], + [8.6684314906597, 50.125691539641], + [8.6688230931759, 50.125829105775], + [8.6686930060387, 50.125961512804], + [8.6688874661922, 50.126038893366], + [8.6690349876881, 50.125889290834], + [8.6690711975098, 50.125852320021], + [8.6692562699318, 50.125660587207], + [8.6690685153007, 50.125582346242], + [8.6689116060734, 50.125738828044], + [8.6685039103031, 50.125591803948], + [8.6686179041862, 50.125439620635], + [8.6684314906597, 50.125383733986], + [8.6683201789856, 50.125530758722], + [8.6678843200207, 50.125420705161], + [8.6679527163506, 50.125253904751], + [8.6677622795105, 50.125222092235], + [8.6677542328835, 50.125234989203], + [8.6677099764347, 50.125231550012], + [8.6677341163158, 50.125143850553], + [8.6674189567566, 50.125101720364], + [8.6673907935619, 50.125191139497], + [8.6672754585743, 50.125179102316], + [8.6672808229923, 50.125161906337], + [8.6670783162117, 50.125139551556], + [8.667034059763, 50.125310651347], + [8.6665807664394, 50.125294315213], + [8.6665767431259, 50.125107738964], + [8.6663635075092, 50.125106019364], + [8.6663635075092, 50.125293455416], + [8.6659182608128, 50.125301193586], + [8.6658847332001, 50.125124934962], + [8.6656500399113, 50.125142130954], + [8.6657291650772, 50.125584925616], + ], + ], + type: 'Polygon', + }, + }, + type: 'building', + categories: ['education'], + uid: 'a825451c-cbc4-544a-9d96-9de0b635fdbd', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCPointOfInterest', + }, + { + errorNames: [], + instance: { + geo: { + point: { + type: 'Point', + coordinates: [13.32615, 52.51345], + }, + }, + type: 'room', + categories: ['cafe'], + uid: 'b7206fb5-bd77-5572-928f-16aa70910f64', + alternateNames: ['MA Mathe Cafeteria'], + name: 'Mathe Cafeteria', + address: { + addressCountry: 'Germany', + addressLocality: 'Berlin', + addressRegion: 'Berlin', + postalCode: '10623', + streetAddress: 'Straße des 17. Juni 136', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCRoom', + }, + { + errorNames: [], + instance: { + geo: { + point: { + type: 'Point', + coordinates: [13.3306966, 52.5104675], + }, + }, + type: 'room', + categories: ['library'], + uid: '6e5abbff-d995-507b-982b-e0d094da6606', + alternateNames: ['BIB'], + name: 'Universitätsbibliothek', + floor: '0', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCRoom', + }, + { + errorNames: [], + instance: { + geo: { + point: { + type: 'Point', + coordinates: [13.3262843, 52.5135435], + }, + }, + description: 'loses Mobiliar im Foyer', + type: 'room', + categories: ['learn'], + uid: 'd33fa478-7e5d-5197-9f0e-091f7f8105df', + name: 'MA Foyer', + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.32577, 52.51398], + }, + polygon: { + type: 'Polygon', + coordinates: [ + [ + [13.3259988, 52.5141108], + [13.3259718, 52.5143107], + [13.3262958, 52.5143236], + [13.3263291, 52.5143052], + [13.3263688, 52.5140098], + [13.3264324, 52.5139643], + [13.3264849, 52.5139415], + [13.3265148, 52.5139004], + [13.3265336, 52.5138571], + [13.3265411, 52.5137933], + [13.3265336, 52.5137546], + [13.3264961, 52.5137044], + [13.3264399, 52.5136725], + [13.3263875, 52.5136497], + [13.3263351, 52.5136429], + [13.3263613, 52.5134286], + [13.3262564, 52.5133603], + [13.3260767, 52.5133671], + [13.3259418, 52.5134286], + [13.3258744, 52.5135061], + [13.3258444, 52.5135677], + [13.3261366, 52.5135836], + [13.3261066, 52.513807], + [13.3260579, 52.5138047], + [13.3260317, 52.5139096], + [13.3254137, 52.5138708], + [13.3254287, 52.5137819], + [13.3250879, 52.513766], + [13.3250018, 52.5142697], + [13.3253613, 52.5142902], + [13.3253838, 52.5140747], + [13.3259988, 52.5141108], + ], + ], + }, + }, + type: 'building', + categories: ['education'], + name: 'Mathematikgebäude', + alternateNames: ['MA'], + uid: 'edfaba58-254f-5da0-82d6-3b46a76c48ce', + address: { + addressCountry: 'Germany', + addressLocality: 'Berlin', + addressRegion: 'Berlin', + postalCode: '10623', + streetAddress: 'Straße des 17. Juni 136', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + floor: '0', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCRoom', + }, + { + errorNames: [], + instance: { + uid: 'ea9db087-240b-5b10-a65b-9684d88a3e4e', + name: 'Poolraum (HoF)', + type: 'room', + categories: ['computer', 'learn'], + description: '1. OG, Raum 1.29, 18 Plätze, rollstuhlgerecht, Montag bis Freitag von 8:00 bis 20:00 Uhr', + geo: { + point: { + type: 'Point', + coordinates: [8.6654716730118, 50.127288142239], + }, + }, + inPlace: { + name: 'HoF', + address: { + addressCountry: 'Deutschland', + addressLocality: 'Frankfurt am Main', + addressRegion: 'Hessen', + postalCode: '60323', + streetAddress: 'Theodor-W.-Adorno-Platz 3', + }, + geo: { + point: { + coordinates: [8.66521, 50.12715], + type: 'Point', + }, + polygon: { + coordinates: [ + [ + [8.6646019667387, 50.127282983673], + [8.6655273288488, 50.127413667164], + [8.6656533926725, 50.127055146471], + [8.6647307127714, 50.126922742467], + [8.6646019667387, 50.127282983673], + ], + ], + type: 'Polygon', + }, + }, + categories: ['education'], + type: 'building', + uid: '583b4bd4-d7b7-5736-b2df-87e05c41d97a', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCRoom', + }, + { + errorNames: [], + instance: { + query: '*', + filter: { + arguments: { + filters: [ + { + arguments: { + field: 'type', + value: 'dish', + }, + type: 'value', + }, + { + arguments: { + field: 'categories', + value: 'main dish', + }, + type: 'value', + }, + { + arguments: { + fromField: 'availabilityStarts', + toField: 'availabilityEnds', + time: '2018-01-15T04:13:00+00:00', + }, + type: 'availability', + }, + ], + operation: 'and', + }, + type: 'boolean', + }, + }, + schema: 'SCSearchRequest', + }, + { + errorNames: [], + instance: { + uid: '622b950b-a29c-593b-9059-aece622228a0', + type: 'semester', + name: 'Wintersemester 2017/2018', + acronym: 'WS 2017/18', + alternateNames: ['WiSe 2017/18'], + startDate: '2017-10-01', + endDate: '2018-03-31', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCSemester', + }, + { + errorNames: [], + instance: { + uid: '7cebbc3e-0a21-5371-ab0d-f7ba12f53dbd', + type: 'semester', + name: 'Sommersemester 2018', + acronym: 'SS 2018', + alternateNames: ['SoSe 2018'], + startDate: '2018-04-01', + endDate: '2018-09-30', + eventsStartDate: '2018-04-09', + eventsEndDate: '2018-07-13', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCSemester', + }, + { + errorNames: [], + instance: { + categories: ['privacy'], + description: 'This is a Description', + input: { + defaultValue: 'student', + inputType: 'singleChoice', + values: ['student', 'employee', 'guest'], + }, + name: 'group', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + translations: { + de: { + description: 'Dies ist eine Beschreibung', + }, + }, + type: 'setting', + uid: 'c4ff2b08-be18-528e-9b09-cb8c1d18487b', + }, + schema: 'SCSetting', + }, + { + errorNames: [], + instance: { + categories: ['privacy'], + description: 'This is a Description', + input: { + defaultValue: [], + inputType: 'multipleChoice', + values: [1, 2, 3, 4, 5, 6, 7, 8], + }, + name: 'numbers', + order: 1, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + translations: { + de: { + description: 'Dies ist eine Beschreibung', + name: 'Nummern', + }, + en: { + description: 'This is a Description', + name: 'Numbers', + }, + }, + type: 'setting', + uid: '9f0c362e-0b41-532f-9e8b-a0ac373fbede', + }, + schema: 'SCSetting', + }, + { + errorNames: [], + instance: { + type: 'ticket', + name: 'Ticket', + uid: '34fc6cd9-5bd1-5779-a75d-a25d01ad4dae', + currentTicketNumber: '250', + approxWaitingTime: 'PT43S', + inPlace: { + geo: { + point: { + type: 'Point', + coordinates: [13.3255622, 52.5118668], + }, + }, + type: 'room', + categories: ['office'], + openingHours: 'Mo-Fr 09:30-12:30; Tu 13:00-16:00; We off', + uid: '7257a1d7-47ac-4acc-a8cc-3f9ac6442e5d', + alternateNames: ['H 0010'], + name: 'Prüfungsamt - Team 2', + floor: '0', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + serviceType: { + name: 'Prüfungsamt', + }, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCTicket', + }, + { + errorNames: [], + instance: { + uid: '4f1c1810-1a9f-52cb-bfe9-65dcab5e889a', + type: 'tour', + name: 'Stundenplan erstellen', + description: 'Veranstaltung suchen und zum Stundenplan hinzufügen', + steps: [ + { + type: 'location', + location: '/b-tu/main', + }, + { + type: 'tooltip', + element: 'ion-nav-bar div[nav-bar="active"] div.buttons-left', + text: 'Öffne das Menü.', + resolved: { + menu: 'open-left', + }, + }, + { + type: 'tooltip', + element: '#stapps-main-menu-main-b-tu-search', + text: 'Öffne die Suche.', + resolved: { + location: { + is: '/b-tu/search', + }, + }, + position: 'bottom', + }, + { + type: 'tooltip', + element: 'ion-header-bar label', + text: "Such' nach einer Veranstaltung indem du beispielsweise den Titel einer Veranstaltung eingibst.", + }, + { + type: 'tooltip', + element: 'ion-nav-bar div[nav-bar="active"] div.buttons-right', + text: 'Öffne die Filter.', + resolved: { + menu: 'open-right', + }, + }, + { + type: 'tooltip', + element: '.stapps-context-menu-selectable-lists', + text: 'Filtere um eine Veranstaltung zu finden...', + position: 'top', + }, + { + type: 'menu', + side: 'right', + action: 'close', + }, + { + type: 'tooltip', + element: '.stapps-search-results .stapps-data-list-remote-items', + text: 'Klicke auf eine Veranstaltung...', + resolved: { + location: { + match: '/b-tu/data/detail/Event', + }, + }, + position: 'top', + }, + { + type: 'tooltip', + element: 'ion-view[nav-view="active"] stapps-event-date-in-course stapps-event-date-toggle', + text: 'Füge die Veranstaltung zu deinem Stundenplan hinzu.', + }, + { + type: 'tooltip', + element: 'ion-nav-bar div[nav-bar="active"] div.buttons-left', + text: 'Öffne das Menü erneut.', + resolved: { + menu: 'open-left', + }, + }, + { + type: 'tooltip', + element: '#stapps-main-menu-personal-b-tu-events', + text: 'Öffne deinen Stundenplan.', + resolved: { + location: { + is: '/b-tu/events', + }, + }, + position: 'right', + }, + { + type: 'tooltip', + element: '.stapps-timetable-clocks', + text: 'Dies ist dein Stundenplan. Die Veranstaltung wird dir nun hier angezeigt.', + position: 'right', + }, + ], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCTour', + }, + { + errorNames: [], + instance: { + uid: '665d834d-594a-5d72-be94-ff2892a6003c', + type: 'tour', + name: 'Favorisierte Essensorte', + description: 'Essensorte favorisieren, um ihre Speisepläne als Widget auf der Startseite zu sehen', + init: "injector.get('stappsHomeChosenWidgets').remove('stappsEatAndDrinkWidgets.dishesInFavoritedPlaces');", + steps: [ + { + type: 'location', + location: '/b-tu/main', + }, + { + type: 'tooltip', + element: 'ion-nav-bar div[nav-bar="active"] div.buttons-right .ion-ios-unlocked-outline', + text: 'Wechsle in den Bearbeitungsmodus.', + resolved: { + event: 'stappsMenu.toggleEditMode', + }, + canFail: true, + tries: 2, + }, + { + type: 'tooltip', + element: ['#stapps-home-add-widgets', '#stapps-home-personalize'], + text: 'Öffne die Widget-Auswahl.', + resolved: { + element: 'ion-modal-view.active', + }, + }, + { + type: 'tooltip', + element: '#stapps-home-widgets-add-stapps-eat-and-drink-widgets-dishes-in-favorited-places', + text: 'Füge das Widget "Gerichte in favorisierten Orten" zu deiner Startseite hinzu.', + resolved: { + event: 'stappsHomeChosenWidgets.addedWidget', + }, + }, + { + type: 'tooltip', + element: 'ion-nav-bar div[nav-bar="active"] div.buttons-right .ion-ios-locked', + text: 'Speichere deine Änderungen.', + resolved: { + event: 'stappsMenu.toggleEditMode', + }, + canFail: true, + tries: 1, + }, + { + type: 'tooltip', + element: '#stapps-home-widgets-stapps-eat-and-drink-widgets-dishes-in-favorited-places', + text: 'Das ist das Widget, dass dir die Speisepläne deiner favorisierten Essensorte anzeigt. Klicke auf "Essensorte", um zur Übersicht der Essensorte zu gelangen.', + resolved: { + location: { + is: '/b-tu/places?types=FoodEstablishment', + }, + }, + }, + { + type: 'tooltip', + element: '#b-tu-places-types-food-establishment-place-m-a-mathe-cafeteria h2', + text: 'Wähle die "Mathe Cafeteria" aus, um sie zu favorisieren.', + resolved: { + location: { + is: '/b-tu/map?place=MA%20Mathe%20Cafeteria', + }, + }, + }, + { + type: 'tooltip', + element: 'ion-nav-bar div[nav-bar="active"] div.buttons-right stapps-favorite', + text: 'Favorisiere die Mathe-Cafeteria, über den Favoritenstern. Sobald du sie favorisiert hast, wird er gelb.', + resolved: { + event: 'stappsFavorites.addedFavorite', + }, + }, + { + type: 'tooltip', + element: 'ion-nav-bar div[nav-bar="active"] div.buttons-left', + text: 'Öffne das Menü, um zur Startseite zurückzukehren.', + resolved: { + menu: 'open-left', + }, + }, + { + type: 'tooltip', + element: 'ion-side-menu.menu-left header', + text: 'Klicke auf das TU-Logo oder "StApps", um zur Startseite zurückzukehren.', + resolved: { + location: { + is: '/b-tu/main', + }, + }, + }, + { + type: 'tooltip', + element: '#stapps-home-widgets-stapps-eat-and-drink-widgets-dishes-in-favorited-places', + text: 'Das Widget zeigt dir nun mindestens den Speiseplan der Mathe Cafeteria an.', + }, + { + type: 'tooltip', + element: 'ion-nav-bar div[nav-bar="active"] div.buttons-left', + text: 'Öffne das Menü ein letztes Mal.', + resolved: { + menu: 'open-left', + }, + }, + { + type: 'tooltip', + element: '#stapps-main-menu-personal-b-tu-favorites', + text: 'Öffne deine Favoriten.', + resolved: { + location: { + is: '/b-tu/favorites', + }, + }, + }, + { + type: 'tooltip', + element: '#b-tu-favorites-favorite-favorite-m-a-mathe-cafeteria', + text: 'Hier siehst du nun auch die Mathe Cafeteria in der Liste deiner Favoriten.', + }, + ], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCTour', + }, + { + errorNames: [], + instance: { + type: 'video', + uid: 'e274cc82-f51c-566b-b8da-85763ff375e8', + url: 'https://vimeo.com/1084537', + name: 'Big Buck Bunny', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCVideo', + }, + { + errorNames: [], + instance: { + type: 'video', + uid: '2def52c8-f901-5b30-96fc-ba570a038508', + url: 'https://vimeo.com/1084537', + name: 'Big Buck Bunny', + sources: [ + { + url: 'https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4', + mimeType: 'video/mp4', + height: 240, + width: 320, + }, + { + url: 'https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_stereo.ogg', + mimeType: 'video/ogg', + height: 1080, + width: 1920, + }, + { + url: 'https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.ogg', + mimeType: 'video/ogg', + height: 480, + width: 854, + }, + ], + duration: 'PT9M57S', + thumbnails: ['https://peach.blender.org/wp-content/uploads/bbb-splash.png?x11217'], + actors: [ + { + type: 'person', + uid: '540862f3-ea30-5b8f-8678-56b4dc217642', + name: 'Big Buck Bunny', + givenName: 'Big Buck', + familyName: 'Bunny', + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + ], + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: 'remote', + }, + }, + schema: 'SCVideo', + }, +]; diff --git a/frontend/app/src/app/_helpers/data/sample-configuration.ts b/frontend/app/src/app/_helpers/data/sample-configuration.ts new file mode 100644 index 00000000..f440abfa --- /dev/null +++ b/frontend/app/src/app/_helpers/data/sample-configuration.ts @@ -0,0 +1,259 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import { + SCAboutPageContentType, + SCAuthorizationProvider, + SCBackendAggregationConfiguration, + SCIndexResponse, + SCSettingInputType, + SCThingOriginType, + SCThingType, +} from '@openstapps/core'; +import {Polygon} from 'geojson'; +import packageJson from '../../../../package.json'; + +// provides sample aggregations to be used in tests or backendless development +export const sampleAggregations: SCBackendAggregationConfiguration[] = [ + { + fieldName: 'categories', + onlyOnTypes: [ + SCThingType.AcademicEvent, + SCThingType.Article, + SCThingType.Building, + SCThingType.Catalog, + SCThingType.Dish, + SCThingType.PointOfInterest, + SCThingType.Room, + ], + }, + { + fieldName: 'inPlace.name', + onlyOnTypes: [ + SCThingType.DateSeries, + SCThingType.Dish, + SCThingType.Floor, + SCThingType.Organization, + SCThingType.PointOfInterest, + SCThingType.Room, + SCThingType.Ticket, + ], + }, + { + fieldName: 'academicTerms.acronym', + onlyOnTypes: [SCThingType.AcademicEvent, SCThingType.SportCourse], + }, + { + fieldName: 'academicTerm.acronym', + onlyOnTypes: [SCThingType.Catalog], + }, + { + fieldName: 'majors', + onlyOnTypes: [SCThingType.AcademicEvent], + }, + { + fieldName: 'keywords', + onlyOnTypes: [SCThingType.Article, SCThingType.Book, SCThingType.Message, SCThingType.Video], + }, + { + fieldName: 'type', + }, +]; + +export const sampleAuthConfiguration: { + default: SCAuthorizationProvider; + paia: SCAuthorizationProvider; +} = { + default: { + client: {clientId: '', scopes: '', url: ''}, + endpoints: { + authorization: '', + mapping: {id: '', name: ''}, + token: '', + userinfo: '', + }, + }, + paia: { + client: {clientId: '', scopes: '', url: ''}, + endpoints: { + authorization: '', + mapping: {id: '', name: ''}, + token: '', + userinfo: '', + }, + }, +}; + +export const sampleDefaultPolygon: Polygon = { + coordinates: [ + [ + [8.660432999690723, 50.123027017044436], + [8.675496285518358, 50.123027017044436], + [8.675496285518358, 50.13066176448642], + [8.660432999690723, 50.13066176448642], + [8.660432999690723, 50.123027017044436], + ], + ], + type: 'Polygon', +}; + +const scVersion = packageJson.dependencies['@openstapps/core']; + +export const sampleIndexResponse: SCIndexResponse = { + app: { + aboutPages: { + about: { + title: 'About', + content: [ + { + value: 'This is the about page', + type: SCAboutPageContentType.MARKDOWN, + translations: { + en: { + value: 'This is the about page', + }, + }, + }, + ], + translations: { + en: { + title: 'About', + }, + }, + }, + }, + campusPolygon: { + coordinates: [[[1, 2]], [[1, 2]]], + type: 'Polygon', + }, + features: {}, + menus: [ + { + icon: 'icon', + items: [ + { + icon: 'icon', + route: '/index', + title: 'start', + translations: { + de: { + title: 'Start', + }, + en: { + title: 'start', + }, + }, + }, + ], + title: 'main', + route: '/main', + translations: { + de: { + title: 'Haupt', + }, + en: { + title: 'main', + }, + }, + }, + ], + name: 'StApps', + privacyPolicyUrl: 'foo.bar', + settings: [ + { + categories: ['credentials'], + defaultValue: '', + inputType: SCSettingInputType.Text, + name: 'username', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + name: 'Benutzername', + }, + en: { + name: 'Username', + }, + }, + type: SCThingType.Setting, + uid: '', + }, + ], + }, + auth: {}, + backend: { + SCVersion: scVersion, + externalRequestTimeout: 5000, + hiddenTypes: [SCThingType.DateSeries, SCThingType.Diff, SCThingType.Floor], + mappingIgnoredTags: [], + maxMultiSearchRouteQueries: 5, + maxRequestBodySize: 512 * 1024, + name: 'Technische Universität Berlin', + namespace: '909a8cbc-8520-456c-b474-ef1525f14209', + sortableFields: [ + { + fieldName: 'name', + sortTypes: ['ducet'], + }, + { + fieldName: 'type', + sortTypes: ['ducet'], + }, + { + fieldName: 'categories', + onlyOnTypes: [ + SCThingType.AcademicEvent, + SCThingType.Building, + SCThingType.Catalog, + SCThingType.Dish, + SCThingType.PointOfInterest, + SCThingType.Room, + ], + sortTypes: ['ducet'], + }, + { + fieldName: 'geo', + onlyOnTypes: [SCThingType.Building, SCThingType.PointOfInterest, SCThingType.Room], + sortTypes: ['distance'], + }, + { + fieldName: 'geo', + onlyOnTypes: [SCThingType.Building, SCThingType.PointOfInterest, SCThingType.Room], + sortTypes: ['distance'], + }, + { + fieldName: 'inPlace.geo', + onlyOnTypes: [ + SCThingType.DateSeries, + SCThingType.Dish, + SCThingType.Floor, + SCThingType.Organization, + SCThingType.PointOfInterest, + SCThingType.Room, + SCThingType.Ticket, + ], + sortTypes: ['distance'], + }, + { + fieldName: 'offers', + onlyOnTypes: [SCThingType.Dish], + sortTypes: ['price'], + }, + ], + }, +}; diff --git a/frontend/app/src/app/_helpers/data/sample-facets.ts b/frontend/app/src/app/_helpers/data/sample-facets.ts new file mode 100644 index 00000000..7589a21c --- /dev/null +++ b/frontend/app/src/app/_helpers/data/sample-facets.ts @@ -0,0 +1,113 @@ +/* + * Copyright (C) 2019, 2020 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {SCFacet, SCThingType} from '@openstapps/core'; + +export const facetsMock: SCFacet[] = [ + { + buckets: [ + { + count: 60, + key: 'academic event', + }, + { + count: 160, + key: 'message', + }, + { + count: 151, + key: 'date series', + }, + { + count: 106, + key: 'dish', + }, + { + count: 20, + key: 'building', + }, + { + count: 20, + key: 'semester', + }, + ], + field: 'type', + }, + { + buckets: [ + { + count: 12, + key: 'Max Mustermann', + }, + { + count: 2, + key: 'Foo Bar', + }, + ], + field: 'performers', + onlyOnType: SCThingType.AcademicEvent, + }, + { + buckets: [ + { + count: 5, + key: 'colloquium', + }, + { + count: 15, + key: 'course', + }, + ], + field: 'categories', + onlyOnType: SCThingType.AcademicEvent, + }, + { + buckets: [ + { + count: 5, + key: 'unipedia', + }, + ], + field: 'categories', + onlyOnType: SCThingType.Article, + }, + { + buckets: [ + { + count: 5, + key: 'employees', + }, + { + count: 15, + key: 'students', + }, + ], + field: 'audiences', + onlyOnType: SCThingType.Message, + }, + { + buckets: [ + { + count: 5, + key: 'main dish', + }, + { + count: 15, + key: 'salad', + }, + ], + field: 'categories', + onlyOnType: SCThingType.Dish, + }, +]; diff --git a/frontend/app/src/app/_helpers/data/sample-things.ts b/frontend/app/src/app/_helpers/data/sample-things.ts new file mode 100644 index 00000000..d14e6711 --- /dev/null +++ b/frontend/app/src/app/_helpers/data/sample-things.ts @@ -0,0 +1,438 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {HttpClient} from '@angular/common/http'; +import {Injectable} from '@angular/core'; +import { + SCAcademicEvent, + SCArticle, + SCBook, + SCBuilding, + SCCatalog, + SCDateSeries, + SCDish, + SCFavorite, + SCMessage, + SCPerson, + SCRoom, + SCSearchFilter, + SCThing, + SCThingOriginType, + SCThingType, + SCToDo, + SCToDoPriority, +} from '@openstapps/core'; +import {Observable, of} from 'rxjs'; +import {checkFilter} from './filters'; +import {sampleResources} from './resources/test-resources'; + +/* eslint-disable */ +const sampleMessages: SCMessage[] = [ + { + audiences: ['students'], + categories: ['news'], + messageBody: 'Foo Message Text', + name: 'Foo Message', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Message, + uid: 'message-123', + }, + { + audiences: ['employees'], + categories: ['news'], + messageBody: 'Bar Message Text', + name: 'Bar Message', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Message, + uid: 'message-456', + }, +]; + +const sampleDishes: SCDish[] = [ + { + categories: ['main dish', 'salad'], + name: 'Foo Dish', + // offers: [ + // { + // 'availability': 'in stock', + // 'availabilityStarts': '2017-01-30T00:00:00.000Z', + // 'availabilityEnds': '2017-01-30T23:59:59.999Z', + // 'prices': { + // 'default': 4.85, + // 'student': 2.85, + // 'employee': 3.85, + // 'guest': 4.85, + // }, + // ], + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Dish, + uid: 'dish-123', + }, + { + categories: ['side dish', 'salad'], + name: 'Bar Dish', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Dish, + uid: 'dish-456', + }, +]; + +const sampleBuildings: SCBuilding[] = [ + { + categories: ['education'], + geo: { + point: {type: 'Point', coordinates: [12, 12]}, + }, + name: 'Foo Building', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Building, + uid: 'building-123', + }, +]; + +const sampleRooms: SCRoom[] = [ + { + categories: ['library'], + geo: { + point: {type: 'Point', coordinates: [12, 12]}, + }, + name: 'Foo Room', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Room, + uid: 'room-123', + }, +]; + +const sampleArticles: SCArticle[] = [ + { + articleBody: 'Foo Text', + categories: ['unipedia'], + name: 'Foo Article', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Article, + uid: 'article-123', + }, + { + articleBody: 'Bar Text', + categories: ['unipedia'], + name: 'Bar Article', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Article, + uid: 'article-456', + }, +]; + +const samplePersons: SCPerson[] = [ + { + familyName: 'Person', + givenName: 'Foo', + name: 'Foo Person', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Person, + uid: 'person-123', + }, + { + familyName: 'Person', + givenName: 'Bar', + name: 'Bar Person', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Person, + uid: 'person-456', + }, +]; + +const sampleBooks: SCBook[] = [ + { + authors: samplePersons, + ISBNs: ['123456'], + categories: ['ebook'], + name: 'Foo Book', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Book, + uid: 'HEB290615194', + }, + { + authors: [], + ISBNs: ['123456'], + categories: ['book'], + name: 'Bar Book', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Book, + uid: 'book-234', + }, +]; + +const sampleCatalogs: SCCatalog[] = [ + { + categories: ['university events'], + level: 1, + name: 'Foo Catalog', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Catalog, + uid: 'catalog-123', + }, + { + categories: ['university events'], + level: 1, + name: 'Bar Catalog', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.Catalog, + uid: 'catalog-456', + }, +]; + +const sampleTodos: SCToDo[] = [ + { + categories: ['foo category'], + done: false, + name: 'Foo Todo', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + priority: SCToDoPriority.LOW, + type: SCThingType.ToDo, + uid: 'todo-123', + }, + { + categories: ['bar category'], + done: true, + name: 'Bar Todo', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + priority: SCToDoPriority.HIGH, + type: SCThingType.ToDo, + uid: 'todo-456', + }, +]; + +const sampleFavorites: SCFavorite[] = [ + { + data: sampleBuildings[0], + name: 'Foo Favorite', + origin: { + created: 'SOME-DATE', + type: SCThingOriginType.User, + }, + type: SCThingType.Favorite, + uid: 'favorite-123', + }, + { + data: samplePersons[1], + name: 'Bar Favorite', + origin: { + created: 'SOME-DATE', + type: SCThingOriginType.User, + }, + type: SCThingType.Favorite, + uid: 'favorite-456', + }, +]; + +const sampleAcademicEvents: SCAcademicEvent[] = [ + { + categories: ['course'], + majors: ['Major One', 'Major Two'], + name: 'Foo Academic Event', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + performers: samplePersons, + type: SCThingType.AcademicEvent, + uid: 'academic-event-123', + }, + { + categories: ['practicum'], + majors: ['Major Two', 'Major Three'], + name: 'Bar Academic Event', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + performers: samplePersons, + type: SCThingType.AcademicEvent, + uid: 'academic-event-456', + }, +]; + +const sampleDateSeries: SCDateSeries[] = [ + { + dates: ['2019-03-01T17:00:00+00:00', '2019-03-08T17:00:00+00:00'], + duration: 'PT2H', + event: sampleAcademicEvents[0], + repeatFrequency: 'P1W', + name: 'Foo Date Event - Date Series', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.DateSeries, + uid: 'date-series-123', + }, + { + dates: ['2019-03-03T10:00:00+00:00', '2019-03-11T10:00:00+00:00'], + duration: 'PT2H', + event: sampleAcademicEvents[1], + name: 'Bar Date Event - Date Series', + origin: { + indexed: 'SOME-DATE', + name: 'some name', + type: SCThingOriginType.Remote, + }, + type: SCThingType.DateSeries, + uid: 'date-series-456', + }, +]; + +export const sampleThingsMap: {[key in SCThingType | string]: SCThing[]} = { + 'academic event': sampleAcademicEvents, + 'article': sampleArticles, + 'book': sampleBooks, + 'building': sampleBuildings, + 'catalog': sampleCatalogs, + 'course of studies': [], + 'date series': sampleDateSeries, + 'diff': [], + 'dish': sampleDishes, + 'favorite': sampleFavorites, + 'floor': [], + 'message': sampleMessages, + 'organization': [], + 'person': samplePersons, + 'point of interest': [], + 'room': sampleRooms, + 'semester': [], + 'setting': [], + 'sport course': [], + 'ticket': [], + 'todo': sampleTodos, + 'tour': [], + 'video': [], +}; + +/** + * TODO + */ +@Injectable() +export class SampleThings { + /** + * TODO + */ + http: HttpClient; + + constructor(http: HttpClient) { + this.http = http; + } + + /** + * TODO + */ + // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-explicit-any + getSampleThing(uid: string): Observable { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const sampleThings: any[] = []; + for (const resource of sampleResources) { + if ((resource.instance.uid as SCThingType) === uid) { + sampleThings.push(resource.instance); + + return of(sampleThings); + } + } + + return of(sampleThings); + } + + /** + * TODO + */ + // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-explicit-any + getSampleThings(filter?: SCSearchFilter): Observable { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const sampleThings: any[] = []; + for (const resource of sampleResources) { + // eslint-disable-next-line max-len + // if ([SCThingType.Video].includes(resource.instance.type as SCThingType)) { + if (typeof filter === 'undefined' || checkFilter(resource.instance as SCThing, filter)) { + sampleThings.push(resource.instance); + } + // } + } + + return of(sampleThings); + } +} diff --git a/frontend/app/src/app/_helpers/errors.ts b/frontend/app/src/app/_helpers/errors.ts new file mode 100644 index 00000000..81305104 --- /dev/null +++ b/frontend/app/src/app/_helpers/errors.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * An error that can occur in the StApps app + */ +export class AppError extends Error { + /** + * TODO + * + * @param name Name of the error + * @param message Message of the error + */ + constructor(name: string, message: string) { + super(message); + this.name = name; + } +} diff --git a/frontend/app/src/app/_helpers/service-handler.interceptor.ts b/frontend/app/src/app/_helpers/service-handler.interceptor.ts new file mode 100644 index 00000000..c7a71b9d --- /dev/null +++ b/frontend/app/src/app/_helpers/service-handler.interceptor.ts @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpErrorResponse} from '@angular/common/http'; +import {Observable, throwError} from 'rxjs'; +import {NGXLogger} from 'ngx-logger'; +import {catchError} from 'rxjs/operators'; + +@Injectable() +export class ServiceHandlerInterceptor implements HttpInterceptor { + constructor(private readonly logger: NGXLogger) {} + + intercept(request: HttpRequest, next: HttpHandler): Observable> { + return next.handle(request).pipe( + // Fixes the issue of errors dropping into "toPromise()" + // and being not able to catch it in the "caller methods" + catchError((error: HttpErrorResponse) => { + const errorMessage = + error.error instanceof ErrorEvent + ? `Error: ${error.error.message}` + : `Error Code: ${error.status}, Message: ${error.message}`; + + this.logger.error(errorMessage); + + return throwError(error); + }), + ); + } +} diff --git a/frontend/app/src/app/_helpers/ts-logger.ts b/frontend/app/src/app/_helpers/ts-logger.ts new file mode 100644 index 00000000..766ab40d --- /dev/null +++ b/frontend/app/src/app/_helpers/ts-logger.ts @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2020 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NGXLogger} from 'ngx-logger'; + +export let logger: NGXLogger; + +export const initLogger = (newLogger: NGXLogger) => (logger = newLogger); diff --git a/frontend/app/src/app/animation/animation-choreographer.ts b/frontend/app/src/app/animation/animation-choreographer.ts new file mode 100644 index 00000000..cb7b49f6 --- /dev/null +++ b/frontend/app/src/app/animation/animation-choreographer.ts @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {SHARED_AXIS_DIRECTIONS} from './material-motion'; + +/** + * /** + * Choreograph a shared axis animation based on a row of values so that changing state + * results in the correct, expected behavior of reverting the previous animation etc. + * + * The Choreographer manages motion of an element that changes value. This can be used in a variety of ways, + * for example multi-view choreographing can be achieved as such + * + * ```html + *
+ *
+ *
+ *
+ * ``` + * + * @see {@link https://material.io/design/motion/the-motion-system.html#shared-axis} + */ +export class SharedAxisChoreographer { + /** + * Expected next value + */ + private expectedValue: T; + + /** + * Animation State + */ + animationState: string; + + /** + * Current value to read from + */ + currentValue: T; + + constructor(initialValue: T, readonly pages?: T[]) { + this.currentValue = initialValue; + this.expectedValue = initialValue; + } + + /** + * Must be linked to the animation callback + */ + animationDone() { + this.animationState = 'in'; + this.currentValue = this.expectedValue; + } + + /** + * Change view for a new state that the current active view should receive + */ + changeViewForState(newValue: T, direction?: -1 | 0 | 1) { + if (direction === 0) { + this.currentValue = this.expectedValue = newValue; + return; + } + + this.expectedValue = newValue; + + // pre-place animation state + // new element comes in from the right and pushes the old one to the left + this.animationState = SHARED_AXIS_DIRECTIONS[direction ?? this.getDirection(this.currentValue, newValue)]; + } + + /** + * Get direction from to + */ + getDirection(from: T, to: T) { + const element = this.pages?.find(it => it === from || it === to); + + return element === from ? 1 : element === to ? -1 : 0; + } +} diff --git a/frontend/app/src/app/animation/material-motion.ts b/frontend/app/src/app/animation/material-motion.ts new file mode 100644 index 00000000..5f95c95a --- /dev/null +++ b/frontend/app/src/app/animation/material-motion.ts @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {animate, sequence, state, style, transition, trigger} from '@angular/animations'; + +/** + * Fade transition + * + * @see {@link https://material.io/design/motion/the-motion-system.html#fade} + */ +export const materialFade = trigger('materialFade', [ + state('in', style({opacity: 1})), + transition(':enter', [style({opacity: 0}), animate('250ms ease')]), + transition(':leave', [animate('200ms ease', style({opacity: 0}))]), +]); + +/** + * Fade transition + * + * @see {@link https://material.io/design/motion/the-motion-system.html#fade} + */ +export const materialManualFade = trigger('materialManualFade', [ + state('in', style({opacity: 1})), + state('out', style({opacity: 0})), + transition('in => out', animate('200ms ease')), + transition('out => in', animate('250ms ease')), +]); + +/** + * Fade through transition + * + * @see {@link https://material.io/design/motion/the-motion-system.html#fade-through} + */ +export const materialFadeThrough = trigger('materialFadeThrough', [ + state('in', style({transform: 'scale(100%)', opacity: 1})), + transition(':enter', [style({transform: 'scale(80%)', opacity: 0}), animate('250ms ease')]), + transition(':leave', [animate('200ms ease', style({opacity: 0}))]), +]); + +export const SHARED_AXIS_DIRECTIONS = { + [-1]: 'go-backward', + [0]: 'in', + [1]: 'go-forward', +}; + +/** + * Shared axis transition along the X-Axis + * + * Needs to be manually choreographed + * + * @see {@link https://material.io/design/motion/the-motion-system.html#shared-axis} + * @see {SharedAxisChoreographer} + */ +export const materialSharedAxisX = trigger('materialSharedAxisX', [ + state(SHARED_AXIS_DIRECTIONS[-1], style({opacity: 0, transform: 'translateX(30px)'})), + state(SHARED_AXIS_DIRECTIONS[0], style({opacity: 1, transform: 'translateX(0px)'})), + state(SHARED_AXIS_DIRECTIONS[1], style({opacity: 0, transform: 'translateX(-30px)'})), + transition( + `${SHARED_AXIS_DIRECTIONS[-1]} => ${SHARED_AXIS_DIRECTIONS[0]}`, + sequence([style({opacity: 0, transform: 'translateX(-30px)'}), animate('100ms ease-out')]), + ), + transition(`${SHARED_AXIS_DIRECTIONS[0]} => *`, animate('100ms ease-out')), + transition( + `${SHARED_AXIS_DIRECTIONS[1]} => ${SHARED_AXIS_DIRECTIONS[0]}`, + sequence([style({opacity: 0, transform: 'translateX(30px)'}), animate('100ms ease-out')]), + ), +]); diff --git a/frontend/app/src/app/animation/skeleton-transitions/chip-loading-transition.ts b/frontend/app/src/app/animation/skeleton-transitions/chip-loading-transition.ts new file mode 100644 index 00000000..d17594b6 --- /dev/null +++ b/frontend/app/src/app/animation/skeleton-transitions/chip-loading-transition.ts @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {animate, style, transition, trigger} from '@angular/animations'; + +export const chipTransition = trigger('chipTransition', [ + transition(':enter', [ + style({ + 'opacity': 0, + 'transform': 'scaleX(80%)', + 'transform-origin': 'left', + }), + animate('200ms ease', style({opacity: 1, transform: 'scaleX(100%)'})), + ]), +]); + +export const chipSkeletonTransition = trigger('chipSkeletonTransition', [ + transition(':leave', [ + style({ + 'opacity': 1, + 'transform': 'scaleX(100%)', + 'transform-origin': 'left', + }), + animate('200ms ease', style({opacity: 0, transform: 'scaleX(120%)'})), + ]), +]); diff --git a/frontend/app/src/app/app-routing.module.ts b/frontend/app/src/app/app-routing.module.ts new file mode 100644 index 00000000..5c17b26e --- /dev/null +++ b/frontend/app/src/app/app-routing.module.ts @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2018, 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {PreloadAllModules, RouterModule, Routes} from '@angular/router'; + +const routes: Routes = [{path: '', redirectTo: '/overview', pathMatch: 'full'}]; + +/** + * TODO + */ +@NgModule({ + exports: [RouterModule], + imports: [ + RouterModule.forRoot(routes, { + preloadingStrategy: PreloadAllModules, + errorHandler: error => { + // Handle unknown routes, at the moment this can only be done via window.location + if (error.message.includes('Cannot match any routes')) { + window.location.href = '/overview'; + } + }, + }), + ], +}) +export class AppRoutingModule {} diff --git a/frontend/app/src/app/app.component.html b/frontend/app/src/app/app.component.html new file mode 100644 index 00000000..b7d2183c --- /dev/null +++ b/frontend/app/src/app/app.component.html @@ -0,0 +1,3 @@ + + + diff --git a/frontend/app/src/app/app.component.spec.ts b/frontend/app/src/app/app.component.spec.ts new file mode 100644 index 00000000..073828a1 --- /dev/null +++ b/frontend/app/src/app/app.component.spec.ts @@ -0,0 +1,109 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-explicit-any */ +import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; +import {TestBed} from '@angular/core/testing'; + +import {Platform} from '@ionic/angular'; + +import {TranslateService} from '@ngx-translate/core'; +import {ThingTranslateService} from './translation/thing-translate.service'; +import {HttpClientTestingModule} from '@angular/common/http/testing'; +import {AppComponent} from './app.component'; +import {AuthModule} from './modules/auth/auth.module'; +import {ConfigProvider} from './modules/config/config.provider'; +import {SettingsProvider} from './modules/settings/settings.provider'; +import {NGXLogger} from 'ngx-logger'; +import {RouterTestingModule} from '@angular/router/testing'; +import {ScheduleSyncService} from './modules/background/schedule/schedule-sync.service'; +import {sampleAuthConfiguration} from './_helpers/data/sample-configuration'; +import {StorageProvider} from './modules/storage/storage.provider'; +import {SimpleBrowser} from './util/browser.factory'; + +describe('AppComponent', () => { + let platformReadySpy: any; + let platformSpy: jasmine.SpyObj; + let translateServiceSpy: jasmine.SpyObj; + let thingTranslateServiceSpy: jasmine.SpyObj; + let settingsProvider: jasmine.SpyObj; + let configProvider: jasmine.SpyObj; + let ngxLogger: jasmine.SpyObj; + let scheduleSyncServiceSpy: jasmine.SpyObj; + let platformIsSpy; + let storageProvider: jasmine.SpyObj; + let simpleBrowser: jasmine.SpyObj; + + beforeEach(() => { + platformReadySpy = Promise.resolve(); + platformIsSpy = Promise.resolve(); + platformSpy = jasmine.createSpyObj('Platform', { + ready: platformReadySpy, + is: platformIsSpy, + }); + translateServiceSpy = jasmine.createSpyObj('TranslateService', ['setDefaultLang', 'use']); + thingTranslateServiceSpy = jasmine.createSpyObj('ThingTranslateService', ['init']); + settingsProvider = jasmine.createSpyObj('SettingsProvider', [ + 'getSettingValue', + 'provideSetting', + 'setCategoriesOrder', + ]); + scheduleSyncServiceSpy = jasmine.createSpyObj('ScheduleSyncService', [ + 'getDifferences', + 'postDifferencesNotification', + ]); + configProvider = jasmine.createSpyObj('ConfigProvider', ['init', 'getAnyValue']); + configProvider.getAnyValue = jasmine.createSpy().and.callFake(function () { + return sampleAuthConfiguration; + }); + ngxLogger = jasmine.createSpyObj('NGXLogger', ['log', 'error', 'warn']); + storageProvider = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put']); + simpleBrowser = jasmine.createSpyObj('SimpleBrowser', ['open']); + + TestBed.configureTestingModule({ + imports: [RouterTestingModule.withRoutes([]), HttpClientTestingModule, AuthModule], + declarations: [AppComponent], + providers: [ + {provide: Platform, useValue: platformSpy}, + {provide: TranslateService, useValue: translateServiceSpy}, + {provide: ThingTranslateService, useValue: thingTranslateServiceSpy}, + {provide: ScheduleSyncService, useValue: scheduleSyncServiceSpy}, + {provide: SettingsProvider, useValue: settingsProvider}, + {provide: ConfigProvider, useValue: configProvider}, + {provide: NGXLogger, useValue: ngxLogger}, + {provide: StorageProvider, useValue: storageProvider}, + {provide: SimpleBrowser, useValue: simpleBrowser}, + ], + schemas: [CUSTOM_ELEMENTS_SCHEMA], + }).compileComponents(); + }); + + it('should create the app', () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app).toBeTruthy(); + }); + + it('should initialize the app', async () => { + TestBed.createComponent(AppComponent); + expect(platformSpy.ready).toHaveBeenCalled(); + // await platformReadySpy; + + // TODO: https://capacitorjs.com/docs/guides/mocking-plugins + // expect(splashScreenSpy.hide).toHaveBeenCalled(); + }); + + // TODO: add more tests! +}); diff --git a/frontend/app/src/app/app.component.ts b/frontend/app/src/app/app.component.ts new file mode 100644 index 00000000..2f2d351c --- /dev/null +++ b/frontend/app/src/app/app.component.ts @@ -0,0 +1,167 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {AfterContentInit, Component, NgZone} from '@angular/core'; +import {Router} from '@angular/router'; +import {App, URLOpenListenerEvent} from '@capacitor/app'; +import {Platform, ToastController} from '@ionic/angular'; +import {SettingsProvider} from './modules/settings/settings.provider'; +import {AuthHelperService} from './modules/auth/auth-helper.service'; +import {environment} from '../environments/environment'; +import {StatusBar, Style} from '@capacitor/status-bar'; +import {Capacitor} from '@capacitor/core'; +import {ScheduleSyncService} from './modules/background/schedule/schedule-sync.service'; +import {NavigationBar} from '@hugotomazi/capacitor-navigation-bar'; +import {Keyboard, KeyboardResize} from '@capacitor/keyboard'; + +/** + * TODO + */ +@Component({ + selector: 'app-root', + templateUrl: 'app.component.html', +}) +export class AppComponent implements AfterContentInit { + /** + * TODO + */ + pages: Array<{ + /** + * TODO + */ + component: unknown; + /** + * TODO + */ + title: string; + }>; + + /** + * Angular component selectors that should not infulence keyboard state + */ + ommitedEventSources = ['ion-input', 'ion-searchbar']; + + /** + * + * @param platform TODO + * @param settingsProvider TODO + * @param router The angular router + * @param zone The angular zone + * @param authHelper Helper service for OAuth providers + * @param toastController Toast controller + */ + constructor( + private readonly platform: Platform, + private readonly settingsProvider: SettingsProvider, + private readonly router: Router, + private readonly zone: NgZone, + private readonly authHelper: AuthHelperService, + private readonly toastController: ToastController, + private readonly scheduleSyncService: ScheduleSyncService, + ) { + void this.initializeApp(); + } + + ngAfterContentInit(): void { + this.scheduleSyncService.init(); + void this.scheduleSyncService.enable(); + } + + /** + * TODO + */ + async initializeApp() { + App.addListener('appUrlOpen', (event: URLOpenListenerEvent) => { + this.zone.run(() => { + const slug = event.url.split(environment.app_host).pop(); + if (slug) { + this.router.navigateByUrl(slug); + } + // If no match, do nothing - let regular routing + // logic take over + }); + }); + this.platform.ready().then(async () => { + if (Capacitor.isNativePlatform()) { + await StatusBar.setStyle({style: Style.Dark}); + if (Capacitor.getPlatform() === 'android') { + await StatusBar.setBackgroundColor({ + color: getComputedStyle(document.documentElement).getPropertyValue('--ion-color-primary').trim(), + }); + await StatusBar.setOverlaysWebView({overlay: false}); + await NavigationBar.setColor({ + color: getComputedStyle(document.documentElement) + .getPropertyValue('--ion-background-color') + .trim(), + darkButtons: true, + }); + } + } + await this.authNotificationsInit(); + + // set order of categories in settings + this.settingsProvider.setCategoriesOrder(['profile', 'privacy', 'credentials', 'others']); + }); + + window.addEventListener('touchmove', this.touchMoveEvent, true); + if (Capacitor.getPlatform() === 'ios') { + Keyboard.setResizeMode({mode: KeyboardResize.None}); + } + } + + private async authNotificationsInit() { + this.authHelper + .getProvider('default') + .events$.subscribe(action => this.showMessage(this.authHelper.getAuthMessage('default', action))); + this.authHelper + .getProvider('paia') + .events$.subscribe(action => this.showMessage(this.authHelper.getAuthMessage('paia', action))); + } + + private async showMessage(message?: string) { + if (typeof message === 'undefined') { + return; + } + const toast = await this.toastController.create({ + message: message, + duration: 2000, + color: 'success', + }); + await toast.present(); + } + + /** + * Checks if keyboard should be dissmissed + */ + touchMoveEvent = (event: Event): void => { + if ( + this.ommitedEventSources.includes( + (event?.target as unknown as Record)?.['s-hn']?.toLowerCase(), + ) + ) { + return; + } + this.unfocusActiveElement(); + }; + + /** + * Loses focus on the currently active element (meant for input fields). + * Results in virtual keyboard being dissmissed on native and web plattforms. + */ + unfocusActiveElement() { + const activeElement = document.activeElement; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (activeElement as any)?.blur(); + } +} diff --git a/frontend/app/src/app/app.module.ts b/frontend/app/src/app/app.module.ts new file mode 100644 index 00000000..4c2b97bf --- /dev/null +++ b/frontend/app/src/app/app.module.ts @@ -0,0 +1,215 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CommonModule, LocationStrategy, PathLocationStrategy, registerLocaleData} from '@angular/common'; +import {HTTP_INTERCEPTORS, HttpClient, HttpClientModule} from '@angular/common/http'; +import localeDe from '@angular/common/locales/de'; +import {APP_INITIALIZER, NgModule} from '@angular/core'; +import {BrowserModule} from '@angular/platform-browser'; +import {RouteReuseStrategy} from '@angular/router'; +import {IonicModule, IonicRouteStrategy, Platform} from '@ionic/angular'; +import {TranslateLoader, TranslateModule, TranslateService} from '@ngx-translate/core'; +import {TranslateHttpLoader} from '@ngx-translate/http-loader'; +import moment from 'moment'; +import 'moment/min/locales'; +import {LoggerModule, NGXLogger, NgxLoggerLevel} from 'ngx-logger'; +import SwiperCore, {FreeMode, Navigation} from 'swiper'; + +import {environment} from '../environments/environment'; +import {AppRoutingModule} from './app-routing.module'; +import {AppComponent} from './app.component'; +import {CatalogModule} from './modules/catalog/catalog.module'; +import {ConfigModule} from './modules/config/config.module'; +import {ConfigProvider} from './modules/config/config.provider'; +import {DashboardModule} from './modules/dashboard/dashboard.module'; +import {DataModule} from './modules/data/data.module'; +import {HebisModule} from './modules/hebis/hebis.module'; +import {MapModule} from './modules/map/map.module'; +import {MenuModule} from './modules/menu/menu.module'; +import {NewsModule} from './modules/news/news.module'; +import {ScheduleModule} from './modules/schedule/schedule.module'; +import {SettingsModule} from './modules/settings/settings.module'; +import {SettingsProvider} from './modules/settings/settings.provider'; +import {StorageModule} from './modules/storage/storage.module'; +import {ThingTranslateModule} from './translation/thing-translate.module'; +import {UtilModule} from './util/util.module'; +import {initLogger} from './_helpers/ts-logger'; +import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; +import {AboutModule} from './modules/about/about.module'; +import {FavoritesModule} from './modules/favorites/favorites.module'; +import {ProfilePageModule} from './modules/profile/profile.module'; +import {FeedbackModule} from './modules/feedback/feedback.module'; +import {DebugDataCollectorService} from './modules/data/debug-data-collector.service'; +import {AuthModule} from './modules/auth/auth.module'; +import {BackgroundModule} from './modules/background/background.module'; +import {LibraryModule} from './modules/library/library.module'; +import {StorageProvider} from './modules/storage/storage.provider'; +import {AssessmentsModule} from './modules/assessments/assessments.module'; +import {ServiceHandlerInterceptor} from './_helpers/service-handler.interceptor'; +import {RoutingStackService} from './util/routing-stack.service'; +import {SCSettingValue} from '@openstapps/core'; +import {DefaultAuthService} from './modules/auth/default-auth.service'; +import {PAIAAuthService} from './modules/auth/paia/paia-auth.service'; +import {IonIconModule} from './util/ion-icon/ion-icon.module'; +import {NavigationModule} from './modules/menu/navigation/navigation.module'; +import {browserFactory, SimpleBrowser} from './util/browser.factory'; + +registerLocaleData(localeDe); + +SwiperCore.use([FreeMode, Navigation]); + +/** + * Initializes data needed on startup + * + * @param storageProvider provider of the saved data (using framework's storage) + * @param logger TODO + * @param settingsProvider provider of settings (e.g. language that has been set) + * @param configProvider TODO + * @param translateService TODO + * @param _routingStackService Just for init and to track the stack from the get go + */ +export function initializerFactory( + storageProvider: StorageProvider, + logger: NGXLogger, + settingsProvider: SettingsProvider, + configProvider: ConfigProvider, + translateService: TranslateService, + _routingStackService: RoutingStackService, + defaultAuthService: DefaultAuthService, + paiaAuthService: PAIAAuthService, +) { + return async () => { + initLogger(logger); + await storageProvider.init(); + await configProvider.init(); + await settingsProvider.init(); + try { + if (configProvider.firstSession) { + // set language from browser + await settingsProvider.setSettingValue( + 'profile', + 'language', + translateService.getBrowserLang() as SCSettingValue, + ); + } + const languageCode = (await settingsProvider.getValue('profile', 'language')) as string; + // this language will be used as a fallback when a translation isn't found in the current language + translateService.setDefaultLang('en'); + translateService.use(languageCode); + moment.locale(languageCode); + await defaultAuthService.init(); + await paiaAuthService.init(); + } catch (error) { + logger.warn(error); + } + }; +} + +/** + * TODO + * + * @param http TODO + */ +export function createTranslateLoader(http: HttpClient) { + return new TranslateHttpLoader(http, './assets/i18n/', '.json'); +} + +/** + * TODO + */ +@NgModule({ + bootstrap: [AppComponent], + declarations: [AppComponent], + imports: [ + AboutModule, + AppRoutingModule, + AuthModule, + AssessmentsModule, + BackgroundModule, + BrowserModule, + BrowserAnimationsModule, + CatalogModule, + CommonModule, + ConfigModule, + DashboardModule, + DataModule, + HebisModule, + IonicModule.forRoot(), + IonIconModule, + FavoritesModule, + LibraryModule, + HttpClientModule, + ProfilePageModule, + FeedbackModule, + MapModule, + MenuModule, + NavigationModule, + NewsModule, + ScheduleModule, + SettingsModule, + StorageModule, + ThingTranslateModule.forRoot(), + TranslateModule.forRoot({ + defaultLanguage: 'en', + loader: { + deps: [HttpClient], + provide: TranslateLoader, + useFactory: createTranslateLoader, + }, + }), + UtilModule, + // use maximal logging level when not in production, minimal (log only fatal errors) in production + LoggerModule.forRoot({ + level: environment.production ? NgxLoggerLevel.FATAL : NgxLoggerLevel.TRACE, + }), + ], + providers: [ + { + provide: RouteReuseStrategy, + useClass: IonicRouteStrategy, + }, + { + provide: LocationStrategy, + useClass: PathLocationStrategy, + }, + { + provide: SimpleBrowser, + useFactory: browserFactory, + deps: [Platform], + }, + { + provide: APP_INITIALIZER, + multi: true, + deps: [ + StorageProvider, + NGXLogger, + SettingsProvider, + ConfigProvider, + TranslateService, + RoutingStackService, + DefaultAuthService, + PAIAAuthService, + ], + useFactory: initializerFactory, + }, + { + provide: HTTP_INTERCEPTORS, + useClass: ServiceHandlerInterceptor, + multi: true, + }, + ], +}) +export class AppModule { + constructor(public debugDataCollectorService: DebugDataCollectorService) {} +} diff --git a/frontend/app/src/app/modules/about/about-changelog.component.ts b/frontend/app/src/app/modules/about/about-changelog.component.ts new file mode 100644 index 00000000..56adf4e6 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-changelog.component.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component} from '@angular/core'; + +@Component({ + selector: 'about-changelog', + templateUrl: 'about-changelog.html', + styleUrls: ['about-changelog.scss', './about-page/about-page.scss'], +}) +export class AboutChangelogComponent {} diff --git a/frontend/app/src/app/modules/about/about-changelog.html b/frontend/app/src/app/modules/about/about-changelog.html new file mode 100644 index 00000000..e0f1aa09 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-changelog.html @@ -0,0 +1,31 @@ + + + + + + + + Changelog + + + + +
+
+ +
+
+
diff --git a/frontend/app/src/app/modules/about/about-changelog.scss b/frontend/app/src/app/modules/about/about-changelog.scss new file mode 100644 index 00000000..4b21870f --- /dev/null +++ b/frontend/app/src/app/modules/about/about-changelog.scss @@ -0,0 +1,18 @@ +/*! + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-content { + --padding-start: 16px; +} diff --git a/frontend/app/src/app/modules/about/about-license-modal.component.ts b/frontend/app/src/app/modules/about/about-license-modal.component.ts new file mode 100644 index 00000000..fa8a676d --- /dev/null +++ b/frontend/app/src/app/modules/about/about-license-modal.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {License} from './about-licenses.component'; + +@Component({ + selector: 'about-license-modal', + templateUrl: 'about-license-modal.html', + styleUrls: ['about-license-modal.scss'], +}) +export class AboutLicenseModalComponent { + @Input() license: License; + + /** + * Action when close is pressed + */ + @Input() dismissAction: () => void; +} diff --git a/frontend/app/src/app/modules/about/about-license-modal.html b/frontend/app/src/app/modules/about/about-license-modal.html new file mode 100644 index 00000000..290261f4 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-license-modal.html @@ -0,0 +1,30 @@ + + + + {{ license.licenses }} + + + {{ 'modal.DISMISS' | translate }} + + + + + + +
{{ license.licenseText }}
+
+
+
diff --git a/frontend/app/src/app/modules/about/about-license-modal.scss b/frontend/app/src/app/modules/about/about-license-modal.scss new file mode 100644 index 00000000..4c67eafa --- /dev/null +++ b/frontend/app/src/app/modules/about/about-license-modal.scss @@ -0,0 +1,34 @@ +/*! + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-card-header { + ion-button { + position: absolute; + right: 0; + top: 0; + } +} + +ion-card-content { + height: 100%; + + ion-content { + ion-list { + pre { + white-space: pre-wrap; + } + } + } +} diff --git a/frontend/app/src/app/modules/about/about-licenses.component.ts b/frontend/app/src/app/modules/about/about-licenses.component.ts new file mode 100644 index 00000000..79bab44d --- /dev/null +++ b/frontend/app/src/app/modules/about/about-licenses.component.ts @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnInit} from '@angular/core'; +import {ModalController} from '@ionic/angular'; +import {AboutLicenseModalComponent} from './about-license-modal.component'; +import licensesFile from 'src/assets/about/licenses.json'; + +export interface License { + name: string; + licenses: string; + repository: string; + authors?: string; + publisher?: string; + email?: string; + url?: string; + licenseText?: string; +} + +@Component({ + selector: 'about-changelog', + templateUrl: 'about-licenses.html', + styleUrls: ['about-licenses.scss', './about-page/about-page.scss'], +}) +export class AboutLicensesComponent implements OnInit { + licenses: License[]; + + constructor(private modalController: ModalController) {} + + ngOnInit() { + this.licenses = this.loadLicenses(); + } + + async viewLicense(license: License) { + const modal = await this.modalController.create({ + component: AboutLicenseModalComponent, + componentProps: { + license: license, + dismissAction: () => { + modal.dismiss(); + }, + }, + canDismiss: true, + }); + return await modal.present(); + } + + loadLicenses(): License[] { + return licensesFile as License[]; + } +} diff --git a/frontend/app/src/app/modules/about/about-licenses.html b/frontend/app/src/app/modules/about/about-licenses.html new file mode 100644 index 00000000..9b5b2612 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-licenses.html @@ -0,0 +1,53 @@ + + + + + + + + Licenses + + + + +
+
+ + + + {{ license.name }} + + + + + {{ license.authors || license.publisher }} + + + + + + {{ license.licenses }} License + + + +
+
+
diff --git a/frontend/app/src/app/modules/about/about-licenses.scss b/frontend/app/src/app/modules/about/about-licenses.scss new file mode 100644 index 00000000..00c9e63c --- /dev/null +++ b/frontend/app/src/app/modules/about/about-licenses.scss @@ -0,0 +1,38 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-content > div { + height: 100%; +} + +cdk-virtual-scroll-viewport { + height: 100%; + width: 100%; +} + +::ng-deep { + .cdk-virtual-scroll-content-wrapper { + width: 100%; + } +} + +.virtual-scroll-expander { + clear: both; +} + +.supertext-icon { + vertical-align: text-top; + height: 14px; +} diff --git a/frontend/app/src/app/modules/about/about-page/about-page-content.component.ts b/frontend/app/src/app/modules/about/about-page/about-page-content.component.ts new file mode 100644 index 00000000..167b27c8 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-page/about-page-content.component.ts @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCAboutPageContent} from '@openstapps/core'; + +@Component({ + selector: 'about-page-content', + templateUrl: 'about-page-content.html', + styleUrls: ['about-page-content.scss'], +}) +export class AboutPageContentComponent { + @Input() content: SCAboutPageContent; + + isSimpleTextContent(content: unknown | string): content is string { + return typeof content === 'string'; + } +} diff --git a/frontend/app/src/app/modules/about/about-page/about-page-content.html b/frontend/app/src/app/modules/about/about-page/about-page-content.html new file mode 100644 index 00000000..936cbd65 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-page/about-page-content.html @@ -0,0 +1,43 @@ + + +
+ +
+ + + {{ 'title' | translateSimple: content }} + + + + + + +

{{ 'title' | translateSimple: content }}

+ +
+
+ + + + + + + + + + {{ 'title' | translateSimple: content }} + +
diff --git a/frontend/app/src/app/modules/about/about-page/about-page-content.scss b/frontend/app/src/app/modules/about/about-page/about-page-content.scss new file mode 100644 index 00000000..bc381711 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-page/about-page-content.scss @@ -0,0 +1,14 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ diff --git a/frontend/app/src/app/modules/about/about-page/about-page.component.ts b/frontend/app/src/app/modules/about/about-page/about-page.component.ts new file mode 100644 index 00000000..abe311a0 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-page/about-page.component.ts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnInit} from '@angular/core'; +import {ActivatedRoute} from '@angular/router'; +import {SCAboutPage, SCAppConfiguration} from '@openstapps/core'; +import {ConfigProvider} from '../../config/config.provider'; +import packageJson from '../../../../../package.json'; +import config from 'capacitor.config'; + +@Component({ + selector: 'about-page', + templateUrl: 'about-page.html', + styleUrls: ['about-page.scss'], +}) +export class AboutPageComponent implements OnInit { + content: SCAboutPage; + + appName = config.appName; + + version = packageJson.version; + + constructor(private readonly route: ActivatedRoute, private readonly configProvider: ConfigProvider) {} + + async ngOnInit() { + const route = this.route.snapshot.url.map(it => it.path).join('/'); + this.content = + (this.configProvider.getValue('aboutPages') as SCAppConfiguration['aboutPages'])[route] ?? {}; + } +} diff --git a/frontend/app/src/app/modules/about/about-page/about-page.html b/frontend/app/src/app/modules/about/about-page/about-page.html new file mode 100644 index 00000000..3a4cc926 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-page/about-page.html @@ -0,0 +1,34 @@ + + + + + + + + {{ 'title' | translateSimple: content }} + + + + + + +
+ {{ appName }} v{{ version }} +
+ +
+
+
diff --git a/frontend/app/src/app/modules/about/about-page/about-page.scss b/frontend/app/src/app/modules/about/about-page/about-page.scss new file mode 100644 index 00000000..a6e50828 --- /dev/null +++ b/frontend/app/src/app/modules/about/about-page/about-page.scss @@ -0,0 +1,91 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@import 'src/theme/util/_mixins.scss'; + +ion-text { + margin-inline: var(--spacing-md); +} + +:host ::ng-deep { + ion-card { + margin: 0; + box-shadow: none; + ion-card-content { + h1 { + margin: 0; + } + padding-bottom: 8px; + } + ion-card-header { + color: var(--ion-color-dark); + padding-top: 8px; + padding-bottom: 4px; + font-weight: bold; + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } + + p, + h3, + h2, + h1 { + margin-inline: var(--spacing-md); + } + + .about-changelog, + .licenses-content, + .page-content { + margin: var(--spacing-md); + display: flex; + flex-direction: column; + gap: var(--spacing-sm); + background: var(--ion-color-primary-contrast); + &.licenses-content { + background: var(--ion-color-light); + } + + padding-block-end: var(--spacing-md); + @include border-radius-in-parallax(var(--border-radius-default)); + + & > * { + ion-card-subtitle { + font-size: var(--font-size-lg); + color: var(--ion-color-light-contrast); + } + + display: block; + @include border-radius-in-parallax(var(--border-radius-default)); + overflow: hidden; + position: relative; + background-color: var(--ion-color-primary-contrast); + margin: 0; + + & > ion-thumbnail { + background: var(--ion-color-primary); + } + } + } +} diff --git a/frontend/app/src/app/modules/about/about.module.ts b/frontend/app/src/app/modules/about/about.module.ts new file mode 100644 index 00000000..5c975fa3 --- /dev/null +++ b/frontend/app/src/app/modules/about/about.module.ts @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {RouterModule, Routes} from '@angular/router'; +import {NgModule} from '@angular/core'; +import {CommonModule} from '@angular/common'; +import {FormsModule} from '@angular/forms'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {ConfigProvider} from '../config/config.provider'; +import {AboutPageComponent} from './about-page/about-page.component'; +import {MarkdownModule} from 'ngx-markdown'; +import {AboutPageContentComponent} from './about-page/about-page-content.component'; +import {AboutLicensesComponent} from './about-licenses.component'; +import {DataModule} from '../data/data.module'; +import {ScrollingModule} from '@angular/cdk/scrolling'; +import {AboutLicenseModalComponent} from './about-license-modal.component'; +import {AboutChangelogComponent} from './about-changelog.component'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +const settingsRoutes: Routes = [ + {path: 'about', component: AboutPageComponent}, + {path: 'about/changelog', component: AboutChangelogComponent}, + {path: 'about/imprint', component: AboutPageComponent}, + {path: 'about/privacy', component: AboutPageComponent}, + {path: 'about/terms', component: AboutPageComponent}, + {path: 'about/licenses', component: AboutLicensesComponent}, +]; + +/** + * Settings Module + */ +@NgModule({ + declarations: [ + AboutPageComponent, + AboutPageContentComponent, + AboutLicensesComponent, + AboutLicenseModalComponent, + AboutChangelogComponent, + ], + imports: [ + CommonModule, + IonIconModule, + FormsModule, + IonicModule.forRoot(), + TranslateModule.forChild(), + ThingTranslateModule.forChild(), + RouterModule.forChild(settingsRoutes), + MarkdownModule, + DataModule, + ScrollingModule, + UtilModule, + ], + providers: [ConfigProvider], +}) +export class AboutModule {} diff --git a/frontend/app/src/app/modules/assessments/assessment-mock-data.json b/frontend/app/src/app/modules/assessments/assessment-mock-data.json new file mode 100644 index 00000000..164e0995 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/assessment-mock-data.json @@ -0,0 +1,1769 @@ +{ + "data": [ + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Modellierung", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Modellierung", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "c1657d10-990e-5829-8c70-f667ddc1ffee" + } + ], + "type": "assessment", + "uid": "02f065a6-6c02-58ab-97d9-a3febdbc91a1", + "origin": { + "indexed": "2022-02-10T10:08:58.871Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Analysis und Numerische Mathematik für die Informatik", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Analysis und Numerische Mathematik für die Informatik", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "4eeb5aca-6027-5321-bfa7-24525e394259" + } + ], + "type": "assessment", + "uid": "81e2b362-e91c-5474-9725-228c8ef40b55", + "origin": { + "indexed": "2022-02-10T10:08:58.873Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 2, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Analysis und Numerische Mathematik für die Informatik", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Analysis und Numerische Mathematik für die Informatik", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "4eeb5aca-6027-5321-bfa7-24525e394259" + } + ], + "type": "assessment", + "uid": "ce7a5bff-04df-5f84-a95e-7c1ca3d2a801", + "origin": { + "indexed": "2022-02-10T10:08:58.873Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Lineare Algebra und Diskrete Mathematik für die Informatik", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Lineare Algebra und Diskrete Mathematik für die Informatik", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "39eae175-4939-5412-b5cc-3bb4b4e20318" + } + ], + "type": "assessment", + "uid": "fbb55e06-30b7-53a9-b986-0fe6afb3b7e7", + "origin": { + "indexed": "2022-02-10T10:08:58.875Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 2, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Lineare Algebra und Diskrete Mathematik für die Informatik", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Lineare Algebra und Diskrete Mathematik für die Informatik", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "39eae175-4939-5412-b5cc-3bb4b4e20318" + } + ], + "type": "assessment", + "uid": "4a2f1b6b-60ec-53b4-8327-b7321e584940", + "origin": { + "indexed": "2022-02-10T10:08:58.875Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "2.0", + "name": "Rechnertechnologie und kombinatorische Schaltungen 2", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Rechnertechnologie und kombinatorische Schaltungen", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "8eb1264d-2255-5d7e-a0d7-331b431cad49" + } + ], + "type": "assessment", + "uid": "0d563fcd-4340-5967-987a-c253b13f916e", + "origin": { + "indexed": "2022-02-10T10:08:58.877Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "angemeldet", + "name": "Grundlagen der Programmierung", + "status": "angemeldet", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Einführung in die Praktische Informatik", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "b66c2f80-b922-527d-8ca8-d8a9c6495fcc" + } + ], + "type": "assessment", + "uid": "04f6f5b6-378c-5abd-a8cb-9af46dd3ad13", + "origin": { + "indexed": "2022-02-10T10:08:58.879Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Grundlagen der Programmierung", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Einführung in die Praktische Informatik", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "b66c2f80-b922-527d-8ca8-d8a9c6495fcc" + } + ], + "type": "assessment", + "uid": "3aaf7e3d-6ee4-5d73-8deb-e8ea161fd827", + "origin": { + "indexed": "2022-02-10T10:08:58.879Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 6, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "bestanden", + "name": "Einführung in die Programmierung", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Einführung in die Praktische Informatik", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "b66c2f80-b922-527d-8ca8-d8a9c6495fcc" + } + ], + "type": "assessment", + "uid": "9ba48785-a356-5ddc-9fb5-b9d2b8cf7b2b", + "origin": { + "indexed": "2022-02-10T10:08:58.879Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Algorithmen und Datenstrukturen 1a", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Algorithmen und Datenstrukturen 1", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "0dda2834-9384-590f-a627-d26348d18644" + } + ], + "type": "assessment", + "uid": "f99c958d-6f6a-57a9-bcf7-1513af0abf5f", + "origin": { + "indexed": "2022-02-10T10:08:58.881Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 2, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Algorithmen und Datenstrukturen 1a", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Algorithmen und Datenstrukturen 1", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "0dda2834-9384-590f-a627-d26348d18644" + } + ], + "type": "assessment", + "uid": "9b9e50a1-f17a-51c5-b824-866cb11a4405", + "origin": { + "indexed": "2022-02-10T10:08:58.881Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "3.0", + "name": "Algorithmen und Datenstrukturen 1b", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Algorithmen und Datenstrukturen 1", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "0dda2834-9384-590f-a627-d26348d18644" + } + ], + "type": "assessment", + "uid": "a2ea7847-d831-5864-b482-21d4f8e2a5af", + "origin": { + "indexed": "2022-02-10T10:08:58.881Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Algorithmen und Datenstrukturen 2", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Algorithmen und Datenstrukturen 2", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3d7abf92-a7e5-5c8e-9946-efe251fd87a6" + } + ], + "type": "assessment", + "uid": "fba5c456-be63-5c33-89ef-b5bd7cd7df45", + "origin": { + "indexed": "2022-02-10T10:08:58.883Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 2, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Algorithmen und Datenstrukturen 2", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Algorithmen und Datenstrukturen 2", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3d7abf92-a7e5-5c8e-9946-efe251fd87a6" + } + ], + "type": "assessment", + "uid": "25cedfbb-873a-50ef-a539-bc3714c41376", + "origin": { + "indexed": "2022-02-10T10:08:58.883Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 3, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Algorithmen und Datenstrukturen 2", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Algorithmen und Datenstrukturen 2", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3d7abf92-a7e5-5c8e-9946-efe251fd87a6" + } + ], + "type": "assessment", + "uid": "354dde99-c7d6-587b-a9eb-6f4e1259fdea", + "origin": { + "indexed": "2022-02-10T10:08:58.884Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 4.5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "2.0", + "name": "Automaten und Rechnerarchitekturen 1", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Automaten und Rechnerarchitekturen", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "fba77601-4028-58e0-bdd5-4b0c09eaba9b" + } + ], + "type": "assessment", + "uid": "2338dd1b-9209-56d6-a78c-f6b9e9798da2", + "origin": { + "indexed": "2022-02-10T10:08:58.886Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Informatik", + "type": "course of study", + "uid": "e6713da3-0c02-50b2-8ead-fd504390e797" + }, + "grade": "5.0", + "name": "Programmierung von Datenbanken", + "status": "nicht bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 16.5, + "categories": ["university assessment"], + "grade": "2.28", + "name": "Basismodule", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "3de4af04-21b1-5534-9386-24ddaad8f0cd" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Programmierung von Datenbanken", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "1955058e-bcf7-5137-b7bd-367bc90c9a00" + } + ], + "type": "assessment", + "uid": "e7cf84bc-5923-56d8-a68b-b09e5235666c", + "origin": { + "indexed": "2022-02-10T10:08:58.888Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Mathematik", + "type": "course of study", + "uid": "3df383bd-ee44-5cff-8fae-8f5b67048062" + }, + "grade": "2.0", + "name": "Analysis 2", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 4, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden ", + "name": "Pflichtbereich", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "30c0bc07-7cb5-51e1-81fa-e5c98a30e874" + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden", + "name": "Analysis 2", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "45b06996-4087-5dd0-93c7-6e8c1c123752" + } + ], + "type": "assessment", + "uid": "45e8a520-9283-5c97-9017-5d188375ace1", + "origin": { + "indexed": "2022-02-10T10:08:58.895Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 4, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Mathematik", + "type": "course of study", + "uid": "3df383bd-ee44-5cff-8fae-8f5b67048062" + }, + "grade": "bestanden", + "name": "Einführung in die computerorientierte Mathematik", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 4, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden ", + "name": "Pflichtbereich", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "30c0bc07-7cb5-51e1-81fa-e5c98a30e874" + }, + { + "attempt": 1, + "ects": 9, + "categories": ["university assessment"], + "grade": "1.7", + "name": "Einführung in die computerorientierte Mathematik", + "status": "bestanden", + "type": "assessment", + "uid": "f4ed5cd4-de5a-51fa-b9b8-6cc34cdf3a2b" + } + ], + "type": "assessment", + "uid": "a46c1ff7-b1d8-5418-b4f0-c057314e1e74", + "origin": { + "indexed": "2022-02-10T10:08:58.897Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Bachelor", + "name": "Mathematik", + "type": "course of study", + "uid": "3df383bd-ee44-5cff-8fae-8f5b67048062" + }, + "grade": "1.7", + "name": "Einführung in die computerorientierte Mathematik", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 4, + "categories": ["university assessment"], + "grade": "Prüfung vorhanden ", + "name": "Pflichtbereich", + "status": "Prüfung vorhanden", + "type": "assessment", + "uid": "30c0bc07-7cb5-51e1-81fa-e5c98a30e874" + }, + { + "attempt": 1, + "ects": 9, + "categories": ["university assessment"], + "grade": "1.7", + "name": "Einführung in die computerorientierte Mathematik", + "status": "bestanden", + "type": "assessment", + "uid": "f4ed5cd4-de5a-51fa-b9b8-6cc34cdf3a2b" + } + ], + "type": "assessment", + "uid": "c5e7f1e1-7659-5604-8724-20dc02f038d5", + "origin": { + "indexed": "2022-02-10T10:08:58.897Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 2, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Auflage 1", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 7, + "categories": ["university assessment"], + "grade": "2.3", + "name": "Auflagen", + "status": "bestanden", + "type": "assessment", + "uid": "4fdff0f5-9607-56ae-b259-432ca0e90561" + } + ], + "type": "assessment", + "uid": "2089da55-576d-5475-a92e-af62cd030105", + "origin": { + "indexed": "2022-02-10T10:08:58.905Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "2.3", + "name": "Auflage 2", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 7, + "categories": ["university assessment"], + "grade": "2.3", + "name": "Auflagen", + "status": "bestanden", + "type": "assessment", + "uid": "4fdff0f5-9607-56ae-b259-432ca0e90561" + } + ], + "type": "assessment", + "uid": "8d135f4c-50a2-5b8a-ba53-e064599f14d3", + "origin": { + "indexed": "2022-02-10T10:08:58.905Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 9, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "2.3", + "name": "Algebraische Geometrie 1", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 13, + "categories": ["university assessment"], + "grade": "1.9", + "name": "Algebraische Geometrie", + "status": "bestanden", + "type": "assessment", + "uid": "44ec2aac-e649-5bdc-8ce1-9c0a1625bb2c" + } + ], + "type": "assessment", + "uid": "1bbc6a21-bd17-5261-8c5a-a42cc36130af", + "origin": { + "indexed": "2022-02-10T10:08:58.911Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 4, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "1.3", + "name": "Seminar Algebraische Geometrie", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 13, + "categories": ["university assessment"], + "grade": "1.9", + "name": "Algebraische Geometrie", + "status": "bestanden", + "type": "assessment", + "uid": "44ec2aac-e649-5bdc-8ce1-9c0a1625bb2c" + } + ], + "type": "assessment", + "uid": "f69d8c2a-7caa-5656-9e53-9d0f7383f4b8", + "origin": { + "indexed": "2022-02-10T10:08:58.911Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "1.7", + "name": "Algebraische Geometrie II", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "1.7", + "name": "Algebraische Geometrie", + "status": "bestanden", + "type": "assessment", + "uid": "7daa9f83-e96d-59e6-a239-56ed5507b101" + } + ], + "type": "assessment", + "uid": "64857690-f17a-5a5f-b2dc-810035bcd7d7", + "origin": { + "indexed": "2022-02-10T10:08:58.914Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "2.0", + "name": "Gebäude", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "2.0", + "name": "Lineare algebraische Gruppen", + "status": "bestanden", + "type": "assessment", + "uid": "4872413c-836a-5330-88af-fa0188283d56" + } + ], + "type": "assessment", + "uid": "9677491c-7987-5cc5-af73-fa7a5037a07c", + "origin": { + "indexed": "2022-02-10T10:08:58.917Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "2.3", + "name": "Poendliche Gruppen", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "2.3", + "name": "Algebraische Zahlentheorie", + "status": "bestanden", + "type": "assessment", + "uid": "6da0189e-cf3e-5ba6-be1b-3a73c773c0c4" + } + ], + "type": "assessment", + "uid": "340c0511-823d-5d0c-9e00-1a89f13e52cf", + "origin": { + "indexed": "2022-02-10T10:08:58.920Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "2.0", + "name": "Triangulierungen", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "2.0", + "name": "Diskrete Geometrie und algebraische Kombinatorik", + "status": "bestanden", + "type": "assessment", + "uid": "65224543-965d-5ba8-b542-3e77f56ed33e" + } + ], + "type": "assessment", + "uid": "fcda5951-2dc9-5df9-bebc-d889c38a637e", + "origin": { + "indexed": "2022-02-10T10:08:58.923Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "3.0", + "name": "Zufällige Dynamische Systeme", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "3.0", + "name": "Dynamische Systeme", + "status": "bestanden", + "type": "assessment", + "uid": "04a422ff-3001-5231-addb-f122130435e8" + } + ], + "type": "assessment", + "uid": "989d58bb-a2d5-5b79-a580-f1826646c5d7", + "origin": { + "indexed": "2022-02-10T10:08:58.927Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "1.3", + "name": "Lin. und nichtlin. einparametrige Halbgruppen", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "1.3", + "name": "Fortgeschrittene Funktionsanalysis", + "status": "bestanden", + "type": "assessment", + "uid": "4a22debb-a541-58b6-9e36-7b8fe2ff99c9" + } + ], + "type": "assessment", + "uid": "6b2701bf-00b8-56b6-9a30-9608ecb67e77", + "origin": { + "indexed": "2022-02-10T10:08:58.930Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "1.3", + "name": "Schwache Konvergenz", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "1.3", + "name": "Stochastik", + "status": "bestanden", + "type": "assessment", + "uid": "47d78cce-0dd0-5570-ac07-193fc58a9831" + } + ], + "type": "assessment", + "uid": "1e0954fe-59ef-5edb-90d9-892da1ed8ff4", + "origin": { + "indexed": "2022-02-10T10:08:58.934Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "2.7", + "name": "Algebraische Topologie II", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "2.7", + "name": "Topologie", + "status": "bestanden", + "type": "assessment", + "uid": "124a1e54-45c5-5140-bdb8-23e56e7f501b" + } + ], + "type": "assessment", + "uid": "e8e81454-76fa-5ed8-b737-b37e771b9a53", + "origin": { + "indexed": "2022-02-10T10:08:58.939Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Anleitung zur Statistischen Beratung", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "bestanden ", + "name": "Ergänzungsmodul", + "status": "bestanden", + "type": "assessment", + "uid": "9abe75e5-ea4a-57f4-a69d-1260e62f2f91" + } + ], + "type": "assessment", + "uid": "0361bb70-a95e-5720-a82d-89b29124cd23", + "origin": { + "indexed": "2022-02-10T10:08:58.942Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 2, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Präsentation zum Statistischen Praktikum", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "bestanden ", + "name": "Ergänzungsmodul", + "status": "bestanden", + "type": "assessment", + "uid": "9abe75e5-ea4a-57f4-a69d-1260e62f2f91" + } + ], + "type": "assessment", + "uid": "c6c61f74-c872-5864-9e5c-62ca6fe35785", + "origin": { + "indexed": "2022-02-10T10:08:58.942Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Anleitung zur wissenschaftlichen Arbeit", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "grade": "bestanden ", + "name": "Anleitung zum wissenschaftlichen Arbeiten", + "status": "bestanden", + "type": "assessment", + "uid": "4dfc3123-f100-5bb7-8c72-b1985e3f1bce" + } + ], + "type": "assessment", + "uid": "deacc78d-892e-5710-b250-a5413aa2fe3c", + "origin": { + "indexed": "2022-02-10T10:08:58.945Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "2.3", + "name": "System Erde", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 24, + "categories": ["university assessment"], + "grade": "1.8", + "name": "Geowissenschaften: Mineralogie und Kristallographie", + "status": "bestanden", + "type": "assessment", + "uid": "aafe7538-64a8-5388-bb36-02dd65539d45" + }, + { + "attempt": 1, + "ects": 7, + "categories": ["university assessment"], + "grade": "2.3", + "name": "Geowissenschaften 1", + "status": "bestanden", + "type": "assessment", + "uid": "a2836507-9a8d-5e52-b4cb-836c81f1faab" + } + ], + "type": "assessment", + "uid": "aeda34cc-f10b-54ca-a8f9-3aca3aa5e1a5", + "origin": { + "indexed": "2022-02-10T10:08:58.949Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 2, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Geländeübung", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 24, + "categories": ["university assessment"], + "grade": "1.8", + "name": "Geowissenschaften: Mineralogie und Kristallographie", + "status": "bestanden", + "type": "assessment", + "uid": "aafe7538-64a8-5388-bb36-02dd65539d45" + }, + { + "attempt": 1, + "ects": 7, + "categories": ["university assessment"], + "grade": "2.3", + "name": "Geowissenschaften 1", + "status": "bestanden", + "type": "assessment", + "uid": "a2836507-9a8d-5e52-b4cb-836c81f1faab" + } + ], + "type": "assessment", + "uid": "e2b74321-ea67-59f9-a3ff-8b22adb486fa", + "origin": { + "indexed": "2022-02-10T10:08:58.949Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "3.0", + "name": "Geomaterialien: Minerale", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 24, + "categories": ["university assessment"], + "grade": "1.8", + "name": "Geowissenschaften: Mineralogie und Kristallographie", + "status": "bestanden", + "type": "assessment", + "uid": "aafe7538-64a8-5388-bb36-02dd65539d45" + }, + { + "attempt": 1, + "ects": 6, + "categories": ["university assessment"], + "grade": "2.3", + "name": "Geomaterialien", + "status": "bestanden", + "type": "assessment", + "uid": "790a165b-f992-58d3-8cfa-00aa50d01546" + } + ], + "type": "assessment", + "uid": "d6ddf1b7-856f-5eb7-a31a-b5e87a6d213d", + "origin": { + "indexed": "2022-02-10T10:08:58.951Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "1.7", + "name": "Geomaterialien: Gesteine", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 24, + "categories": ["university assessment"], + "grade": "1.8", + "name": "Geowissenschaften: Mineralogie und Kristallographie", + "status": "bestanden", + "type": "assessment", + "uid": "aafe7538-64a8-5388-bb36-02dd65539d45" + }, + { + "attempt": 1, + "ects": 6, + "categories": ["university assessment"], + "grade": "2.3", + "name": "Geomaterialien", + "status": "bestanden", + "type": "assessment", + "uid": "790a165b-f992-58d3-8cfa-00aa50d01546" + } + ], + "type": "assessment", + "uid": "cfe44a6d-51bd-5ddc-a86d-5259bf65079c", + "origin": { + "indexed": "2022-02-10T10:08:58.951Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Geophysik 1", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 24, + "categories": ["university assessment"], + "grade": "1.8", + "name": "Geowissenschaften: Mineralogie und Kristallographie", + "status": "bestanden", + "type": "assessment", + "uid": "aafe7538-64a8-5388-bb36-02dd65539d45" + }, + { + "attempt": 1, + "ects": 7, + "categories": ["university assessment"], + "grade": "1.0", + "name": "Geophysik", + "status": "bestanden", + "type": "assessment", + "uid": "34f636c7-26d0-5ba9-925f-46e3e2ca252f" + } + ], + "type": "assessment", + "uid": "fd662afe-0614-52d9-8299-fd10e3fc5824", + "origin": { + "indexed": "2022-02-10T10:08:58.954Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 4, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Geophysik 2", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 24, + "categories": ["university assessment"], + "grade": "1.8", + "name": "Geowissenschaften: Mineralogie und Kristallographie", + "status": "bestanden", + "type": "assessment", + "uid": "aafe7538-64a8-5388-bb36-02dd65539d45" + }, + { + "attempt": 1, + "ects": 7, + "categories": ["university assessment"], + "grade": "1.0", + "name": "Geophysik", + "status": "bestanden", + "type": "assessment", + "uid": "34f636c7-26d0-5ba9-925f-46e3e2ca252f" + } + ], + "type": "assessment", + "uid": "ace3117b-65df-5d83-9d4d-492adfffe4db", + "origin": { + "indexed": "2022-02-10T10:08:58.954Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 0, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "1.0", + "name": "Modulprüfung Geophysik", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 24, + "categories": ["university assessment"], + "grade": "1.8", + "name": "Geowissenschaften: Mineralogie und Kristallographie", + "status": "bestanden", + "type": "assessment", + "uid": "aafe7538-64a8-5388-bb36-02dd65539d45" + }, + { + "attempt": 1, + "ects": 7, + "categories": ["university assessment"], + "grade": "1.0", + "name": "Geophysik", + "status": "bestanden", + "type": "assessment", + "uid": "34f636c7-26d0-5ba9-925f-46e3e2ca252f" + } + ], + "type": "assessment", + "uid": "b02fc43f-39a3-5d61-bb08-94c7acc3b505", + "origin": { + "indexed": "2022-02-10T10:08:58.954Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 4, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Seismologie", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 24, + "categories": ["university assessment"], + "grade": "1.8", + "name": "Geowissenschaften: Mineralogie und Kristallographie", + "status": "bestanden", + "type": "assessment", + "uid": "aafe7538-64a8-5388-bb36-02dd65539d45" + }, + { + "attempt": 1, + "ects": 4, + "categories": ["university assessment"], + "grade": "bestanden", + "name": "Vertiefung Geophysik: Seismologie", + "status": "bestanden", + "type": "assessment", + "uid": "5243616e-250e-5dc7-9571-d03668ee8c4f" + } + ], + "type": "assessment", + "uid": "0d234944-1973-5cf4-947d-24b9e0c83b53", + "origin": { + "indexed": "2022-02-10T10:08:58.955Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 2, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Oberseminar", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "bestanden ", + "name": "Kolloquiumsmodul", + "status": "bestanden", + "type": "assessment", + "uid": "2b156923-46d0-507c-84b2-a58c7ac72922" + } + ], + "type": "assessment", + "uid": "41854dbe-fb03-5529-a581-a81c283bb33d", + "origin": { + "indexed": "2022-02-10T10:08:58.959Z", + "name": "QIS/HIS", + "type": "remote" + } + }, + { + "attempt": 1, + "ects": 3, + "categories": ["university assessment"], + "courseOfStudy": { + "academicDegree": "Master", + "name": "Mathematik", + "type": "course of study", + "uid": "72324d64-ff69-5ee1-a1a3-62e4c6a3e5e1" + }, + "grade": "bestanden", + "name": "Vortrag zur Masterarbeit", + "status": "bestanden", + "superAssessments": [ + { + "attempt": 1, + "ects": 5, + "categories": ["university assessment"], + "grade": "bestanden ", + "name": "Kolloquiumsmodul", + "status": "bestanden", + "type": "assessment", + "uid": "2b156923-46d0-507c-84b2-a58c7ac72922" + } + ], + "type": "assessment", + "uid": "685b635b-b3c2-56b0-81d6-cebbf5ca19ae", + "origin": { + "indexed": "2022-02-10T10:08:58.959Z", + "name": "QIS/HIS", + "type": "remote" + } + } + ] +} diff --git a/frontend/app/src/app/modules/assessments/assessments.module.ts b/frontend/app/src/app/modules/assessments/assessments.module.ts new file mode 100644 index 00000000..a6eb1373 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/assessments.module.ts @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {NgModule} from '@angular/core'; +import {AssessmentListItemComponent} from './types/assessment/assessment-list-item.component'; +import {AssessmentBaseInfoComponent} from './types/assessment/assessment-base-info.component'; +import {AssessmentDetailComponent} from './types/assessment/assessment-detail.component'; +import {CommonModule} from '@angular/common'; +import {FormsModule} from '@angular/forms'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {DataModule} from '../data/data.module'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {CourseOfStudyAssessmentComponent} from './types/course-of-study/course-of-study-assessment.component'; +import {AssessmentsPageComponent} from './page/assessments-page.component'; +import {RouterModule} from '@angular/router'; +import {AuthGuardService} from '../auth/auth-guard.service'; +import {MomentModule} from 'ngx-moment'; +import {AssessmentsListItemComponent} from './list/assessments-list-item.component'; +import {AssessmentsDataListComponent} from './list/assessments-data-list.component'; +import {AssessmentsDetailComponent} from './detail/assessments-detail.component'; +import {AssessmentsProvider} from './assessments.provider'; +import {AssessmentsSimpleDataListComponent} from './list/assessments-simple-data-list.component'; +import {ProtectedRoutes} from '../auth/protected.routes'; +import {AssessmentsTreeListComponent} from './list/assessments-tree-list.component'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; +import {UtilModule} from '../../util/util.module'; + +const routes: ProtectedRoutes = [ + { + path: 'assessments', + component: AssessmentsPageComponent, + data: {authProvider: 'default'}, + canActivate: [AuthGuardService], + }, + { + path: 'assessments/detail/:uid', + component: AssessmentsDetailComponent, + data: {authProvider: 'default'}, + canActivate: [AuthGuardService], + }, +]; + +@NgModule({ + declarations: [ + AssessmentListItemComponent, + AssessmentBaseInfoComponent, + AssessmentDetailComponent, + AssessmentsListItemComponent, + AssessmentsTreeListComponent, + CourseOfStudyAssessmentComponent, + AssessmentsPageComponent, + AssessmentsDataListComponent, + AssessmentsDetailComponent, + AssessmentsSimpleDataListComponent, + ], + imports: [ + CommonModule, + FormsModule, + IonIconModule, + IonicModule, + RouterModule.forChild(routes), + TranslateModule, + DataModule, + ThingTranslateModule, + MomentModule, + UtilModule, + ], + providers: [AssessmentsProvider], + exports: [], +}) +export class AssessmentsModule {} diff --git a/frontend/app/src/app/modules/assessments/assessments.provider.ts b/frontend/app/src/app/modules/assessments/assessments.provider.ts new file mode 100644 index 00000000..5fde0e6e --- /dev/null +++ b/frontend/app/src/app/modules/assessments/assessments.provider.ts @@ -0,0 +1,115 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {ConfigProvider} from '../config/config.provider'; +import {SCAssessment, SCUuid} from '@openstapps/core'; +import {DefaultAuthService} from '../auth/default-auth.service'; +import {HttpClient} from '@angular/common/http'; +import {uniqBy} from '../../_helpers/collections/uniq'; +import {keyBy} from '../../_helpers/collections/key-by'; + +/** + * + */ +export function toAssessmentMap(data: SCAssessment[]): Record { + return keyBy( + uniqBy( + [ + ...data, + ...data.flatMap( + assessment => + [...(assessment.superAssessments ?? [])] + .reverse() + .map((superAssessment, index, array) => { + const superAssessmentCopy = { + ...superAssessment, + } as SCAssessment; + superAssessmentCopy.origin = assessment.origin; + superAssessmentCopy.superAssessments = array.slice(index + 1).reverse(); + return superAssessmentCopy; + }) ?? [], + ), + ] as SCAssessment[], + it => it.uid, + ), + it => it.uid, + ); +} + +@Injectable({ + providedIn: 'root', +}) +export class AssessmentsProvider { + assessmentPath = 'assessments'; + + // usually this wouldn't be necessary, but the assessment service + // is very aggressive about too many requests being made to the server + cache?: Promise; + + assessments: Promise>; + + cacheTimestamp = 0; + + // 15 minutes + cacheMaxAge = 15 * 60 * 1000; + + constructor( + readonly configProvider: ConfigProvider, + readonly defaultAuth: DefaultAuthService, + readonly http: HttpClient, + ) {} + + async getAssessment(uid: SCUuid, accessToken?: string | null, forceFetch = false): Promise { + await this.getAssessments(accessToken, forceFetch); + + return (await this.assessments)[uid]; + } + + async getAssessments(accessToken?: string | null, forceFetch = false): Promise { + // again, this is a hack to get around the fact that the assessment service + // is very aggressive how many requests you can make, so it can happen + // during development that simply by reloading pages over and over again + // the assessment service will block you + if (accessToken === 'mock' && !this.cache) { + this.cacheTimestamp = Date.now(); + this.cache = import('./assessment-mock-data.json').then(it => it.data as SCAssessment[]); + this.assessments = this.cache.then(toAssessmentMap); + } + + if (this.cache && !forceFetch && Date.now() - this.cacheTimestamp < this.cacheMaxAge) { + return this.cache; + } + + const url = this.configProvider.config.app.features.extern?.hisometry.url; + if (!url) throw new Error('Config lacks url for hisometry'); + + this.cache = this.http + .get<{data: SCAssessment[]}>(`${url}/${this.assessmentPath}`, { + headers: { + Authorization: `Bearer ${accessToken ?? (await this.defaultAuth.getValidToken()).accessToken}`, + }, + }) + .toPromise() + .then(it => { + this.cacheTimestamp = Date.now(); + + return it?.data ?? []; + }); + this.assessments = this.cache.then(toAssessmentMap); + + return this.cache; + } +} diff --git a/frontend/app/src/app/modules/assessments/detail/assessments-detail.component.ts b/frontend/app/src/app/modules/assessments/detail/assessments-detail.component.ts new file mode 100644 index 00000000..bca37c5e --- /dev/null +++ b/frontend/app/src/app/modules/assessments/detail/assessments-detail.component.ts @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input, OnDestroy, OnInit, ViewChild} from '@angular/core'; +import {ActivatedRoute} from '@angular/router'; +import {AssessmentsProvider} from '../assessments.provider'; +import {DataDetailComponent, ExternalDataLoadEvent} from '../../data/detail/data-detail.component'; +import {NavController, ViewWillEnter} from '@ionic/angular'; +import {Subscription} from 'rxjs'; +import {DataRoutingService} from '../../data/data-routing.service'; +import {SCAssessment} from '@openstapps/core'; + +@Component({ + selector: 'assessments-detail', + templateUrl: 'assessments-detail.html', + styleUrls: ['assessments-detail.scss'], +}) +export class AssessmentsDetailComponent implements ViewWillEnter, OnInit, OnDestroy { + constructor( + readonly route: ActivatedRoute, + readonly assessmentsProvider: AssessmentsProvider, + readonly dataRoutingService: DataRoutingService, + readonly navController: NavController, + readonly activatedRoute: ActivatedRoute, + ) {} + + subscriptions: Subscription[] = []; + + @Input() dataPathAutoRouting = true; + + @ViewChild(DataDetailComponent) + detailComponent: DataDetailComponent; + + item: SCAssessment; + + ngOnInit() { + if (!this.dataPathAutoRouting) return; + this.subscriptions.push( + this.dataRoutingService.pathSelectListener().subscribe(item => { + void this.navController.navigateBack(['assessments', 'detail', item.uid], { + queryParams: { + token: this.activatedRoute.snapshot.queryParamMap.get('token'), + }, + }); + }), + ); + } + + ngOnDestroy() { + for (const sub of this.subscriptions) sub.unsubscribe(); + } + + getItem(event: ExternalDataLoadEvent) { + this.assessmentsProvider + .getAssessment(event.uid, this.route.snapshot.queryParamMap.get('token'), event.forceReload) + .then(assessment => { + this.item = assessment; + event.resolve(this.item); + }); + } + + async ionViewWillEnter() { + await this.detailComponent.ionViewWillEnter(); + } +} diff --git a/frontend/app/src/app/modules/assessments/detail/assessments-detail.html b/frontend/app/src/app/modules/assessments/detail/assessments-detail.html new file mode 100644 index 00000000..1ae59538 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/detail/assessments-detail.html @@ -0,0 +1,32 @@ + + + + + + + {{ 'data.detail.TITLE' | translate }} + + + + + + + diff --git a/frontend/app/src/app/modules/assessments/detail/assessments-detail.scss b/frontend/app/src/app/modules/assessments/detail/assessments-detail.scss new file mode 100644 index 00000000..5805e43b --- /dev/null +++ b/frontend/app/src/app/modules/assessments/detail/assessments-detail.scss @@ -0,0 +1,18 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +stapps-data-detail { + height: 100%; +} diff --git a/frontend/app/src/app/modules/assessments/list/assessments-data-list.component.ts b/frontend/app/src/app/modules/assessments/list/assessments-data-list.component.ts new file mode 100644 index 00000000..49a42b1b --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-data-list.component.ts @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, EventEmitter, Input, Output} from '@angular/core'; +import {SCThings} from '@openstapps/core'; +import {Observable} from 'rxjs'; + +@Component({ + selector: 'assessments-data-list', + templateUrl: './assessments-data-list.html', + styleUrls: ['./assessments-data-list.scss'], +}) +export class AssessmentsDataListComponent { + /** + * All SCThings to display + */ + @Input() items?: SCThings[]; + + /** + * Output binding to trigger pagination fetch + */ + // eslint-disable-next-line @angular-eslint/no-output-rename + @Output('loadmore') loadMore = new EventEmitter(); + + /** + * Emits when scroll view should reset to top + */ + @Input() resetToTop?: Observable; + + /** + * Indicates whether the list is to display SCThings of a single type + */ + @Input() singleType = false; + + /** + * Signalizes that the data is being loaded + */ + @Input() loading = true; +} diff --git a/frontend/app/src/app/modules/assessments/list/assessments-data-list.html b/frontend/app/src/app/modules/assessments/list/assessments-data-list.html new file mode 100644 index 00000000..e95f793c --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-data-list.html @@ -0,0 +1,29 @@ + + + + + + + + + + diff --git a/frontend/app/src/app/modules/assessments/list/assessments-data-list.scss b/frontend/app/src/app/modules/assessments/list/assessments-data-list.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/assessments/list/assessments-list-item.component.ts b/frontend/app/src/app/modules/assessments/list/assessments-list-item.component.ts new file mode 100644 index 00000000..425f7761 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-list-item.component.ts @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {SCThings} from '@openstapps/core'; + +@Component({ + selector: 'assessments-list-item', + templateUrl: 'assessments-list-item.html', + styleUrls: ['assessments-list-item.scss'], +}) +export class AssessmentsListItemComponent { + /** + * Whether the list item should show a thumbnail + */ + @Input() hideThumbnail = false; + + /** + * An item to show + */ + @Input() item: SCThings; +} diff --git a/frontend/app/src/app/modules/assessments/list/assessments-list-item.html b/frontend/app/src/app/modules/assessments/list/assessments-list-item.html new file mode 100644 index 00000000..4c48af0a --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-list-item.html @@ -0,0 +1,25 @@ + + + + + + + diff --git a/frontend/app/src/app/modules/assessments/list/assessments-list-item.scss b/frontend/app/src/app/modules/assessments/list/assessments-list-item.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/assessments/list/assessments-simple-data-list.component.ts b/frontend/app/src/app/modules/assessments/list/assessments-simple-data-list.component.ts new file mode 100644 index 00000000..f78afe99 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-simple-data-list.component.ts @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input, OnDestroy, OnInit} from '@angular/core'; +import {SCThings} from '@openstapps/core'; +import {Subscription} from 'rxjs'; +import {DataRoutingService} from '../../data/data-routing.service'; +import {ActivatedRoute, Router} from '@angular/router'; + +@Component({ + selector: 'assessments-simple-data-list', + templateUrl: 'assessments-simple-data-list.html', + styleUrls: ['assessments-simple-data-list.scss'], +}) +export class AssessmentsSimpleDataListComponent implements OnInit, OnDestroy { + /** + * All SCThings to display + */ + _items?: Promise; + + /** + * Indicates whether or not the list is to display SCThings of a single type + */ + @Input() singleType = false; + + /** + * List header + */ + @Input() listHeader?: string; + + @Input() set items(items: SCThings[] | undefined) { + this._items = new Promise(resolve => resolve(items)); + } + + subscriptions: Subscription[] = []; + + constructor( + readonly dataRoutingService: DataRoutingService, + readonly router: Router, + readonly activatedRoute: ActivatedRoute, + ) {} + + ngOnInit() { + this.subscriptions.push( + this.dataRoutingService.itemSelectListener().subscribe(thing => { + void this.router.navigate(['assessments', 'detail', thing.uid], { + queryParams: { + token: this.activatedRoute.snapshot.queryParamMap.get('token'), + }, + }); + }), + ); + } + + ngOnDestroy() { + for (const subscription of this.subscriptions) subscription.unsubscribe(); + } +} diff --git a/frontend/app/src/app/modules/assessments/list/assessments-simple-data-list.html b/frontend/app/src/app/modules/assessments/list/assessments-simple-data-list.html new file mode 100644 index 00000000..eafa8dee --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-simple-data-list.html @@ -0,0 +1,25 @@ + + + + + + + diff --git a/frontend/app/src/app/modules/assessments/list/assessments-simple-data-list.scss b/frontend/app/src/app/modules/assessments/list/assessments-simple-data-list.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/assessments/list/assessments-tree-list.component.ts b/frontend/app/src/app/modules/assessments/list/assessments-tree-list.component.ts new file mode 100644 index 00000000..55677d85 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-tree-list.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {SCThings} from '@openstapps/core'; + +@Component({ + selector: 'assessments-tree-list', + templateUrl: 'assessments-tree-list.html', + styleUrls: ['assessments-tree-list.scss'], +}) +export class AssessmentsTreeListComponent { + @Input() items?: Promise; + + @Input() singleType = false; + + @Input() groupingKey: string; +} diff --git a/frontend/app/src/app/modules/assessments/list/assessments-tree-list.html b/frontend/app/src/app/modules/assessments/list/assessments-tree-list.html new file mode 100644 index 00000000..412a33d3 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-tree-list.html @@ -0,0 +1,20 @@ + + + + + + + diff --git a/frontend/app/src/app/modules/assessments/list/assessments-tree-list.scss b/frontend/app/src/app/modules/assessments/list/assessments-tree-list.scss new file mode 100644 index 00000000..7f595d7f --- /dev/null +++ b/frontend/app/src/app/modules/assessments/list/assessments-tree-list.scss @@ -0,0 +1,14 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ diff --git a/frontend/app/src/app/modules/assessments/page/assessments-page.component.ts b/frontend/app/src/app/modules/assessments/page/assessments-page.component.ts new file mode 100644 index 00000000..a5db3129 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/page/assessments-page.component.ts @@ -0,0 +1,110 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {AfterViewInit, Component, OnDestroy, OnInit, ViewChild} from '@angular/core'; +import {AssessmentsProvider} from '../assessments.provider'; +import {SCAssessment, SCCourseOfStudy} from '@openstapps/core'; +import {ActivatedRoute, Router} from '@angular/router'; +import {Subscription} from 'rxjs'; +import {NGXLogger} from 'ngx-logger'; +import {materialSharedAxisX} from '../../../animation/material-motion'; +import {SharedAxisChoreographer} from '../../../animation/animation-choreographer'; +import {DataProvider, DataScope} from '../../data/data.provider'; +import {DataRoutingService} from '../../data/data-routing.service'; +import {groupBy} from '../../../_helpers/collections/group-by'; +import {mapValues} from '../../../_helpers/collections/map-values'; + +@Component({ + selector: 'app-assessments-page', + templateUrl: 'assessments-page.html', + styleUrls: ['assessments-page.scss'], + animations: [materialSharedAxisX], +}) +export class AssessmentsPageComponent implements OnInit, AfterViewInit, OnDestroy { + assessments: Promise< + Record< + string, + { + assessments: SCAssessment[]; + courseOfStudy: Promise; + } + > + >; + + assessmentKeys: string[] = []; + + routingSubscription: Subscription; + + @ViewChild('segment') segmentView!: HTMLIonSegmentElement; + + sharedAxisChoreographer: SharedAxisChoreographer = new SharedAxisChoreographer('', []); + + constructor( + readonly logger: NGXLogger, + readonly assessmentsProvider: AssessmentsProvider, + readonly dataProvider: DataProvider, + readonly activatedRoute: ActivatedRoute, + readonly dataRoutingService: DataRoutingService, + readonly router: Router, + ) {} + + ngAfterViewInit() { + this.segmentView.value = this.sharedAxisChoreographer.currentValue; + } + + ngOnDestroy() { + this.routingSubscription.unsubscribe(); + } + + ngOnInit() { + this.routingSubscription = this.dataRoutingService.itemSelectListener().subscribe(thing => { + void this.router.navigate(['assessments', 'detail', thing.uid], { + queryParams: { + token: this.activatedRoute.snapshot.queryParamMap.get('token'), + }, + }); + }); + + this.activatedRoute.queryParams.subscribe(parameters => { + try { + this.assessments = this.assessmentsProvider + .getAssessments(parameters.token) + .then(assessments => groupBy(assessments, it => it.courseOfStudy?.uid ?? 'unknown')) + .then(it => { + this.assessmentKeys = Object.keys(it); + this.sharedAxisChoreographer = new SharedAxisChoreographer( + this.assessmentKeys[0], + this.assessmentKeys, + ); + if (this.segmentView) { + this.segmentView.value = this.sharedAxisChoreographer.currentValue; + } + return it; + }) + .then(groups => + mapValues(groups, (group, uid) => ({ + assessments: group, + courseOfStudy: this.dataProvider + .get(uid, DataScope.Remote) + .catch(() => group[0].courseOfStudy) as Promise, + })), + ); + } catch (error) { + this.logger.error(error); + this.assessments = Promise.resolve({}); + } + }); + } +} diff --git a/frontend/app/src/app/modules/assessments/page/assessments-page.html b/frontend/app/src/app/modules/assessments/page/assessments-page.html new file mode 100644 index 00000000..aaf1b4ad --- /dev/null +++ b/frontend/app/src/app/modules/assessments/page/assessments-page.html @@ -0,0 +1,59 @@ + + + + + + + + {{ 'assessments.TITLE' | translate }} + + + + + + +
+ + {{ 'name' | thingTranslate: course }} ({{ 'academicDegree' | thingTranslate: course }}) + +
+ + {{ key }} + +
+
+
+ +
+
diff --git a/frontend/app/src/app/modules/assessments/page/assessments-page.scss b/frontend/app/src/app/modules/assessments/page/assessments-page.scss new file mode 100644 index 00000000..babe2811 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/page/assessments-page.scss @@ -0,0 +1,19 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.content { + height: 100%; + padding-inline: 8px; +} diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-base-info.component.ts b/frontend/app/src/app/modules/assessments/types/assessment/assessment-base-info.component.ts new file mode 100644 index 00000000..a37ce95b --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/assessment/assessment-base-info.component.ts @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {SCAssessment} from '@openstapps/core'; + +@Component({ + selector: 'assessment-base-info', + templateUrl: 'assessment-base-info.html', + styleUrls: ['assessment-base-info.scss'], +}) +export class AssessmentBaseInfoComponent { + _item: SCAssessment; + + passed = false; + + @Input() set item(item: SCAssessment) { + this._item = item; + this.passed = !/^(5[,.]0)|FX?$/i.test(item.grade); + } +} diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-base-info.html b/frontend/app/src/app/modules/assessments/types/assessment/assessment-base-info.html new file mode 100644 index 00000000..64a6db29 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/assessment/assessment-base-info.html @@ -0,0 +1,29 @@ + + +{{ + (_item.grade | isNumeric) + ? (_item.grade | numberLocalized: 'minimumFractionDigits:1,maximumFractionDigits:1') + : '' + }} + {{ 'status' | thingTranslate: _item | titlecase }}, + {{ 'attempt' | propertyNameTranslate: _item }} + {{ _item.attempt }} + + + {{ _item.ects }} + {{ 'ects' | propertyNameTranslate: _item }} diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-base-info.scss b/frontend/app/src/app/modules/assessments/types/assessment/assessment-base-info.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.component.ts b/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.component.ts new file mode 100644 index 00000000..3c925200 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.component.ts @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {SCAssessment} from '@openstapps/core'; + +@Component({ + selector: 'assessment-detail', + templateUrl: 'assessment-detail.html', + styleUrls: ['assessment-detail.scss'], +}) +export class AssessmentDetailComponent { + @Input() item: SCAssessment; +} diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.html b/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.html new file mode 100644 index 00000000..9af958e0 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.html @@ -0,0 +1,29 @@ + + + + + + {{ $any('courseOfStudy' | propertyNameTranslate: item) | titlecase }}: + {{ 'name' | thingTranslate: $any(courseOfStudy) }} + ({{ 'academicDegree' | thingTranslate: $any(courseOfStudy) }}) + + + + + + + + diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.scss b/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.scss new file mode 100644 index 00000000..ba814612 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/assessment/assessment-detail.scss @@ -0,0 +1,4 @@ +stapps-data-list { + height: 100px; + width: 100%; +} diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.component.ts b/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.component.ts new file mode 100644 index 00000000..61a937ea --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.component.ts @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {SCAssessment} from '@openstapps/core'; + +@Component({ + selector: 'stapps-assessment-list-item', + templateUrl: './assessment-list-item.html', + styleUrls: ['./assessment-list-item.scss'], +}) +export class AssessmentListItemComponent { + @Input() item: SCAssessment; +} diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.html b/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.html new file mode 100644 index 00000000..0a9b274c --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.html @@ -0,0 +1,22 @@ + + +
+

+ {{ 'name' | thingTranslate: item }} + {{ item.date ? (item.date | amDateFormat) : '' }} +

+ +
diff --git a/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.scss b/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.scss new file mode 100644 index 00000000..ca7454b9 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/assessment/assessment-list-item.scss @@ -0,0 +1,40 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.column { + display: flex; + flex-direction: column; +} + +.item { + height: 72px; +} + +.tree-indicator { + width: 16px; + margin-right: 4px; + padding-left: 1px; +} + +.super-assessments-list { + // prevent the list from hijacking hover overlays + z-index: -1; + + :last-child { + .tree-indicator-after { + display: none; + } + } +} diff --git a/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.component.ts b/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.component.ts new file mode 100644 index 00000000..94a87b63 --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.component.ts @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {SCAssessment, SCCourseOfStudyWithoutReferences} from '@openstapps/core'; + +@Component({ + selector: 'course-of-study-assessment', + templateUrl: 'course-of-study-assessment.html', + styleUrls: ['course-of-study-assessment.scss'], +}) +export class CourseOfStudyAssessmentComponent { + @Input() courseOfStudy: SCCourseOfStudyWithoutReferences | null; + + _assessments: Promise; + + @Input() set assessments(value: SCAssessment[]) { + this._assessments = Promise.resolve(value); + } +} diff --git a/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.html b/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.html new file mode 100644 index 00000000..f0a5b05a --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.html @@ -0,0 +1,23 @@ + + +
+

+ {{ 'assessments.courseOfStudyAssessments.ASSESSMENTS' | translate }} +

+ + + +
diff --git a/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.scss b/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.scss new file mode 100644 index 00000000..ff360eec --- /dev/null +++ b/frontend/app/src/app/modules/assessments/types/course-of-study/course-of-study-assessment.scss @@ -0,0 +1,14 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ diff --git a/frontend/app/src/app/modules/auth/auth-callback/page/auth-callback-page.component.html b/frontend/app/src/app/modules/auth/auth-callback/page/auth-callback-page.component.html new file mode 100644 index 00000000..9b63420a --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth-callback/page/auth-callback-page.component.html @@ -0,0 +1,20 @@ + + +
+

+ {{ 'auth.messages' + '.' + PROVIDER_TYPE + '.' + 'authorizing' | translate }} +

+
diff --git a/frontend/app/src/app/modules/auth/auth-callback/page/auth-callback-page.component.scss b/frontend/app/src/app/modules/auth/auth-callback/page/auth-callback-page.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/auth/auth-callback/page/auth-callback-page.component.ts b/frontend/app/src/app/modules/auth/auth-callback/page/auth-callback-page.component.ts new file mode 100644 index 00000000..3305de70 --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth-callback/page/auth-callback-page.component.ts @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {OnInit, OnDestroy, Component} from '@angular/core'; +import {NavController} from '@ionic/angular'; +import {Router} from '@angular/router'; +import {AuthActions, IAuthAction} from 'ionic-appauth'; +import {Subscription} from 'rxjs'; +import {SCAuthorizationProviderType} from '@openstapps/core'; +import {AuthHelperService} from '../../auth-helper.service'; + +@Component({ + templateUrl: 'auth-callback-page.component.html', + styleUrls: ['auth-callback-page.component.scss'], +}) +export class AuthCallbackPageComponent implements OnInit, OnDestroy { + PROVIDER_TYPE: SCAuthorizationProviderType = 'default'; + + private authEvents: Subscription; + + constructor( + private navCtrl: NavController, + private router: Router, + private authHelper: AuthHelperService, + ) {} + + ngOnInit() { + this.authEvents = this.authHelper + .getProvider(this.PROVIDER_TYPE) + .events$.subscribe((action: IAuthAction) => this.postCallback(action)); + this.authHelper + .getProvider(this.PROVIDER_TYPE) + .authorizationCallback(window.location.origin + this.router.url); + } + + ngOnDestroy() { + this.authEvents.unsubscribe(); + } + + async postCallback(action: IAuthAction) { + if (action.action === AuthActions.SignInSuccess) { + const originPath = await this.authHelper.getOriginPath(); + this.navCtrl.navigateRoot(originPath ?? 'profile'); + this.authHelper.deleteOriginPath(); + } + if (action.action === AuthActions.SignInFailed) { + this.navCtrl.navigateRoot('profile'); + } + } +} diff --git a/frontend/app/src/app/modules/auth/auth-guard.service.ts b/frontend/app/src/app/modules/auth/auth-guard.service.ts new file mode 100644 index 00000000..5abdf5d7 --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth-guard.service.ts @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {CanActivate, NavigationExtras, Router, RouterStateSnapshot} from '@angular/router'; +import {ActivatedProtectedRouteSnapshot} from './protected.routes'; +import {AuthHelperService} from './auth-helper.service'; + +@Injectable({ + providedIn: 'root', +}) +export class AuthGuardService implements CanActivate { + constructor(private authHelper: AuthHelperService, private router: Router) {} + + public async canActivate(route: ActivatedProtectedRouteSnapshot, _state: RouterStateSnapshot) { + if (route.queryParamMap.get('token')) { + return true; + } + + try { + await this.authHelper.getProvider(route.data.authProvider).getValidToken(); + } catch { + const originNavigation = this.router.getCurrentNavigation(); + let extras: NavigationExtras = {}; + if (originNavigation) { + const url = originNavigation.extractedUrl.toString(); + extras = {queryParams: {origin_path: url}}; + } + this.router.navigate(['profile'], extras); + await this.authHelper.getProvider(route.data.authProvider).signIn(); + + return false; + } + + return true; + } +} diff --git a/frontend/app/src/app/modules/auth/auth-helper.service.spec.ts b/frontend/app/src/app/modules/auth/auth-helper.service.spec.ts new file mode 100644 index 00000000..17699f94 --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth-helper.service.spec.ts @@ -0,0 +1,125 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {TestBed} from '@angular/core/testing'; +import {AuthHelperService} from './auth-helper.service'; +import {ConfigProvider} from '../config/config.provider'; +import {StorageProvider} from '../storage/storage.provider'; +import {DefaultAuthService} from './default-auth.service'; +import {Browser} from 'ionic-appauth'; +import {Requestor, StorageBackend} from '@openid/appauth'; +import {TranslateService} from '@ngx-translate/core'; +import {PAIAAuthService} from './paia/paia-auth.service'; +import {LoggerConfig, LoggerModule, NGXLogger} from 'ngx-logger'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {HttpClientModule} from '@angular/common/http'; +import {SimpleBrowser} from '../../util/browser.factory'; + +describe('AuthHelperService', () => { + let authHelperService: AuthHelperService; + const storageProviderSpy = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put', 'search']); + const translateServiceSpy = jasmine.createSpyObj('TranslateService', ['setDefaultLang', 'use']); + const defaultAuthServiceMock = jasmine.createSpyObj('DefaultAuthService', ['init', 'setupConfiguration']); + const paiaAuthServiceMock = jasmine.createSpyObj('PAIAAuthService', ['init', 'setupConfiguration']); + const authHelperServiceMock = jasmine.createSpyObj('AuthHelperService', ['constructor']); + const simpleBrowserMock = jasmine.createSpyObj('SimpleBrowser', ['open']); + const configProvider = jasmine.createSpyObj('ConfigProvider', { + getAnyValue: { + default: { + endpoints: { + mapping: { + id: '$.id', + email: '$.attributes.mailPrimaryAddress', + givenName: '$.attributes.givenName', + familyName: '$.attributes.sn', + name: '$.attributes.sn', + role: '$.attributes.eduPersonPrimaryAffiliation', + studentId: '$.attributes.employeeNumber', + }, + }, + }, + }, + }); + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, LoggerModule], + providers: [ + NGXLogger, + StAppsWebHttpClient, + LoggerConfig, + { + provide: TranslateService, + useValue: translateServiceSpy, + }, + { + provide: StorageProvider, + useValue: storageProviderSpy, + }, + { + provider: DefaultAuthService, + useValue: defaultAuthServiceMock, + }, + { + provider: PAIAAuthService, + useValue: paiaAuthServiceMock, + }, + { + provide: ConfigProvider, + useValue: configProvider, + }, + Browser, + StorageBackend, + Requestor, + { + provider: AuthHelperService, + useValue: authHelperServiceMock, + }, + { + provide: SimpleBrowser, + useValue: simpleBrowserMock, + }, + ], + }); + authHelperService = TestBed.inject(AuthHelperService); + }); + + describe('getUserFromUserInfo', () => { + it('should provide user configuration from userInfo', async () => { + const userConfiguration = authHelperService.getUserFromUserInfo({ + attributes: { + eduPersonPrimaryAffiliation: 'student', + employeeNumber: '123456', + givenName: 'Erika', + mailPrimaryAddress: 'emuster@anyschool.de', + oauthClientId: '123-abc-123', + sn: 'Musterfrau', + uid: 'emuster', + }, + id: 'emuster', + client_id: '123-abc-123', + }); + + expect(userConfiguration).toEqual({ + id: 'emuster', + givenName: 'Erika', + familyName: 'Musterfrau', + name: 'Erika Musterfrau', + email: 'emuster@anyschool.de', + role: 'student', + studentId: '123456', + }); + }); + }); +}); diff --git a/frontend/app/src/app/modules/auth/auth-helper.service.ts b/frontend/app/src/app/modules/auth/auth-helper.service.ts new file mode 100644 index 00000000..0de61a59 --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth-helper.service.ts @@ -0,0 +1,128 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {IPAIAAuthAction} from './paia/paia-auth-action'; +import {AuthActions, IAuthAction} from 'ionic-appauth'; +import {TranslateService} from '@ngx-translate/core'; +import {JSONPath} from 'jsonpath-plus'; +import { + SCAuthorizationProvider, + SCAuthorizationProviderType, + SCUserConfiguration, + SCUserConfigurationMap, +} from '@openstapps/core'; +import {ConfigProvider} from '../config/config.provider'; +import {StorageProvider} from '../storage/storage.provider'; +import {DefaultAuthService} from './default-auth.service'; +import {PAIAAuthService} from './paia/paia-auth.service'; +import {SimpleBrowser} from '../../util/browser.factory'; + +const AUTH_ORIGIN_PATH = 'stapps.auth.origin_path'; + +@Injectable({ + providedIn: 'root', +}) +export class AuthHelperService { + userConfigurationMap: SCUserConfigurationMap; + + constructor( + private translateService: TranslateService, + private configProvider: ConfigProvider, + private storageProvider: StorageProvider, + private defaultAuth: DefaultAuthService, + private paiaAuth: PAIAAuthService, + private browser: SimpleBrowser, + ) { + this.userConfigurationMap = ( + this.configProvider.getAnyValue('auth') as { + default: SCAuthorizationProvider; + } + ).default.endpoints.mapping; + } + + public getAuthMessage(provider: SCAuthorizationProviderType, action: IAuthAction | IPAIAAuthAction) { + let message: string | undefined; + switch (action.action) { + case AuthActions.SignInSuccess: + message = this.translateService.instant(`auth.messages.${provider}.logged_in_success`); + break; + case AuthActions.SignOutSuccess: + message = this.translateService.instant(`auth.messages.${provider}.logged_out_success`); + break; + } + return message; + } + + getUserFromUserInfo(userInfo: object) { + const user: SCUserConfiguration = { + id: '', + name: '', + role: 'student', + }; + for (const key in this.userConfigurationMap) { + user[key as keyof SCUserConfiguration] = JSONPath({ + path: this.userConfigurationMap[key as keyof SCUserConfiguration] as string, + json: userInfo, + preventEval: true, + })[0]; + } + if (user.givenName && user.givenName.length > 0 && user.familyName && user.familyName.length > 0) { + user.name = `${user.givenName} ${user.familyName}`; + } + + return user; + } + + async deleteOriginPath() { + return this.storageProvider.delete(AUTH_ORIGIN_PATH); + } + + async setOriginPath(path: string) { + return this.storageProvider.put(AUTH_ORIGIN_PATH, path); + } + + async getOriginPath() { + let originPath: string; + try { + originPath = await this.storageProvider.get(AUTH_ORIGIN_PATH); + } catch { + return; + } + return originPath; + } + + getProvider( + providerType: B, + ): B extends 'paia' ? PAIAAuthService : DefaultAuthService; + /** + * Provides appropriate auth service instance based on type (string) parameter + */ + getProvider(providerType: SCAuthorizationProviderType): DefaultAuthService | PAIAAuthService { + return providerType === 'paia' + ? (this.paiaAuth as PAIAAuthService) + : (this.defaultAuth as DefaultAuthService); + } + + /** + * Ends browser session by opening endSessionEndpoint URL of the provider + */ + async endBrowserSession(providerType: SCAuthorizationProviderType) { + const endSessionEndpoint = (await this.getProvider(providerType).configuration).endSessionEndpoint ?? ''; + if (endSessionEndpoint.length > 0) { + this.browser.open(new URL(endSessionEndpoint).href); + } + } +} diff --git a/frontend/app/src/app/modules/auth/auth-paths.ts b/frontend/app/src/app/modules/auth/auth-paths.ts new file mode 100644 index 00000000..3471c846 --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth-paths.ts @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {SCAuthorizationProviderType} from '@openstapps/core'; + +export const authPaths: { + [key in SCAuthorizationProviderType]: {redirect_path: string}; +} = { + default: { + redirect_path: 'auth/callback', + }, + paia: { + redirect_path: 'auth/paia/callback', + }, +}; diff --git a/frontend/app/src/app/modules/auth/auth-routing.module.ts b/frontend/app/src/app/modules/auth/auth-routing.module.ts new file mode 100644 index 00000000..d8c5f9e5 --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth-routing.module.ts @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {RouterModule, Routes} from '@angular/router'; +import {NgModule} from '@angular/core'; +import {authPaths} from './auth-paths'; +import {AuthCallbackPageComponent} from './auth-callback/page/auth-callback-page.component'; +import {PAIAAuthCallbackPageComponent} from './paia/auth-callback/page/paiaauth-callback-page.component'; + +const authRoutes: Routes = [ + { + path: authPaths.default.redirect_path, + component: AuthCallbackPageComponent, + }, + { + path: authPaths.paia.redirect_path, + component: PAIAAuthCallbackPageComponent, + }, +]; + +/** + * Module defining routes for auth module + */ +@NgModule({ + exports: [RouterModule], + imports: [RouterModule.forChild(authRoutes)], +}) +export class AuthRoutingModule {} diff --git a/frontend/app/src/app/modules/auth/auth.module.ts b/frontend/app/src/app/modules/auth/auth.module.ts new file mode 100644 index 00000000..17708add --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth.module.ts @@ -0,0 +1,39 @@ +import {NgModule} from '@angular/core'; +import {CommonModule} from '@angular/common'; +import {Platform} from '@ionic/angular'; +import {Requestor, StorageBackend} from '@openid/appauth'; +import {storageFactory} from './factories'; +import {Browser} from 'ionic-appauth'; +import {CapacitorBrowser} from 'ionic-appauth/lib/capacitor'; +import {httpFactory} from './factories/http.factory'; +import {HttpClient} from '@angular/common/http'; +import {AuthRoutingModule} from './auth-routing.module'; +import {TranslateModule} from '@ngx-translate/core'; +import {AuthCallbackPageComponent} from './auth-callback/page/auth-callback-page.component'; +import {PAIAAuthCallbackPageComponent} from './paia/auth-callback/page/paiaauth-callback-page.component'; +import {DefaultAuthService} from './default-auth.service'; +import {PAIAAuthService} from './paia/paia-auth.service'; + +@NgModule({ + declarations: [AuthCallbackPageComponent, PAIAAuthCallbackPageComponent], + imports: [CommonModule, AuthRoutingModule, TranslateModule], + providers: [ + { + provide: StorageBackend, + useFactory: storageFactory, + deps: [Platform], + }, + { + provide: Requestor, + useFactory: httpFactory, + deps: [Platform, HttpClient], + }, + { + provide: Browser, + useClass: CapacitorBrowser, + }, + DefaultAuthService, + PAIAAuthService, + ], +}) +export class AuthModule {} diff --git a/frontend/app/src/app/modules/auth/auth.provider.methods.ts b/frontend/app/src/app/modules/auth/auth.provider.methods.ts new file mode 100644 index 00000000..5fc4dec0 --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth.provider.methods.ts @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {AuthorizationServiceConfigurationJson} from '@openid/appauth'; +import {IAuthConfig} from 'ionic-appauth'; +import {SCAuthorizationProvider, SCAuthorizationProviderType} from '@openstapps/core'; +import {Capacitor} from '@capacitor/core'; +import {authPaths} from './auth-paths'; +import {environment} from '../../../environments/environment'; + +/** + * Get configuration of an OAuth2 client + */ +export function getClientConfig( + providerType: SCAuthorizationProviderType, + authConfig: { + default?: SCAuthorizationProvider; + paia?: SCAuthorizationProvider; + }, +): IAuthConfig { + const providerConfig = authConfig[providerType] as SCAuthorizationProvider; + return { + end_session_redirect_url: '', + pkce: true, + scopes: providerConfig.client.scopes, + server_host: providerConfig.client.url, + client_id: providerConfig.client.clientId, + redirect_url: getRedirectUrl(authPaths[providerType].redirect_path), + }; +} + +/** + * Get configuration about endpoints of an OAuth2 server + */ +export function getEndpointsConfig( + providerType: SCAuthorizationProviderType, + authConfig: { + default?: SCAuthorizationProvider; + paia?: SCAuthorizationProvider; + }, +): AuthorizationServiceConfigurationJson { + const providerConfig = authConfig[providerType] as SCAuthorizationProvider; + return { + authorization_endpoint: providerConfig.endpoints.authorization, + end_session_endpoint: providerConfig.endpoints.endSession, + revocation_endpoint: providerConfig.endpoints.revoke ?? '', + token_endpoint: providerConfig.endpoints.token, + userinfo_endpoint: providerConfig.endpoints.userinfo, + }; +} + +/** + * Return a URL of the app, depending on the platform where it is running + */ +function getRedirectUrl(routePath: string): string { + let appHost: string; + let appSchema: string; + if (environment.production) { + appSchema = Capacitor.isNativePlatform() ? environment.custom_url_scheme : 'https'; + appHost = environment.app_host; + } else { + appSchema = Capacitor.isNativePlatform() + ? environment.custom_url_scheme + : window.location.protocol.split(':')[0]; + + appHost = Capacitor.isNativePlatform() ? environment.app_host : window.location.host; + } + return `${appSchema}://${appHost}/${routePath}`; +} diff --git a/frontend/app/src/app/modules/auth/auth.service.ts b/frontend/app/src/app/modules/auth/auth.service.ts new file mode 100644 index 00000000..5c531731 --- /dev/null +++ b/frontend/app/src/app/modules/auth/auth.service.ts @@ -0,0 +1,508 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +// Temporary use of direct file until the version with bug fix is released +// https://github.com/wi3land/ionic-appauth/blob/3716f4fc6b5491b0b75e049be0a47a5af8c4da6f/src/auth-service.ts +// Bug: https://github.com/wi3land/ionic-appauth/issues/154 +import { + AuthorizationError, + AuthorizationNotifier, + AuthorizationRequest, + AuthorizationRequestHandler, + AuthorizationRequestJson, + AuthorizationResponse, + AuthorizationServiceConfiguration, + BaseTokenRequestHandler, + DefaultCrypto, + GRANT_TYPE_AUTHORIZATION_CODE, + GRANT_TYPE_REFRESH_TOKEN, + JQueryRequestor, + LocalStorageBackend, + Requestor, + RevokeTokenRequest, + RevokeTokenRequestJson, + StorageBackend, + StringMap, + TokenRequest, + TokenRequestHandler, + TokenRequestJson, + TokenResponse, +} from '@openid/appauth'; +import { + ActionHistoryObserver, + AuthActionBuilder, + AuthActions, + AuthObserver, + AUTHORIZATION_RESPONSE_KEY, + AuthSubject, + BaseAuthObserver, + Browser, + DefaultBrowser, + EndSessionHandler, + EndSessionRequest, + EndSessionRequestJson, + IAuthAction, + IAuthConfig, + IAuthService, + IonicAuthorizationRequestHandler, + IonicEndSessionHandler, + IonicUserInfoHandler, + SessionObserver, + UserInfoHandler, +} from 'ionic-appauth'; +import {BehaviorSubject, Observable} from 'rxjs'; + +const TOKEN_RESPONSE_KEY = 'token_response'; +const AUTH_EXPIRY_BUFFER = 10 * 60 * -1; // 10 mins in seconds + +export abstract class AuthService implements IAuthService { + private _configuration?: AuthorizationServiceConfiguration; + + private _authConfig?: IAuthConfig; + + private _authSubject: AuthSubject = new AuthSubject(); + + private _actionHistory: ActionHistoryObserver = new ActionHistoryObserver(); + + private _session: SessionObserver = new SessionObserver(); + + private _authSubjectV2 = new BehaviorSubject(AuthActionBuilder.Init()); + + private _tokenSubject = new BehaviorSubject(undefined); + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private _userSubject = new BehaviorSubject(undefined); + + private _authenticatedSubject = new BehaviorSubject(false); + + private _initComplete = new BehaviorSubject(false); + + protected tokenHandler: TokenRequestHandler; + + protected userInfoHandler: UserInfoHandler; + + protected requestHandler: AuthorizationRequestHandler; + + protected endSessionHandler: EndSessionHandler; + + constructor( + protected browser: Browser = new DefaultBrowser(), + protected storage: StorageBackend = new LocalStorageBackend(), + protected requestor: Requestor = new JQueryRequestor(), + ) { + this.tokenHandler = new BaseTokenRequestHandler(requestor); + this.userInfoHandler = new IonicUserInfoHandler(requestor); + this.requestHandler = new IonicAuthorizationRequestHandler(browser, storage); + this.endSessionHandler = new IonicEndSessionHandler(browser); + } + + /** + * @deprecated independant observers have been replaced by Rxjs + * this will be removed in a future release + * please use $ suffixed observers in future + */ + get history(): IAuthAction[] { + return [...this._actionHistory.history]; + } + + /** + * @deprecated independant observers have been replaced by Rxjs + * this will be removed in a future release + * please use $ suffixed observers in future + */ + get session() { + return this._session.session; + } + + get token$(): Observable { + return this._tokenSubject.asObservable(); + } + + get isAuthenticated$(): Observable { + return this._authenticatedSubject.asObservable(); + } + + get initComplete$(): Observable { + return this._initComplete.asObservable(); + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + get user$(): Observable { + return this._userSubject.asObservable(); + } + + get events$(): Observable { + return this._authSubjectV2.asObservable(); + } + + get authConfig(): IAuthConfig { + if (!this._authConfig) throw new Error('AuthConfig Not Defined'); + + return this._authConfig; + } + + set authConfig(value: IAuthConfig) { + this._authConfig = value; + } + + get configuration(): Promise { + if (!this._configuration) { + return AuthorizationServiceConfiguration.fetchFromIssuer( + this.authConfig.server_host, + this.requestor, + ).catch(() => { + throw new Error('Unable To Obtain Server Configuration'); + }); + } + + if (this._configuration != undefined) { + return Promise.resolve(this._configuration); + } else { + throw new Error('Unable To Obtain Server Configuration'); + } + } + + public async init() { + this.setupAuthorizationNotifier(); + this.loadTokenFromStorage(); + this.addActionObserver(this._actionHistory); + this.addActionObserver(this._session); + } + + protected notifyActionListers(action: IAuthAction) { + /* eslint-disable unicorn/no-useless-undefined */ + switch (action.action) { + case AuthActions.RefreshFailed: + case AuthActions.SignInFailed: + case AuthActions.SignOutSuccess: + case AuthActions.SignOutFailed: + this._tokenSubject.next(undefined); + this._userSubject.next(undefined); + this._authenticatedSubject.next(false); + break; + case AuthActions.LoadTokenFromStorageFailed: + this._tokenSubject.next(undefined); + this._userSubject.next(undefined); + this._authenticatedSubject.next(false); + this._initComplete.next(true); + break; + case AuthActions.SignInSuccess: + case AuthActions.RefreshSuccess: + this._tokenSubject.next(action.tokenResponse); + this._authenticatedSubject.next(true); + break; + case AuthActions.LoadTokenFromStorageSuccess: + this._tokenSubject.next(action.tokenResponse); + this._authenticatedSubject.next((action.tokenResponse as TokenResponse).isValid(0)); + this._initComplete.next(true); + break; + case AuthActions.RevokeTokensSuccess: + this._tokenSubject.next(undefined); + break; + case AuthActions.LoadUserInfoSuccess: + this._userSubject.next(action.user); + break; + case AuthActions.LoadUserInfoFailed: + this._userSubject.next(undefined); + break; + } + + this._authSubjectV2.next(action); + this._authSubject.notify(action); + } + + protected setupAuthorizationNotifier() { + const notifier = new AuthorizationNotifier(); + this.requestHandler.setAuthorizationNotifier(notifier); + notifier.setAuthorizationListener((request, response, error) => + this.onAuthorizationNotification(request, response, error), + ); + } + + protected onAuthorizationNotification( + request: AuthorizationRequest, + response: AuthorizationResponse | null, + error: AuthorizationError | null, + ) { + const codeVerifier: string | undefined = + request.internal != undefined && this.authConfig.pkce ? request.internal.code_verifier : undefined; + + if (response != undefined) { + this.requestAccessToken(response.code, codeVerifier); + } else if (error != undefined) { + throw new Error(error.errorDescription); + } else { + throw new Error('Unknown Error With Authentication'); + } + } + + protected async internalAuthorizationCallback(url: string) { + this.browser.closeWindow(); + await this.storage.setItem(AUTHORIZATION_RESPONSE_KEY, url); + return this.requestHandler.completeAuthorizationRequestIfPossible(); + } + + protected async internalEndSessionCallback() { + this.browser.closeWindow(); + this._actionHistory.clear(); + this.notifyActionListers(AuthActionBuilder.SignOutSuccess()); + } + + protected async performEndSessionRequest(state?: string): Promise { + if (this._tokenSubject.value != undefined) { + const requestJson: EndSessionRequestJson = { + postLogoutRedirectURI: this.authConfig.end_session_redirect_url, + idTokenHint: this._tokenSubject.value.idToken || '', + state: state || undefined, + }; + + const request: EndSessionRequest = new EndSessionRequest(requestJson); + const returnedUrl: string | undefined = await this.endSessionHandler.performEndSessionRequest( + await this.configuration, + request, + ); + + //callback may come from showWindow or via another method + if (returnedUrl != undefined) { + this.endSessionCallback(); + } + } else { + //if user has no token they should not be logged in in the first place + this.endSessionCallback(); + } + } + + protected async performAuthorizationRequest(authExtras?: StringMap, state?: string): Promise { + const requestJson: AuthorizationRequestJson = { + response_type: AuthorizationRequest.RESPONSE_TYPE_CODE, + client_id: this.authConfig.client_id, + redirect_uri: this.authConfig.redirect_url, + scope: this.authConfig.scopes, + extras: authExtras, + state: state || undefined, + }; + + const request = new AuthorizationRequest(requestJson, new DefaultCrypto(), this.authConfig.pkce); + + if (this.authConfig.pkce) await request.setupCodeVerifier(); + + return this.requestHandler.performAuthorizationRequest(await this.configuration, request); + } + + protected async requestAccessToken(code: string, codeVerifier?: string): Promise { + const requestJSON: TokenRequestJson = { + grant_type: GRANT_TYPE_AUTHORIZATION_CODE, + code: code, + refresh_token: undefined, + redirect_uri: this.authConfig.redirect_url, + client_id: this.authConfig.client_id, + extras: codeVerifier + ? { + code_verifier: codeVerifier, + client_secret: this.authConfig.client_secret as string, + } + : { + client_secret: this.authConfig.client_secret as string, + }, + }; + + const token: TokenResponse = await this.tokenHandler.performTokenRequest( + await this.configuration, + new TokenRequest(requestJSON), + ); + await this.storage.setItem(TOKEN_RESPONSE_KEY, JSON.stringify(token.toJson())); + this.notifyActionListers(AuthActionBuilder.SignInSuccess(token)); + } + + protected async requestTokenRefresh() { + if (!this._tokenSubject.value) { + throw new Error('No Token Defined!'); + } + + const requestJSON: TokenRequestJson = { + grant_type: GRANT_TYPE_REFRESH_TOKEN, + refresh_token: this._tokenSubject.value?.refreshToken, + redirect_uri: this.authConfig.redirect_url, + client_id: this.authConfig.client_id, + }; + + const token: TokenResponse = await this.tokenHandler.performTokenRequest( + await this.configuration, + new TokenRequest(requestJSON), + ); + if (!token.accessToken) { + throw new Error('No Access Token Defined In Refresh Response'); + } + await this.storage.setItem(TOKEN_RESPONSE_KEY, JSON.stringify(token.toJson())); + this.notifyActionListers(AuthActionBuilder.RefreshSuccess(token)); + } + + protected async internalLoadTokenFromStorage() { + let token: TokenResponse | undefined; + const tokenResponseString: string | null = await this.storage.getItem(TOKEN_RESPONSE_KEY); + + if (tokenResponseString != undefined) { + token = new TokenResponse(JSON.parse(tokenResponseString)); + + if (token) { + return this.notifyActionListers(AuthActionBuilder.LoadTokenFromStorageSuccess(token)); + } + } + + throw new Error('No Token In Storage'); + } + + protected async requestTokenRevoke() { + const revokeRefreshJson: RevokeTokenRequestJson = { + token: (this._tokenSubject.value as TokenResponse).refreshToken as string, + token_type_hint: 'refresh_token', + client_id: this.authConfig.client_id, + }; + + const revokeAccessJson: RevokeTokenRequestJson = { + token: (this._tokenSubject.value as TokenResponse).accessToken, + token_type_hint: 'access_token', + client_id: this.authConfig.client_id, + }; + + await this.tokenHandler.performRevokeTokenRequest( + await this.configuration, + new RevokeTokenRequest(revokeRefreshJson), + ); + await this.tokenHandler.performRevokeTokenRequest( + await this.configuration, + new RevokeTokenRequest(revokeAccessJson), + ); + await this.storage.removeItem(TOKEN_RESPONSE_KEY); + this.notifyActionListers(AuthActionBuilder.RevokeTokensSuccess()); + } + + protected async internalRequestUserInfo() { + if (this._tokenSubject.value) { + const userInfo = await this.userInfoHandler.performUserInfoRequest( + await this.configuration, + this._tokenSubject.value, + ); + this.notifyActionListers(AuthActionBuilder.LoadUserInfoSuccess(userInfo)); + } else { + throw new Error('No Token Available'); + } + } + + public async loadTokenFromStorage() { + await this.internalLoadTokenFromStorage().catch(error => { + this.notifyActionListers(AuthActionBuilder.LoadTokenFromStorageFailed(error)); + }); + } + + public async signIn(authExtras?: StringMap, state?: string) { + await this.performAuthorizationRequest(authExtras, state).catch(error => { + this.notifyActionListers(AuthActionBuilder.SignInFailed(error)); + }); + } + + public async signOut(state?: string, revokeTokens?: boolean) { + if (revokeTokens) { + await this.revokeTokens(); + } + + await this.storage.removeItem(TOKEN_RESPONSE_KEY); + + if ((await this.configuration).endSessionEndpoint) { + await this.performEndSessionRequest(state).catch(error => { + this.notifyActionListers(AuthActionBuilder.SignOutFailed(error)); + }); + } + } + + public async revokeTokens() { + await this.requestTokenRevoke().catch(error => { + this.storage.removeItem(TOKEN_RESPONSE_KEY); + this.notifyActionListers(AuthActionBuilder.RevokeTokensFailed(error)); + }); + } + + public async refreshToken() { + await this.requestTokenRefresh().catch(error => { + this.storage.removeItem(TOKEN_RESPONSE_KEY); + this.notifyActionListers(AuthActionBuilder.RefreshFailed(error)); + }); + } + + public async loadUserInfo() { + await this.internalRequestUserInfo().catch(error => { + this.notifyActionListers(AuthActionBuilder.LoadUserInfoFailed(error)); + }); + } + + public authorizationCallback(callbackUrl: string): void { + this.internalAuthorizationCallback(callbackUrl).catch(error => { + this.notifyActionListers(AuthActionBuilder.SignInFailed(error)); + }); + } + + public endSessionCallback(): void { + this.internalEndSessionCallback().catch(error => { + this.notifyActionListers(AuthActionBuilder.SignOutFailed(error)); + }); + } + + public async getValidToken(buffer: number = AUTH_EXPIRY_BUFFER): Promise { + if (this._tokenSubject.value) { + if (!this._tokenSubject.value.isValid(buffer)) { + await this.refreshToken(); + if (this._tokenSubject.value) { + return this._tokenSubject.value; + } + } else { + return this._tokenSubject.value; + } + } + + throw new Error('Unable To Obtain Valid Token'); + } + + /** + * @deprecated independant observers have been replaced by Rxjs + * this will be removed in a future release + * please use $ suffixed observers in future + */ + public addActionListener(function_: (action: IAuthAction) => void): AuthObserver { + const observer: AuthObserver = AuthObserver.Create(function_); + this.addActionObserver(observer); + return observer; + } + + /** + * @deprecated independant observers have been replaced by Rxjs + * this will be removed in a future release + * please use $ suffixed observers in future + */ + public addActionObserver(observer: BaseAuthObserver): void { + if (this._actionHistory.lastAction) { + observer.update(this._actionHistory.lastAction); + } + + this._authSubject.attach(observer); + } + + /** + * @deprecated independant observers have been replaced by Rxjs + * this will be removed in a future release + * please use $ suffixed observers in future + */ + public removeActionObserver(observer: BaseAuthObserver): void { + this._authSubject.detach(observer); + } +} diff --git a/frontend/app/src/app/modules/auth/capacitor-requestor.ts b/frontend/app/src/app/modules/auth/capacitor-requestor.ts new file mode 100644 index 00000000..be9b8127 --- /dev/null +++ b/frontend/app/src/app/modules/auth/capacitor-requestor.ts @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Requestor} from '@openid/appauth'; +import {CapacitorHttp, HttpHeaders, HttpResponse} from '@capacitor/core'; +import {XhrSettings} from 'ionic-appauth/lib/cordova'; + +// REQUIRES CAPACITOR PLUGIN +// @capacitor-community/http +export class CapacitorRequestor extends Requestor { + constructor() { + super(); + } + + public async xhr(settings: XhrSettings): Promise { + if (!settings.method) settings.method = 'GET'; + + switch (settings.method) { + case 'GET': + return this.get(settings.url, settings.headers); + case 'POST': + return this.post(settings.url, settings.data, settings.headers); + case 'PUT': + return this.put(settings.url, settings.data, settings.headers); + case 'DELETE': + return this.delete(settings.url, settings.headers); + } + } + + private async get(url: string, headers: HttpHeaders) { + return CapacitorHttp.get({url, headers}).then((response: HttpResponse) => response.data as T); + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private async post(url: string, data: any, headers: HttpHeaders) { + return CapacitorHttp.post({ + url, + // Workaround for CapacitorHttp bug (JSONException when "x-www-form-urlencoded" text is provided) + data: + headers['Content-Type'] === 'application/x-www-form-urlencoded' + ? this.decodeURLSearchParams(data) + : data, + headers, + }).then((response: HttpResponse) => { + return response.data as T; + }); + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private async put(url: string, data: any, headers: HttpHeaders) { + return CapacitorHttp.put({ + url, + // Workaround for CapacitorHttp bug (JSONException when "x-www-form-urlencoded" text is provided) + data: + headers['Content-Type'] === 'application/x-www-form-urlencoded' + ? this.decodeURLSearchParams(data) + : data, + headers, + }).then((response: HttpResponse) => response.data as T); + } + + private async delete(url: string, headers: HttpHeaders) { + return CapacitorHttp.delete({url, headers}).then((response: HttpResponse) => response.data as T); + } + + private decodeURLSearchParams(parameters: string): Record { + const searchParameters = new URLSearchParams(parameters); + return Object.fromEntries( + [...searchParameters.keys()].map(k => [ + k, + searchParameters.getAll(k).length === 1 ? searchParameters.get(k) : searchParameters.getAll(k), + ]), + ); + } +} diff --git a/frontend/app/src/app/modules/auth/default-auth.service.spec.ts b/frontend/app/src/app/modules/auth/default-auth.service.spec.ts new file mode 100644 index 00000000..693c78da --- /dev/null +++ b/frontend/app/src/app/modules/auth/default-auth.service.spec.ts @@ -0,0 +1,109 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {TestBed} from '@angular/core/testing'; +import {ConfigProvider} from '../config/config.provider'; +import {StorageProvider} from '../storage/storage.provider'; +import {DefaultAuthService} from './default-auth.service'; +import {Browser} from 'ionic-appauth'; +import {nowInSeconds, Requestor, StorageBackend} from '@openid/appauth'; +import {TranslateService} from '@ngx-translate/core'; +import {LoggerConfig, LoggerModule, NGXLogger, NgxLoggerLevel} from 'ngx-logger'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {HttpClientModule} from '@angular/common/http'; +import {IonicStorage} from 'ionic-appauth/lib'; +import {RouterModule} from '@angular/router'; + +describe('AuthService', () => { + let defaultAuthService: DefaultAuthService; + let storageBackendSpy: jasmine.SpyObj; + const storageProviderSpy = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put', 'search']); + const translateServiceSpy = jasmine.createSpyObj('TranslateService', ['setDefaultLang', 'use']); + + beforeEach(() => { + storageBackendSpy = jasmine.createSpyObj('StorageBackend', ['getItem']); + + TestBed.configureTestingModule({ + imports: [ + HttpClientModule, + LoggerModule.forRoot({level: NgxLoggerLevel.TRACE}), + RouterModule.forRoot([]), + ], + providers: [ + NGXLogger, + StAppsWebHttpClient, + LoggerConfig, + { + provide: TranslateService, + useValue: translateServiceSpy, + }, + { + provide: StorageProvider, + useValue: storageProviderSpy, + }, + IonicStorage, + ConfigProvider, + Browser, + { + provide: StorageBackend, + useValue: storageBackendSpy, + }, + Requestor, + ], + }); + defaultAuthService = TestBed.inject(DefaultAuthService); + }); + + describe('loadTokenFromStorage', () => { + it('should provide false through isAuthenticated$ when there is no token response', async () => { + // eslint-disable-next-line unicorn/no-null + storageBackendSpy.getItem.and.returnValue(Promise.resolve(null)); + let loggedInHolder; + defaultAuthService.isAuthenticated$.subscribe(loggedIn => { + loggedInHolder = loggedIn; + }); + await defaultAuthService.loadTokenFromStorage(); + + expect(loggedInHolder).toBeFalse(); + }); + + it('should provide true through isAuthenticated$ when access token is valid', async () => { + const validToken = `{"access_token":"AT-XXXX","refresh_token":"RT-XXXX","scope":"","token_type":"bearer","issued_at":${nowInSeconds()},"expires_in":"${ + 8 * 60 * 60 + }"}`; + storageBackendSpy.getItem.and.returnValue(Promise.resolve(validToken)); + let loggedInHolder; + defaultAuthService.isAuthenticated$.subscribe(loggedIn => { + loggedInHolder = loggedIn; + }); + await defaultAuthService.loadTokenFromStorage(); + + expect(loggedInHolder).toBeTrue(); + }); + + it('should provide false through isAuthenticated$ when access token is invalid', async () => { + const invalidToken = `{"access_token":"AT-INVALID-XXXX","refresh_token":"RT-XXXX","scope":"","token_type":"bearer","issued_at":${ + nowInSeconds() - 9 * 60 * 60 + },"expires_in":"${8 * 60 * 60}"}`; + storageBackendSpy.getItem.and.returnValue(Promise.resolve(invalidToken)); + let loggedInHolder; + defaultAuthService.isAuthenticated$.subscribe(loggedIn => { + loggedInHolder = loggedIn; + }); + await defaultAuthService.loadTokenFromStorage(); + + expect(loggedInHolder).toBeFalse(); + }); + }); +}); diff --git a/frontend/app/src/app/modules/auth/default-auth.service.ts b/frontend/app/src/app/modules/auth/default-auth.service.ts new file mode 100644 index 00000000..701365a2 --- /dev/null +++ b/frontend/app/src/app/modules/auth/default-auth.service.ts @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import { + AuthorizationRequestHandler, + AuthorizationServiceConfiguration, + JQueryRequestor, + LocalStorageBackend, + Requestor, + StorageBackend, + TokenRequestHandler, +} from '@openid/appauth'; +import {AuthActionBuilder, Browser, DefaultBrowser, EndSessionHandler, UserInfoHandler} from 'ionic-appauth'; +import {ConfigProvider} from '../config/config.provider'; +import {SCAuthorizationProvider} from '@openstapps/core'; +import {getClientConfig, getEndpointsConfig} from './auth.provider.methods'; +import {Injectable} from '@angular/core'; +import {AuthService} from './auth.service'; + +const TOKEN_RESPONSE_KEY = 'token_response'; + +@Injectable({ + providedIn: 'root', +}) +export class DefaultAuthService extends AuthService { + public localConfiguration: AuthorizationServiceConfiguration; + + protected tokenHandler: TokenRequestHandler; + + protected userInfoHandler: UserInfoHandler; + + protected requestHandler: AuthorizationRequestHandler; + + protected endSessionHandler: EndSessionHandler; + + constructor( + protected browser: Browser = new DefaultBrowser(), + protected storage: StorageBackend = new LocalStorageBackend(), + protected requestor: Requestor = new JQueryRequestor(), + private readonly configProvider: ConfigProvider, + ) { + super(browser, storage, requestor); + } + + get configuration(): Promise { + if (!this.localConfiguration) throw new Error('Local Configuration Not Defined'); + + return Promise.resolve(this.localConfiguration); + } + + public async init() { + this.setupConfiguration(); + this.setupAuthorizationNotifier(); + await this.loadTokenFromStorage(); + } + + setupConfiguration() { + const authConfig = this.configProvider.getAnyValue('auth') as { + default: SCAuthorizationProvider; + }; + this.authConfig = getClientConfig('default', authConfig); + this.localConfiguration = new AuthorizationServiceConfiguration( + getEndpointsConfig('default', authConfig), + ); + } + + public async signOut() { + await this.revokeTokens().catch(error => { + this.notifyActionListers(AuthActionBuilder.SignOutFailed(error)); + }); + this.notifyActionListers(AuthActionBuilder.SignOutSuccess()); + } + + public async revokeTokens() { + // Note: only locally + await this.storage.removeItem(TOKEN_RESPONSE_KEY); + this.notifyActionListers(AuthActionBuilder.RevokeTokensSuccess()); + } +} diff --git a/frontend/app/src/app/modules/auth/factories/http.factory.ts b/frontend/app/src/app/modules/auth/factories/http.factory.ts new file mode 100644 index 00000000..6ba5e276 --- /dev/null +++ b/frontend/app/src/app/modules/auth/factories/http.factory.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {HttpClient} from '@angular/common/http'; +import {Platform} from '@ionic/angular'; +import {CapacitorRequestor} from '../capacitor-requestor'; +import {NgHttpService} from '../ng-http.service'; + +export const httpFactory = (platform: Platform, httpClient: HttpClient) => { + return platform.is('capacitor') ? new CapacitorRequestor() : new NgHttpService(httpClient); +}; diff --git a/frontend/app/src/app/modules/auth/factories/index.ts b/frontend/app/src/app/modules/auth/factories/index.ts new file mode 100644 index 00000000..716bf452 --- /dev/null +++ b/frontend/app/src/app/modules/auth/factories/index.ts @@ -0,0 +1 @@ +export * from './storage.factory'; diff --git a/frontend/app/src/app/modules/auth/factories/storage.factory.ts b/frontend/app/src/app/modules/auth/factories/storage.factory.ts new file mode 100644 index 00000000..0bb5f194 --- /dev/null +++ b/frontend/app/src/app/modules/auth/factories/storage.factory.ts @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Platform} from '@ionic/angular'; +import {IonicStorage} from 'ionic-appauth/lib'; +import {SafeCapacitorSecureStorage} from '../../storage/capacitor-secure-storage'; + +export const storageFactory = (platform: Platform) => { + return platform.is('capacitor') ? new SafeCapacitorSecureStorage() : new IonicStorage(); +}; diff --git a/frontend/app/src/app/modules/auth/ng-http.service.ts b/frontend/app/src/app/modules/auth/ng-http.service.ts new file mode 100644 index 00000000..42dceb5c --- /dev/null +++ b/frontend/app/src/app/modules/auth/ng-http.service.ts @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {Requestor} from '@openid/appauth'; +import {HttpClient, HttpHeaders} from '@angular/common/http'; +import {XhrSettings} from 'ionic-appauth/lib/cordova'; +import {firstValueFrom, Observable} from 'rxjs'; + +@Injectable({ + providedIn: 'root', +}) +export class NgHttpService implements Requestor { + constructor(private http: HttpClient) {} + + public async xhr(settings: XhrSettings): Promise { + if (!settings.method) { + settings.method = 'GET'; + } + + let observable: Observable; + + switch (settings.method) { + case 'GET': + observable = this.http.get(settings.url, { + headers: this.getHeaders(settings.headers), + }); + break; + case 'POST': + observable = this.http.post(settings.url, settings.data, { + headers: this.getHeaders(settings.headers), + }); + break; + case 'PUT': + observable = this.http.put(settings.url, settings.data, { + headers: this.getHeaders(settings.headers), + }); + break; + case 'DELETE': + observable = this.http.delete(settings.url, { + headers: this.getHeaders(settings.headers), + }); + break; + } + + return firstValueFrom(observable); + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private getHeaders(headers: any): HttpHeaders { + let httpHeaders: HttpHeaders = new HttpHeaders(); + + if (headers !== undefined) { + for (const key of Object.keys(headers)) { + httpHeaders = httpHeaders.append(key, headers[key]); + } + } + + return httpHeaders; + } +} diff --git a/frontend/app/src/app/modules/auth/paia/auth-callback/page/paiaauth-callback-page.component.ts b/frontend/app/src/app/modules/auth/paia/auth-callback/page/paiaauth-callback-page.component.ts new file mode 100644 index 00000000..fd390eb4 --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/auth-callback/page/paiaauth-callback-page.component.ts @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component} from '@angular/core'; +import {AuthCallbackPageComponent} from '../../../auth-callback/page/auth-callback-page.component'; +import {SCAuthorizationProviderType} from '@openstapps/core'; +import {NavController} from '@ionic/angular'; +import {Router} from '@angular/router'; +import {AuthHelperService} from '../../../auth-helper.service'; + +@Component({ + templateUrl: '../../../auth-callback/page/auth-callback-page.component.html', + styleUrls: ['../../../auth-callback/page/auth-callback-page.component.scss'], +}) +export class PAIAAuthCallbackPageComponent extends AuthCallbackPageComponent { + PROVIDER_TYPE = 'paia' as SCAuthorizationProviderType; + + constructor(navCtrl: NavController, router: Router, authHelper: AuthHelperService) { + super(navCtrl, router, authHelper); + } +} diff --git a/frontend/app/src/app/modules/auth/paia/authorization-request-handler.ts b/frontend/app/src/app/modules/auth/paia/authorization-request-handler.ts new file mode 100644 index 00000000..bfff01c3 --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/authorization-request-handler.ts @@ -0,0 +1,197 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import { + StorageBackend, + BasicQueryStringUtils, + DefaultCrypto, + AuthorizationServiceConfiguration, + AuthorizationRequest, + StringMap, + AuthorizationError, + AuthorizationErrorJson, + BUILT_IN_PARAMETERS, +} from '@openid/appauth'; +import {Browser} from 'ionic-appauth'; +import {PAIAAuthorizationNotifier} from './paia-authorization-notifier'; +import {PAIAAuthorizationRequestResponse} from './authorization-request-response'; +import {PAIAAuthorizationResponse, PAIAAuthorizationResponseJson} from './paia-authorization-response'; + +/** key for authorization request. */ +const authorizationRequestKey = (handle: string) => { + return `${handle}_appauth_authorization_request`; +}; + +/** key in local storage which represents the current authorization request. */ +const AUTHORIZATION_REQUEST_HANDLE_KEY = 'appauth_current_authorization_request'; +export const AUTHORIZATION_RESPONSE_KEY = 'auth_response'; + +export class PAIAAuthorizationRequestHandler { + notifier: PAIAAuthorizationNotifier; + + constructor( + private browser: Browser, + private storage: StorageBackend, + public utils = new BasicQueryStringUtils(), + protected crypto = new Crypto(), + private generateRandom = new DefaultCrypto(), + ) {} + + public async performAuthorizationRequest( + configuration: AuthorizationServiceConfiguration, + request: AuthorizationRequest, + ): Promise { + const handle = this.generateRandom.generateRandom(10); + await this.storage.setItem(AUTHORIZATION_REQUEST_HANDLE_KEY, handle); + await this.storage.setItem(authorizationRequestKey(handle), JSON.stringify(await request.toJson())); + const url = this.buildRequestUrl(configuration, request); + const returnedUrl: string | undefined = await this.browser.showWindow(url, request.redirectUri); + + // callback may come from showWindow or via another method + if (typeof returnedUrl !== 'undefined') { + await this.storage.setItem(AUTHORIZATION_RESPONSE_KEY, returnedUrl); + await this.completeAuthorizationRequestIfPossible(); + } + } + + protected async completeAuthorizationRequest(): Promise { + const handle = await this.storage.getItem(AUTHORIZATION_REQUEST_HANDLE_KEY); + + if (!handle) { + throw new Error('Handle Not Available'); + } + + const request: AuthorizationRequest = this.getAuthorizationRequest( + await this.storage.getItem(authorizationRequestKey(handle)), + ); + const queryParameters = this.getQueryParams(await this.storage.getItem(AUTHORIZATION_RESPONSE_KEY)); + void this.removeItemsFromStorage(handle); + + const state: string | undefined = queryParameters['state']; + const error: string | undefined = queryParameters['error']; + + if (state !== request.state) { + throw new Error('State Does Not Match'); + } + + return { + request: request, // request + response: !error ? this.getAuthorizationResponse(queryParameters) : undefined, + error: error ? this.getAuthorizationError(queryParameters) : undefined, + }; + } + + private getAuthorizationRequest(authRequest: string | null): AuthorizationRequest { + if (authRequest == undefined) { + throw new Error('No Auth Request Available'); + } + + return new AuthorizationRequest(JSON.parse(authRequest)); + } + + private getAuthorizationError(queryParameters: StringMap): AuthorizationError { + const authorizationErrorJSON: AuthorizationErrorJson = { + error: queryParameters['error'], + error_description: queryParameters['error_description'], + error_uri: undefined, + state: queryParameters['state'], + }; + return new AuthorizationError(authorizationErrorJSON); + } + + private getAuthorizationResponse(queryParameters: StringMap): PAIAAuthorizationResponse { + const authorizationResponseJSON: PAIAAuthorizationResponseJson = { + code: queryParameters['code'], + patron: queryParameters['patron'], + // TODO: currently PAIA is not providing state + state: queryParameters['state'] ?? '', + }; + return new PAIAAuthorizationResponse(authorizationResponseJSON); + } + + private async removeItemsFromStorage(handle: string): Promise { + await this.storage.removeItem(AUTHORIZATION_REQUEST_HANDLE_KEY); + await this.storage.removeItem(authorizationRequestKey(handle)); + await this.storage.removeItem(AUTHORIZATION_RESPONSE_KEY); + } + + private getQueryParams(authResponse: string | null): StringMap { + if (authResponse != undefined) { + const querySide: string = authResponse.split('#')[0]; + const parts: string[] = querySide.split('?'); + if (parts.length !== 2) throw new Error('Invalid auth response string'); + const hash = parts[1]; + return this.utils.parseQueryString(hash); + } else { + return {}; + } + } + + setAuthorizationNotifier(notifier: PAIAAuthorizationNotifier): PAIAAuthorizationRequestHandler { + this.notifier = notifier; + return this; + } + + completeAuthorizationRequestIfPossible(): Promise { + // call complete authorization if possible to see there might + // be a response that needs to be delivered. + console.log(`Checking to see if there is an authorization response to be delivered.`); + if (!this.notifier) { + console.log(`Notifier is not present on AuthorizationRequest handler. + No delivery of result will be possible`); + } + return this.completeAuthorizationRequest().then(result => { + if (!result) { + console.log(`No result is available yet.`); + } + if (result && this.notifier) { + this.notifier.onAuthorizationComplete(result.request, result.response, result.error); + } + }); + } + + /** + * A utility method to be able to build the authorization request URL. + */ + protected buildRequestUrl(configuration: AuthorizationServiceConfiguration, request: AuthorizationRequest) { + // build the query string + // coerce to any type for convenience + const requestMap: StringMap = { + redirect_uri: request.redirectUri, + client_id: request.clientId, + response_type: request.responseType, + state: request.state, + scope: request.scope, + }; + + // copy over extras + if (request.extras) { + for (const extra in request.extras) { + if ( + request.extras.hasOwnProperty(extra) && // check before inserting to requestMap + !BUILT_IN_PARAMETERS.includes(extra) + ) { + requestMap[extra] = request.extras[extra]; + } + } + } + + const query = this.utils.stringify(requestMap); + const baseUrl = configuration.authorizationEndpoint; + + // required encoding (PAIA specific) + return `${baseUrl}?${encodeURIComponent(query)}`; + } +} diff --git a/frontend/app/src/app/modules/auth/paia/authorization-request-response.ts b/frontend/app/src/app/modules/auth/paia/authorization-request-response.ts new file mode 100644 index 00000000..d9dd73ac --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/authorization-request-response.ts @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {AuthorizationError, AuthorizationRequest} from '@openid/appauth'; +import {PAIAAuthorizationResponse} from './paia-authorization-response'; + +/** + * Represents a structural type holding both authorization request and response. + */ +export interface PAIAAuthorizationRequestResponse { + request: AuthorizationRequest; + response: PAIAAuthorizationResponse | null; + error: AuthorizationError | null; +} diff --git a/frontend/app/src/app/modules/auth/paia/paia-auth-action.ts b/frontend/app/src/app/modules/auth/paia/paia-auth-action.ts new file mode 100644 index 00000000..ec8cae9d --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/paia-auth-action.ts @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {PAIATokenResponse} from './paia-token-response'; +import {AuthActionBuilder, IAuthAction} from 'ionic-appauth'; + +export interface IPAIAAuthAction extends IAuthAction { + tokenResponse?: PAIATokenResponse; +} + +export class PAIAAuthActionBuilder extends AuthActionBuilder { + public static Init(): IPAIAAuthAction { + return AuthActionBuilder.Init() as IPAIAAuthAction; + } + + public static SignOutSuccess(): IPAIAAuthAction { + return AuthActionBuilder.SignOutSuccess() as IPAIAAuthAction; + } + + public static SignOutFailed(error: Error): IPAIAAuthAction { + return AuthActionBuilder.SignOutFailed(error) as IPAIAAuthAction; + } + + public static RefreshSuccess(tokenResponse: PAIATokenResponse): IPAIAAuthAction { + return AuthActionBuilder.RefreshSuccess(tokenResponse) as IPAIAAuthAction; + } + + public static RefreshFailed(error: Error): IPAIAAuthAction { + return AuthActionBuilder.RefreshFailed(error) as IPAIAAuthAction; + } + + public static SignInSuccess(tokenResponse: PAIATokenResponse): IPAIAAuthAction { + return AuthActionBuilder.SignInSuccess(tokenResponse) as IPAIAAuthAction; + } + + public static SignInFailed(error: Error): IPAIAAuthAction { + return AuthActionBuilder.SignInFailed(error) as IPAIAAuthAction; + } + + public static LoadTokenFromStorageSuccess(tokenResponse: PAIATokenResponse): IPAIAAuthAction { + return AuthActionBuilder.LoadTokenFromStorageSuccess(tokenResponse) as IPAIAAuthAction; + } + + public static LoadTokenFromStorageFailed(error: Error): IPAIAAuthAction { + return AuthActionBuilder.LoadTokenFromStorageFailed(error) as IPAIAAuthAction; + } + + public static RevokeTokensSuccess(): IPAIAAuthAction { + return AuthActionBuilder.RevokeTokensSuccess() as IPAIAAuthAction; + } + + public static RevokeTokensFailed(error: Error): IPAIAAuthAction { + return AuthActionBuilder.RevokeTokensFailed(error) as IPAIAAuthAction; + } + + public static LoadUserInfoSuccess(user: Error): IPAIAAuthAction { + return AuthActionBuilder.LoadUserInfoSuccess(user) as IPAIAAuthAction; + } + + public static LoadUserInfoFailed(error: Error): IPAIAAuthAction { + return AuthActionBuilder.LoadUserInfoFailed(error) as IPAIAAuthAction; + } +} diff --git a/frontend/app/src/app/modules/auth/paia/paia-auth.service.ts b/frontend/app/src/app/modules/auth/paia/paia-auth.service.ts new file mode 100644 index 00000000..5d0756dc --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/paia-auth.service.ts @@ -0,0 +1,345 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import { + AuthorizationError, + AuthorizationRequest, + AuthorizationRequestJson, + AuthorizationServiceConfiguration, + BasicQueryStringUtils, + DefaultCrypto, + JQueryRequestor, + LocalStorageBackend, + Requestor, + StorageBackend, + StringMap, + TokenResponse, +} from '@openid/appauth'; +import { + AuthActions, + AUTHORIZATION_RESPONSE_KEY, + AuthSubject, + Browser, + DefaultBrowser, + EndSessionHandler, + IAuthConfig, + IonicEndSessionHandler, + IonicUserInfoHandler, + UserInfoHandler, +} from 'ionic-appauth'; +import {BehaviorSubject, Observable} from 'rxjs'; +import {PAIATokenRequestHandler} from './token-request-handler'; +import {PAIAAuthorizationRequestHandler} from './authorization-request-handler'; +import {PAIATokenRequest, PAIATokenRequestJson} from './paia-token-request'; +import {PAIAAuthorizationResponse} from './paia-authorization-response'; +import {PAIAAuthorizationNotifier} from './paia-authorization-notifier'; +import {PAIATokenResponse} from './paia-token-response'; +import {IPAIAAuthAction, PAIAAuthActionBuilder} from './paia-auth-action'; +import {SCAuthorizationProvider} from '@openstapps/core'; +import {ConfigProvider} from '../../config/config.provider'; +import {getClientConfig, getEndpointsConfig} from '../auth.provider.methods'; +import {Injectable} from '@angular/core'; + +const TOKEN_RESPONSE_KEY = 'paia_token_response'; +const AUTH_EXPIRY_BUFFER = 10 * 60 * -1; // 10 minutes in seconds + +export interface IAuthService { + signIn(authExtras?: StringMap, state?: string): void; + signOut(state?: string, revokeTokens?: boolean): void; + loadUserInfo(): void; + authorizationCallback(callbackUrl: string): void; + loadTokenFromStorage(): void; + getValidToken(buffer?: number): Promise; +} + +@Injectable({ + providedIn: 'root', +}) +export class PAIAAuthService { + private _authConfig?: IAuthConfig; + + private _authSubject: AuthSubject = new AuthSubject(); + + private _authSubjectV2 = new BehaviorSubject(PAIAAuthActionBuilder.Init()); + + private _tokenSubject = new BehaviorSubject(undefined); + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private _userSubject = new BehaviorSubject(undefined); + + private _authenticatedSubject = new BehaviorSubject(false); + + private _initComplete = new BehaviorSubject(false); + + protected tokenHandler: PAIATokenRequestHandler; + + protected userInfoHandler: UserInfoHandler; + + protected requestHandler: PAIAAuthorizationRequestHandler; + + protected endSessionHandler: EndSessionHandler; + + public localConfiguration: AuthorizationServiceConfiguration; + + constructor( + protected browser: Browser = new DefaultBrowser(), + protected storage: StorageBackend = new LocalStorageBackend(), + protected requestor: Requestor = new JQueryRequestor(), + private readonly configProvider: ConfigProvider, + ) { + this.tokenHandler = new PAIATokenRequestHandler(requestor); + this.userInfoHandler = new IonicUserInfoHandler(requestor); + this.requestHandler = new PAIAAuthorizationRequestHandler( + browser, + storage, + new BasicQueryStringUtils(), + crypto, + ); + this.endSessionHandler = new IonicEndSessionHandler(browser); + } + + get token$(): Observable { + return this._tokenSubject.asObservable(); + } + + get isAuthenticated$(): Observable { + return this._authenticatedSubject.asObservable(); + } + + get initComplete$(): Observable { + return this._initComplete.asObservable(); + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + get user$(): Observable { + return this._userSubject.asObservable(); + } + + get events$(): Observable { + return this._authSubjectV2.asObservable(); + } + + get authConfig(): IAuthConfig { + if (!this._authConfig) throw new Error('AuthConfig Not Defined'); + + return this._authConfig; + } + + set authConfig(value: IAuthConfig) { + this._authConfig = value; + } + + get configuration(): Promise { + if (!this.localConfiguration) throw new Error('Local Configuration Not Defined'); + + return Promise.resolve(this.localConfiguration); + } + + public async init() { + this.setupConfiguration(); + this.setupAuthorizationNotifier(); + await this.loadTokenFromStorage(); + } + + setupConfiguration() { + const authConfig = this.configProvider.getAnyValue('auth') as { + paia: SCAuthorizationProvider; + }; + this.authConfig = getClientConfig('paia', authConfig); + this.localConfiguration = new AuthorizationServiceConfiguration(getEndpointsConfig('paia', authConfig)); + } + + protected notifyActionListers(action: IPAIAAuthAction) { + /* eslint-disable unicorn/no-useless-undefined */ + switch (action.action) { + case AuthActions.SignInFailed: + case AuthActions.SignOutSuccess: + case AuthActions.SignOutFailed: + this._tokenSubject.next(undefined); + this._userSubject.next(undefined); + this._authenticatedSubject.next(false); + break; + case AuthActions.LoadTokenFromStorageFailed: + this._tokenSubject.next(undefined); + this._userSubject.next(undefined); + this._authenticatedSubject.next(false); + this._initComplete.next(true); + break; + case AuthActions.SignInSuccess: + this._tokenSubject.next(action.tokenResponse); + this._authenticatedSubject.next(true); + break; + case AuthActions.LoadTokenFromStorageSuccess: + this._tokenSubject.next(action.tokenResponse); + this._authenticatedSubject.next((action.tokenResponse as TokenResponse).isValid(0)); + this._initComplete.next(true); + break; + case AuthActions.RevokeTokensSuccess: + this._tokenSubject.next(undefined); + break; + case AuthActions.LoadUserInfoSuccess: + this._userSubject.next(action.user); + break; + case AuthActions.LoadUserInfoFailed: + this._userSubject.next(undefined); + break; + } + + this._authSubjectV2.next(action); + this._authSubject.notify(action); + } + + protected setupAuthorizationNotifier() { + const notifier = new PAIAAuthorizationNotifier(); + this.requestHandler.setAuthorizationNotifier(notifier); + notifier.setAuthorizationListener((request, response, error) => + this.onAuthorizationNotification(request, response, error), + ); + } + + protected onAuthorizationNotification( + request: AuthorizationRequest, + response: PAIAAuthorizationResponse | null, + error: AuthorizationError | null, + ) { + const codeVerifier: string | undefined = + request.internal != undefined && this.authConfig.pkce ? request.internal.code_verifier : undefined; + + if (response != undefined) { + this.requestAccessToken(response.code, response.patron, codeVerifier); + } else if (error != undefined) { + throw new Error(error.errorDescription); + } else { + throw new Error('Unknown Error With Authentication'); + } + } + + protected async internalAuthorizationCallback(url: string) { + this.browser.closeWindow(); + await this.storage.setItem(AUTHORIZATION_RESPONSE_KEY, url); + return this.requestHandler.completeAuthorizationRequestIfPossible(); + } + + protected async performAuthorizationRequest(authExtras?: StringMap, state?: string): Promise { + const requestJson: AuthorizationRequestJson = { + response_type: AuthorizationRequest.RESPONSE_TYPE_CODE, + client_id: this.authConfig.client_id, + redirect_uri: this.authConfig.redirect_url, + scope: this.authConfig.scopes, + extras: authExtras, + state: state || undefined, + }; + + const request = new AuthorizationRequest(requestJson, new DefaultCrypto(), this.authConfig.pkce); + + if (this.authConfig.pkce) await request.setupCodeVerifier(); + + return this.requestHandler.performAuthorizationRequest(await this.configuration, request); + } + + protected async requestAccessToken(code: string, patron: string, codeVerifier?: string): Promise { + const requestJSON: PAIATokenRequestJson = { + code: code, + patron: patron, + extras: codeVerifier + ? { + code_verifier: codeVerifier, + } + : {}, + }; + + const token: PAIATokenResponse = await this.tokenHandler.performTokenRequest( + await this.configuration, + new PAIATokenRequest(requestJSON), + ); + await this.storage.setItem(TOKEN_RESPONSE_KEY, JSON.stringify(token.toJson())); + this.notifyActionListers(PAIAAuthActionBuilder.SignInSuccess(token)); + } + + public async revokeTokens() { + // Note: only locally + await this.storage.removeItem(TOKEN_RESPONSE_KEY); + this.notifyActionListers(PAIAAuthActionBuilder.RevokeTokensSuccess()); + } + + public async signOut() { + await this.revokeTokens().catch(error => + this.notifyActionListers(PAIAAuthActionBuilder.SignOutFailed(error)), + ); + this.notifyActionListers(PAIAAuthActionBuilder.SignOutSuccess()); + } + + protected async internalLoadTokenFromStorage() { + let token: PAIATokenResponse | undefined; + const tokenResponseString: string | null = await this.storage.getItem(TOKEN_RESPONSE_KEY); + + if (tokenResponseString != undefined) { + token = new PAIATokenResponse(JSON.parse(tokenResponseString)); + + if (token) { + return this.notifyActionListers(PAIAAuthActionBuilder.LoadTokenFromStorageSuccess(token)); + } + } + + throw new Error('No Token In Storage'); + } + + protected async internalRequestUserInfo() { + if (this._tokenSubject.value) { + const userInfo = await this.userInfoHandler.performUserInfoRequest( + await this.configuration, + this._tokenSubject.value, + ); + this.notifyActionListers(PAIAAuthActionBuilder.LoadUserInfoSuccess(userInfo)); + } else { + throw new Error('No Token Available'); + } + } + + public async loadTokenFromStorage() { + await this.internalLoadTokenFromStorage().catch(error => { + this.notifyActionListers(PAIAAuthActionBuilder.LoadTokenFromStorageFailed(error)); + }); + } + + public async signIn(authExtras?: StringMap, state?: string) { + await this.performAuthorizationRequest(authExtras, state).catch(error => { + this.notifyActionListers(PAIAAuthActionBuilder.SignInFailed(error)); + }); + } + + public async loadUserInfo() { + await this.internalRequestUserInfo().catch(error => { + this.notifyActionListers(PAIAAuthActionBuilder.LoadUserInfoFailed(error)); + }); + } + + public authorizationCallback(callbackUrl: string): void { + this.internalAuthorizationCallback(callbackUrl).catch(error => { + this.notifyActionListers(PAIAAuthActionBuilder.SignInFailed(error)); + }); + } + + public async getValidToken(buffer: number = AUTH_EXPIRY_BUFFER): Promise { + if (this._tokenSubject.value && this._tokenSubject.value.isValid(buffer)) { + return this._tokenSubject.value; + } + + const error = new Error('Unable To Obtain Valid Token'); + this.notifyActionListers(PAIAAuthActionBuilder.SignInFailed(error)); + + throw error; + } +} diff --git a/frontend/app/src/app/modules/auth/paia/paia-authorization-listener.ts b/frontend/app/src/app/modules/auth/paia/paia-authorization-listener.ts new file mode 100644 index 00000000..c2d346d0 --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/paia-authorization-listener.ts @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {AuthorizationError, AuthorizationRequest} from '@openid/appauth'; +import {PAIAAuthorizationResponse} from './paia-authorization-response'; + +export type PAIAAuthorizationListener = ( + request: AuthorizationRequest, + response: PAIAAuthorizationResponse | null, + error: AuthorizationError | null, +) => void; diff --git a/frontend/app/src/app/modules/auth/paia/paia-authorization-notifier.ts b/frontend/app/src/app/modules/auth/paia/paia-authorization-notifier.ts new file mode 100644 index 00000000..4b2b5613 --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/paia-authorization-notifier.ts @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {PAIAAuthorizationListener} from './paia-authorization-listener'; +import {AuthorizationError, AuthorizationRequest} from '@openid/appauth'; +import {PAIAAuthorizationResponse} from './paia-authorization-response'; + +export class PAIAAuthorizationNotifier { + // eslint-disable-next-line unicorn/no-null + private listener: PAIAAuthorizationListener | null = null; + + setAuthorizationListener(listener: PAIAAuthorizationListener) { + this.listener = listener; + } + + /** + * The authorization complete callback. + */ + onAuthorizationComplete( + request: AuthorizationRequest, + response: PAIAAuthorizationResponse | null, + error: AuthorizationError | null, + ): void { + if (this.listener) { + // complete authorization request + this.listener(request, response, error); + } + } +} diff --git a/frontend/app/src/app/modules/auth/paia/paia-authorization-response.ts b/frontend/app/src/app/modules/auth/paia/paia-authorization-response.ts new file mode 100644 index 00000000..e71999dd --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/paia-authorization-response.ts @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export interface PAIAAuthorizationResponseJson { + code: string; + state: string; + patron: string; +} + +export class PAIAAuthorizationResponse { + code: string; + + state: string; + + patron: string; + + constructor(response: PAIAAuthorizationResponseJson) { + this.code = response.code; + this.state = response.state; + this.patron = response.patron; + } + + toJson(): PAIAAuthorizationResponseJson { + return {code: this.code, state: this.state, patron: this.patron}; + } +} diff --git a/frontend/app/src/app/modules/auth/paia/paia-token-request.ts b/frontend/app/src/app/modules/auth/paia/paia-token-request.ts new file mode 100644 index 00000000..4b12b2f8 --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/paia-token-request.ts @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {StringMap} from '@openid/appauth'; + +// TODO: add documentation +export interface PAIATokenRequestJson { + code: string; + patron: string; + extras?: StringMap; +} + +export class PAIATokenRequest { + code: string; + + patron: string; + + extras?: StringMap; + + constructor(request: PAIATokenRequestJson) { + this.code = request.code; + this.patron = request.patron; + this.extras = request.extras; + } + + /** + * Serializes a TokenRequest to a JavaScript object. + */ + toJson(): PAIATokenRequestJson { + return { + code: this.code, + patron: this.patron, + extras: this.extras, + }; + } + + toStringMap(): StringMap { + const map: StringMap = { + patron: this.patron, + code: this.code, + }; + + // copy over extras + if (this.extras) { + for (const extra in this.extras) { + if (this.extras.hasOwnProperty(extra) && !map.hasOwnProperty(extra)) { + // check before inserting to requestMap + map[extra] = this.extras[extra]; + } + } + } + return map; + } +} diff --git a/frontend/app/src/app/modules/auth/paia/paia-token-response.ts b/frontend/app/src/app/modules/auth/paia/paia-token-response.ts new file mode 100644 index 00000000..f08ee811 --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/paia-token-response.ts @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {TokenResponse, TokenResponseJson} from '@openid/appauth'; +import {nowInSeconds} from '@openid/appauth'; + +const AUTH_EXPIRY_BUFFER = 10 * 60 * -1; // 10 mins in seconds + +export interface PAIATokenResponseJson extends TokenResponseJson { + patron: string; +} + +export class PAIATokenResponse extends TokenResponse { + patron: string; + + constructor(response: PAIATokenResponseJson) { + super(response); + this.patron = response.patron; + } + + toJson(): PAIATokenResponseJson { + return { + access_token: this.accessToken, + id_token: this.idToken, + refresh_token: this.refreshToken, + scope: this.scope, + token_type: this.tokenType, + issued_at: this.issuedAt, + expires_in: this.expiresIn?.toString(), + patron: this.patron, + }; + } + + isValid(buffer: number = AUTH_EXPIRY_BUFFER): boolean { + if (this.expiresIn) { + const now = nowInSeconds(); + return now < this.issuedAt + this.expiresIn + buffer; + } else { + return true; + } + } +} diff --git a/frontend/app/src/app/modules/auth/paia/paia-user-info-handler.ts b/frontend/app/src/app/modules/auth/paia/paia-user-info-handler.ts new file mode 100644 index 00000000..7ab2101f --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/paia-user-info-handler.ts @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {AuthorizationServiceConfiguration, Requestor} from '@openid/appauth'; +import {PAIATokenResponse} from './paia-token-response'; + +export interface UserInfoHandler { + performUserInfoRequest( + configuration: AuthorizationServiceConfiguration, + token: PAIATokenResponse, + ): Promise; +} + +export class PAIAUserInfoHandler implements UserInfoHandler { + constructor(private requestor: Requestor) {} + + public async performUserInfoRequest( + configuration: AuthorizationServiceConfiguration, + token: PAIATokenResponse, + ): Promise { + const settings: JQueryAjaxSettings = { + url: `${configuration.userInfoEndpoint}/${token.patron}`, + method: 'GET', + headers: { + Authorization: `${token.tokenType == 'bearer' ? 'Bearer' : token.tokenType} ${token.accessToken}`, + }, + }; + + return this.requestor.xhr(settings); + } +} diff --git a/frontend/app/src/app/modules/auth/paia/token-request-handler.ts b/frontend/app/src/app/modules/auth/paia/token-request-handler.ts new file mode 100644 index 00000000..cf0da436 --- /dev/null +++ b/frontend/app/src/app/modules/auth/paia/token-request-handler.ts @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import { + TokenErrorJson, + AuthorizationServiceConfiguration, + RevokeTokenRequest, + Requestor, + JQueryRequestor, + BasicQueryStringUtils, + QueryStringUtils, + AppAuthError, + TokenError, +} from '@openid/appauth'; +import {PAIATokenRequest} from './paia-token-request'; +import {PAIATokenResponse, PAIATokenResponseJson} from './paia-token-response'; + +export class PAIATokenRequestHandler { + constructor( + public readonly requestor: Requestor = new JQueryRequestor(), + public readonly utils: QueryStringUtils = new BasicQueryStringUtils(), + ) {} + + private isTokenResponse( + response: PAIATokenResponseJson | TokenErrorJson, + ): response is PAIATokenResponseJson { + return (response as TokenErrorJson).error === undefined; + } + + performRevokeTokenRequest( + configuration: AuthorizationServiceConfiguration, + request: RevokeTokenRequest, + ): Promise { + const revokeTokenResponse = this.requestor.xhr({ + url: configuration.revocationEndpoint, + method: 'GET', + // headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + data: this.utils.stringify(request.toStringMap()), + }); + + return revokeTokenResponse.then(_response => { + return true; + }); + } + + performTokenRequest( + configuration: AuthorizationServiceConfiguration, + request: PAIATokenRequest, + ): Promise { + const tokenResponse = this.requestor.xhr({ + url: configuration.tokenEndpoint, + method: 'POST', + data: { + patron: request.patron, + grant_type: 'authorization_code', + ...request.toStringMap(), + }, + headers: { + 'Authorization': `Basic ${request.code}`, + 'Content-Type': 'application/json', + }, + }); + + return tokenResponse.then(response => { + return this.isTokenResponse(response) + ? new PAIATokenResponse(response) + : Promise.reject(new AppAuthError(response.error, new TokenError(response))); + }); + } +} diff --git a/frontend/app/src/app/modules/auth/protected.routes.ts b/frontend/app/src/app/modules/auth/protected.routes.ts new file mode 100644 index 00000000..e5c4f100 --- /dev/null +++ b/frontend/app/src/app/modules/auth/protected.routes.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {ActivatedRouteSnapshot, Data, Route} from '@angular/router'; +import {SCAuthorizationProviderType} from '@openstapps/core'; + +export interface ProtectedRoute extends Route { + data: { + authProvider: SCAuthorizationProviderType; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + [key: string]: any; + }; +} + +export class ActivatedProtectedRouteSnapshot extends ActivatedRouteSnapshot { + data: Data & {authProvider: ProtectedRoute['data']['authProvider']}; +} + +export type ProtectedRoutes = ProtectedRoute[]; diff --git a/frontend/app/src/app/modules/auth/user-info.model.ts b/frontend/app/src/app/modules/auth/user-info.model.ts new file mode 100644 index 00000000..c8bf3aff --- /dev/null +++ b/frontend/app/src/app/modules/auth/user-info.model.ts @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export interface IUserInfo { + display_name: string; + role: string; + email: string; + user_name: string; +} diff --git a/frontend/app/src/app/modules/background/background.module.ts b/frontend/app/src/app/modules/background/background.module.ts new file mode 100644 index 00000000..96887c33 --- /dev/null +++ b/frontend/app/src/app/modules/background/background.module.ts @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {NgModule} from '@angular/core'; +import {ScheduleSyncService} from './schedule/schedule-sync.service'; +import {DateFormatPipe, DurationPipe} from 'ngx-moment'; +import {CalendarModule} from '../calendar/calendar.module'; +import {ScheduleProvider} from '../calendar/schedule.provider'; +import {StorageProvider} from '../storage/storage.provider'; +import {CalendarService} from '../calendar/calendar.service'; + +/** + * Schedule Module + */ +@NgModule({ + declarations: [], + imports: [CalendarModule], + providers: [ + DurationPipe, + DateFormatPipe, + ScheduleProvider, + StorageProvider, + CalendarService, + ScheduleSyncService, + ], +}) +export class BackgroundModule {} diff --git a/frontend/app/src/app/modules/background/schedule/changes.ts b/frontend/app/src/app/modules/background/schedule/changes.ts new file mode 100644 index 00000000..6079932f --- /dev/null +++ b/frontend/app/src/app/modules/background/schedule/changes.ts @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export interface ChangesOf> { + new: T; + old?: P; + changes: Array; +} diff --git a/frontend/app/src/app/modules/background/schedule/hash.ts b/frontend/app/src/app/modules/background/schedule/hash.ts new file mode 100644 index 00000000..c8e1c626 --- /dev/null +++ b/frontend/app/src/app/modules/background/schedule/hash.ts @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * + */ +export function hashStringToInt(string_: string): number { + return [...string_].reduce( + (accumulator, current) => + (current.codePointAt(0) ?? 0) + (accumulator << 6) + (accumulator << 16) - accumulator, + 0, + ); +} diff --git a/frontend/app/src/app/modules/background/schedule/schedule-sync.service.ts b/frontend/app/src/app/modules/background/schedule/schedule-sync.service.ts new file mode 100644 index 00000000..e50ec240 --- /dev/null +++ b/frontend/app/src/app/modules/background/schedule/schedule-sync.service.ts @@ -0,0 +1,180 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable, OnDestroy} from '@angular/core'; +import { + DateSeriesRelevantData, + dateSeriesRelevantKeys, + formatRelevantKeys, + ScheduleProvider, +} from '../../calendar/schedule.provider'; +import {SCDateSeries, SCThingType, SCUuid} from '@openstapps/core'; +import {LocalNotifications} from '@capacitor/local-notifications'; +import {ThingTranslateService} from '../../../translation/thing-translate.service'; +import {DateFormatPipe, DurationPipe} from 'ngx-moment'; +import {BackgroundFetch} from '@transistorsoft/capacitor-background-fetch'; +import {StorageProvider} from '../../storage/storage.provider'; +import {CalendarService} from '../../calendar/calendar.service'; +import {toICal} from '../../calendar/ical/ical'; +import {Subscription} from 'rxjs'; +import {ChangesOf} from './changes'; +import {hashStringToInt} from './hash'; +import { + CALENDAR_NOTIFICATIONS_ENABLED_KEY, + CALENDAR_SYNC_ENABLED_KEY, + getCalendarSetting, +} from '../../settings/page/calendar-sync-settings-keys'; +import {filter} from 'rxjs/operators'; +import {Capacitor} from '@capacitor/core'; + +@Injectable() +export class ScheduleSyncService implements OnDestroy { + constructor( + private scheduleProvider: ScheduleProvider, + private storageProvider: StorageProvider, + private translator: ThingTranslateService, + private dateFormatPipe: DateFormatPipe, + private durationFormatPipe: DurationPipe, + private calendar: CalendarService, + ) {} + + init() { + this.scheduleProvider.uuids$.pipe(filter(uuids => uuids?.length > 0)).subscribe(uuids => { + this.uuids = uuids; + void this.syncNativeCalendar(); + }); + } + + uuids: SCUuid[]; + + uuidSubscription: Subscription; + + ngOnDestroy() { + this.uuidSubscription?.unsubscribe(); + } + + private async isSyncEnabled(): Promise { + return getCalendarSetting(this.storageProvider, CALENDAR_SYNC_ENABLED_KEY); + } + + private async isNotificationsEnabled(): Promise { + return getCalendarSetting(this.storageProvider, CALENDAR_NOTIFICATIONS_ENABLED_KEY); + } + + async enable() { + if (!Capacitor.isNativePlatform()) return; + + await BackgroundFetch.stop(); + + if ( + [this.isSyncEnabled.bind(this), this.isNotificationsEnabled.bind(this)].some(async it => await it()) + ) { + const status = await BackgroundFetch.configure( + { + minimumFetchInterval: 15, + requiredNetworkType: 1, + }, + async taskId => { + await Promise.all([this.postDifferencesNotification(), this.syncNativeCalendar()]); + + await BackgroundFetch.finish(taskId); + }, + ); + + if (status !== BackgroundFetch.STATUS_AVAILABLE) { + if (status === BackgroundFetch.STATUS_DENIED) { + console.error( + 'The user explicitly disabled background behavior for this app or for the whole system.', + ); + } else if (status === BackgroundFetch.STATUS_RESTRICTED) { + console.error('Background updates are unavailable and the user cannot enable them again.'); + } + } else { + console.info('Starting background fetch.'); + + await BackgroundFetch.start(); + } + } + } + + async getDifferences(): Promise[]> { + const partialEvents = this.scheduleProvider.partialEvents$.getValue(); + + const result = (await this.scheduleProvider.getDateSeries(partialEvents.map(it => it.uid))).dates; + + return result + .map(it => ({ + new: it, + old: partialEvents.find(partialEvent => partialEvent.uid === it.uid), + })) + .map(it => ({ + ...it, + changes: it.old + ? (Object.keys(it.old) as Array).filter( + key => + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + JSON.stringify(it.old![key]) !== JSON.stringify(it.new[key]), + ) + : dateSeriesRelevantKeys, + })); + } + + private formatChanges(changes: ChangesOf): string[] { + return changes.changes.map( + change => + `${ + this.translator.translator.translatedPropertyNames(SCThingType.DateSeries)?.[change] + }: ${formatRelevantKeys[change]( + changes.new[change] as never, + this.dateFormatPipe, + this.durationFormatPipe, + )}`, + ); + } + + async syncNativeCalendar() { + if (!(await this.isSyncEnabled())) return; + + const dateSeries = (await this.scheduleProvider.getDateSeries(this.uuids)).dates; + + const events = dateSeries.flatMap(event => + toICal(event, this.translator.translator, { + allowRRuleExceptions: false, + excludeCancelledEvents: true, + }), + ); + + return this.calendar.syncEvents(events); + } + + async postDifferencesNotification() { + if (!(await this.isNotificationsEnabled())) return; + + const differences = (await this.getDifferences()).filter(it => it.changes.length > 0); + if (differences.length === 0) return; + + if (Capacitor.isNativePlatform()) { + await LocalNotifications.schedule({ + notifications: differences.map(it => ({ + title: it.new.event.name, + body: this.formatChanges(it).join('\n'), + id: hashStringToInt(it.new.uid), + })), + }); + } else { + // TODO: Implement desktop notifications + } + } +} diff --git a/frontend/app/src/app/modules/calendar/add-event-review-modal.component.ts b/frontend/app/src/app/modules/calendar/add-event-review-modal.component.ts new file mode 100644 index 00000000..8fbc93a0 --- /dev/null +++ b/frontend/app/src/app/modules/calendar/add-event-review-modal.component.ts @@ -0,0 +1,180 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnInit} from '@angular/core'; +import { + getICalExport, + getNativeCalendarExport, + ICalEvent, + serializeICal, + toICal, + toICalUpdates, +} from './ical/ical'; +import moment from 'moment'; +import {Share} from '@capacitor/share'; +import {Directory, Encoding, Filesystem} from '@capacitor/filesystem'; +import {Device} from '@capacitor/device'; +import {CalendarService} from './calendar.service'; +import {Dialog} from '@capacitor/dialog'; +import {SCDateSeries} from '@openstapps/core'; +import {ThingTranslateService} from '../../translation/thing-translate.service'; +import {TranslateService} from '@ngx-translate/core'; +import {NewShareData, NewShareNavigator} from './new-share'; + +interface ICalInfo { + title: string; + events: ICalEvent[]; + cancelledEvents: ICalEvent[]; +} + +@Component({ + selector: 'add-event-review-modal', + templateUrl: 'add-event-review-modal.html', + styleUrls: ['add-event-review-modal.scss'], +}) +export class AddEventReviewModalComponent implements OnInit { + moment = moment; + + @Input() dismissAction: () => void; + + @Input() dateSeries: SCDateSeries[]; + + iCalEvents: ICalInfo[]; + + includeCancelled = true; + + isWeb = true; + + constructor( + readonly calendarService: CalendarService, + readonly translator: ThingTranslateService, + readonly translateService: TranslateService, + ) {} + + ngOnInit() { + Device.getInfo().then(it => { + this.isWeb = it.platform === 'web'; + }); + + this.iCalEvents = this.dateSeries.map(event => ({ + title: this.translator.translator.translatedAccess(event).event.name() ?? 'error', + events: toICal(event, this.translator.translator, { + allowRRuleExceptions: true, + excludeCancelledEvents: false, + }), + cancelledEvents: toICalUpdates(event, this.translator.translator), + })); + } + + async toCalendar() { + await Dialog.confirm({ + title: this.translateService.instant('schedule.toCalendar.reviewModal.dialogs.toCalendarConfirm.TITLE'), + message: this.translateService.instant( + 'schedule.toCalendar.reviewModal.dialogs.toCalendarConfirm.DESCRIPTION', + ), + }); + + await this.calendarService.syncEvents( + getNativeCalendarExport(this.dateSeries, this.translator.translator), + ); + + this.dismissAction(); + } + + async download() { + const blob = new Blob( + [serializeICal(getICalExport(this.dateSeries, this.translator.translator, this.includeCancelled))], + { + type: 'text/calendar', + }, + ); + const url = window.URL.createObjectURL(blob); + + const a = document.createElement('a'); + a.href = url; + a.download = `${this.dateSeries.length === 1 ? this.dateSeries[0].event.name : 'stapps_calendar'}.ics`; + a.click(); + } + + async export() { + const info = await Device.getInfo(); + + if (info.platform === 'web') { + const blob = new Blob( + [serializeICal(getICalExport(this.dateSeries, this.translator.translator, this.includeCancelled))], + { + type: 'text/calendar', + }, + ); + const file = new File([blob], 'calendar.ics', {type: blob.type}); + const shareData: NewShareData = { + files: [file], + title: this.translateService.instant('schedule.toCalendar.reviewModal.shareData.TITLE'), + text: this.translateService.instant('schedule.toCalendar.reviewModal.shareData.TEXT'), + }; + + if (!(navigator as unknown as NewShareNavigator).canShare) { + return Dialog.alert({ + title: this.translateService.instant('schedule.toCalendar.reviewModal.dialogs.cannotShare.TITLE'), + message: this.translateService.instant( + 'schedule.toCalendar.reviewModal.dialogs.cannotShare.DESCRIPTION', + ), + }); + } + console.log((navigator as unknown as NewShareNavigator).canShare(shareData)); + + if (!(navigator as unknown as NewShareNavigator).canShare(shareData)) { + return Dialog.alert({ + title: this.translateService.instant( + 'schedule.toCalendar.reviewModal.dialogs.unsupportedFileType.TITLE', + ), + message: this.translateService.instant( + 'schedule.toCalendar.reviewModal.dialogs.unsupportedFileType.DESCRIPTION', + ), + }); + } + try { + await (navigator as unknown as NewShareNavigator).share(shareData); + } catch (error) { + console.log(error); + return Dialog.alert({ + title: this.translateService.instant('schedule.toCalendar.reviewModal.dialogs.failedShare.TITLE'), + message: this.translateService.instant( + 'schedule.toCalendar.reviewModal.dialogs.failedShare.DESCRIPTION', + ), + }); + } + } else { + const result = await Filesystem.writeFile({ + path: `${ + this.dateSeries.length === 1 + ? this.dateSeries[0].event.name + : this.translateService.instant('schedule.toCalendar.reviewModal.shareData.FILE_TYPE') + }.ics`, + data: serializeICal( + getICalExport(this.dateSeries, this.translator.translator, this.includeCancelled), + ), + encoding: Encoding.UTF8, + directory: Directory.Cache, + }); + + await Share.share({ + title: this.translateService.instant('schedule.toCalendar.reviewModal.shareData.TITLE'), + text: this.translateService.instant('schedule.toCalendar.reviewModal.shareData.TEXT'), + url: result.uri, + dialogTitle: this.translateService.instant('schedule.toCalendar.reviewModal.shareData.TITLE'), + }); + } + } +} diff --git a/frontend/app/src/app/modules/calendar/add-event-review-modal.html b/frontend/app/src/app/modules/calendar/add-event-review-modal.html new file mode 100644 index 00000000..1b82fe2e --- /dev/null +++ b/frontend/app/src/app/modules/calendar/add-event-review-modal.html @@ -0,0 +1,73 @@ + +
+ + {{ 'schedule.toCalendar.reviewModal.TITLE' | translate }} + + {{ 'modal.DISMISS' | translate }} + + + + + + + + {{ event.title }} + + + + + + + + + + {{ moment(iCalEvent.start) | amDateFormat: 'll, HH:mm' }} + + + + {{ iCalEvent.rrule.interval }} + {{ iCalEvent.rrule.freq | sentencecase }} + + + + + + + +
+ + {{ 'schedule.toCalendar.reviewModal.INCLUDE_CANCELLED' | translate }} + + +
+
+ + {{ 'share' | translate }} + + + + {{ 'schedule.toCalendar.reviewModal.DOWNLOAD' | translate }} + + + + + {{ 'schedule.toCalendar.reviewModal.EXPORT' | translate }} + + + +
+
diff --git a/frontend/app/src/app/modules/calendar/add-event-review-modal.scss b/frontend/app/src/app/modules/calendar/add-event-review-modal.scss new file mode 100644 index 00000000..2122028f --- /dev/null +++ b/frontend/app/src/app/modules/calendar/add-event-review-modal.scss @@ -0,0 +1,29 @@ +div { + height: 100%; + display: flex; + flex-direction: column; + align-items: stretch; + + ion-card-header { + ion-button { + position: absolute; + right: 0; + top: 0; + } + } + + ion-card-content { + height: 100%; + overflow: scroll; + padding-left: 0; + padding-right: 0; + } +} + +.horizontal-flex { + height: fit-content; + display: flex; + flex-direction: row; + justify-content: end; + align-items: center; +} diff --git a/frontend/app/src/app/modules/calendar/calendar-info.ts b/frontend/app/src/app/modules/calendar/calendar-info.ts new file mode 100644 index 00000000..4af77bec --- /dev/null +++ b/frontend/app/src/app/modules/calendar/calendar-info.ts @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export interface CalendarInfo { + id: number; + name: string; + displayname: string; + isPrimary: boolean; +} diff --git a/frontend/app/src/app/modules/calendar/calendar.module.ts b/frontend/app/src/app/modules/calendar/calendar.module.ts new file mode 100644 index 00000000..b28658fe --- /dev/null +++ b/frontend/app/src/app/modules/calendar/calendar.module.ts @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {NgModule} from '@angular/core'; +import {AddEventReviewModalComponent} from './add-event-review-modal.component'; +import {Calendar} from '@awesome-cordova-plugins/calendar/ngx'; +import {CalendarService} from './calendar.service'; +import {ScheduleProvider} from './schedule.provider'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {FormsModule} from '@angular/forms'; +import {CommonModule} from '@angular/common'; +import {MomentModule} from 'ngx-moment'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +@NgModule({ + declarations: [AddEventReviewModalComponent], + imports: [ + IonicModule.forRoot(), + TranslateModule.forChild(), + ThingTranslateModule.forChild(), + IonIconModule, + FormsModule, + CommonModule, + MomentModule, + UtilModule, + ], + exports: [], + providers: [Calendar, CalendarService, ScheduleProvider], +}) +export class CalendarModule {} diff --git a/frontend/app/src/app/modules/calendar/calendar.service.ts b/frontend/app/src/app/modules/calendar/calendar.service.ts new file mode 100644 index 00000000..984665b9 --- /dev/null +++ b/frontend/app/src/app/modules/calendar/calendar.service.ts @@ -0,0 +1,115 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Calendar} from '@awesome-cordova-plugins/calendar/ngx'; +import {Injectable} from '@angular/core'; +import {ICalEvent} from './ical/ical'; +import moment, {duration, Moment, unitOfTime} from 'moment'; +import {Dialog} from '@capacitor/dialog'; +import {CalendarInfo} from './calendar-info'; +import {Subject} from 'rxjs'; +import {ConfigProvider} from '../config/config.provider'; + +const RECURRENCE_PATTERNS: Partial> = { + year: 'yearly', + month: 'monthly', + week: 'weekly', + day: 'daily', +}; + +@Injectable() +export class CalendarService { + goToDate = new Subject(); + + goToDateClicked = this.goToDate.asObservable(); + + calendarName = 'StApps'; + + // eslint-disable-next-line @typescript-eslint/no-empty-function + constructor(readonly calendar: Calendar, private readonly configProvider: ConfigProvider) { + this.calendarName = (this.configProvider.getValue('name') as string) ?? 'StApps'; + } + + async createCalendar(): Promise { + await this.calendar.createCalendar({ + calendarName: this.calendarName, + calendarColor: '#ff8740', + }); + return this.findCalendar(this.calendarName); + } + + async listCalendars(): Promise { + return this.calendar.listCalendars(); + } + + async findCalendar(name: string): Promise { + return (await this.listCalendars())?.find((calendar: CalendarInfo) => calendar.name === name); + } + + async purge(): Promise { + if (await this.findCalendar(this.calendarName)) { + await this.calendar.deleteCalendar(this.calendarName); + } + return await this.createCalendar(); + } + + async syncEvents(events: ICalEvent[]) { + const calendar = await this.purge(); + if (!calendar) { + return Dialog.alert({ + title: 'Error', + message: 'Could not create calendar', + }); + } + + for (const iCalEvent of events) { + // TODO: change to use non-interactive version after testing is complete + const start = iCalEvent.rrule ? iCalEvent.rrule.from : iCalEvent.start; + + await this.calendar.createEventWithOptions( + iCalEvent.recurrenceSequence + ? `(${iCalEvent.recurrenceSequence}/${iCalEvent.recurrenceSequenceAmount}) ${iCalEvent.name}` + : iCalEvent.name, + iCalEvent.geo, + iCalEvent.description, + new Date(start), + moment(start).add(duration(iCalEvent.duration)).toDate(), + { + id: `${iCalEvent.uuid}-${start}`, + url: iCalEvent.url, + calendarName: calendar.name, + calendarId: calendar.id, + ...(iCalEvent.rrule + ? { + recurrence: RECURRENCE_PATTERNS[iCalEvent.rrule.freq], + recurrenceInterval: iCalEvent.rrule.interval, + recurrenceEndDate: new Date(iCalEvent.rrule.until), + } + : {}), + }, + ); + } + } + + /** + * Emit the calendar index corresponding to the input date. + * + * @param date Moment - date the calendar should go to + */ + emitGoToDate(date: Moment) { + const index = date.diff(moment().startOf('day'), 'days'); + this.goToDate.next(index); + } +} diff --git a/frontend/app/src/app/modules/calendar/ical/ical.spec.ts b/frontend/app/src/app/modules/calendar/ical/ical.spec.ts new file mode 100644 index 00000000..752026d5 --- /dev/null +++ b/frontend/app/src/app/modules/calendar/ical/ical.spec.ts @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {findRRules, RRule} from './ical'; +import moment, {unitOfTime} from 'moment'; +import {SCISO8601Date} from '@openstapps/core'; +import {shuffle} from '../../../_helpers/collections/shuffle'; + +/** + * + */ +function expandRRule(rule: RRule): SCISO8601Date[] { + const initial = moment(rule.from); + const interval = rule.interval ?? 1; + + return shuffle( + Array.from({ + length: Math.floor(moment(rule.until).diff(initial, rule.freq, true) / interval) + 1, + }).map((_, i) => + initial + .clone() + .add(interval * i, rule.freq ?? 'day') + .toISOString(), + ), + ); +} + +describe('iCal', () => { + it('should find simple recurrence patterns', () => { + for (const freq of ['day', 'week', 'month', 'year'] as unitOfTime.Diff[]) { + for (const interval of [1, 2, 3]) { + const pattern: RRule = { + freq: freq, + interval: interval, + from: moment('2021-09-01T10:00').toISOString(), + until: moment('2021-09-01T10:00') + .add(4 * interval, freq) + .toISOString(), + }; + + expect(findRRules(expandRRule(pattern))).toEqual([pattern]); + } + } + }); + + it('should find missing recurrence patterns', () => { + const pattern: SCISO8601Date = moment('2021-09-01T10:00').toISOString(); + + expect(findRRules([pattern])).toEqual([pattern]); + }); + + it('should find mixed recurrence patterns', () => { + const singlePattern: SCISO8601Date = moment('2021-09-01T09:00').toISOString(); + + const weeklyPattern: RRule = { + freq: 'week', + interval: 1, + from: moment('2021-09-03T10:00').toISOString(), + until: moment('2021-09-03T10:00').add(4, 'weeks').toISOString(), + }; + + expect(findRRules(shuffle([singlePattern, ...expandRRule(weeklyPattern)]))).toEqual([ + singlePattern, + weeklyPattern, + ]); + }); +}); diff --git a/frontend/app/src/app/modules/calendar/ical/ical.ts b/frontend/app/src/app/modules/calendar/ical/ical.ts new file mode 100644 index 00000000..143dda3e --- /dev/null +++ b/frontend/app/src/app/modules/calendar/ical/ical.ts @@ -0,0 +1,385 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import { + SCDateSeries, + SCISO8601Date, + SCISO8601Duration, + SCThingTranslator, + SCThingWithCategories, + SCUuid, +} from '@openstapps/core'; +import moment, {unitOfTime} from 'moment'; +import {minBy} from '../../../_helpers/collections/min'; +import {mapValues} from '../../../_helpers/collections/map-values'; + +export interface ICalEvent { + name?: string; + uuid: SCUuid; + categories?: string[]; + description?: string; + cancelled?: boolean; + recurrenceId?: SCISO8601Date; + geo?: string; + /** + * The sequence index if the series had to be split into multiple rrules + */ + recurrenceSequence?: number; + recurrenceSequenceAmount?: number; + rrule?: RRule; + dates?: SCISO8601Date[]; + exceptionDates?: SCISO8601Date[]; + start: SCISO8601Date; + sequence?: number; + duration?: SCISO8601Duration; + url?: string; +} + +export type ICalKeyValuePair = `${Uppercase}${':' | '='}${string}`; + +export type ICalLike = ICalKeyValuePair[]; + +/** + * + */ +function timeDistance( + current: SCISO8601Date, + next: SCISO8601Date | undefined, + recurrence: unitOfTime.Diff, +): number | undefined { + if (!next) { + return undefined; + } + + const diff = moment(next).diff(moment(current), recurrence, true); + + return Math.floor(diff) === diff ? diff : undefined; +} + +export interface RRule { + freq: unitOfTime.Diff; // 'SECONDLY' | 'HOURLY' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY'; + interval: number; + from: SCISO8601Date; + until: SCISO8601Date; +} + +type Optional = Pick, K> & Omit; + +export interface MergedRRule { + rrule?: RRule; + exceptions?: SCISO8601Date[]; + date?: SCISO8601Date; +} + +/** + * Merge compatible RRules to a single RRule with exceptions + */ +export function mergeRRules(rules: Array, allowExceptions = true): MergedRRule[] { + if (!allowExceptions) return rules.map(it => (typeof it === 'string' ? {date: it} : {rrule: it})); + /*map(groupBy(rules, it => `${it.freq}@${it.interval}`), it => { + + });*/ + + return rules.map(it => (typeof it === 'string' ? {date: it} : {rrule: it})) /* TODO */; +} + +/** + * Find RRules in a list of dates + */ +export function findRRules(dates: SCISO8601Date[]): Array { + const sorted = dates.sort((a, b) => moment(a).unix() - moment(b).unix()); + + const output: Optional[] = [ + { + from: sorted[0], + until: sorted[0], + interval: -1, + }, + ]; + + for (let i = 0; i < sorted.length; i++) { + const current = sorted[i]; + const next = sorted[i + 1] as SCISO8601Date | undefined; + const element = output[output.length - 1]; + + const units: unitOfTime.Diff[] = element?.freq ? [element.freq] : ['day', 'week', 'month', 'year']; + const freq = minBy( + units.map(recurrence => ({ + recurrence: recurrence, + dist: timeDistance(current, next, recurrence), + })), + it => it.dist, + )?.recurrence; + const interval = freq ? timeDistance(current, next, freq) : undefined; + + if (element?.interval === -1) { + element.freq = freq; + element.interval = interval ?? -1; + } + + if (!freq || element?.freq !== freq || element.interval !== interval) { + if (element) { + element.until = current; + } + + if (next) { + output.push({ + from: next, + until: next, + interval: -1, + }); + } + } else { + element.until = current; + } + } + + return output.map(it => (it.freq ? (it as RRule) : it.from)); +} + +/** + * + */ +export function strikethrough(text: string): string { + return `\u274C ${[...text].join('\u0336')}\u0336`; +} + +/** + * + */ +function getICalData( + dateSeries: SCDateSeries, + translator: SCThingTranslator, +): Pick { + const translated = translator.translatedAccess(dateSeries); + + return { + name: translated.event()?.name, + uuid: dateSeries.uid, + categories: [ + 'stapps', + ...((translated.event() as SCThingWithCategories)?.categories ?? []), + ], + description: translated.event()?.description ?? translated.description(), + geo: translated.inPlace()?.name, + }; +} + +export interface ToICalOptions { + allowRRuleExceptions?: boolean; + excludeCancelledEvents?: boolean; +} + +/** + * + */ +export function toICal( + dateSeries: SCDateSeries, + translator: SCThingTranslator, + options: ToICalOptions = {}, +): ICalEvent[] { + const rrules = findRRules( + options.excludeCancelledEvents && dateSeries.exceptions + ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + dateSeries.dates.filter(it => !dateSeries.exceptions!.includes(it)) + : dateSeries.dates, + ); + + return mergeRRules(rrules, options.allowRRuleExceptions).map((it, i, array) => ({ + ...getICalData(dateSeries, translator), + dates: dateSeries.dates, + rrule: it.rrule, + recurrenceSequence: array.length > 1 ? i + 1 : undefined, + recurrenceSequenceAmount: array.length > 1 ? array.length : undefined, + exceptionDates: it.exceptions, + start: it.rrule?.from ?? it.date ?? dateSeries.dates[0], + sequence: 0, + duration: dateSeries.duration, + })); +} + +/** + * + */ +export function toICalUpdates(dateSeries: SCDateSeries, translator: SCThingTranslator): ICalEvent[] { + return ( + dateSeries.exceptions?.map(exception => ({ + ...getICalData(dateSeries, translator), + sequence: 1, + recurrenceId: exception, + cancelled: true, + start: exception, + })) ?? [] + ); +} + +/** + * Convert an ISO8601 date to a string in the format YYYYMMDDTHHMMSSZ + */ +export function iso8601ToICalDateTime( + date: T, +): T extends SCISO8601Date ? string : undefined { + return (date ? `${moment(date).utc().format('YYYYMMDDTHHmmss')}Z` : undefined) as never; +} + +/** + * Convert an ISO8601 date to a string in the format YYYYMMDD + */ +export function iso8601ToICalDate(date: SCISO8601Date): string { + return `${moment(date).utc().format('YYYYMMDD')}`; +} + +/** + * Recursively stringify all linebreaks to \n strings + */ +function stringifyLinebreaks(value: T): T { + if (typeof value === 'string') { + return value.replace(/\r?\n|\r/g, '\\n') as T; + } + if (Array.isArray(value)) { + return value.map(stringifyLinebreaks) as T; + } + // noinspection SuspiciousTypeOfGuard + if (value instanceof Object) { + return mapValues(value, stringifyLinebreaks) as T; + } + return value; +} + +/** + * Sanitize an ICal object to not contain line breaks and convert dates to iCal format + */ +export function normalizeICalDates(iCal: ICalEvent): ICalEvent { + return { + ...iCal, + dates: iCal.dates?.filter(it => it !== iCal.start).map(iso8601ToICalDate), + exceptionDates: iCal.exceptionDates?.map(iso8601ToICalDate), + start: iso8601ToICalDateTime(iCal.start), + recurrenceId: iso8601ToICalDateTime(iCal.recurrenceId), + }; +} + +const REPEAT_FREQUENCIES: Partial> = { + day: 'DAILY', + week: 'WEEKLY', + month: 'MONTHLY', + year: 'YEARLY', +}; + +/** + * + */ +export function serializeICalLike(iCal: ICalLike): string { + return iCal.map(stringifyLinebreaks).join('\r\n'); +} + +/** + * Removes all strings that are either undefined or end with 'undefined' + */ +function withoutNullishStrings(array: Array): T[] { + return array.filter(it => it && !it.endsWith('undefined')) as T[]; +} + +/** + * + */ +export function serializeRRule(rrule?: RRule): string | undefined { + return rrule + ? `FREQ=${REPEAT_FREQUENCIES[rrule.freq ?? 's']};UNTIL=${iso8601ToICalDateTime(rrule.until)};INTERVAL=${ + rrule.interval + }` + : undefined; +} + +/** + * Convert an iCal event to a string + */ +export function serializeICalEvent(iCal: ICalEvent): ICalLike { + const normalized = normalizeICalDates(iCal); + + return withoutNullishStrings([ + 'BEGIN:VEVENT', + `DTSTART:${normalized.start}`, + `DURATION:${normalized.duration}`, + `DTSTAMP:${moment().utc().format('YYYYMMDDTHHmmss')}Z`, + `UID:${normalized.uuid}`, + `RECURRENCE-ID:${normalized.recurrenceId}`, + `CATEGORIES:${normalized.categories?.join(',')}`, + `SUMMARY:${normalized.name}`, + `DESCRIPTION:${normalized.description}`, + `STATUS:${normalized.cancelled === true ? 'CANCELLED' : 'CONFIRMED'}`, + `URL:${normalized.url}`, + // `RDATE;VALUE=DATE:${normalized.dates.join(',')}`, + (normalized.exceptionDates?.length ?? 0) > 0 + ? `EXDATE;VALUE=DATE:${normalized.exceptionDates?.join(',')}` + : undefined, + `RRULE:${serializeRRule(normalized.rrule)}`, + 'END:VEVENT', + ]); +} + +/** + * Convert an iCal object to a string + */ +export function serializeICal(iCal: ICalEvent[]): string { + return serializeICalLike([ + 'BEGIN:VCALENDAR', + 'VERSION:2.0', + 'PRODID:-//StApps//NONSGML StApps Calendar//EN', + 'NAME:StApps', + 'X-WR-CALNAME:StApps', + 'X-WR-CALDESC:StApps Calendar', + 'X-WR-TIMEZONE:Europe/Berlin', + 'LOCATION;LANGUAGE=en:Germany', + 'CALSCALE:GREGORIAN', + 'COLOR:#FF0000', + 'METHOD:PUBLISH', + ...iCal.flatMap(serializeICalEvent), + 'END:VCALENDAR', + ]); +} + +/** + * Get transform date series for purpose of native calendar export + */ +export function getNativeCalendarExport( + dateSeries: SCDateSeries[], + translator: SCThingTranslator, +): ICalEvent[] { + return dateSeries.flatMap(event => + toICal(event, translator, { + allowRRuleExceptions: false, + excludeCancelledEvents: true, + }), + ); +} + +/** + * Get transform date series for purpose of iCal file export + */ +export function getICalExport( + dateSeries: SCDateSeries[], + translator: SCThingTranslator, + includeCancelled: boolean, +): ICalEvent[] { + return [ + ...dateSeries.flatMap(event => + toICal(event, translator, { + allowRRuleExceptions: false, + excludeCancelledEvents: !includeCancelled, + }), + ), + ...(includeCancelled ? dateSeries.flatMap(event => toICalUpdates(event, translator)) : []), + ]; +} diff --git a/frontend/app/src/app/modules/calendar/new-share.ts b/frontend/app/src/app/modules/calendar/new-share.ts new file mode 100644 index 00000000..442c2f41 --- /dev/null +++ b/frontend/app/src/app/modules/calendar/new-share.ts @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export interface NewShareData { + files?: File[]; + title?: string; + text?: string; + url?: string; +} + +// web share api is relatively new +// https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share +export interface NewShareNavigator { + canShare: (options: NewShareData) => boolean; + share: (options: NewShareData) => Promise; +} diff --git a/frontend/app/src/app/modules/calendar/schedule.provider.ts b/frontend/app/src/app/modules/calendar/schedule.provider.ts new file mode 100644 index 00000000..46e18ea7 --- /dev/null +++ b/frontend/app/src/app/modules/calendar/schedule.provider.ts @@ -0,0 +1,264 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable unicorn/no-null */ +import {Injectable, OnDestroy} from '@angular/core'; +import { + Bounds, + SCDateSeries, + SCISO8601Date, + SCISO8601Duration, + SCSearchFilter, + SCThingType, + SCUuid, +} from '@openstapps/core'; +import {BehaviorSubject, Observable, Subscription} from 'rxjs'; +import {DataProvider} from '../data/data.provider'; +import {map} from 'rxjs/operators'; +import {DateFormatPipe, DurationPipe} from 'ngx-moment'; +import {pick} from '../../_helpers/collections/pick'; + +/** + * + */ +export function toDateSeriesRelevantData(dateSeries: SCDateSeries): DateSeriesRelevantData { + return pick(dateSeries, dateSeriesRelevantKeys); +} + +export type DateSeriesRelevantKeys = 'uid' | 'dates' | 'exceptions' | 'repeatFrequency' | 'duration'; + +export const dateSeriesRelevantKeys: Array = [ + 'uid', + 'dates', + 'exceptions', + 'repeatFrequency', + 'duration', +]; + +export const formatRelevantKeys: { + [key in DateSeriesRelevantKeys]: ( + value: SCDateSeries[key], + dateFormatter: DateFormatPipe, + durationFormatter: DurationPipe, + ) => string; +} = { + uid: value => value, + dates: (value, dateFormatter) => `[${value.map(it => dateFormatter.transform(it)).join(', ')}]`, + exceptions: (value, dateFormatter) => `[${value?.map(it => dateFormatter.transform(it)).join(', ') ?? ''}]`, + repeatFrequency: (value, _, durationFormatter) => durationFormatter.transform(value), + duration: (value, _, durationFormatter) => durationFormatter.transform(value), +}; + +export type DateSeriesRelevantData = Pick; + +/** + * Provider for app settings + */ +@Injectable() +export class ScheduleProvider implements OnDestroy { + // tslint:disable:prefer-function-over-method + + private static partialEventsStorageKey = 'schedule::partial_events'; + + private _partialEvents$?: BehaviorSubject; + + private _partialEventsSubscription?: Subscription; + + constructor(private readonly dataProvider: DataProvider) { + window.addEventListener('storage', this.storageListener); + } + + /** + * Push one or more values to local storage + */ + private static get(key: string): T[] { + const item = localStorage.getItem(key); + if (item == undefined) { + return []; + } + + return JSON.parse(item) as T[]; + } + + /** + * Push one or more values to local storage + */ + private static set(key: string, item: T[]) { + const newValue = JSON.stringify(item); + // prevent feedback loop from storageEvent -> _uuids$.next() -> set -> storageEvent + if (newValue !== localStorage.getItem(key)) { + localStorage.setItem(key, newValue); + } + } + + public async restore(uuids: SCUuid[]): Promise { + if (uuids.length === 0) { + return undefined; + } + const dateSeries = (await this.getDateSeries(uuids)).dates; + + this._partialEvents$?.next(dateSeries.map(toDateSeriesRelevantData)); + + return dateSeries; + } + + /** + * TODO + */ + public get uuids$(): Observable { + return this.partialEvents$.pipe(map(events => events.map(it => it.uid))); + } + + public get partialEvents$(): BehaviorSubject { + if (!this._partialEvents$) { + const data = ScheduleProvider.get(ScheduleProvider.partialEventsStorageKey); + + this._partialEvents$ = new BehaviorSubject(data ?? []); + this._partialEventsSubscription = this._partialEvents$.subscribe(result => { + ScheduleProvider.set(ScheduleProvider.partialEventsStorageKey, result); + }); + } + + return this._partialEvents$; + } + + /** + * What to do when local storage updates + */ + private storageEventHandler(event: StorageEvent) { + if ( + event.newValue && + event.storageArea === localStorage && + event.key === ScheduleProvider.partialEventsStorageKey + ) { + this._partialEvents$?.next(JSON.parse(event.newValue)); + } + } + + /** + * Listen to updates in local storage + */ + private storageListener = this.storageEventHandler.bind(this); + + /** + * Load Date Series + */ + async getDateSeries( + uuids: SCUuid[], + frequencies?: Array, + from?: SCISO8601Date | 'now', + to?: SCISO8601Date | 'now', + ): Promise<{ + dates: SCDateSeries[]; + min: SCISO8601Date; + max: SCISO8601Date; + }> { + if (uuids.length === 0) { + return { + dates: [], + min: '', + max: '', + }; + } + + const filters: SCSearchFilter[] = [ + { + arguments: { + field: 'type', + value: SCThingType.DateSeries, + }, + type: 'value', + }, + { + arguments: { + filters: uuids.map(uid => ({ + arguments: { + field: 'uid', + value: uid, + }, + type: 'value', + })), + operation: 'or', + }, + type: 'boolean', + }, + ]; + + if (frequencies) { + filters.push({ + arguments: { + filters: frequencies.map(frequency => ({ + arguments: { + field: 'repeatFrequency', + value: frequency, + }, + type: 'value', + })), + operation: 'or', + }, + type: 'boolean', + }); + } + + if (from || to) { + const bounds: Bounds = {}; + if (from) { + bounds.lowerBound = { + limit: from, + mode: 'inclusive', + }; + } + if (to) { + bounds.upperBound = { + limit: to, + mode: 'inclusive', + }; + } + filters.push({ + arguments: { + field: 'dates', + bounds: bounds, + }, + type: 'date range', + }); + } + + const result = await this.dataProvider.search({ + filter: { + arguments: { + filters: filters, + operation: 'and', + }, + type: 'boolean', + }, + size: 50, + }); + + return { + dates: result.data as SCDateSeries[], + // TODO: https://gitlab.com/openstapps/backend/-/issues/100 + min: new Date(2021, 11, 1).toISOString(), + max: new Date(2022, 1, 24).toISOString(), + }; + } + + /** + * TODO + */ + ngOnDestroy(): void { + this._partialEventsSubscription?.unsubscribe(); + window.removeEventListener('storage', this.storageListener); + } +} diff --git a/frontend/app/src/app/modules/catalog/catalog.component.html b/frontend/app/src/app/modules/catalog/catalog.component.html new file mode 100644 index 00000000..3373fb25 --- /dev/null +++ b/frontend/app/src/app/modules/catalog/catalog.component.html @@ -0,0 +1,56 @@ + + + + + + + + + {{ 'catalog.title' | translate | titlecase }} + + + + + {{ semester.acronym }} + + + + + + + + + +

{{ catalog.name }}

+

{{ catalog.acronym }}

+
+
+
+ + + + + + +
+ + {{ 'catalog.detail.EMPTY_SEMESTER' | translate }} + +
+
+
+
+
diff --git a/frontend/app/src/app/modules/catalog/catalog.component.scss b/frontend/app/src/app/modules/catalog/catalog.component.scss new file mode 100644 index 00000000..3e85445c --- /dev/null +++ b/frontend/app/src/app/modules/catalog/catalog.component.scss @@ -0,0 +1,29 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-segment-button { + max-width: 100%; + text-transform: none; +} + +.margin-top { + margin-top: 20vh; +} + +ion-toolbar.in-toolbar { + &:last-of-type { + padding: 0 !important; + } +} diff --git a/frontend/app/src/app/modules/catalog/catalog.component.ts b/frontend/app/src/app/modules/catalog/catalog.component.ts new file mode 100644 index 00000000..73b0eb9d --- /dev/null +++ b/frontend/app/src/app/modules/catalog/catalog.component.ts @@ -0,0 +1,160 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnInit, OnDestroy} from '@angular/core'; +import {Router, ActivatedRoute} from '@angular/router'; +import {SCCatalog, SCSemester} from '@openstapps/core'; +import moment from 'moment'; +import {Subscription} from 'rxjs'; +import {CatalogProvider} from './catalog.provider'; +import {NGXLogger} from 'ngx-logger'; +import {Location} from '@angular/common'; +import {DataRoutingService} from '../data/data-routing.service'; + +@Component({ + selector: 'app-catalog', + templateUrl: './catalog.component.html', + styleUrls: ['./catalog.component.scss'], +}) +export class CatalogComponent implements OnInit, OnDestroy { + /** + * SCSemester to show + */ + activeSemester?: SCSemester; + + /** + * UID of the selected SCSemester + */ + selectedSemesterUID = ''; + + /** + * Available SCSemesters + */ + availableSemesters: SCSemester[] = []; + + /** + * Catalogs (SCCatalog) to show + */ + catalogs: SCCatalog[] | undefined; + + /** + * Array of all subscriptions to Observables + */ + subscriptions: Subscription[] = []; + + /** + * Supercatalog (SCCatalog) to refer to + */ + superCatalog: SCCatalog; + + constructor( + private readonly route: ActivatedRoute, + private readonly catalogProvider: CatalogProvider, + private readonly dataRoutingService: DataRoutingService, + private readonly logger: NGXLogger, + protected router: Router, + public location: Location, + ) { + this.subscriptions.push( + this.dataRoutingService.itemSelectListener().subscribe(item => { + void this.router.navigate(['data-detail', item.uid]); + }), + ); + } + + ngOnInit() { + this.selectedSemesterUID = this.route.snapshot.paramMap.get('uid') ?? ''; + void this.fetchCatalog(); + } + + /** + * Remove subscriptions when the component is removed + */ + ngOnDestroy() { + for (const sub of this.subscriptions) { + sub.unsubscribe(); + } + } + + async fetchCatalog() { + try { + if (this.availableSemesters.length === 0) { + await this.fetchSemesters(); + } + + const response = await this.catalogProvider.getCatalogsWith( + 0, + this.superCatalog, + this.activeSemester?.uid, + ); + this.catalogs = (response.data as SCCatalog[]).sort((a, b) => { + return new Intl.Collator('en', { + numeric: true, + sensitivity: 'accent', + }).compare(a.name, b.name); + }); + } catch (error) { + this.logger.error((error as Error).message); + return; + } + } + + async fetchSemesters(): Promise { + const today = moment().startOf('day').toISOString(); + const semesters = await this.catalogProvider.getRelevantSemesters(); + const currentSemester = semesters.find( + semester => semester.startDate <= today && semester.endDate > today, + ); + const currentSemesterIndex = semesters.findIndex(semester => semester.uid === currentSemester?.uid); + this.availableSemesters = semesters.slice(currentSemesterIndex - 1, currentSemesterIndex + 2).reverse(); + + if (typeof this.activeSemester !== 'undefined') { + return; + } + + this.activeSemester = this.availableSemesters[0]; + this.activeSemester = + this.selectedSemesterUID === '' + ? currentSemester + : this.availableSemesters.find(semester => semester.uid === this.selectedSemesterUID); + if (this.activeSemester && this.selectedSemesterUID === '') { + this.selectedSemesterUID = this.activeSemester.uid; + } + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + segmentChanged(event: any) { + if (this.activeSemester && this.activeSemester.uid !== (event.detail.value as string)) { + this.updateLocation(event.detail.value as string); + } + + this.activeSemester = this.availableSemesters.find( + semester => semester.uid === (event.detail.value as string), + ); + delete this.catalogs; + void this.fetchCatalog(); + } + + updateLocation(semesterUID: string) { + const url = this.router.createUrlTree(['/catalog/', semesterUID]).toString(); + this.location.go(url); + } + + /** + * Emit event that a catalog item was selected + */ + notifySelect(catalog: SCCatalog) { + this.dataRoutingService.emitChildEvent(catalog); + } +} diff --git a/frontend/app/src/app/modules/catalog/catalog.module.ts b/frontend/app/src/app/modules/catalog/catalog.module.ts new file mode 100644 index 00000000..88644e69 --- /dev/null +++ b/frontend/app/src/app/modules/catalog/catalog.module.ts @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {RouterModule, Routes} from '@angular/router'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {MomentModule} from 'ngx-moment'; +import {DataModule} from '../data/data.module'; +import {SettingsProvider} from '../settings/settings.provider'; +import {CatalogComponent} from './catalog.component'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +const catalogRoutes: Routes = [ + {path: 'catalog', component: CatalogComponent}, + {path: 'catalog/:uid', component: CatalogComponent}, +]; + +/** + * Catalog Module + */ +@NgModule({ + declarations: [CatalogComponent], + imports: [ + IonicModule.forRoot(), + FormsModule, + TranslateModule.forChild(), + RouterModule.forChild(catalogRoutes), + IonIconModule, + CommonModule, + MomentModule, + DataModule, + UtilModule, + ], + providers: [SettingsProvider], +}) +export class CatalogModule {} diff --git a/frontend/app/src/app/modules/catalog/catalog.provider.ts b/frontend/app/src/app/modules/catalog/catalog.provider.ts new file mode 100644 index 00000000..f44c0f4e --- /dev/null +++ b/frontend/app/src/app/modules/catalog/catalog.provider.ts @@ -0,0 +1,152 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import { + SCCatalogWithoutReferences, + SCSearchFilter, + SCSearchResponse, + SCSemester, + SCThingType, +} from '@openstapps/core'; +import {DataProvider} from '../data/data.provider'; +/** + * Service for providing catalog and semester data + */ +@Injectable({ + providedIn: 'root', +}) +export class CatalogProvider { + constructor(private readonly dataProvider: DataProvider) {} + + /** + * Get news messages + * TODO: make dates sortable on the backend side and then adjust this method + * + * @param offset TODO + * @param superCatalog TODO + * @param semesterUID TODO + */ + async getCatalogsWith( + offset?: number, + superCatalog?: SCCatalogWithoutReferences, + semesterUID?: string, + ): Promise { + const filters: SCSearchFilter[] = [ + { + type: 'value', + arguments: { + field: 'type', + value: 'catalog', + }, + }, + ]; + + if (typeof semesterUID === 'string') { + filters.push({ + type: 'value', + arguments: { + field: 'academicTerm.uid', + value: semesterUID, + }, + }); + } + + if (typeof superCatalog?.uid === 'string') { + filters.push({ + type: 'value', + arguments: { + field: 'superCatalog.uid', + value: superCatalog.uid, + }, + }); + } else { + filters.push({ + type: 'value', + arguments: { + field: 'level', + value: '0', + }, + }); + } + + return this.dataProvider.search({ + filter: { + arguments: { + operation: 'and', + filters: filters, + }, + type: 'boolean', + }, + size: 40, + from: offset, + sort: [ + { + type: 'ducet', + order: 'asc', + arguments: { + field: 'name', + }, + }, + ], + }); + } + + async getRelevantSemesters(): Promise { + const response = await this.dataProvider.search({ + filter: { + arguments: { + operation: 'and', + filters: [ + { + type: 'value', + arguments: { + field: 'type', + value: SCThingType.Semester, + }, + }, + { + type: 'date range', + arguments: { + bounds: { + lowerBound: { + limit: `${new Date().setFullYear(new Date().getFullYear() - 1)}`, + mode: 'inclusive', + }, + upperBound: { + limit: `${new Date().setFullYear(new Date().getFullYear() + 1)}`, + mode: 'inclusive', + }, + }, + field: 'startDate', + }, + }, + ], + }, + type: 'boolean', + }, + sort: [ + { + arguments: { + field: 'startDate', + }, + order: 'desc', + type: 'generic', + }, + ], + }); + + return response.data as SCSemester[]; + } +} diff --git a/frontend/app/src/app/modules/config/config.module.ts b/frontend/app/src/app/modules/config/config.module.ts new file mode 100644 index 00000000..cd3ee9cb --- /dev/null +++ b/frontend/app/src/app/modules/config/config.module.ts @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {DataModule} from '../data/data.module'; +import {StorageModule} from '../storage/storage.module'; +import {ConfigProvider} from './config.provider'; + +/** + * TODO + */ +@NgModule({ + imports: [StorageModule, DataModule], + providers: [ConfigProvider], +}) +export class ConfigModule {} diff --git a/frontend/app/src/app/modules/config/config.provider.spec.ts b/frontend/app/src/app/modules/config/config.provider.spec.ts new file mode 100644 index 00000000..c271f153 --- /dev/null +++ b/frontend/app/src/app/modules/config/config.provider.spec.ts @@ -0,0 +1,156 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {TestBed} from '@angular/core/testing'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {StorageProvider} from '../storage/storage.provider'; +import {ConfigProvider, STORAGE_KEY_CONFIG} from './config.provider'; +import { + ConfigFetchError, + ConfigInitError, + SavedConfigNotAvailable, + WrongConfigVersionInStorage, +} from './errors'; +import {NGXLogger} from 'ngx-logger'; +import {sampleIndexResponse} from '../../_helpers/data/sample-configuration'; + +describe('ConfigProvider', () => { + let configProvider: ConfigProvider; + let storageProviderSpy: jasmine.SpyObj; + let ngxLogger: jasmine.SpyObj; + + beforeEach(() => { + storageProviderSpy = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put']); + const webHttpClientMethodSpy = jasmine.createSpyObj('StAppsWebHttpClient', ['request']); + ngxLogger = jasmine.createSpyObj('NGXLogger', ['log', 'error', 'warn']); + + TestBed.configureTestingModule({ + imports: [], + providers: [ + ConfigProvider, + { + provide: StorageProvider, + useValue: storageProviderSpy, + }, + { + provide: StAppsWebHttpClient, + useValue: webHttpClientMethodSpy, + }, + { + provide: NGXLogger, + useValue: ngxLogger, + }, + ], + }); + + configProvider = TestBed.inject(ConfigProvider); + }); + + it('should fetch app configuration', async () => { + spyOn(configProvider.client, 'handshake').and.returnValue(Promise.resolve(sampleIndexResponse)); + const result = await configProvider.fetch(); + expect(result).toEqual(sampleIndexResponse); + }); + + it('should throw error on fetch with error response', async () => { + spyOn(configProvider.client, 'handshake').and.throwError(''); + // eslint-disable-next-line unicorn/error-message + let error = new Error(''); + try { + await configProvider.fetch(); + } catch (error_) { + error = error_ as Error; + } + expect(error).toEqual(new ConfigFetchError()); + }); + + it('should init from remote and saved config not available', async () => { + storageProviderSpy.has.and.returnValue(Promise.resolve(false)); + spyOn(configProvider.client, 'handshake').and.returnValue(Promise.resolve(sampleIndexResponse)); + try { + await configProvider.init(); + } catch (error) { + expect(error).toEqual(new SavedConfigNotAvailable()); + } + expect(storageProviderSpy.has).toHaveBeenCalled(); + expect(storageProviderSpy.get).toHaveBeenCalledTimes(0); + expect(configProvider.client.handshake).toHaveBeenCalled(); + expect(await configProvider.getValue('name')).toEqual(sampleIndexResponse.app.name); + }); + + it('should throw error on failed initialisation', async () => { + storageProviderSpy.has.and.returnValue(Promise.resolve(false)); + spyOn(configProvider.client, 'handshake').and.throwError(''); + // eslint-disable-next-line unicorn/no-null + let error = null; + try { + await configProvider.init(); + } catch (error_) { + error = error_; + } + expect(error).toEqual(new ConfigInitError()); + }); + + it('should throw error on wrong config version in storage', async () => { + storageProviderSpy.has.and.returnValue(Promise.resolve(true)); + const wrongConfig = JSON.parse(JSON.stringify(sampleIndexResponse)); + wrongConfig.backend.SCVersion = '0.1.0'; + storageProviderSpy.get.and.returnValue(wrongConfig); + spyOn(configProvider.client, 'handshake').and.returnValue(Promise.resolve(sampleIndexResponse)); + await configProvider.init(); + + expect(ngxLogger.warn).toHaveBeenCalledWith( + new WrongConfigVersionInStorage(configProvider.scVersion, wrongConfig.backend.SCVersion), + ); + }); + + it('should throw error on saved app configuration not available', async () => { + storageProviderSpy.has.and.returnValue(Promise.resolve(false)); + // eslint-disable-next-line unicorn/error-message + let error = new Error(''); + try { + await configProvider.loadLocal(); + } catch (error_) { + error = error_ as Error; + } + expect(error).toEqual(new SavedConfigNotAvailable()); + }); + + it('should save app configuration', async () => { + await configProvider.save(sampleIndexResponse); + expect(storageProviderSpy.put).toHaveBeenCalledWith(STORAGE_KEY_CONFIG, sampleIndexResponse); + }); + + it('should set app configuration', async () => { + await configProvider.set(sampleIndexResponse); + expect(storageProviderSpy.put).toHaveBeenCalled(); + }); + + it('should return app configuration value', async () => { + storageProviderSpy.has.and.returnValue(Promise.resolve(true)); + storageProviderSpy.get.and.returnValue(Promise.resolve(sampleIndexResponse)); + spyOn(configProvider.client, 'handshake').and.returnValue(Promise.resolve(sampleIndexResponse)); + await configProvider.init(); + expect(await configProvider.getValue('name')).toEqual(sampleIndexResponse.app.name); + }); + + it('should init from storage when remote fails', async () => { + storageProviderSpy.has.and.returnValue(Promise.resolve(true)); + storageProviderSpy.get.and.returnValue(Promise.resolve(sampleIndexResponse)); + spyOn(configProvider.client, 'handshake').and.throwError(''); + await configProvider.init(); + + expect(configProvider.getValue('name')).toEqual(sampleIndexResponse.app.name); + }); +}); diff --git a/frontend/app/src/app/modules/config/config.provider.ts b/frontend/app/src/app/modules/config/config.provider.ts new file mode 100644 index 00000000..892c25be --- /dev/null +++ b/frontend/app/src/app/modules/config/config.provider.ts @@ -0,0 +1,186 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {Client} from '@openstapps/api/lib/client'; +import {SCAppConfiguration, SCIndexResponse} from '@openstapps/core'; +import {NGXLogger} from 'ngx-logger'; +import packageJson from '../../../../package.json'; +import {environment} from '../../../environments/environment'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {StorageProvider} from '../storage/storage.provider'; +import { + ConfigFetchError, + ConfigInitError, + ConfigValueNotAvailable, + SavedConfigNotAvailable, + WrongConfigVersionInStorage, +} from './errors'; + +/** + * Key to store config in storage module + * + * TODO: Issue #41 centralise storage keys + */ +export const STORAGE_KEY_CONFIG = 'stapps.config'; + +/** + * Provides configuration + */ +@Injectable({ + providedIn: 'root', +}) +export class ConfigProvider { + /** + * Api client + */ + client: Client; + + /** + * App configuration as IndexResponse + */ + config: SCIndexResponse; + + /** + * Version of the @openstapps/core package that app is using + */ + scVersion = packageJson.dependencies['@openstapps/core']; + + /** + * First session indicator (config not found in storage) + */ + firstSession = true; + + /** + * Constructor, initialise api client + * + * @param storageProvider StorageProvider to load persistent configuration + * @param swHttpClient Api client + * @param logger An angular logger + */ + constructor( + private readonly storageProvider: StorageProvider, + swHttpClient: StAppsWebHttpClient, + private readonly logger: NGXLogger, + ) { + this.client = new Client(swHttpClient, environment.backend_url, environment.backend_version); + } + + /** + * Fetches configuration from backend + */ + async fetch(): Promise { + try { + return await this.client.handshake(this.scVersion); + } catch { + throw new ConfigFetchError(); + } + } + + /** + * Returns the value of an app configuration + * + * @param attribute requested attribute from app configuration + */ + public getValue(attribute: keyof SCAppConfiguration) { + if (typeof this.config.app[attribute] !== 'undefined') { + return this.config.app[attribute]; + } + throw new ConfigValueNotAvailable(attribute); + } + + /** + * Returns a value of the configuration (not only app configuration) + * + * @param attribute requested attribute from the configuration + */ + public getAnyValue(attribute: keyof SCIndexResponse) { + if (typeof this.config[attribute] !== 'undefined') { + return this.config[attribute]; + } + throw new ConfigValueNotAvailable(attribute); + } + + /** + * Initialises the ConfigProvider + * + * @throws ConfigInitError if no configuration could be loaded. + * @throws WrongConfigVersionInStorage if fetch failed and saved config has wrong SCVersion + */ + async init(): Promise { + let loadError; + let fetchError; + // load saved configuration + try { + this.config = await this.loadLocal(); + this.firstSession = false; + this.logger.log(`initialised configuration from storage`); + if (this.config.backend.SCVersion !== this.scVersion) { + loadError = new WrongConfigVersionInStorage(this.scVersion, this.config.backend.SCVersion); + } + } catch (error) { + loadError = error; + } + // fetch remote configuration from backend + try { + const fetchedConfig: SCIndexResponse = await this.fetch(); + await this.set(fetchedConfig); + this.logger.log(`initialised configuration from remote`); + } catch (error) { + fetchError = error; + } + // check for occurred errors and throw them + if (typeof loadError !== 'undefined' && typeof fetchError !== 'undefined') { + throw new ConfigInitError(); + } + if (typeof loadError !== 'undefined') { + this.logger.warn(loadError); + } + if (typeof fetchError !== 'undefined') { + this.logger.warn(fetchError); + } + } + + /** + * Returns saved configuration from StorageModule + * + * @throws SavedConfigNotAvailable if no configuration could be loaded + */ + async loadLocal(): Promise { + // get local configuration + if (await this.storageProvider.has(STORAGE_KEY_CONFIG)) { + return this.storageProvider.get(STORAGE_KEY_CONFIG); + } + throw new SavedConfigNotAvailable(); + } + + /** + * Saves the configuration from the provider + * + * @param config configuration to save + */ + async save(config: SCIndexResponse): Promise { + await this.storageProvider.put(STORAGE_KEY_CONFIG, config); + } + + /** + * Sets the configuration in the module and writes it into app storage + * + * @param config SCIndexResponse to set + */ + async set(config: SCIndexResponse): Promise { + this.config = config; + await this.save(this.config); + } +} diff --git a/frontend/app/src/app/modules/config/errors.ts b/frontend/app/src/app/modules/config/errors.ts new file mode 100644 index 00000000..f9fcd84d --- /dev/null +++ b/frontend/app/src/app/modules/config/errors.ts @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {AppError} from '../../_helpers/errors'; + +/** + * Error that is thrown when fetching from backend fails + */ +export class ConfigFetchError extends AppError { + constructor() { + super('ConfigFetchError', 'App configuration could not be fetched!'); + } +} + +/** + * Error that is thrown when the ConfigProvider could be initialised + */ +export class ConfigInitError extends AppError { + constructor() { + super('ConfigInitError', 'App configuration could not be initialised!'); + } +} + +/** + * Error that is thrown when the requested config value is not available + */ +export class ConfigValueNotAvailable extends AppError { + constructor(valueKey: string) { + super('ConfigValueNotAvailable', `No attribute "${valueKey}" in config available!`); + } +} + +/** + * Error that is thrown when no saved config is available + */ +export class SavedConfigNotAvailable extends AppError { + constructor() { + super('SavedConfigNotAvailable', 'No saved app configuration available.'); + } +} + +/** + * Error that is thrown when the SCVersion of the saved config is not compatible with the app + */ +export class WrongConfigVersionInStorage extends AppError { + constructor(correctVersion: string, savedVersion: string) { + super( + 'WrongConfigVersionInStorage', + `The saved configs backend version ${savedVersion} ` + + `does not equal the configured backend version ${correctVersion} of the app.`, + ); + } +} diff --git a/frontend/app/src/app/modules/dashboard/dashboard-collapse.ts b/frontend/app/src/app/modules/dashboard/dashboard-collapse.ts new file mode 100644 index 00000000..790ccf34 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/dashboard-collapse.ts @@ -0,0 +1,98 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Animation, AnimationController} from '@ionic/angular'; +import {NgZone} from '@angular/core'; + +export class DashboardCollapse { + collapseAnimation: Animation; + + nextFrame: number; + + setReady: () => void; + + // eslint-disable-next-line unicorn/consistent-function-scoping + ready = new Promise(resolve => (this.setReady = resolve)); + + set active(value: boolean) { + this.zone.runOutsideAngular(() => { + if (value) { + this.start(); + } else { + this.stop(); + } + }); + } + + constructor( + private animationControl: AnimationController, + private zone: NgZone, + private scrollContainer: HTMLElement, + toolbar: HTMLElement, + schedule: HTMLElement, + ) { + this.zone + .runOutsideAngular(async () => { + this.collapseAnimation = this.animationControl + .create() + .duration(1000) + .addAnimation([ + this.animationControl + .create() + .addElement(toolbar) + .fromTo('transform', 'translateY(0)', 'translateY(-32px)'), + this.animationControl + .create() + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + .addElement(toolbar.querySelector(':scope > div > ion-img')!) + .fromTo('transform', 'scale(1)', 'scale(0.35)'), + this.animationControl + .create() + .addElement(schedule) + .fromTo('transform', 'translateY(0) scaleY(1)', 'translateY(-75px) scaleY(0.8)'), + this.animationControl + .create() + .addElement(schedule.querySelectorAll(':scope > a > *')) + .fromTo('transform', 'scaleY(1)', `scaleY(${1 / 0.8})`), + ]); + this.start(); + this.setReady(); + }) + .then(); + } + + private start() { + this.collapseAnimation.progressStart(true, this.scrollContainer.scrollTop / 172); + let pos = this.scrollContainer.scrollTop; + const animate = () => { + if (pos !== this.scrollContainer.scrollTop) { + pos = this.scrollContainer.scrollTop; + this.collapseAnimation.progressStep(this.scrollContainer.scrollTop / 172); + } + this.nextFrame = requestAnimationFrame(animate); + }; + this.nextFrame = requestAnimationFrame(animate); + } + + private stop() { + cancelAnimationFrame(this.nextFrame); + this.collapseAnimation.progressEnd(0, 0, 0); + } + + destroy() { + this.stop(); + this.collapseAnimation.destroy(); + } +} diff --git a/frontend/app/src/app/modules/dashboard/dashboard.collapse.component.scss b/frontend/app/src/app/modules/dashboard/dashboard.collapse.component.scss new file mode 100644 index 00000000..c29904e2 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/dashboard.collapse.component.scss @@ -0,0 +1,49 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@import '../../../theme/util/mixins'; + +@include ion-md-down { + ion-toolbar, + .logo, + .schedule, + .schedule > a > * { + will-change: transform; + } + + .logo { + transform-origin: center right; + } + + .schedule { + > a { + > * { + transform-origin: center; + } + + > ion-label:first-child { + transform-origin: bottom; + } + + > ion-label:last-child { + transform-origin: top; + } + + > ion-icon:first-child { + transform-origin: top; + } + } + } +} diff --git a/frontend/app/src/app/modules/dashboard/dashboard.component.html b/frontend/app/src/app/modules/dashboard/dashboard.component.html new file mode 100644 index 00000000..98c1c61f --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/dashboard.component.html @@ -0,0 +1,50 @@ + + + + {{ 'dashboard.header.title' | daytimeKey | translate }} +
+
+
+ + + + + + + + diff --git a/frontend/app/src/app/modules/dashboard/dashboard.component.scss b/frontend/app/src/app/modules/dashboard/dashboard.component.scss new file mode 100644 index 00000000..76cee475 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/dashboard.component.scss @@ -0,0 +1,143 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@import '../../../theme/util/mixins'; + +:host ion-header { + z-index: 1; +} + +:host ion-toolbar:last-of-type { + --padding-top: var(--spacing-md); + --padding-bottom: var(--spacing-md); + z-index: -1; + + ion-icon { + margin-right: var(--spacing-sm); + width: var(--font-size-xl); + height: var(--font-size-xl); + } + + ion-label { + font-family: var(--headline-font-family); + font-size: var(--font-size-md); + font-weight: 700; + } + + .logo { + width: 27vw; + max-width: 150px; + max-height: 80px; + aspect-ratio: 1/1; + object-position: right; + margin-left: auto; + margin-right: 0; + } +} + +ion-content { + --background: var(--ion-color-light); + --padding-bottom: var(--spacing-xl); +} + +.schedule { + width: 100%; + z-index: 3; + background: var(--ion-color-primary); + display: flex; + justify-content: space-between; + gap: var(--spacing-md); + padding: var(--spacing-sm); + padding-top: 0; + + @include ion-md-up { + position: unset; + width: unset; + height: calc(var(--tablet-top-bar-height) + (2 * var(--spacing-xl))); + margin: 0; + padding: var(--spacing-xl); + } + + a { + display: flex; + flex-direction: column; + color: var(--ion-color-primary-contrast); + text-decoration: none; + height: auto; + padding: var(--spacing-lg); + border-radius: var(--border-radius-default); + } + + a:first-child { + text-align: center; + flex: 0 0 auto; + aspect-ratio: 1; + box-sizing: content-box; + max-height: 60px; + overflow: hidden; + border: 2px solid var(--ion-color-primary-tint); + + @include phoneLandscape { + height: auto; + } + } + + a:first-child { + justify-content: space-around; + align-items: center; + gap: var(--spacing-sm); + + ion-label { + font-size: var(--font-size-xxs); + font-weight: var(--font-weight-semi-bold); + } + + &:hover ::ng-deep stapps-icon { + --fill: 1; + } + } + + a:last-child { + flex: 1 1 65%; + background: var(--linear-gradient); + justify-content: center; + z-index: 1; + + @include ion-md-up { + flex: 1 1 100%; + } + + @include phoneLandscape { + flex: 1 1 85%; + } + + ion-label { + font-size: var(--font-size-xxs); + font-weight: var(--font-weight-bold); + line-height: 1.4; + } + + ion-label:first-child { + text-transform: uppercase; + color: var(--ion-color-secondary); + } + + ion-label:nth-child(2n) { + font-size: var(--font-size-lg); + font-weight: var(--font-weight-semi-bold); + line-height: 1.2; + } + } +} diff --git a/frontend/app/src/app/modules/dashboard/dashboard.component.ts b/frontend/app/src/app/modules/dashboard/dashboard.component.ts new file mode 100644 index 00000000..e4fe0f3d --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/dashboard.component.ts @@ -0,0 +1,146 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, ElementRef, NgZone, OnDestroy, OnInit, ViewChild} from '@angular/core'; +import {Router} from '@angular/router'; +import {Location} from '@angular/common'; +import {Subscription} from 'rxjs'; +import moment from 'moment'; +import {SCDateSeries, SCUuid} from '@openstapps/core'; +import {SplashScreen} from '@capacitor/splash-screen'; + +import {DataRoutingService} from '../data/data-routing.service'; +import {ScheduleProvider} from '../calendar/schedule.provider'; +import {AnimationController, IonContent} from '@ionic/angular'; +import {DashboardCollapse} from './dashboard-collapse'; +import {BreakpointObserver} from '@angular/cdk/layout'; + +// const scrollTimeline = new ScrollTimeline(); + +@Component({ + selector: 'app-dashboard', + templateUrl: './dashboard.component.html', + styleUrls: ['./dashboard.component.scss', '/dashboard.collapse.component.scss'], +}) +export class DashboardComponent implements OnInit, OnDestroy { + /** + * Array of all subscriptions to Observables + */ + subscriptions: Subscription[] = []; + + @ViewChild('toolbar', {read: ElementRef}) toolbarRef: ElementRef; + + @ViewChild('schedule', {read: ElementRef}) scheduleRef: ElementRef; + + @ViewChild('ionContent') ionContentRef: IonContent; + + collapseAnimation: DashboardCollapse; + + /** + * UUID subscription + */ + private _eventUuidSubscription: Subscription; + + /** + * The events to display + */ + private eventUuids: SCUuid[]; + + /** + * Next event in calendar + */ + nextEvent: SCDateSeries | undefined; + + /** + * Slider options + */ + quickNavigationOptions = { + slidesPerView: 'auto', + spaceBetween: 12, + freeMode: { + enabled: true, + sticky: true, + }, + }; + + constructor( + private readonly dataRoutingService: DataRoutingService, + private scheduleProvider: ScheduleProvider, + protected router: Router, + public location: Location, + private animationControl: AnimationController, + private breakpointObserver: BreakpointObserver, + private zone: NgZone, + ) { + this.subscriptions.push( + this.dataRoutingService.itemSelectListener().subscribe(item => { + void this.router.navigate(['data-detail', item.uid]); + }), + ); + } + + async ngOnInit() { + this._eventUuidSubscription = this.scheduleProvider.uuids$.subscribe(async result => { + this.eventUuids = result; + await this.loadNextEvent(); + }); + await SplashScreen.hide(); + + this.collapseAnimation = new DashboardCollapse( + this.animationControl, + this.zone, + await this.ionContentRef.getScrollElement(), + this.toolbarRef.nativeElement, + this.scheduleRef.nativeElement, + ); + + this.subscriptions.push( + this.breakpointObserver.observe(['(min-width: 768px)']).subscribe(async state => { + await this.collapseAnimation.ready; + this.collapseAnimation.active = !state.matches; + }), + ); + } + + async loadNextEvent() { + const dataSeries = await this.scheduleProvider.getDateSeries( + this.eventUuids, + undefined, + moment(moment.now()).startOf('week').toISOString(), + ); + + this.nextEvent = dataSeries.dates + .map(series => ({ + time: new Date( + series.dates + .sort((a, b) => new Date(a).getTime() - new Date(b).getTime()) + .find(date => new Date(date) > new Date()) || Number.POSITIVE_INFINITY, + ).getTime(), + series, + })) + .sort(({time: a}, {time: b}) => a - b) + .find(({time}) => !!time)?.series; + } + + /** + * Remove subscriptions when the component is removed + */ + ngOnDestroy() { + for (const sub of this.subscriptions) { + sub.unsubscribe(); + } + this._eventUuidSubscription.unsubscribe(); + this.collapseAnimation.destroy(); + } +} diff --git a/frontend/app/src/app/modules/dashboard/dashboard.module.ts b/frontend/app/src/app/modules/dashboard/dashboard.module.ts new file mode 100644 index 00000000..66919a61 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/dashboard.module.ts @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {RouterModule, Routes} from '@angular/router'; +import {IonicModule} from '@ionic/angular'; +import {SwiperModule} from 'swiper/angular'; +import {TranslateModule, TranslatePipe} from '@ngx-translate/core'; +import {MomentModule} from 'ngx-moment'; +import {DataModule} from '../data/data.module'; +import {SettingsProvider} from '../settings/settings.provider'; +import {DashboardComponent} from './dashboard.component'; +import {EditModalComponent} from './edit-modal/edit-modal.component'; +import {SearchSectionComponent} from './sections/search-section/search-section.component'; +import {NewsSectionComponent} from './sections/news-section/news-section.component'; +import {MensaSectionComponent} from './sections/mensa-section/mensa-section.component'; +import {MensaSectionContentComponent} from './sections/mensa-section/mensa-section-content.component'; +import {FavoritesSectionComponent} from './sections/favorites-section/favorites-section.component'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; +import {NewsModule} from '../news/news.module'; + +const catalogRoutes: Routes = [ + { + path: 'overview', + component: DashboardComponent, + }, +]; + +/** + * Catalog Module + */ +@NgModule({ + declarations: [ + EditModalComponent, + SearchSectionComponent, + NewsSectionComponent, + MensaSectionComponent, + MensaSectionContentComponent, + FavoritesSectionComponent, + DashboardComponent, + ], + imports: [ + IonicModule.forRoot(), + IonIconModule, + FormsModule, + TranslateModule.forChild(), + RouterModule.forChild(catalogRoutes), + CommonModule, + MomentModule, + DataModule, + SwiperModule, + ThingTranslateModule.forChild(), + UtilModule, + NewsModule, + ], + providers: [SettingsProvider, TranslatePipe], + exports: [EditModalComponent], +}) +export class DashboardModule {} diff --git a/frontend/app/src/app/modules/dashboard/dashboard.provider.ts b/frontend/app/src/app/modules/dashboard/dashboard.provider.ts new file mode 100644 index 00000000..043753c0 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/dashboard.provider.ts @@ -0,0 +1,80 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import { + SCBooleanFilterArguments, + SCMessage, + SCSearchBooleanFilter, + SCSearchFilter, + SCSearchQuery, +} from '@openstapps/core'; +import {DataProvider} from '../data/data.provider'; +/** + * Service for providing catalog and semester data + */ +@Injectable({ + providedIn: 'root', +}) +export class DashboardProvider { + constructor(private readonly dataProvider: DataProvider) {} + + /** + * Get news messages + * + * @param size How many messages/news to fetch + * @param from From which (results) page to start + * @param filters Additional filters to apply + */ + async getNews(size: number, from: number, filters?: SCSearchFilter[]): Promise { + const query: SCSearchQuery = { + filter: { + type: 'boolean', + arguments: { + filters: [ + { + type: 'value', + arguments: { + field: 'type', + value: 'message', + }, + }, + ], + operation: 'and', + }, + }, + sort: [ + { + type: 'generic', + arguments: { + field: 'datePublished', + }, + order: 'desc', + }, + ], + size: size, + from: from, + }; + + if (typeof filters !== 'undefined') { + for (const filter of filters) { + ((query.filter as SCSearchBooleanFilter).arguments as SCBooleanFilterArguments).filters.push(filter); + } + } + + const result = await this.dataProvider.search(query); + + return result.data as SCMessage[]; + } +} diff --git a/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal-type.enum.ts b/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal-type.enum.ts new file mode 100644 index 00000000..0e2aacc3 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal-type.enum.ts @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export enum EditModalTypeEnum { + CHECKBOXES, + RADIOBOXES, +} + +export interface EditModalItem { + id: unknown; + labelLocalized: string; + active: boolean; +} diff --git a/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.html b/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.html new file mode 100644 index 00000000..804342d8 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.html @@ -0,0 +1,52 @@ + + + + + {{ 'modal.settings' | translate | titlecase }} + + {{ 'modal.DISMISS_CANCEL' | translate }} + + + {{ 'modal.DISMISS_CONFIRM' | translate }} + + + + + + + + + + {{ item.labelLocalized }} + + + + + + + {{ 'dashboard.canteens.choose_favorite' | translate }} + + + {{ item.labelLocalized }} + + + + + diff --git a/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.scss b/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.scss new file mode 100644 index 00000000..8206b7d9 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.scss @@ -0,0 +1,3 @@ +:host { + --width: 100vw; +} diff --git a/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.ts b/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.ts new file mode 100644 index 00000000..acb4d47b --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/edit-modal/edit-modal.component.ts @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnInit, ViewChild} from '@angular/core'; +import {IonReorderGroup, ModalController} from '@ionic/angular'; +import {ItemReorderEventDetail} from '@ionic/core'; +import {EditModalItem, EditModalTypeEnum} from './edit-modal-type.enum'; + +/** + * Shows a modal window to sort and enable/disable menu items + */ +@Component({ + selector: 'stapps-dashboard-edit-modal', + templateUrl: 'edit-modal.component.html', + styleUrls: ['edit-modal.component.scss'], +}) +export class EditModalComponent implements OnInit { + @ViewChild(IonReorderGroup) reorderGroup: IonReorderGroup; + + @Input() type: EditModalTypeEnum = EditModalTypeEnum.CHECKBOXES; + + @Input() items: EditModalItem[]; + + @Input() selectedValue: string; + + reorderedItems: EditModalItem[]; + + types = EditModalTypeEnum; + + constructor(public modalController: ModalController) {} + + ngOnInit() { + this.reorderedItems = this.items; + } + + ionViewWillLeave() { + this.dismissModal(); + } + + doReorder(event: CustomEvent) { + this.reorderedItems = event.detail.complete(this.reorderedItems); + } + + onSaveClick() { + this.modalController.dismiss({ + items: this.reorderedItems, + selectedValue: this.selectedValue, + }); + } + + dismissModal() { + this.modalController.dismiss(); + } +} diff --git a/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.html b/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.html new file mode 100644 index 00000000..33592964 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + {{ 'dashboard.favorites.no_favorite_prefix' | translate }} + {{ 'dashboard.favorites.no_favorite_link' | translate }} + {{ 'dashboard.favorites.no_favorite_suffix' | translate }} + + + + diff --git a/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.scss b/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.scss new file mode 100644 index 00000000..050ea60e --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.scss @@ -0,0 +1,23 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.nothing-selected::part(native) { + background: none; + color: var(--ion-color-medium-shade); +} + +simple-swiper { + --swiper-slide-width: 180px; +} diff --git a/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.ts b/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.ts new file mode 100644 index 00000000..72eaef6d --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/favorites-section/favorites-section.component.ts @@ -0,0 +1,130 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnInit} from '@angular/core'; +import {ActivatedRoute, Router} from '@angular/router'; +import {AlertController, AnimationController} from '@ionic/angular'; +import {combineLatest} from 'rxjs'; +import {debounceTime, distinctUntilChanged, startWith, take} from 'rxjs/operators'; +import {NGXLogger} from 'ngx-logger'; +import {SCThings} from '@openstapps/core'; + +import {DataProvider} from '../../../data/data.provider'; +import {DataRoutingService} from '../../../data/data-routing.service'; +import {SearchPageComponent} from '../../../data/list/search-page.component'; +import {PositionService} from '../../../map/position.service'; +import {SettingsProvider} from '../../../settings/settings.provider'; +import {FavoritesService} from '../../../favorites/favorites.service'; +import {ContextMenuService} from '../../../menu/context/context-menu.service'; +import {ConfigProvider} from '../../../config/config.provider'; + +/** + * Shows a section with meals of the chosen mensa + */ +@Component({ + selector: 'stapps-favorites-section', + templateUrl: 'favorites-section.component.html', + styleUrls: ['favorites-section.component.scss'], +}) +export class FavoritesSectionComponent extends SearchPageComponent implements OnInit { + constructor( + protected readonly alertController: AlertController, + protected dataProvider: DataProvider, + protected readonly contextMenuService: ContextMenuService, + protected readonly settingsProvider: SettingsProvider, + protected readonly logger: NGXLogger, + protected dataRoutingService: DataRoutingService, + protected router: Router, + route: ActivatedRoute, + positionService: PositionService, + private favoritesService: FavoritesService, + configProvider: ConfigProvider, + animationController: AnimationController, + ) { + super( + alertController, + dataProvider, + contextMenuService, + settingsProvider, + logger, + dataRoutingService, + router, + route, + positionService, + configProvider, + animationController, + ); + } + + async initialize() { + this.subscriptions.push( + combineLatest([ + this.queryTextChanged.pipe( + debounceTime(this.searchQueryDueTime), + distinctUntilChanged(), + startWith(this.queryText), + ), + this.favoritesService.favoritesChanged$, + ]).subscribe(async () => { + await this.fetchAndUpdateItems(); + this.queryChanged.next(); + }), + ); + } + + /** + * Fetches/updates the favorites (search page component's method override) + */ + async fetchAndUpdateItems() { + this.favoritesService + .search(this.queryText, this.filterQuery, this.sortQuery) + .pipe(take(1)) + .subscribe(result => { + this.items = new Promise(resolve => { + resolve(result.data && result.data.filter(item => !this.isMensaThing(item))); + }); + }); + } + + /** + * Helper function as 'typeof' is not accessible in HTML + * + * @param item TODO + */ + isMensaThing(item: SCThings): boolean { + return ( + this.hasCategories(item) && + ((item.categories as string[]).includes('canteen') || + (item.categories as string[]).includes('cafe') || + (item.categories as string[]).includes('student canteen') || + (item.categories as string[]).includes('restaurant')) + ); + } + + /** + * TODO + * + * @param item TODO + */ + hasCategories(item: SCThings): item is SCThings & {categories: string[]} { + return typeof (item as {categories: string[]}).categories !== 'undefined'; + } + + /** + * Emit event that an item was selected + */ + notifySelect(item: SCThings) { + this.dataRoutingService.emitChildEvent(item); + } +} diff --git a/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.html b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.html new file mode 100644 index 00000000..33dacbd0 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.html @@ -0,0 +1,34 @@ + + + + + + + + + {{ 'dashboard.canteens.no_dishes_available' | translate }} + + + + +
+
diff --git a/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.scss b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.scss new file mode 100644 index 00000000..df17c82c --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.scss @@ -0,0 +1,28 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.no-dishes::part(native) { + background: none; + color: var(--ion-color-medium-shade); +} + +simple-swiper { + --swiper-slide-width: 180px; +} + +.placeholder, +stapps-data-list-item { + height: 140px; +} diff --git a/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.ts b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.ts new file mode 100644 index 00000000..4765f9a4 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section-content.component.ts @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCDish, SCPlace, SCThings} from '@openstapps/core'; +import {PlaceMensaService} from '../../../data/types/place/special/mensa/place-mensa-service'; +import {animate, style, transition, trigger} from '@angular/animations'; +import moment from 'moment'; + +/** + * Shows a section with meals of the chosen mensa + */ +@Component({ + selector: 'stapps-mensa-section-content', + templateUrl: 'mensa-section-content.component.html', + styleUrls: ['mensa-section-content.component.scss'], + animations: [ + trigger('fade', [ + transition(':enter', [style({opacity: '0'}), animate('500ms ease', style({opacity: '1'}))]), + ]), + ], +}) +export class MensaSectionContentComponent { + /** + * Map of dishes for each day + */ + // eslint-disable-next-line unicorn/no-null + dishes: Promise; + + @Input() set item(value: SCThings) { + if (!value) return; + this.dishes = this.mensaService.getAllDishes(value as SCPlace, 1).then(it => { + const closestDayWithDishes = Object.keys(it) + .filter(key => it[key].length > 0) + .find(key => moment(key).isSame(moment(), 'day')); + return closestDayWithDishes ? it[closestDayWithDishes] : []; + }); + } + + constructor(private readonly mensaService: PlaceMensaService) {} +} diff --git a/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.html b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.html new file mode 100644 index 00000000..a8bfd224 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.html @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + {{ 'dashboard.canteens.no_favorite_prefix' | translate }} + {{ 'dashboard.canteens.no_favorite_link' | translate }} + {{ 'dashboard.canteens.no_favorite_suffix' | translate }} + + + + + diff --git a/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.scss b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.scss new file mode 100644 index 00000000..d52401dc --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.scss @@ -0,0 +1,28 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +stapps-mensa-section-content { + display: block; + margin-block-start: var(--spacing-md); +} + +.nothing-selected::part(native) { + background: none; + color: var(--ion-color-medium-shade); +} + +:host { + transition: height 150ms ease; +} diff --git a/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.ts b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.ts new file mode 100644 index 00000000..f8043538 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/mensa-section/mensa-section.component.ts @@ -0,0 +1,143 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component} from '@angular/core'; +import {ActivatedRoute, Router} from '@angular/router'; +import {AlertController, AnimationController, ModalController} from '@ionic/angular'; +import {combineLatest, Subscription} from 'rxjs'; +import {debounceTime, distinctUntilChanged, startWith, take} from 'rxjs/operators'; +import {NGXLogger} from 'ngx-logger'; +import {SCThings} from '@openstapps/core'; + +import {DataProvider} from '../../../data/data.provider'; +import {DataRoutingService} from '../../../data/data-routing.service'; +import {FoodDataListComponent} from '../../../data/list/food-data-list.component'; +import {PositionService} from '../../../map/position.service'; +import {SettingsProvider} from '../../../settings/settings.provider'; +import {FavoritesService} from '../../../favorites/favorites.service'; +import {ContextMenuService} from '../../../menu/context/context-menu.service'; +import {ConfigProvider} from '../../../config/config.provider'; +import {animate, style, transition, trigger} from '@angular/animations'; + +/** + * Shows a section with meals of the chosen mensa + */ +@Component({ + selector: 'stapps-mensa-section', + templateUrl: 'mensa-section.component.html', + styleUrls: ['mensa-section.component.scss'], + animations: [ + trigger('fade', [transition(':enter', [style({opacity: '0'}), animate(250, style({opacity: '1'}))])]), + ], +}) +export class MensaSectionComponent extends FoodDataListComponent { + sub: Subscription; + + constructor( + protected readonly alertController: AlertController, + protected dataProvider: DataProvider, + protected readonly contextMenuService: ContextMenuService, + protected readonly settingsProvider: SettingsProvider, + protected readonly logger: NGXLogger, + protected dataRoutingService: DataRoutingService, + protected router: Router, + route: ActivatedRoute, + protected positionService: PositionService, + public modalController: ModalController, + protected favoritesService: FavoritesService, + configProvider: ConfigProvider, + animationController: AnimationController, + ) { + super( + alertController, + dataProvider, + contextMenuService, + settingsProvider, + logger, + dataRoutingService, + router, + route, + positionService, + configProvider, + animationController, + ); + } + + async initialize() { + super.initialize(); + + this.subscriptions.push( + combineLatest([ + this.queryTextChanged.pipe( + debounceTime(this.searchQueryDueTime), + distinctUntilChanged(), + startWith(this.queryText), + ), + this.favoritesService.favoritesChanged$, + ]).subscribe(async query => { + this.queryText = query[0]; + this.from = 0; + if (typeof this.filterQuery !== 'undefined' || this.queryText?.length > 0 || this.showDefaultData) { + await this.fetchAndUpdateItems(); + this.queryChanged.next(); + } + }), + ); + } + + /** + * Fetches/updates the favorites (search page component's method override) + */ + async fetchAndUpdateItems() { + this.favoritesService + .search(this.queryText, this.filterQuery, this.sortQuery) + .pipe(take(1)) + .subscribe(result => { + this.items = new Promise(resolve => { + resolve(result.data && result.data.filter(item => this.isMensaThing(item))); + }); + }); + } + + /** + * Helper function as 'typeof' is not accessible in HTML + * + * @param item TODO + */ + isMensaThing(item: SCThings): boolean { + return ( + this.hasCategories(item) && + ((item.categories as string[]).includes('canteen') || + (item.categories as string[]).includes('cafe') || + (item.categories as string[]).includes('student canteen') || + (item.categories as string[]).includes('restaurant')) + ); + } + + /** + * TODO + * + * @param item TODO + */ + hasCategories(item: SCThings): item is SCThings & {categories: string[]} { + return typeof (item as {categories: string[]}).categories !== 'undefined'; + } + + /** + * Action when user clicked edit to this section + */ + onSectionEdit() { + void this.router.navigate(['/canteen']); + } +} diff --git a/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.html b/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.html new file mode 100644 index 00000000..4bcb7516 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.html @@ -0,0 +1,29 @@ + + + + + + + + + + {{ 'dashboard.news.moreNews' | translate | titlecase }} + + + + + + diff --git a/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.scss b/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.scss new file mode 100644 index 00000000..0930dad6 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.scss @@ -0,0 +1,45 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +simple-swiper { + --swiper-slide-width: 256px; +} + +.more-news { + width: 128px; + font-size: var(--font-size-xl); + --color: var(--ion-color-medium-tint); + + &::part(native) { + height: 100%; + background: none; + border-radius: var(--border-radius-default); + } + + ion-label { + position: absolute; + top: 0; + left: 0; + } + + ion-thumbnail { + position: absolute; + bottom: 0; + left: 0; + z-index: 100; + height: 200px; + width: 200px; + } +} diff --git a/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.ts b/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.ts new file mode 100644 index 00000000..98b5e223 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/news-section/news-section.component.ts @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component} from '@angular/core'; +import {NewsProvider} from '../../../news/news.provider'; +import {SCMessage} from '@openstapps/core'; +import {animate, style, transition, trigger} from '@angular/animations'; +import {Router} from '@angular/router'; + +/** + * Shows a section with news + */ +@Component({ + selector: 'stapps-news-section', + templateUrl: 'news-section.component.html', + styleUrls: ['news-section.component.scss'], + animations: [ + trigger('fade', [ + transition(':enter', [ + style({opacity: '0', transform: 'translateX(100px)'}), + animate('250ms ease', style({opacity: '1', transform: 'translateX(0)'})), + ]), + ]), + ], +}) +export class NewsSectionComponent { + news: Promise; + + constructor(readonly newsProvider: NewsProvider, readonly router: Router) { + this.news = this.newsProvider + .getCurrentFilters() + .then(filters => this.newsProvider.getList(5, 0, filters)); + } +} diff --git a/frontend/app/src/app/modules/dashboard/sections/search-section/search-route-transition.ts b/frontend/app/src/app/modules/dashboard/sections/search-section/search-route-transition.ts new file mode 100644 index 00000000..9ea8d976 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/search-section/search-route-transition.ts @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {AnimationController} from '@ionic/angular'; +import {AnimationOptions} from '@ionic/angular/providers/nav-controller'; + +/** + * + */ +export function homePageSearchTransition(animationController: AnimationController) { + let scheduleTransform: WebKitCSSMatrix; + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return (_baseElement: HTMLElement, options: AnimationOptions | any) => { + const back = options.direction === 'back'; + const searchPage = back ? options.leavingEl : options.enteringEl; + const homePage = back ? options.enteringEl : options.leavingEl; + const rootTransition = animationController + .create() + .duration(options.duration ?? 350) + .easing( + // quintic in / out + back ? 'cubic-bezier(0.64, 0, 0.78, 0)' : 'cubic-bezier(0.22, 1, 0.36, 1)', + ); + + const homePageContent = homePage.querySelector('ion-content').shadowRoot.querySelector('.inner-scroll'); + const leavingSearchbar = homePage.querySelector('ion-searchbar'); + const enteringSearchbar = searchPage.querySelector('ion-searchbar'); + const searchPageHeader = searchPage.querySelector('ion-header'); + const homePageSchedule = homePage.querySelector('.schedule'); + + if (!back) { + scheduleTransform = new WebKitCSSMatrix(window.getComputedStyle(homePageSchedule).transform); + } + const enteringSearchbarTop = enteringSearchbar.getBoundingClientRect().top; + const leavingSearchbarTop = leavingSearchbar.getBoundingClientRect().top; + const searchbarDelta = leavingSearchbarTop - enteringSearchbarTop; + const searchHeaderHeight = searchPageHeader.getBoundingClientRect().bottom; + const homeHeaderHeight = homePageSchedule.getBoundingClientRect().bottom; + const homePageSlideAmount = -50; + const headerDelta = homeHeaderHeight - searchHeaderHeight; + + const enterTransition = animationController.create().fromTo('opacity', '0', '1').addElement(searchPage); + const exitTransition = animationController.create().fromTo('opacity', '1', '1').addElement(homePage); + + const homePageSlide = animationController + .create() + .fromTo('transform', `translateY(0px)`, `translateY(${homePageSlideAmount}px)`) + .addElement(homePageContent); + + const toolbarExit = animationController + .create() + .fromTo( + 'transform', + scheduleTransform.toString(), + scheduleTransform.translate(undefined, -headerDelta).toString(), + ) + .addElement(homePageSchedule); + const headerSlide = animationController + .create() + .fromTo('transform', `translateY(${headerDelta}px)`, 'translateY(0px)') + .addElement(searchPageHeader); + + const searchbarSlideIn = animationController + .create() + .fromTo('transform', `translateY(${searchbarDelta - headerDelta}px)`, 'translateY(0px)') + .beforeStyles({ + 'z-index': 1000, + }) + .afterClearStyles(['z-index']) + .addElement(searchPage.querySelector('.toolbar-searchbar')); + const searchbarSlideOut = animationController + .create() + .fromTo('transform', 'translateY(0px)', `translateY(-${searchbarDelta + homePageSlideAmount}px)`) + .addElement(homePage.querySelector('stapps-search-section > stapps-section')); + + rootTransition + .addAnimation([ + enterTransition, + exitTransition, + toolbarExit, + homePageSlide, + headerSlide, + searchbarSlideIn, + searchbarSlideOut, + ]) + .direction(back ? 'reverse' : 'normal'); + return rootTransition; + }; +} diff --git a/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.html b/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.html new file mode 100644 index 00000000..6365aa5f --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.html @@ -0,0 +1,24 @@ + + + + + + + diff --git a/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.scss b/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.scss new file mode 100644 index 00000000..4af0e644 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.scss @@ -0,0 +1,43 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-ripple-effect { + z-index: 1000; + border-radius: var(--spacing-sm); +} + +ion-searchbar { + cursor: text; +} + +ion-searchbar ::ng-deep .searchbar-input-container { + pointer-events: none; +} + +ion-searchbar.ios { + ion-ripple-effect { + display: none; + } + + transition: opacity 150ms ease; + &:active { + opacity: 0.6; + } + @media (hover: hover) { + &:hover { + opacity: 0.6; + } + } +} diff --git a/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.ts b/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.ts new file mode 100644 index 00000000..053241f7 --- /dev/null +++ b/frontend/app/src/app/modules/dashboard/sections/search-section/search-section.component.ts @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component} from '@angular/core'; +import {Router} from '@angular/router'; +import {Capacitor} from '@capacitor/core'; +import {Keyboard} from '@capacitor/keyboard'; +import {AnimationBuilder, AnimationController} from '@ionic/angular'; +import {homePageSearchTransition} from './search-route-transition'; + +/** + * Shows a search input field + */ +@Component({ + selector: 'stapps-search-section', + templateUrl: 'search-section.component.html', + styleUrls: ['search-section.component.scss'], +}) +export class SearchSectionComponent { + searchTerm = ''; + + routeTransition: AnimationBuilder; + + constructor(private router: Router, private animationController: AnimationController) { + this.routeTransition = homePageSearchTransition(this.animationController); + } + + /** + * User submits search + */ + onSubmitSearch() { + this.router + .navigate(['/search'], {queryParams: {query: this.searchTerm}}) + .then(() => this.hideKeyboard()); + } + + /** + * Hides keyboard in native app environments + */ + hideKeyboard() { + if (Capacitor.isNativePlatform()) { + Keyboard.hide(); + } + } +} diff --git a/frontend/app/src/app/modules/data/chips/action-chip-list.component.ts b/frontend/app/src/app/modules/data/chips/action-chip-list.component.ts new file mode 100644 index 00000000..9a039dcc --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/action-chip-list.component.ts @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCDateSeries, SCThings, SCThingType} from '@openstapps/core'; + +/** + * Shows a horizontal list of action chips + */ +@Component({ + selector: 'stapps-action-chip-list', + templateUrl: 'action-chip-list.html', + styleUrls: ['action-chip-list.scss'], +}) +export class ActionChipListComponent { + private _item: SCThings; + + /** + * If chips are applicable + */ + applicable: Record = {}; + + /** + * The item the action belongs to + */ + @Input() set item(item: SCThings) { + this._item = item; + + this.applicable = { + locate: false, // TODO: reimplement this at a later date + event: + item.type === SCThingType.AcademicEvent || + (item.type === SCThingType.DateSeries && (item as SCDateSeries).dates.length > 0), + }; + } + + get item() { + return this._item; + } +} diff --git a/frontend/app/src/app/modules/data/chips/action-chip-list.html b/frontend/app/src/app/modules/data/chips/action-chip-list.html new file mode 100644 index 00000000..42c80b7e --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/action-chip-list.html @@ -0,0 +1,18 @@ + + + + + diff --git a/frontend/app/src/app/modules/data/chips/action-chip-list.scss b/frontend/app/src/app/modules/data/chips/action-chip-list.scss new file mode 100644 index 00000000..18ed7893 --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/action-chip-list.scss @@ -0,0 +1,24 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host { + display: flex; + flex-direction: row; + width: fit-content; + + &:has(*) { + height: 48px; + } +} diff --git a/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.component.ts b/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.component.ts new file mode 100644 index 00000000..5542e635 --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.component.ts @@ -0,0 +1,204 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* tslint:disable:prefer-function-over-method */ +import {Component, Input, OnDestroy, ViewChild} from '@angular/core'; +import {IonRouterOutlet, ModalController} from '@ionic/angular'; +import {SCDateSeries, SCThing, SCThingType, SCUuid} from '@openstapps/core'; +import {Subscription} from 'rxjs'; +import {ScheduleProvider} from '../../../calendar/schedule.provider'; +import {CoordinatedSearchProvider} from '../../coordinated-search.provider'; +import { + chipSkeletonTransition, + chipTransition, +} from '../../../../animation/skeleton-transitions/chip-loading-transition'; +import {AddEventStates, AddEventStatesMap} from './add-event-action-chip.config'; +import {EditEventSelectionComponent} from '../edit-event-selection.component'; +import {AddEventReviewModalComponent} from '../../../calendar/add-event-review-modal.component'; + +/** + * Shows a horizontal list of action chips + */ +@Component({ + selector: 'stapps-add-event-action-chip', + templateUrl: 'add-event-action-chip.html', + styleUrls: ['add-event-action-chip.scss'], + animations: [chipSkeletonTransition, chipTransition], +}) +export class AddEventActionChipComponent implements OnDestroy { + /** + * Associated date series + */ + associatedDateSeries: Promise; + + /** + * Color + */ + color: string; + + /** + * Disabled + */ + disabled: boolean; + + /** + * Icon + */ + icon: string; + + /** + * Current state of icon fill + */ + iconFill: boolean; + + /** + * Label + */ + label: string; + + /** + * State + */ + state: AddEventStates; + + /** + * States + */ + states = AddEventStatesMap; + + /** + * UUIDs + */ + uuids: SCUuid[]; + + /** + * UUID Subscription + */ + uuidSubscription: Subscription; + + @ViewChild('selection', {static: false}) + selection: EditEventSelectionComponent; + + constructor( + readonly dataProvider: CoordinatedSearchProvider, + readonly modalController: ModalController, + readonly scheduleProvider: ScheduleProvider, + readonly routerOutlet: IonRouterOutlet, + ) {} + + /** + * Apply state + */ + applyState(state: AddEventStates) { + this.state = state; + const {label, icon, disabled, fill, color} = this.states[state]; + this.label = label; + this.icon = icon; + this.iconFill = fill; + this.disabled = disabled; + this.color = color; + } + + /** + * TODO + */ + ngOnDestroy() { + this.uuidSubscription?.unsubscribe(); + } + + async export() { + const modal = await this.modalController.create({ + component: AddEventReviewModalComponent, + canDismiss: true, + cssClass: 'add-modal', + componentProps: { + dismissAction: () => { + modal.dismiss(); + }, + dateSeries: this.selection.selection.children + .flatMap(it => it.children) + .filter(it => it.selected) + .map(it => it.item), + }, + }); + + await modal.present(); + await modal.onWillDismiss(); + } + + /** + * Init + */ + @Input() set item(item: SCThing) { + // Angular optimizes and reuses components, so in lists, sometimes the same + // component is used for different items. This means that the component + // suddenly changes to a different item. This is a problem because the + // component is not aware of the new item if we just used ngOnInit. + if (this.uuidSubscription) { + this.uuidSubscription.unsubscribe(); + } + + this.associatedDateSeries = + item.type === SCThingType.DateSeries + ? Promise.resolve([item as SCDateSeries]) + : this.dataProvider + .coordinatedSearch({ + filter: { + arguments: { + filters: [ + { + arguments: { + field: 'type', + value: SCThingType.DateSeries, + }, + type: 'value', + }, + { + arguments: { + field: 'event.uid', + value: item.uid, + }, + type: 'value', + }, + ], + operation: 'and', + }, + type: 'boolean', + }, + }) + .then(it => it.data as SCDateSeries[]); + + this.uuidSubscription = this.scheduleProvider.uuids$.subscribe(async result => { + this.uuids = result; + const associatedDateSeries = await this.associatedDateSeries; + if (associatedDateSeries.length === 0) { + this.applyState(AddEventStates.UNAVAILABLE); + + return; + } + switch (associatedDateSeries.map(it => it.uid).filter(it => !this.uuids.includes(it)).length) { + case 0: + this.applyState(AddEventStates.ADDED_ALL); + break; + case associatedDateSeries.length: + this.applyState(AddEventStates.REMOVED_ALL); + break; + default: + this.applyState(AddEventStates.ADDED_SOME); + break; + } + }); + } +} diff --git a/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.config.ts b/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.config.ts new file mode 100644 index 00000000..8d7b0330 --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.config.ts @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {SCIcon} from '../../../../util/ion-icon/icon'; + +export enum AddEventStates { + ADDED_ALL, + ADDED_SOME, + REMOVED_ALL, + UNAVAILABLE, +} + +export const AddEventStatesMap = { + [AddEventStates.ADDED_ALL]: { + icon: SCIcon`event_available`, + fill: true, + label: 'data.chips.add_events.ADDED_ALL', + disabled: false, + color: 'success', + }, + [AddEventStates.ADDED_SOME]: { + icon: SCIcon`event`, + fill: true, + label: 'data.chips.add_events.ADDED_SOME', + disabled: false, + color: 'success', + }, + [AddEventStates.REMOVED_ALL]: { + icon: SCIcon`calendar_today`, + fill: false, + label: 'data.chips.add_events.REMOVED_ALL', + disabled: false, + color: 'primary', + }, + [AddEventStates.UNAVAILABLE]: { + icon: SCIcon`event_busy`, + fill: false, + label: 'data.chips.add_events.UNAVAILABLE', + disabled: true, + color: 'dark', + }, +}; diff --git a/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.html b/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.html new file mode 100644 index 00000000..d5f0bc3e --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.html @@ -0,0 +1,59 @@ + + +
+ + + {{ label | translate }} + + + +
+ +
+
+ + + + {{ 'schedule.toCalendar.reviewModal.DOWNLOAD' | translate | titlecase }} + + + + +
+
+
+ + + + + +
diff --git a/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.scss b/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.scss new file mode 100644 index 00000000..bfc2a3d4 --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/data/add-event-action-chip.scss @@ -0,0 +1,46 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@import 'src/theme/common/ion-content-parallax'; + +:host { + display: block; + padding: var(--spacing-sm); + + ::ng-deep ion-skeleton-text { + width: 50px; + } +} + +.stack-children { + display: grid; + align-items: start; + justify-items: start; +} + +.stack-children > * { + grid-column-start: 1; + grid-row-start: 1; +} + +.modal-content { + --background: var(--ion-color-primary); + --color: var(--ion-color-primary-contrast); + + @include ion-content-parallax($content-size: 160px); +} + +ion-footer > ion-toolbar { + --border-color: var(--ion-color-light-shade); +} diff --git a/frontend/app/src/app/modules/data/chips/data/locate-action-chip.component.ts b/frontend/app/src/app/modules/data/chips/data/locate-action-chip.component.ts new file mode 100644 index 00000000..af4a260e --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/data/locate-action-chip.component.ts @@ -0,0 +1,38 @@ +/* eslint-disable class-methods-use-this */ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCThing} from '@openstapps/core'; + +/** + * Shows a horizontal list of action chips + */ +@Component({ + selector: 'stapps-locate-action-chip', + templateUrl: 'locate-action-chip.html', +}) +export class LocateActionChipComponent { + /** + * Item + */ + @Input() item: SCThing; + + /** + * Click + */ + onClick(/*event: MouseEvent*/) { + // TODO + } +} diff --git a/frontend/app/src/app/modules/data/chips/data/locate-action-chip.html b/frontend/app/src/app/modules/data/chips/data/locate-action-chip.html new file mode 100644 index 00000000..b5c40993 --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/data/locate-action-chip.html @@ -0,0 +1,22 @@ + + + + + {{ 'Locate' | translate }} + + + + diff --git a/frontend/app/src/app/modules/data/chips/edit-event-selection.component.ts b/frontend/app/src/app/modules/data/chips/edit-event-selection.component.ts new file mode 100644 index 00000000..182e1f56 --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/edit-event-selection.component.ts @@ -0,0 +1,120 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; +import {ModalController, PopoverController} from '@ionic/angular'; +import {SCDateSeries} from '@openstapps/core'; +import { + DateSeriesRelevantData, + ScheduleProvider, + toDateSeriesRelevantData, +} from '../../calendar/schedule.provider'; +import {CalendarService} from '../../calendar/calendar.service'; +import {ThingTranslatePipe} from '../../../translation/thing-translate.pipe'; +import {groupBy, groupByProperty} from '../../../_helpers/collections/group-by'; +import {mapValues} from '../../../_helpers/collections/map-values'; +import {stringSortBy} from '../../../_helpers/collections/string-sort'; +import {uniqBy} from '../../../_helpers/collections/uniq'; +import {differenceBy} from '../../../_helpers/collections/difference'; +import {SelectionValue, TreeNode} from './tree-node'; + +/** + * Shows a horizontal list of action chips + */ +@Component({ + selector: 'stapps-edit-event-selection', + templateUrl: 'edit-event-selection.html', + styleUrls: ['edit-event-selection.scss'], +}) +export class EditEventSelectionComponent implements OnInit { + /** + * The item the action belongs to + */ + @Input() items: SCDateSeries[]; + + /** + * Selection of the item + */ + selection: TreeNode>; + + /** + * Uuids + */ + partialDateSeries: DateSeriesRelevantData[]; + + @Output() + modified = new EventEmitter(); + + constructor( + readonly ref: ChangeDetectorRef, + readonly scheduleProvider: ScheduleProvider, + readonly popoverController: PopoverController, + readonly calendar: CalendarService, + readonly modalController: ModalController, + readonly thingTranslatePipe: ThingTranslatePipe, + ) {} + + ngOnInit() { + this.partialDateSeries = this.scheduleProvider.partialEvents$.value; + this.reset(); + } + + private getSelection(): { + selected: DateSeriesRelevantData[]; + unselected: DateSeriesRelevantData[]; + } { + const selection = mapValues( + groupByProperty( + this.selection.children.flatMap(it => it.children), + 'selected', + ), + value => value.map(it => toDateSeriesRelevantData(it.item)), + ); + + return {selected: selection.true ?? [], unselected: selection.false ?? []}; + } + + getModifiedEvents(): DateSeriesRelevantData[] { + const {selected, unselected} = this.getSelection(); + + return uniqBy( + [...differenceBy(this.partialDateSeries, unselected, it => it.uid), ...selected], + it => it.uid, + ); + } + + reset() { + this.selection = new TreeNode( + Object.values( + groupBy( + this.items + .map(item => ({ + selected: this.partialDateSeries.some(it => it.uid === item.uid), + item: item, + })) + .sort(stringSortBy(it => it.item.repeatFrequency)), + it => it.item.repeatFrequency, + ), + ).map(item => new TreeNode(item, this.ref)), + this.ref, + ); + } + + /** + * Save selection + */ + save() { + this.scheduleProvider.partialEvents$.next(this.getModifiedEvents()); + } +} diff --git a/frontend/app/src/app/modules/data/chips/edit-event-selection.html b/frontend/app/src/app/modules/data/chips/edit-event-selection.html new file mode 100644 index 00000000..dbb99b1a --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/edit-event-selection.html @@ -0,0 +1,58 @@ + + + + + {{ 'data.chips.add_events.popover.ALL' | translate }} + + + + + + + + + {{ + frequency.children[0].item.repeatFrequency + ? (frequency.children[0].item.repeatFrequency | durationLocalized: true | sentencecase) + : ('data.chips.add_events.popover.SINGLE' | translate | titlecase) + }} + + + + + + + + {{ date.item.duration | amDuration: 'hours' }} + {{ 'data.chips.add_events.popover.AT' | translate }} + {{ date.item.dates[0] | amDateFormat: 'HH:mm ddd' }} + {{ 'data.chips.add_events.popover.UNTIL' | translate }} + {{ date.item.dates[date.item.dates.length - 1] | amDateFormat: 'll' }} + + + + {{ date.item.duration | amDuration: 'hours' }} + {{ 'data.chips.add_events.popover.AT' | translate }} + {{ date.item.dates[date.item.dates.length - 1] | amDateFormat: 'll, HH:mm' }} + + + + + + diff --git a/frontend/app/src/app/modules/data/chips/edit-event-selection.scss b/frontend/app/src/app/modules/data/chips/edit-event-selection.scss new file mode 100644 index 00000000..f347a8e7 --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/edit-event-selection.scss @@ -0,0 +1,44 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-item-divider.ios > ion-checkbox { + margin-right: 8px; +} + +.list-header { + --padding-start: 0; + --background: var(--ion-color-primary-shade); + + > ion-list-header { + --color: var(--ion-color-primary-contrast); + --background: none; + } + + > ion-checkbox { + --background: none; + --border-color: rgba(var(--ion-color-primary-contrast-rgb), 0.77); + --background-checked: var(--ion-color-primary-contrast); + --border-color-checked: var(--ion-color-primary-contrast); + --checkmark-color: var(--ion-color-primary); + } +} + +:host > .list-header { + --background: none; +} + +ion-list.md { + padding-top: 0; +} diff --git a/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.html b/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.html new file mode 100644 index 00000000..42f523c7 --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.html @@ -0,0 +1,19 @@ + + + + + {{ displayValue }} + diff --git a/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.scss b/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.scss new file mode 100644 index 00000000..9fed43eb --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.scss @@ -0,0 +1,23 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-chip { + --background: var(--ion-color-primary-tint); + --color: var(--ion-color-primary-contrast); + + &.active { + --background: var(--ion-color-primary-shade); + } +} diff --git a/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.ts b/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.ts new file mode 100644 index 00000000..5c8a258f --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/filter/chip-filter.component.ts @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, EventEmitter, Input, Output} from '@angular/core'; +/** + * Shows a chip filter + */ +@Component({ + selector: 'stapps-chip-filter', + templateUrl: './chip-filter.component.html', + styleUrls: ['./chip-filter.component.scss'], +}) +export class ChipFilterComponent { + /** + * If the chip (filter) is active + */ + @Input() active: boolean; + + /** + * Text to display on the chip + */ + @Input() displayValue: string; + + /** + * Emits when the chip has been activated/deactivated + */ + @Output() toggle = new EventEmitter(); + + /** + * Value to emit when chip has been activated/deactivated + */ + @Input() value: unknown; + + /** + * Signalize that the chip filter has been activated/deactivated + */ + emitToggle(value: unknown) { + this.toggle.emit(value); + } +} diff --git a/frontend/app/src/app/modules/data/chips/tree-node.ts b/frontend/app/src/app/modules/data/chips/tree-node.ts new file mode 100644 index 00000000..dd7bf59f --- /dev/null +++ b/frontend/app/src/app/modules/data/chips/tree-node.ts @@ -0,0 +1,136 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {ChangeDetectorRef} from '@angular/core'; +import {SCDateSeries} from '@openstapps/core'; + +export enum Selection { + ON = 2, + PARTIAL = 1, + OFF = 0, +} + +/** + * A tree + * + * The generic is to preserve type safety of how deep the tree goes. + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export class TreeNode | SelectionValue> { + /** + * Value of this node + */ + checked: boolean; + + /** + * If items are partially selected + */ + indeterminate: boolean; + + /** + * Parent of this node + */ + parent?: TreeNode>; + + constructor(readonly children: T[], readonly ref: ChangeDetectorRef) { + this.updateParents(); + this.accumulateApplyValues(); + } + + /** + * Accumulate values of children to set current value + */ + private accumulateApplyValues() { + const selections: number[] = this.children.map(it => + it instanceof TreeNode + ? it.checked + ? Selection.ON + : it.indeterminate + ? Selection.PARTIAL + : Selection.OFF + : (it as SelectionValue).selected + ? Selection.ON + : Selection.OFF, + ); + + this.checked = selections.every(it => it === Selection.ON); + this.indeterminate = this.checked ? false : selections.some(it => it > Selection.OFF); + } + + /** + * Apply the value of this node to all child nodes + */ + private applyValueDownwards() { + for (const child of this.children) { + if (child instanceof TreeNode) { + child.checked = this.checked; + child.indeterminate = false; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (child as TreeNode).applyValueDownwards(); + } else { + (child as SelectionValue).selected = this.checked; + } + } + } + + /** + * Set all children's parent to this + */ + private updateParents() { + for (const child of this.children) { + if (child instanceof TreeNode) { + child.parent = this as TreeNode>; + } + } + } + + /** + * Update values to all parents upwards + */ + private updateValueUpwards() { + this.parent?.accumulateApplyValues(); + this.parent?.updateValueUpwards(); + } + + /** + * Click on this node + */ + click() { + this.checked = !this.checked; + this.indeterminate = false; + this.applyValueDownwards(); + this.updateValueUpwards(); + } + + /** + * Notify that a child's value has changed + */ + notifyChildChanged() { + this.accumulateApplyValues(); + this.updateValueUpwards(); + } +} + +export interface SelectionValue { + /** + * Item that was selected + */ + item: SCDateSeries; + + /** + * Selection + */ + selected: boolean; +} diff --git a/frontend/app/src/app/modules/data/coordinated-search.provider.spec.ts b/frontend/app/src/app/modules/data/coordinated-search.provider.spec.ts new file mode 100644 index 00000000..5ca8f803 --- /dev/null +++ b/frontend/app/src/app/modules/data/coordinated-search.provider.spec.ts @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {arrayToIndexMap} from './coordinated-search.provider'; + +describe('CoordinatedSearchProvider', () => { + it('transform arrays correctly', () => { + expect(arrayToIndexMap(['a', 'b', 'c'])).toEqual({0: 'a', 1: 'b', 2: 'c'}); + }); +}); diff --git a/frontend/app/src/app/modules/data/coordinated-search.provider.ts b/frontend/app/src/app/modules/data/coordinated-search.provider.ts new file mode 100644 index 00000000..299de051 --- /dev/null +++ b/frontend/app/src/app/modules/data/coordinated-search.provider.ts @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {SCSearchRequest, SCSearchResponse} from '@openstapps/core'; +import {Injectable} from '@angular/core'; +import {DataProvider} from './data.provider'; + +/** + * Delay execution for (at least) a set amount of time + */ +async function delay(ms: number): Promise { + return await new Promise(resolve => setTimeout(resolve, ms)); +} + +/** + * Transforms an array to an object with the indices as keys + * + * ['a', 'b', 'c'] => {0: 'a', 1: 'b', 2: 'c'} + */ +export function arrayToIndexMap(array: T[]): Record { + return array.reduce((previous, current, index) => { + previous[index] = current; + return previous; + }, {} as Record); +} + +interface OngoingQuery { + request: SCSearchRequest; + response?: Promise; +} + +/** + * Coordinated search request that bundles requests from multiple modules into a single one + */ +@Injectable({ + providedIn: 'root', +}) +export class CoordinatedSearchProvider { + constructor(readonly dataProvider: DataProvider) {} + + /** + * Queue of ongoing queries + */ + queue: OngoingQuery[] = []; + + /** + * Start a coordinated search that merges requests across components + * + * This method collects the request, then: + * 1. If the queue is full, dispatches all immediately + * 2. If not, waits a set amount of time for other requests to come in + */ + async coordinatedSearch(query: SCSearchRequest, latencyMs = 50): Promise { + const ongoingQuery: OngoingQuery = {request: query}; + this.queue.push(ongoingQuery); + + if (this.queue.length < this.dataProvider.backendQueriesLimit) { + await delay(latencyMs); + } + + if (this.queue.length > 0) { + // because we are guaranteed to have limited our queue size to be + // <= to the backendQueriesLimite as of above, we can bypass the wrapper + // in the data provider that usually would be responsible for splitting up the requests + + const responses = this.dataProvider.client.multiSearch( + arrayToIndexMap(this.queue.map(it => it.request)), + ); + + for (const [index, request] of this.queue.entries()) { + request.response = new Promise(resolve => responses.then(it => resolve(it[index]))); + } + + this.queue = []; + } + + // Response is guaranteed to be defined here + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return await ongoingQuery.response!; + } +} diff --git a/frontend/app/src/app/modules/data/data-facets.provider.spec.ts b/frontend/app/src/app/modules/data/data-facets.provider.spec.ts new file mode 100644 index 00000000..f3660e77 --- /dev/null +++ b/frontend/app/src/app/modules/data/data-facets.provider.spec.ts @@ -0,0 +1,157 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {TestBed} from '@angular/core/testing'; +import {SCFacet, SCThing, SCFacetBucket} from '@openstapps/core'; +import {sampleAggregations} from '../../_helpers/data/sample-configuration'; +import {sampleThingsMap} from '../../_helpers/data/sample-things'; +import {DataFacetsProvider} from './data-facets.provider'; +import {DataModule} from './data.module'; +import {DataProvider} from './data.provider'; +import {StAppsWebHttpClient} from './stapps-web-http-client.provider'; + +describe('DataProvider', () => { + let dataFacetsProvider: DataFacetsProvider; + const sampleFacets: SCFacet[] = [ + { + buckets: [ + {key: 'education', count: 4}, + {key: 'learn', count: 3}, + {key: 'computer', count: 3}, + ], + field: 'categories', + }, + { + buckets: [ + {key: 'Major One', count: 1}, + {key: 'Major Two', count: 2}, + {key: 'Major Three', count: 1}, + ], + field: 'majors', + }, + { + buckets: [ + {key: 'building', count: 3}, + {key: 'room', count: 7}, + ], + field: 'type', + }, + ]; + + const sampleFacetsMap: {[key: string]: {[key: string]: number}} = { + categories: {education: 4, learn: 3, computer: 3}, + majors: {'Major One': 1, 'Major Two': 2, 'Major Three': 1}, + type: {building: 3, room: 7}, + }; + + const sampleItems: SCThing[] = [ + ...sampleThingsMap.building, + ...sampleThingsMap.person, + ...sampleThingsMap.room, + ...sampleThingsMap['academic event'], + ]; + + const sampleBuckets: SCFacetBucket[] = [ + {key: 'foo', count: 1}, + {key: 'bar', count: 2}, + {key: 'foo bar', count: 3}, + ]; + const sampleBucketsMap: {[key: string]: number} = { + 'foo': 1, + 'bar': 2, + 'foo bar': 3, + }; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [DataModule], + providers: [DataProvider, StAppsWebHttpClient], + }); + dataFacetsProvider = TestBed.inject(DataFacetsProvider); + }); + + it('should add buckets properly', () => { + let bucketsMap: {[key: string]: number} = {}; + bucketsMap = dataFacetsProvider.addBuckets(bucketsMap, ['foo']); + expect(bucketsMap).toEqual({foo: 1}); + + bucketsMap = dataFacetsProvider.addBuckets(bucketsMap, ['foo']); + expect(bucketsMap).toEqual({foo: 2}); + + bucketsMap = dataFacetsProvider.addBuckets(bucketsMap, ['bar']); + expect(bucketsMap).toEqual({foo: 2, bar: 1}); + }); + + it('should convert buckets to buckets map', () => { + expect(dataFacetsProvider.bucketsToMap(sampleBuckets)).toEqual(sampleBucketsMap); + }); + + it('should convert buckets map into buckets', () => { + expect(dataFacetsProvider.mapToBuckets(sampleBucketsMap)).toEqual(sampleBuckets); + }); + + it('should convert facets into a facets map', () => { + expect(dataFacetsProvider.facetsToMap(sampleFacets)).toEqual(sampleFacetsMap); + }); + + it('should convert facets map into facets', () => { + expect(dataFacetsProvider.mapToFacets(sampleFacetsMap)).toEqual(sampleFacets); + }); + + it('should extract facets (and append them if needed) from the data', () => { + const sampleCombinedFacets: SCFacet[] = [ + { + buckets: [ + {key: 'computer', count: 3}, + {key: 'course', count: 1}, + {key: 'education', count: 5}, + {key: 'learn', count: 3}, + {key: 'library', count: 1}, + {key: 'practicum', count: 1}, + ], + field: 'categories', + }, + { + buckets: [ + {key: 'Major One', count: 2}, + {key: 'Major Two', count: 4}, + {key: 'Major Three', count: 2}, + ], + field: 'majors', + }, + { + buckets: [ + {key: 'building', count: 4}, + {key: 'academic event', count: 2}, + {key: 'person', count: 2}, + {key: 'room', count: 8}, + ], + field: 'type', + }, + ]; + const checkEqual = (expected: SCFacet[], actual: SCFacet[]) => { + const expectedMap = dataFacetsProvider.facetsToMap(expected); + const actualMap = dataFacetsProvider.facetsToMap(actual); + for (const key of Object.keys(actualMap)) { + for (const subKey of Object.keys(actualMap[key])) { + expect(actualMap[key][subKey]).toBe(expectedMap[key][subKey]); + } + } + }; + checkEqual( + dataFacetsProvider.extractFacets(sampleItems, sampleAggregations, sampleFacets), + sampleCombinedFacets, + ); + }); +}); diff --git a/frontend/app/src/app/modules/data/data-facets.provider.ts b/frontend/app/src/app/modules/data/data-facets.provider.ts new file mode 100644 index 00000000..68e099f2 --- /dev/null +++ b/frontend/app/src/app/modules/data/data-facets.provider.ts @@ -0,0 +1,158 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {SCBackendAggregationConfiguration, SCFacet, SCFacetBucket, SCThing} from '@openstapps/core'; + +/** + * TODO + */ +@Injectable() +export class DataFacetsProvider { + // eslint-disable-next-line no-empty, @typescript-eslint/no-empty-function + constructor() {} + + /** + * Adds buckets to a map of buckets (e.g. if a buckets array is [{foo: 1}, {bar: 3}], + * its bucketsMap is {foo: 1, bar: 3}), if a field 'bar' is added to it it becomes: + * {foo: 1, bar: 4} + * + * @param bucketsMap Buckets array transformed into a map + * @param fields A field that should be added to buckets (its map) + */ + // eslint-disable-next-line class-methods-use-this + addBuckets(bucketsMap: {[key: string]: number}, fields: string[]): {[key: string]: number} { + for (const field of fields) { + if (typeof bucketsMap[field] !== 'undefined') { + bucketsMap[field] = bucketsMap[field] + 1; + } else { + bucketsMap[field] = 1; + } + } + + return bucketsMap; + } + + /** + * Converts a buckets array to a map + * + * @param buckets Buckets from a facet + */ + // eslint-disable-next-line class-methods-use-this + bucketsToMap(buckets: SCFacetBucket[]): {[key: string]: number} { + const bucketsMap: {[key: string]: number} = {}; + for (const bucket of buckets) { + bucketsMap[bucket.key] = bucket.count; + } + + return bucketsMap; + } + + /** + * Extract facets from data items, optionally combine them with a list of existing facets + * + * @param items Items to extract facets from + * @param aggregations Aggregations configuration(s) from backend + * @param facets Existing facets to be combined with the facets from the items + */ + extractFacets( + items: SCThing[], + aggregations: SCBackendAggregationConfiguration[], + facets: SCFacet[] = [], + ): SCFacet[] { + if (items.length === 0) { + if (facets.length === 0) { + return []; + } + + return facets; + } + const combinedFacetsMap: {[key: string]: {[key: string]: number}} = this.facetsToMap(facets); + for (const item of items) { + for (const aggregation of aggregations) { + let fieldValues = item[aggregation.fieldName as keyof SCThing] as string | string[] | undefined; + if (typeof fieldValues === 'undefined') { + continue; + } + if (typeof fieldValues === 'string') { + fieldValues = [fieldValues]; + } + if (typeof aggregation.onlyOnTypes === 'undefined') { + combinedFacetsMap[aggregation.fieldName] = this.addBuckets( + combinedFacetsMap[aggregation.fieldName] || {}, + fieldValues, + ); + } else if (aggregation.onlyOnTypes.includes(item.type)) { + combinedFacetsMap[aggregation.fieldName] = this.addBuckets( + combinedFacetsMap[aggregation.fieldName] || {}, + fieldValues, + ); + } + } + } + + return this.mapToFacets(combinedFacetsMap); + } + + /** + * Converts facets array into a map (for quicker operations with facets) + * + * @param facets Array of facets + */ + facetsToMap(facets: SCFacet[]): {[key: string]: {[key: string]: number}} { + const facetsMap: {[key: string]: {[key: string]: number}} = {}; + for (const facet of facets) { + facetsMap[facet.field] = this.bucketsToMap(facet.buckets); + } + + return facetsMap; + } + + /** + * Converts a buckets map into buckets array (as it is inside of a facet) + * + * @param bucketsMap A map from a buckets array + */ + // eslint-disable-next-line class-methods-use-this + mapToBuckets(bucketsMap: {[key: string]: number}): SCFacetBucket[] { + const buckets: SCFacetBucket[] = []; + for (const key in bucketsMap) { + if (bucketsMap.hasOwnProperty(key)) { + const bucket: SCFacetBucket = {key: key, count: bucketsMap[key]}; + buckets.push(bucket); + } + } + + return buckets; + } + + /** + * Converts facets map into an array of facets (as they are provided by backend) + * + * @param facetsMap A map from facets array + */ + mapToFacets(facetsMap: {[key: string]: {[key: string]: number}}): SCFacet[] { + const facets: SCFacet[] = []; + for (const key in facetsMap) { + if (facetsMap.hasOwnProperty(key)) { + const facet: SCFacet = {buckets: [], field: ''}; + facet.field = key; + facet.buckets = this.mapToBuckets(facetsMap[key]); + facets.push(facet); + } + } + + return facets; + } +} diff --git a/frontend/app/src/app/modules/data/data-icon.config.ts b/frontend/app/src/app/modules/data/data-icon.config.ts new file mode 100644 index 00000000..6484e63f --- /dev/null +++ b/frontend/app/src/app/modules/data/data-icon.config.ts @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {SCThingType} from '@openstapps/core'; +import {SCIcon} from '../../util/ion-icon/icon'; + +export const DataIcons: Record = { + 'academic event': SCIcon`school`, + 'assessment': SCIcon`fact_check`, + 'article': SCIcon`article`, + 'book': SCIcon`book`, + 'building': SCIcon`location_city`, + 'catalog': SCIcon`inventory_2`, + 'contact point': SCIcon`contact_page`, + 'course of study': SCIcon`school`, + 'date series': SCIcon`event`, + 'dish': SCIcon`lunch_dining`, + 'favorite': SCIcon`favorite`, + 'floor': SCIcon`foundation`, + 'message': SCIcon`newspaper`, + 'organization': SCIcon`business_center`, + 'periodical': SCIcon`feed`, + 'person': SCIcon`person`, + 'point of interest': SCIcon`pin_drop`, + 'publication event': SCIcon`campaign`, + 'room': SCIcon`meeting_room`, + 'semester': SCIcon`date_range`, + 'setting': SCIcon`settings`, + 'sport course': SCIcon`sports_soccer`, + 'study module': SCIcon`view_module`, + 'ticket': SCIcon`confirmation_number`, + 'todo': SCIcon`task`, + 'tour': SCIcon`tour`, + 'video': SCIcon`movie`, + 'diff': SCIcon`difference`, +}; diff --git a/frontend/app/src/app/modules/data/data-icon.pipe.ts b/frontend/app/src/app/modules/data/data-icon.pipe.ts new file mode 100644 index 00000000..d33deb3c --- /dev/null +++ b/frontend/app/src/app/modules/data/data-icon.pipe.ts @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Pipe, PipeTransform} from '@angular/core'; +import {SCThingType} from '@openstapps/core'; +import {DataIcons} from './data-icon.config'; + +/** + * Converts the data type text into the icon name + */ +@Pipe({ + name: 'dataIcon', +}) +export class DataIconPipe implements PipeTransform { + /** + * Mapping from data types to ionic icons to show + */ + typeIconMap = DataIcons; + + /** + * Provide the icon name from the data type + */ + transform(type: SCThingType): string { + return this.typeIconMap[type]; + } +} diff --git a/frontend/app/src/app/modules/data/data-routing.module.ts b/frontend/app/src/app/modules/data/data-routing.module.ts new file mode 100644 index 00000000..6ca16a5d --- /dev/null +++ b/frontend/app/src/app/modules/data/data-routing.module.ts @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {RouterModule, Routes} from '@angular/router'; +import {DataDetailComponent} from './detail/data-detail.component'; +import {FoodDataListComponent} from './list/food-data-list.component'; +import {SearchPageComponent} from './list/search-page.component'; + +const dataRoutes: Routes = [ + {path: 'search', component: SearchPageComponent}, + {path: 'data-detail/:uid', component: DataDetailComponent}, + {path: 'canteen', component: FoodDataListComponent}, +]; + +/** + * Module defining routes for data module + */ +@NgModule({ + exports: [RouterModule], + imports: [RouterModule.forChild(dataRoutes)], +}) +export class DataRoutingModule {} diff --git a/frontend/app/src/app/modules/data/data-routing.service.spec.ts b/frontend/app/src/app/modules/data/data-routing.service.spec.ts new file mode 100644 index 00000000..c8a075e3 --- /dev/null +++ b/frontend/app/src/app/modules/data/data-routing.service.spec.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {TestBed} from '@angular/core/testing'; + +import {DataRoutingService} from './data-routing.service'; + +describe('DataRoutingService', () => { + let service: DataRoutingService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(DataRoutingService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/frontend/app/src/app/modules/data/data-routing.service.ts b/frontend/app/src/app/modules/data/data-routing.service.ts new file mode 100644 index 00000000..687953d9 --- /dev/null +++ b/frontend/app/src/app/modules/data/data-routing.service.ts @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {SCThings, SCThingWithoutReferences} from '@openstapps/core'; +import {Subject} from 'rxjs'; + +/** + * Transmits event of data selection + */ +@Injectable({ + providedIn: 'root', +}) +export class DataRoutingService { + /** + * Provides the thing that was selected + */ + private childSelectedEvent = new Subject(); + + private pathSelectedEvent = new Subject(); + + /** + * Provides the thing that was selected + * + * @param thing The selected thing + */ + emitChildEvent(thing: SCThings) { + this.childSelectedEvent.next(thing); + } + + emitPathEvent(thing: SCThingWithoutReferences) { + this.pathSelectedEvent.next(thing); + } + + /** + * Provides a listener for the event + */ + itemSelectListener() { + return this.childSelectedEvent.asObservable(); + } + + pathSelectListener() { + return this.pathSelectedEvent.asObservable(); + } +} diff --git a/frontend/app/src/app/modules/data/data.module.ts b/frontend/app/src/app/modules/data/data.module.ts new file mode 100644 index 00000000..0b776138 --- /dev/null +++ b/frontend/app/src/app/modules/data/data.module.ts @@ -0,0 +1,233 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {ScrollingModule} from '@angular/cdk/scrolling'; +import {CommonModule} from '@angular/common'; +import {HttpClientModule} from '@angular/common/http'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {IonicModule, Platform} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {MarkdownModule} from 'ngx-markdown'; +import {MomentModule} from 'ngx-moment'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {MenuModule} from '../menu/menu.module'; +import {ScheduleProvider} from '../calendar/schedule.provider'; +import {StorageModule} from '../storage/storage.module'; +import {ActionChipListComponent} from './chips/action-chip-list.component'; +import {EditEventSelectionComponent} from './chips/edit-event-selection.component'; +import {AddEventActionChipComponent} from './chips/data/add-event-action-chip.component'; +import {LocateActionChipComponent} from './chips/data/locate-action-chip.component'; +import {DataFacetsProvider} from './data-facets.provider'; +import {DataIconPipe} from './data-icon.pipe'; +import {DataRoutingModule} from './data-routing.module'; +import {DataProvider} from './data.provider'; +import {DataDetailContentComponent} from './detail/data-detail-content.component'; +import {DataDetailComponent} from './detail/data-detail.component'; +import {AddressDetailComponent} from './elements/address-detail.component'; +import {OffersDetailComponent} from './elements/offers-detail.component'; +import {OffersInListComponent} from './elements/offers-in-list.component'; +import {OriginDetailComponent} from './elements/origin-detail.component'; +import {SimpleCardComponent} from './elements/simple-card.component'; +import {DataListComponent} from './list/data-list.component'; +import {FoodDataListComponent} from './list/food-data-list.component'; +import {SearchPageComponent} from './list/search-page.component'; +import {StAppsWebHttpClient} from './stapps-web-http-client.provider'; +import {CatalogDetailContentComponent} from './types/catalog/catalog-detail-content.component'; +import {DateSeriesDetailContentComponent} from './types/date-series/date-series-detail-content.component'; +import {DishDetailContentComponent} from './types/dish/dish-detail-content.component'; +import {EventDetailContentComponent} from './types/event/event-detail-content.component'; +import {EventListItemComponent} from './types/event/event-list-item.component'; +import {FavoriteDetailContentComponent} from './types/favorite/favorite-detail-content.component'; +import {MessageDetailContentComponent} from './types/message/message-detail-content.component'; +import {OrganizationDetailContentComponent} from './types/organization/organization-detail-content.component'; +import {PersonDetailContentComponent} from './types/person/person-detail-content.component'; +import {PlaceDetailContentComponent} from './types/place/place-detail-content.component'; +import {PlaceListItemComponent} from './types/place/place-list-item.component'; +import {PlaceMensaDetailComponent} from './types/place/special/mensa/place-mensa-detail.component'; +import {SemesterDetailContentComponent} from './types/semester/semester-detail-content.component'; +import {MapWidgetComponent} from '../map/widget/map-widget.component'; +import {LeafletModule} from '@asymmetrik/ngx-leaflet'; +import {SkeletonSimpleCardComponent} from './elements/skeleton-simple-card.component'; +import {CatalogListItemComponent} from './types/catalog/catalog-list-item.component'; +import {DataListItemComponent} from './list/data-list-item.component'; +import {DateSeriesListItemComponent} from './types/date-series/date-series-list-item.component'; +import {DishListItemComponent} from './types/dish/dish-list-item.component'; +import {FavoriteListItemComponent} from './types/favorite/favorite-list-item.component'; +import {LongInlineTextComponent} from './elements/long-inline-text.component'; +import {MessageListItemComponent} from './types/message/message-list-item.component'; +import {OrganizationListItemComponent} from './types/organization/organization-list-item.component'; +import {PersonListItemComponent} from './types/person/person-list-item.component'; +import {SkeletonListItemComponent} from './elements/skeleton-list-item.component'; +import {SkeletonSegmentComponent} from './elements/skeleton-segment-button.component'; +import {VideoDetailContentComponent} from './types/video/video-detail-content.component'; +import {SemesterListItemComponent} from './types/semester/semester-list-item.component'; +import {VideoListItemComponent} from './types/video/video-list-item.component'; +import {OriginInListComponent} from './elements/origin-in-list.component'; +import {CoordinatedSearchProvider} from './coordinated-search.provider'; +import {FavoriteButtonComponent} from './elements/favorite-button.component'; +import {SimpleDataListComponent} from './list/simple-data-list.component'; +import {TitleCardComponent} from './elements/title-card.component'; +import {CalendarService} from '../calendar/calendar.service'; +import {RoutingStackService} from '../../util/routing-stack.service'; +import {DataPathComponent} from './detail/data-path.component'; +import {EventRoutePathComponent} from './types/event/event-route-path.component'; +import {UtilModule} from '../../util/util.module'; +import {TreeListComponent} from './list/tree-list.component'; +import {TreeListFragmentComponent} from './list/tree-list-fragment.component'; +import {SettingsProvider} from '../settings/settings.provider'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; +import {ExternalLinkComponent} from './elements/external-link.component'; +import {ArticleListItemComponent} from './types/article/article-item.component'; +import {ArticleContentComponent} from './types/article/article-content.component'; +import {BookDetailContentComponent} from './types/book/book-detail-content.component'; +import {BookListItemComponent} from './types/book/book-list-item.component'; +import {PeriodicalListItemComponent} from './types/periodical/periodical-list-item.component'; +import {PeriodicalDetailContentComponent} from './types/periodical/periodical-detail-content.component'; +import {SCThingListItemVirtualScrollStrategyDirective} from './list/sc-thing-list-item-virtual-scroll-strategy.directive'; +import {DataListItemHostDirective} from './list/data-list-item-host.directive'; +import {DataListItemHostDefaultComponent} from './list/data-list-item-host-default.component'; +import {browserFactory, SimpleBrowser} from '../../util/browser.factory'; + +/** + * Module for handling data + */ +@NgModule({ + declarations: [ + ActionChipListComponent, + AddEventActionChipComponent, + EditEventSelectionComponent, + AddressDetailComponent, + CatalogDetailContentComponent, + CatalogListItemComponent, + DataDetailComponent, + DataDetailContentComponent, + DataIconPipe, + DataListComponent, + DataListItemComponent, + DataPathComponent, + EventRoutePathComponent, + DateSeriesDetailContentComponent, + DateSeriesListItemComponent, + DishDetailContentComponent, + DishListItemComponent, + EventDetailContentComponent, + EventListItemComponent, + FavoriteButtonComponent, + FavoriteDetailContentComponent, + FavoriteListItemComponent, + FoodDataListComponent, + LocateActionChipComponent, + LongInlineTextComponent, + MapWidgetComponent, + MessageDetailContentComponent, + MessageListItemComponent, + OffersDetailComponent, + OffersInListComponent, + OrganizationDetailContentComponent, + OrganizationListItemComponent, + OriginDetailComponent, + OriginInListComponent, + PersonDetailContentComponent, + PersonListItemComponent, + PlaceDetailContentComponent, + PlaceListItemComponent, + PlaceMensaDetailComponent, + SearchPageComponent, + SCThingListItemVirtualScrollStrategyDirective, + SemesterDetailContentComponent, + SemesterListItemComponent, + DataListItemHostDirective, + DataListItemHostDefaultComponent, + SimpleCardComponent, + SkeletonListItemComponent, + SkeletonSegmentComponent, + SkeletonSimpleCardComponent, + TreeListComponent, + TreeListFragmentComponent, + VideoDetailContentComponent, + VideoListItemComponent, + SimpleDataListComponent, + TitleCardComponent, + ExternalLinkComponent, + ArticleListItemComponent, + ArticleContentComponent, + BookListItemComponent, + BookDetailContentComponent, + PeriodicalListItemComponent, + PeriodicalDetailContentComponent, + ], + entryComponents: [DataListComponent, SimpleDataListComponent], + imports: [ + CommonModule, + DataRoutingModule, + FormsModule, + HttpClientModule, + IonicModule.forRoot(), + LeafletModule, + MarkdownModule.forRoot(), + MenuModule, + IonIconModule, + MomentModule.forRoot({ + relativeTimeThresholdOptions: { + m: 59, + }, + }), + ScrollingModule, + StorageModule, + TranslateModule.forChild(), + ThingTranslateModule.forChild(), + UtilModule, + ], + providers: [ + CoordinatedSearchProvider, + DataProvider, + DataFacetsProvider, + Geolocation, + ScheduleProvider, + StAppsWebHttpClient, + CalendarService, + RoutingStackService, + SettingsProvider, + { + provide: SimpleBrowser, + useFactory: browserFactory, + deps: [Platform], + }, + ], + exports: [ + SCThingListItemVirtualScrollStrategyDirective, + DataDetailComponent, + DataDetailContentComponent, + DataIconPipe, + DataListComponent, + DataListItemComponent, + DateSeriesListItemComponent, + PlaceListItemComponent, + SimpleCardComponent, + SkeletonListItemComponent, + SkeletonSimpleCardComponent, + SearchPageComponent, + SimpleDataListComponent, + OriginDetailComponent, + FavoriteButtonComponent, + TreeListComponent, + ExternalLinkComponent, + ArticleContentComponent, + BookDetailContentComponent, + PeriodicalDetailContentComponent, + TitleCardComponent, + ], +}) +export class DataModule {} diff --git a/frontend/app/src/app/modules/data/data.provider.spec.ts b/frontend/app/src/app/modules/data/data.provider.spec.ts new file mode 100644 index 00000000..d7cfadfb --- /dev/null +++ b/frontend/app/src/app/modules/data/data.provider.spec.ts @@ -0,0 +1,280 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any, unicorn/no-thenable */ +import {TestBed} from '@angular/core/testing'; +import {Client} from '@openstapps/api/lib/client'; +import { + SCDish, + SCMessage, + SCMultiSearchRequest, + SCSaveableThing, + SCSearchQuery, + SCSearchResponse, + SCSearchValueFilter, + SCThingOriginType, + SCThingType, +} from '@openstapps/core'; +import {sampleThingsMap} from '../../_helpers/data/sample-things'; +import {StorageProvider} from '../storage/storage.provider'; +import {DataModule} from './data.module'; +import {DataProvider, DataScope} from './data.provider'; +import {StAppsWebHttpClient} from './stapps-web-http-client.provider'; +import {LoggerModule, NgxLoggerLevel} from 'ngx-logger'; +import {RouterModule} from '@angular/router'; + +describe('DataProvider', () => { + let dataProvider: DataProvider; + let storageProvider: StorageProvider; + const sampleThing: SCMessage = sampleThingsMap.message[0] as SCMessage; + const sampleResponse: SCSearchResponse = { + data: sampleThingsMap.dish as SCDish[], + facets: [ + { + buckets: [], + field: 'foo', + }, + ], + pagination: { + count: 0, + offset: 0, + total: 0, + }, + stats: { + time: 123, + }, + }; + const sampleFilter: SCSearchValueFilter = { + arguments: { + field: 'type', + value: 'dish', + }, + type: 'value', + }; + const sampleQuery: SCSearchQuery = { + filter: sampleFilter, + }; + + const sampleSavable: SCSaveableThing = { + data: sampleThing, + name: sampleThing.name, + origin: { + created: new Date().toISOString(), + type: SCThingOriginType.User, + }, + type: SCThingType.Message, + uid: sampleThing.uid, + }; + + const fakeStorage = new Map([ + ['foo', 'Bar'], + ['bar', {foo: 'BarFoo'} as any], + ]); + + beforeEach(async () => { + TestBed.configureTestingModule({ + imports: [DataModule, LoggerModule.forRoot({level: NgxLoggerLevel.TRACE}), RouterModule.forRoot([])], + providers: [DataProvider, StAppsWebHttpClient], + }); + storageProvider = TestBed.inject(StorageProvider); + dataProvider = TestBed.inject(DataProvider); + }); + + it('should generate data key', async () => { + dataProvider.storagePrefix = 'foo.data'; + + expect(dataProvider.getDataKey('123')).toBe('foo.data.123'); + }); + + it('should provide backend data items using search query', async () => { + spyOn(Client.prototype as any, 'search').and.callFake(() => { + return { + then: (callback: any) => { + return callback(sampleResponse); + }, + }; + }); + const response = await dataProvider.search(sampleQuery); + + expect(response).toEqual(sampleResponse); + }); + + it('should provide backend data items using multi search query', async () => { + spyOn(Client.prototype as any, 'multiSearch').and.callFake(() => ({ + then: (callback: any) => { + return callback({ + a: sampleResponse, + }); + }, + })); + const response = await dataProvider.multiSearch({a: sampleQuery}); + + expect(response).toEqual({a: sampleResponse}); + }); + + it('should partition search requests correctly', async () => { + const request = { + a: 'a', + b: 'b', + c: 'c', + d: 'd', + e: 'e', + } as SCMultiSearchRequest; // and response... + const requestCheck = Object.assign({}, request); + const responseShould = { + a: 'A', + b: 'B', + c: 'C', + d: 'D', + e: 'E', + }; + + dataProvider.backendQueriesLimit = 2; + spyOn(Client.prototype as any, 'multiSearch').and.callFake((request_: SCMultiSearchRequest) => ({ + then: (callback: any) => { + let i = 0; + for (const key in request_) { + if (request_.hasOwnProperty(key)) { + i++; + + expect(requestCheck[key]).not.toBeNull(); + expect(requestCheck[key]).toEqual(request_[key]); + + // @ts-expect-error is not null + // eslint-disable-next-line unicorn/no-null + requestCheck[key] = null; + // @ts-expect-error is a string for test purposes + request_[key] = request_[key].toUpperCase(); + } + } + expect(i).toBeLessThanOrEqual(dataProvider.backendQueriesLimit); + + return callback(request_); + }, + })); + const response = await dataProvider.multiSearch(request); + + // @ts-expect-error same type + expect(response).toEqual(responseShould); + }); + + it('should put an data item into the local database (storage)', async () => { + let providedThing: SCSaveableThing; + spyOn(storageProvider, 'put' as any).and.callFake((_id: any, thing: any) => { + providedThing = thing; + providedThing.origin.created = sampleSavable.origin.created; + }); + + expect(storageProvider.put).not.toHaveBeenCalled(); + expect(providedThing!).not.toBeDefined(); + + await dataProvider.put(sampleThing); + + expect(providedThing!).toBeDefined(); + expect(providedThing!).toEqual(sampleSavable); + }); + + it('should correctly set and get single data item from the local database (storage)', async () => { + spyOn(storageProvider, 'get').and.returnValue((async () => sampleSavable)()); + + expect(storageProvider.get).not.toHaveBeenCalled(); + + const providedThing = await dataProvider.get(sampleThing.uid, DataScope.Local); + + expect(storageProvider.get).toHaveBeenCalledWith(dataProvider.getDataKey(sampleThing.uid)); + expect(providedThing).toEqual(sampleSavable); + }); + + it('should provide all data items from the local database (storage)', async () => { + const fakeStorage = new Map([ + ['foo', 'Bar'], + ['bar', {foo: 'BarFoo'} as any], + ]); + spyOn(storageProvider, 'search').and.callFake(async () => { + return fakeStorage; + }); + + const result = await dataProvider.getAll(); + + expect([...result.keys()].sort()).toEqual([...fakeStorage.keys()].sort()); + expect([...result.values()].sort()).toEqual([...fakeStorage.values()].sort()); + }); + + it('should provide single data from the backend', async () => { + spyOn(Client.prototype, 'getThing' as any).and.callFake(() => { + return { + then: (callback: any) => { + return callback(sampleThing); + }, + }; + }); + + expect(Client.prototype.getThing).not.toHaveBeenCalled(); + + const providedThing = await dataProvider.get(sampleThing.uid, DataScope.Remote); + + expect(Client.prototype.getThing).toHaveBeenCalledWith(sampleThing.uid); + expect(providedThing).toBe(sampleThing); + }); + + it('should get an item from both local and remote database', async () => { + spyOn(Client.prototype, 'getThing' as any).and.callFake(() => { + return { + then: (callback: any) => { + return callback(sampleThing); + }, + }; + }); + spyOn(storageProvider, 'get' as any).and.callFake(() => { + return { + then: (callback: any) => { + return callback(sampleSavable); + }, + }; + }); + const result = await dataProvider.get(sampleThing.uid); + + expect(result.get(DataScope.Local)).toEqual(sampleSavable); + expect(result.get(DataScope.Remote)).toEqual(sampleThing); + }); + + it('should properly delete a data item from the local database (storage)', async () => { + spyOn(storageProvider, 'delete'); + + await dataProvider.delete(sampleThing.uid); + + expect(storageProvider.delete).toHaveBeenCalledWith(dataProvider.getDataKey(sampleThing.uid)); + }); + + it('should properly delete all the data items from the local database (storage)', async () => { + spyOn(storageProvider, 'delete'); + spyOn(storageProvider, 'search').and.callFake(async () => { + return fakeStorage; + }); + await dataProvider.deleteAll(); + + expect(storageProvider.delete).toHaveBeenCalledWith('foo', 'bar'); + }); + + it('should properly check if a data item has already been saved', async () => { + spyOn(storageProvider, 'has').and.callFake(async storageKey => { + return (async () => { + return dataProvider.getDataKey(sampleThing.uid) === storageKey; + })(); + }); + + expect(await dataProvider.isSaved('some-uuid')).toBeFalsy(); + expect(await dataProvider.isSaved(sampleThing.uid)).toBeTruthy(); + }); +}); diff --git a/frontend/app/src/app/modules/data/data.provider.ts b/frontend/app/src/app/modules/data/data.provider.ts new file mode 100644 index 00000000..7614d4c1 --- /dev/null +++ b/frontend/app/src/app/modules/data/data.provider.ts @@ -0,0 +1,312 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {Client} from '@openstapps/api/lib/client'; +import { + SCFacet, + SCIndexableThings, + SCMultiSearchRequest, + SCMultiSearchResponse, + SCSearchRequest, + SCSearchResponse, + SCSearchValueFilter, + SCThing, + SCThingOriginType, + SCThings, + SCThingsField, + SCThingType, + SCSaveableThing, + SCFeedbackRequest, + SCFeedbackResponse, + SCUuid, +} from '@openstapps/core'; +import {environment} from '../../../environments/environment'; +import {StorageProvider} from '../storage/storage.provider'; +import {StAppsWebHttpClient} from './stapps-web-http-client.provider'; +import {chunk} from '../../_helpers/collections/chunk'; + +export enum DataScope { + Local = 'local', + Remote = 'remote', +} + +interface CacheItem { + data: Promise; + timestamp: number; +} + +/** + * Generated class for the DataProvider provider. + * + * See https://angular.io/guide/dependency-injection for more info on providers + * and Angular DI. + */ +@Injectable({ + providedIn: 'root', +}) +export class DataProvider { + /** + * TODO + */ + get storagePrefix(): string { + return this._storagePrefix; + } + + /** + * TODO + */ + set storagePrefix(storagePrefix) { + this._storagePrefix = storagePrefix; + } + + /** + * TODO + */ + private _storagePrefix = 'stapps.data'; + + readonly cache: Record | undefined> = {}; + + private maxCacheAge = 3600; + + /** + * Version of the app (used for the header in communication with the backend) + */ + appVersion = environment.backend_version; + + /** + * Maximum number of sub-queries in a multi-query allowed by the backend + */ + backendQueriesLimit = 5; + + /** + * TODO + */ + backendUrl = environment.backend_url; + + /** + * TODO + */ + client: Client; + + /** + * TODO + */ + storageProvider: StorageProvider; + + /** + * Simplify creation of a value filter + * + * @param field Database field for apply the filter to + * @param value Value to match with + */ + static createValueFilter(field: SCThingsField, value: string): SCSearchValueFilter { + return { + type: 'value', + arguments: { + field: field, + value: value, + }, + }; + } + + /** + * Create a facet from data + * + * @param items Data to generate facet for + * @param field Field for which to generate facet + */ + static facetForField(items: SCThing[], field: SCThingsField): SCFacet { + const bucketMap = new Map(); + const facet: SCFacet = {buckets: [], field: field}; + + for (const item of items) { + const value = + typeof bucketMap.get(item.type) === 'undefined' ? 1 : (bucketMap.get(item.type) as number) + 1; + bucketMap.set(item.type, value); + } + + for (const [key, value] of bucketMap.entries()) { + facet.buckets.push({key: key, count: value}); + } + + return facet; + } + + /** + * TODO + * + * @param stAppsWebHttpClient TODO + * @param storageProvider TODO + */ + constructor(stAppsWebHttpClient: StAppsWebHttpClient, storageProvider: StorageProvider) { + this.client = new Client(stAppsWebHttpClient, this.backendUrl, this.appVersion); + this.storageProvider = storageProvider; + } + + /** + * Create savable thing from an indexable thing + * + * @param item An indexable to create savable thing from + * @param type The type (falls back to the type of the indexable thing) + */ + static createSaveable(item: SCIndexableThings, type?: SCThingType): SCSaveableThing { + return { + data: item, + name: item.name, + origin: { + created: new Date().toISOString(), + type: SCThingOriginType.User, + }, + type: typeof type === 'undefined' ? item.type : type, + uid: item.uid, + }; + } + + /** + * Delete a data item + * + * @param uid Unique identifier of the saved data item + */ + async delete(uid: string): Promise { + return this.storageProvider.delete(this.getDataKey(uid)); + } + + /** + * Delete all the previously saved data items + */ + async deleteAll(): Promise { + const keys = [...(await this.getAll()).keys()]; + + return this.storageProvider.delete(...keys); + } + + /** + * Provides a savable thing from the local database using the provided UID + */ + async get(uid: string, scope: DataScope.Local): Promise; + /** + * Provides a thing from the backend + */ + async get(uid: string, scope: DataScope.Remote): Promise; + /** + * Provides a thing from both local database and backend + */ + async get(uid: string): Promise>; + + /** + * Provides a thing from the local database only, backend only or both, depending on the scope + * + * @param uid Unique identifier of a thing + * @param scope From where data should be provided + */ + async get( + uid: string, + scope?: DataScope, + ): Promise> { + if (scope === DataScope.Local) { + return this.storageProvider.get(this.getDataKey(uid)); + } + if (scope === DataScope.Remote) { + const timestamp = Date.now(); + const cacheItem = this.cache[uid]; + if (cacheItem && timestamp - cacheItem.timestamp < this.maxCacheAge) { + return cacheItem.data; + } + const item = this.client.getThing(uid); + this.cache[uid] = { + data: item, + timestamp: timestamp, + }; + return item; + } + const map: Map = new Map(); + map.set(DataScope.Local, await this.get(uid, DataScope.Local)); + map.set(DataScope.Remote, await this.get(uid, DataScope.Remote)); + + return map; + } + + /** + * Provides all things saved in the local database + */ + async getAll(): Promise> { + return this.storageProvider.search(this.storagePrefix); + } + + /** + * Provides key for storing data into the local database + * + * @param uid Unique identifier of a resource + */ + getDataKey(uid: string): string { + return `${this.storagePrefix}.${uid}`; + } + + /** + * Provides information if something with an UID is saved as a data item + * + * @param uid Unique identifier of the saved data item + */ + async isSaved(uid: string): Promise { + return this.storageProvider.has(this.getDataKey(uid)); + } + + /** + * Performs multiple searches at once and returns their responses + * + * @param query - query to send to the backend (auto-splits according to the backend limit) + */ + async multiSearch(query: SCMultiSearchRequest): Promise { + // partition object into chunks, process those requests in parallel, then merge their responses again + return Object.assign( + {}, + ...(await Promise.all( + chunk(Object.entries(query), this.backendQueriesLimit).map(request => + this.client.multiSearch(Object.fromEntries(request)), + ), + )), + ); + } + + /** + * Save a data item + * + * @param item An item that needs to be saved + */ + async put(item: SCIndexableThings): Promise { + return this.storageProvider.put( + this.getDataKey(item.uid), + DataProvider.createSaveable(item, item.type), + ); + } + + /** + * Send a feedback message (request) + * + * @param feedback Feedback message to be sent to the backend + */ + async sendFeedback(feedback: SCFeedbackRequest) { + return this.client.invokePlugin('feedback', undefined, feedback); + } + + /** + * Searches the backend using the provided query and returns response + * + * @param query - query to send to the backend + */ + async search(query: SCSearchRequest): Promise { + return this.client.search(query); + } +} diff --git a/frontend/app/src/app/modules/data/debug-data-collector.service.ts b/frontend/app/src/app/modules/data/debug-data-collector.service.ts new file mode 100644 index 00000000..9a40acff --- /dev/null +++ b/frontend/app/src/app/modules/data/debug-data-collector.service.ts @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {SCFeedbackRequestMetaData} from '@openstapps/core'; +import {Platform} from '@ionic/angular'; +import {DataProvider} from './data.provider'; +import {NavigationEnd, Router} from '@angular/router'; +import {SettingsProvider} from '../settings/settings.provider'; + +@Injectable({ + providedIn: 'root', +}) +export class DebugDataCollectorService { + /** + * Previously visited route + */ + previousRoute: string; + + /** + * Current route + */ + currentRoute: string; + + constructor( + private platform: Platform, + private dataProvider: DataProvider, + private router: Router, + private settingsProvider: SettingsProvider, + ) { + this.currentRoute = this.router.url; + router.events.subscribe(event => { + if (event instanceof NavigationEnd) { + this.previousRoute = this.currentRoute; + this.currentRoute = event.url; + } + }); + } + + /** + * Provides meta data for a feedback + */ + async getFeedbackMetaData(): Promise { + return { + debug: false, + platform: this.platform.platforms().join(','), + scope: {}, + state: { + route: this.previousRoute, + settings: await this.settingsProvider.getCache(), + }, + userAgent: window.navigator.userAgent, + version: this.dataProvider.appVersion, + sendable: true, + }; + } +} diff --git a/frontend/app/src/app/modules/data/detail/data-detail-content.component.ts b/frontend/app/src/app/modules/data/detail/data-detail-content.component.ts new file mode 100644 index 00000000..31e1ac46 --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-detail-content.component.ts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, TemplateRef} from '@angular/core'; +import {SCThings} from '@openstapps/core'; +import {DataListContext} from '../list/data-list.component'; +import {ModalController} from '@ionic/angular'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-data-detail-content', + styleUrls: ['data-detail-content.scss'], + templateUrl: 'data-detail-content.html', +}) +export class DataDetailContentComponent { + /** + * TODO + */ + @Input() item: SCThings; + + @Input() contentTemplateRef?: TemplateRef>; + + @Input() openAsModal = false; + + @Input() showModalHeader = false; + + constructor(readonly modalController: ModalController) {} +} diff --git a/frontend/app/src/app/modules/data/detail/data-detail-content.html b/frontend/app/src/app/modules/data/detail/data-detail-content.html new file mode 100644 index 00000000..9dff31b9 --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-detail-content.html @@ -0,0 +1,101 @@ + + + + + {{ 'name' | thingTranslate: item }} + + {{ 'app.ui.CLOSE' | translate }} + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + {{ item.type | dataIcon }} + + + + +
+

{{ item.name }}

+ {{ item.type }} +
+
+
+
+
+ +
+
+
diff --git a/frontend/app/src/app/modules/data/detail/data-detail-content.scss b/frontend/app/src/app/modules/data/detail/data-detail-content.scss new file mode 100644 index 00000000..cf4b23e8 --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-detail-content.scss @@ -0,0 +1,94 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@import 'src/theme/util/_mixins.scss'; + +stapps-origin-detail { + // css hack to make the element stick to the bottom of the scroll container even + // when the content is not filling it + position: sticky; + top: 100vh; +} + +.content-switch { + // prevent a scrollbar from appearing in some cases + margin-block-start: -1px !important; + flex: 1; + display: flex; + padding: 0 var(--spacing-md); + + ::ng-deep > * { + display: flex; + height: fit-content; + width: 100%; + flex-direction: column; + @include border-radius-in-parallax(var(--border-radius-default)); + overflow: hidden; + position: relative; + margin-block-start: calc((var(--header-spacing-bottom) - var(--spacing-xl)) * -1); + margin-block-end: var(--spacing-xl); + background-color: var(--ion-color-primary-contrast); + @include content-padding(); + + & > ion-thumbnail { + background: var(--ion-color-primary); + } + + // Firefox doesn't support this yet... + @supports selector(:has(*)) { + & > .expand-when-space, + &:has(> .expand-when-space) { + height: unset; + flex: 1; + } + } + } +} + +:host ::ng-deep { + ion-slides.work-locations { + ion-slide { + display: block; + text-align: left; + } + } + ion-card { + margin: 0; + box-shadow: none; + ion-card-content { + h1 { + margin: 0; + } + padding-bottom: 8px; + } + ion-card-header { + color: var(--ion-color-dark); + padding-top: 8px; + padding-bottom: 4px; + font-weight: bold; + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } +} diff --git a/frontend/app/src/app/modules/data/detail/data-detail.component.spec.ts b/frontend/app/src/app/modules/data/detail/data-detail.component.spec.ts new file mode 100644 index 00000000..c471b7a3 --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-detail.component.spec.ts @@ -0,0 +1,118 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-non-null-assertion,@typescript-eslint/no-explicit-any */ +import {CUSTOM_ELEMENTS_SCHEMA, DebugElement} from '@angular/core'; +import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {ActivatedRoute, RouterModule} from '@angular/router'; +import {IonTitle} from '@ionic/angular'; +import {TranslateLoader, TranslateModule, TranslateService} from '@ngx-translate/core'; +import {sampleThingsMap} from '../../../_helpers/data/sample-things'; +import {DataRoutingModule} from '../data-routing.module'; +import {DataModule} from '../data.module'; +import {DataProvider} from '../data.provider'; +import {DataDetailComponent} from './data-detail.component'; +import {By} from '@angular/platform-browser'; +import {Observable, of} from 'rxjs'; +import {StorageProvider} from '../../storage/storage.provider'; +import {LoggerModule, NgxLoggerLevel} from 'ngx-logger'; + +const translations: any = {data: {detail: {TITLE: 'Foo'}}}; + +class TranslateFakeLoader implements TranslateLoader { + getTranslation(_lang: string): Observable { + return of(translations); + } +} + +describe('DataDetailComponent', () => { + let comp: DataDetailComponent; + let fixture: ComponentFixture; + let detailPage: DebugElement; + let dataProvider: DataProvider; + const sampleThing = sampleThingsMap.message[0]; + let translateService: TranslateService; + + // @Component({ selector: 'stapps-data-list-item', template: '' }) + // class DataListItemComponent { + // @Input() item; + // } + + const fakeActivatedRoute = { + snapshot: { + paramMap: { + get: () => { + return sampleThing.uid; + }, + }, + }, + }; + + const storageProviderSpy = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put', 'search']); + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [ + RouterModule.forRoot([], {relativeLinkResolution: 'legacy'}), + DataRoutingModule, + DataModule, + TranslateModule.forRoot({ + loader: {provide: TranslateLoader, useClass: TranslateFakeLoader}, + }), + LoggerModule.forRoot({level: NgxLoggerLevel.TRACE}), + ], + providers: [ + { + provide: ActivatedRoute, + useValue: fakeActivatedRoute, + }, + { + provide: StorageProvider, + useValue: storageProviderSpy, + }, + ], + schemas: [CUSTOM_ELEMENTS_SCHEMA], + }).compileComponents(); + }); + + beforeEach(() => { + dataProvider = TestBed.inject(DataProvider); + translateService = TestBed.inject(TranslateService); + spyOn(dataProvider, 'get' as any).and.returnValue(Promise.resolve(sampleThing)); + spyOn(DataDetailComponent.prototype, 'getItem').and.callThrough(); + fixture = TestBed.createComponent(DataDetailComponent); + comp = fixture.componentInstance; + detailPage = fixture.debugElement; + translateService.use('foo'); + fixture.detectChanges(); + }); + + it('should create component', () => expect(comp).toBeDefined()); + + it('should have appropriate title', async () => { + const title: DebugElement = detailPage.query(By.directive(IonTitle)); + expect(title!.nativeElement.textContent).toBe('Foo'); + }); + + it('should get a data item', () => { + comp.getItem(sampleThing.uid, false); + expect(DataDetailComponent.prototype.getItem).toHaveBeenCalledWith(sampleThing.uid, false); + }); + + it('should get a data item when the view is entered', () => { + comp.ionViewWillEnter(); + expect(DataDetailComponent.prototype.getItem).toHaveBeenCalledWith(sampleThing.uid, false); + }); +}); diff --git a/frontend/app/src/app/modules/data/detail/data-detail.component.ts b/frontend/app/src/app/modules/data/detail/data-detail.component.ts new file mode 100644 index 00000000..bded358d --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-detail.component.ts @@ -0,0 +1,159 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, ContentChild, EventEmitter, Input, Output, TemplateRef} from '@angular/core'; +import {ActivatedRoute} from '@angular/router'; +import {ModalController, ViewWillEnter} from '@ionic/angular'; +import {LangChangeEvent, TranslateService} from '@ngx-translate/core'; +import {SCLanguageCode, SCSaveableThing, SCThings, SCUuid} from '@openstapps/core'; +import {DataProvider, DataScope} from '../data.provider'; +import {FavoritesService} from '../../favorites/favorites.service'; +import {take} from 'rxjs/operators'; +import {Network} from '@capacitor/network'; +import {DataListContext} from '../list/data-list.component'; + +export interface ExternalDataLoadEvent { + uid: SCUuid; + forceReload: boolean; + resolve: (item: SCThings | null | undefined) => void; +} + +/** + * A Component to display an SCThing detailed + */ +@Component({ + selector: 'stapps-data-detail', + styleUrls: ['data-detail.scss'], + templateUrl: 'data-detail.html', +}) +export class DataDetailComponent implements ViewWillEnter { + /** + * The associated item + * + * undefined if not loaded, null when unavailable + */ + item?: SCThings | null = undefined; + + @Input() inputItem?: SCThings; + + @Input() isModal = false; + + @Input() autoRouteDataPath = true; + + /** + * The language of the item + */ + language: SCLanguageCode; + + /** + * Indicating wether internet connectivity is given or not + */ + isDisconnected: Promise; + + @ContentChild(TemplateRef) contentTemplateRef: TemplateRef>; + + @Input() externalData = false; + + /** + * This is kind of a stupid situation where we would + * like to use the default header in overriding elements + * such as the assessment detail page, however the ionic + * back button will not work if the header is in a subcomponent + * which then means we have to copy and paste the header from + * here into the overriding component. + */ + @Input() defaultHeader = true; + + @Output() loadItem: EventEmitter = new EventEmitter(); + + /** + * Type guard for SCSavableThing + */ + static isSCSavableThing(thing: SCThings | SCSaveableThing): thing is SCSaveableThing { + return typeof (thing as SCSaveableThing).data !== 'undefined'; + } + + /** + * + * @param route the route the page was accessed from + * @param dataProvider the data provider + * @param favoritesService the favorites provider + * @param modalController the modal controller + * @param translateService he translate provider + */ + constructor( + protected readonly route: ActivatedRoute, + private readonly dataProvider: DataProvider, + private readonly favoritesService: FavoritesService, + readonly modalController: ModalController, + translateService: TranslateService, + ) { + this.language = translateService.currentLang as SCLanguageCode; + translateService.onLangChange.subscribe((event: LangChangeEvent) => { + this.language = event.lang as SCLanguageCode; + }); + + this.isDisconnected = new Promise(async resolve => { + const isConnected = (await Network.getStatus()).connected; + resolve(!isConnected); + }); + } + + /** + * Provides data item with given UID + * + * @param uid Unique identifier of a thing + * @param forceReload Indicating whether cached data should be ignored + */ + async getItem(uid: SCUuid, forceReload: boolean) { + try { + const item = + this.inputItem ?? + (await (this.externalData + ? new Promise(resolve => + this.loadItem.emit({uid, forceReload, resolve}), + ) + : this.dataProvider.get(uid, DataScope.Remote))); + + this.item = !item + ? // eslint-disable-next-line unicorn/no-null + null + : DataDetailComponent.isSCSavableThing(item) + ? item.data + : item; + } catch { + // eslint-disable-next-line unicorn/no-null + this.item = null; + } + } + + /** + * Initialize + */ + async ionViewWillEnter() { + const uid = this.route.snapshot.paramMap.get('uid') || ''; + await this.getItem(uid ?? '', false); + // fallback to the saved item (from favorites) + if (this.item === null) { + this.favoritesService + .get(uid) + .pipe(take(1)) + .subscribe(item => { + if (typeof item !== 'undefined') { + this.item = item.data; + } + }); + } + } +} diff --git a/frontend/app/src/app/modules/data/detail/data-detail.html b/frontend/app/src/app/modules/data/detail/data-detail.html new file mode 100644 index 00000000..fea54c82 --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-detail.html @@ -0,0 +1,63 @@ + + + + + + + + {{ 'data.detail.TITLE' | translate }} + + + + + + {{ 'modal.DISMISS' | translate }} + + + + + + +
+ +
+ + + {{ 'data.detail.COULD_NOT_CONNECT' | translate }} + +
+
+ +
+ + + {{ 'data.detail.NOT_FOUND' | translate }} + +
+
+ + + + + + + + +
+
diff --git a/frontend/app/src/app/modules/data/detail/data-detail.scss b/frontend/app/src/app/modules/data/detail/data-detail.scss new file mode 100644 index 00000000..375f31d2 --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-detail.scss @@ -0,0 +1,21 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +ion-content > div > stapps-data-detail-content, +ion-content > div { + min-height: 100%; + display: flex; + flex-direction: column; + flex: 1; +} diff --git a/frontend/app/src/app/modules/data/detail/data-path.component.ts b/frontend/app/src/app/modules/data/detail/data-path.component.ts new file mode 100644 index 00000000..04749168 --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-path.component.ts @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnDestroy, OnInit} from '@angular/core'; +import {RoutingStackService} from '../../../util/routing-stack.service'; +import {SCCatalog, SCThings, SCThingType, SCThingWithoutReferences} from '@openstapps/core'; +import {DataProvider, DataScope} from '../data.provider'; +import {fromEvent, Observable, Subscription} from 'rxjs'; +import {map, startWith} from 'rxjs/operators'; +import {DataRoutingService} from '../data-routing.service'; +import {NavController} from '@ionic/angular'; + +@Component({ + selector: 'stapps-data-path', + templateUrl: './data-path.html', + styleUrls: ['./data-path.scss'], +}) +export class DataPathComponent implements OnInit, OnDestroy { + path: Promise; + + $width: Observable; + + subscriptions: Subscription[] = []; + + @Input() autoRouting = true; + + @Input() maxItems = 2; + + @Input() set item(item: SCThings) { + // eslint-disable-next-line unicorn/prefer-ternary + if (item.type === SCThingType.Catalog && item.superCatalogs) { + this.path = new Promise(resolve => + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + resolve([...item.superCatalogs!, item]), + ); + } else if (item.type === SCThingType.Assessment && item.superAssessments) { + this.path = new Promise(resolve => + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + resolve([...item.superAssessments!, item]), + ); + } else if ( + item.type === SCThingType.AcademicEvent && + item.catalogs && + (item.catalogs.length === 1 || this.routeStack.lastDataDetail) + ) { + const catalogWithoutReferences = item.catalogs[0]; + const catalogPromise = ( + item.catalogs.length === 1 + ? this.dataProvider.get(catalogWithoutReferences.uid, DataScope.Remote) + : this.routeStack.lastDataDetail + ) as Promise; + + this.path = new Promise(async resolve => { + const catalog = await catalogPromise; + const superCatalogs = catalog.superCatalogs; + + resolve( + superCatalogs + ? [...superCatalogs, catalogWithoutReferences, item] + : [catalogWithoutReferences, item], + ); + }); + } + } + + constructor( + readonly dataRoutingService: DataRoutingService, + readonly navController: NavController, + readonly routeStack: RoutingStackService, + readonly dataProvider: DataProvider, + ) {} + + ngOnInit() { + this.$width = fromEvent(window, 'resize').pipe( + map(() => window.innerWidth), + startWith(window.innerWidth), + ); + + if (!this.autoRouting) return; + this.subscriptions.push( + this.dataRoutingService.pathSelectListener().subscribe(item => { + void this.navController.navigateBack(['data-detail', item.uid]); + }), + ); + } + + ngOnDestroy() { + for (const sub of this.subscriptions) sub.unsubscribe(); + } +} diff --git a/frontend/app/src/app/modules/data/detail/data-path.html b/frontend/app/src/app/modules/data/detail/data-path.html new file mode 100644 index 00000000..5de6dc48 --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-path.html @@ -0,0 +1,41 @@ + + + + + + {{ 'name' | thingTranslate: $any(fragment) }} + + + diff --git a/frontend/app/src/app/modules/data/detail/data-path.scss b/frontend/app/src/app/modules/data/detail/data-path.scss new file mode 100644 index 00000000..d7afea7b --- /dev/null +++ b/frontend/app/src/app/modules/data/detail/data-path.scss @@ -0,0 +1,21 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.crumb-label { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + cursor: pointer; +} diff --git a/frontend/app/src/app/modules/data/elements/address-detail.component.ts b/frontend/app/src/app/modules/data/elements/address-detail.component.ts new file mode 100644 index 00000000..585279e3 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/address-detail.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCPostalAddress} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-address-detail', + templateUrl: 'address-detail.html', +}) +export class AddressDetailComponent { + /** + * TODO + */ + @Input() address: SCPostalAddress; +} diff --git a/frontend/app/src/app/modules/data/elements/address-detail.html b/frontend/app/src/app/modules/data/elements/address-detail.html new file mode 100644 index 00000000..5fef6cef --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/address-detail.html @@ -0,0 +1,58 @@ + + + + {{ 'data.detail.address.TITLE' | translate | titlecase }} + + + + {{ 'data.detail.address.STREET' | translate | titlecase }}: + + {{ address.streetAddress }} + + + + {{ 'data.detail.address.POSTCODE' | translate | titlecase }}: + + {{ address.postalCode }} + + + + {{ 'data.detail.address.CITY' | translate | titlecase }}: + + {{ address.addressLocality }} + + + + {{ 'data.detail.address.REGION' | translate | titlecase }}: + + {{ address.addressRegion }} + + + + {{ 'data.detail.address.COUNTRY' | translate | titlecase }}: + + {{ address.addressCountry }} + + + + {{ 'data.detail.address.POST_OFFICE_BOX' | translate | titlecase }} + + {{ address.postOfficeBoxNumber }} + + + + + diff --git a/frontend/app/src/app/modules/data/elements/external-link.component.ts b/frontend/app/src/app/modules/data/elements/external-link.component.ts new file mode 100644 index 00000000..7e463ed6 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/external-link.component.ts @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {SimpleBrowser} from '../../../util/browser.factory'; + +@Component({ + selector: 'stapps-external-link', + templateUrl: './external-link.html', + styleUrls: ['./external-link.scss'], +}) +export class ExternalLinkComponent { + @Input() link: string; + + @Input() text: string; + + constructor(private browser: SimpleBrowser) {} + + onLinkClick(url: string) { + // make sure if the url is valid and then open it in the browser (prevent problem in iOS) + this.browser.open(new URL(url).href); + } +} diff --git a/frontend/app/src/app/modules/data/elements/external-link.html b/frontend/app/src/app/modules/data/elements/external-link.html new file mode 100644 index 00000000..c4abb899 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/external-link.html @@ -0,0 +1,15 @@ + +{{ text }} diff --git a/frontend/app/src/app/modules/data/elements/external-link.scss b/frontend/app/src/app/modules/data/elements/external-link.scss new file mode 100644 index 00000000..b2f61708 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/external-link.scss @@ -0,0 +1,8 @@ +:host a { + cursor: pointer; + ion-icon { + vertical-align: text-top; + font-size: 80%; + padding-left: 2px; + } +} diff --git a/frontend/app/src/app/modules/data/elements/favorite-button.component.html b/frontend/app/src/app/modules/data/elements/favorite-button.component.html new file mode 100644 index 00000000..12f8c305 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/favorite-button.component.html @@ -0,0 +1,23 @@ + + + + + diff --git a/frontend/app/src/app/modules/data/elements/favorite-button.component.scss b/frontend/app/src/app/modules/data/elements/favorite-button.component.scss new file mode 100644 index 00000000..d8997b9f --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/favorite-button.component.scss @@ -0,0 +1,32 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host { + ion-button { + width: 50px; + height: 50px; + --border-radius: 50%; + } + + @media (hover: hover) { + ion-button:hover ::ng-deep stapps-icon { + --fill: 1; + } + } + + .selected { + color: #fbc02d; + } +} diff --git a/frontend/app/src/app/modules/data/elements/favorite-button.component.ts b/frontend/app/src/app/modules/data/elements/favorite-button.component.ts new file mode 100644 index 00000000..332636ec --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/favorite-button.component.ts @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCIndexableThings} from '@openstapps/core'; +import {FavoritesService} from '../../favorites/favorites.service'; +import {Observable} from 'rxjs'; +import {map, take} from 'rxjs/operators'; + +/** + * The button to add or remove a thing from favorites + */ +@Component({ + selector: 'stapps-favorite-button', + templateUrl: './favorite-button.component.html', + styleUrls: ['./favorite-button.component.scss'], +}) +export class FavoriteButtonComponent { + /** + * Item getter + */ + get item(): SCIndexableThings { + return this._item; + } + + /** + * An item to show (setter is used as there were issues assigning the distance to the right place in a list) + */ + @Input() set item(item: SCIndexableThings) { + this._item = item; + this.isFavorite$ = this.favoritesService.get(this.item.uid).pipe( + map(favorite => { + return typeof favorite !== 'undefined'; + }), + ); + } + + /** + * An item to show + */ + private _item: SCIndexableThings; + + /** + * The thing already in favorites or not + */ + isFavorite$: Observable; + + constructor(private favoritesService: FavoritesService) {} + + /** + * Add or remove the thing from favorites (depending on its current status) + * + * @param event A click event + */ + async toggle(event: Event) { + // prevent additional effects e.g. router to be activated + event.stopPropagation(); + + this.isFavorite$.pipe(take(1)).subscribe(enabled => { + enabled ? this.favoritesService.delete(this.item) : this.favoritesService.put(this.item); + }); + } +} diff --git a/frontend/app/src/app/modules/data/elements/long-inline-text.component.ts b/frontend/app/src/app/modules/data/elements/long-inline-text.component.ts new file mode 100644 index 00000000..41ee3434 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/long-inline-text.component.ts @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-long-inline-text', + templateUrl: 'long-inline-text.html', +}) +export class LongInlineTextComponent { + /** + * TODO + */ + @Input() size: number; + + /** + * TODO + */ + @Input() text: string; +} diff --git a/frontend/app/src/app/modules/data/elements/long-inline-text.html b/frontend/app/src/app/modules/data/elements/long-inline-text.html new file mode 100644 index 00000000..89267e6b --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/long-inline-text.html @@ -0,0 +1,27 @@ + + + + {{ text | slice: 0:size }} + + + + {{ text | slice: 0:size * 2 }} + + + + {{ text | slice: 0:size * 3 }} + + diff --git a/frontend/app/src/app/modules/data/elements/offers-detail.component.ts b/frontend/app/src/app/modules/data/elements/offers-detail.component.ts new file mode 100644 index 00000000..e5785e09 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/offers-detail.component.ts @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCAcademicPriceGroup, SCThingThatCanBeOfferedOffer} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-offers-detail', + templateUrl: 'offers-detail.html', +}) +export class OffersDetailComponent { + /** + * TODO + */ + objectKeys = Object.keys; + + /** + * TODO + */ + @Input() offers: Array>; +} diff --git a/frontend/app/src/app/modules/data/elements/offers-detail.html b/frontend/app/src/app/modules/data/elements/offers-detail.html new file mode 100644 index 00000000..30bd02eb --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/offers-detail.html @@ -0,0 +1,64 @@ + + + + {{ 'data.detail.offers.TITLE' | translate | titlecase }} + +
+ + + + + + {{ 'name' | thingTranslate: offer.inPlace }} + + + + + {{ + (offer.availabilityRange.gt ? offer.availabilityRange.gt : offer.availabilityRange.gte) + | amDateFormat: 'll' + }} + + + + + + + {{ 'data.detail.offers.' + group | translate }} + +

+ {{ offer.prices[group] | currency: 'EUR':'symbol':undefined:'de' }} +

+
+
+
+ + + + + +

+ {{ 'data.detail.offers.sold_out' | translate }} +

+
+
+
+
+
+
+
diff --git a/frontend/app/src/app/modules/data/elements/offers-in-list.component.ts b/frontend/app/src/app/modules/data/elements/offers-in-list.component.ts new file mode 100644 index 00000000..57281fe8 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/offers-in-list.component.ts @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCAcademicPriceGroup, SCThingThatCanBeOfferedOffer} from '@openstapps/core'; +import {SettingsProvider} from '../../settings/settings.provider'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-offers-in-list', + templateUrl: 'offers-in-list.html', +}) +export class OffersInListComponent { + /** + * TODO + */ + @Input() set offers(it: Array>) { + this._offers = it; + this.price = it[0].prices?.default; + this.settingsProvider.getSetting('profile', 'group').then(group => { + this.price = it[0].prices?.[(group.value as string).replace(/s$/, '') as never]; + }); + + const availabilities = new Set(it.map(offer => offer.availability)); + this.soldOut = availabilities.has('out of stock') && availabilities.size === 1; + } + + price?: number; + + soldOut: boolean; + + _offers: Array>; + + constructor(readonly settingsProvider: SettingsProvider) {} +} diff --git a/frontend/app/src/app/modules/data/elements/offers-in-list.html b/frontend/app/src/app/modules/data/elements/offers-in-list.html new file mode 100644 index 00000000..df269aa8 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/offers-in-list.html @@ -0,0 +1,31 @@ + + +
+ +

+ {{ price | currency: 'EUR':'symbol':undefined:'de' }} +

+
+ +

+ {{ 'data.detail.offers.sold_out' | translate }} +

+
+

+ {{ _offers[0].inPlace.name + }}... +

+
diff --git a/frontend/app/src/app/modules/data/elements/origin-detail.component.ts b/frontend/app/src/app/modules/data/elements/origin-detail.component.ts new file mode 100644 index 00000000..c9c46647 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/origin-detail.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCThingOrigin} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-origin-detail', + templateUrl: 'origin-detail.html', +}) +export class OriginDetailComponent { + /** + * TODO + */ + @Input() origin: SCThingOrigin; +} diff --git a/frontend/app/src/app/modules/data/elements/origin-detail.html b/frontend/app/src/app/modules/data/elements/origin-detail.html new file mode 100644 index 00000000..3b27a113 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/origin-detail.html @@ -0,0 +1,66 @@ + + + + {{ 'data.types.origin.TITLE' | translate | titlecase }}: + {{ 'data.types.origin.USER' | translate | titlecase }} + +

+ {{ 'data.types.origin.detail.CREATED' | translate | titlecase }}: + {{ origin.created | amDateFormat: 'll' }} +

+

+ {{ 'data.types.origin.detail.UPDATED' | translate | titlecase }}: + {{ origin.updated | amDateFormat: 'll' }} +

+

+ {{ 'data.types.origin.detail.MODIFIED' | translate | titlecase }}: + {{ origin.modified | amDateFormat: 'll' }} +

+

{{ 'data.types.origin.detail.MAINTAINER' | translate }}: {{ origin.name }}

+

+ {{ 'data.types.origin.detail.MAINTAINER' | translate }}: + {{ origin.maintainer.name }} +

+
+
+ + + {{ 'data.types.origin.TITLE' | translate | titlecase }}: + {{ 'data.types.origin.REMOTE' | translate | titlecase }} + +

+ {{ 'data.types.origin.detail.INDEXED' | translate | titlecase }}: + {{ origin.indexed | amDateFormat: 'll' }} +

+

+ {{ 'data.types.origin.detail.MODIFIED' | translate | titlecase }}: + {{ origin.modified | amDateFormat: 'll' }} +

+

{{ 'data.types.origin.detail.MAINTAINER' | translate }}: {{ origin.name }}

+

+ {{ 'data.types.origin.detail.MAINTAINER' | translate | titlecase }}: + {{ origin.maintainer.name }} +

+

+ {{ 'data.types.origin.detail.RESPONSIBLE' | translate | titlecase }}: + {{ origin.responsibleEntity.name }} +

+
+
diff --git a/frontend/app/src/app/modules/data/elements/origin-in-list.component.ts b/frontend/app/src/app/modules/data/elements/origin-in-list.component.ts new file mode 100644 index 00000000..810d1cfc --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/origin-in-list.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCThingOrigin} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-origin-in-list', + templateUrl: 'origin-in-list.html', +}) +export class OriginInListComponent { + /** + * TODO + */ + @Input() origin: SCThingOrigin; +} diff --git a/frontend/app/src/app/modules/data/elements/origin-in-list.html b/frontend/app/src/app/modules/data/elements/origin-in-list.html new file mode 100644 index 00000000..3d7343ac --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/origin-in-list.html @@ -0,0 +1,7 @@ +
+

{{ origin.created | dateFormat }}

+
+ +
+

{{ origin.indexed | dateFormat }}

+
diff --git a/frontend/app/src/app/modules/data/elements/simple-card.component.ts b/frontend/app/src/app/modules/data/elements/simple-card.component.ts new file mode 100644 index 00000000..e286a3a0 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/simple-card.component.ts @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCThingWithoutReferences} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-simple-card', + templateUrl: 'simple-card.html', +}) +export class SimpleCardComponent { + /** + * TODO + */ + areThings = false; + + /** + * TODO + */ + @Input() content: string | string[] | SCThingWithoutReferences[]; + + /** + * TODO + */ + @Input() isMarkdown = false; + + /** + * TODO + */ + @Input() title: string; + + /** + * TODO + */ + // eslint-disable-next-line class-methods-use-this + isString(data: unknown): data is string { + return typeof data === 'string'; + } + + /** + * TODO + */ + // eslint-disable-next-line class-methods-use-this + isThing(something: unknown): something is SCThingWithoutReferences { + // bypass the 'type' field check because of translated values + return typeof something === 'object'; + } +} diff --git a/frontend/app/src/app/modules/data/elements/simple-card.html b/frontend/app/src/app/modules/data/elements/simple-card.html new file mode 100644 index 00000000..677643f2 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/simple-card.html @@ -0,0 +1,40 @@ + + + + {{ title }} + + + + + + + +

{{ content }}

+
+
+ + + + +

{{ 'name' | thingTranslate: thing }}

+
+
+ +

{{ text }}

+
+
+
+
diff --git a/frontend/app/src/app/modules/data/elements/skeleton-list-item.component.ts b/frontend/app/src/app/modules/data/elements/skeleton-list-item.component.ts new file mode 100644 index 00000000..d257bc94 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/skeleton-list-item.component.ts @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; + +/** + * A placeholder to show when a list item is being loaded + */ +@Component({ + selector: 'stapps-skeleton-list-item', + templateUrl: 'skeleton-list-item.html', + styleUrls: ['skeleton-list-item.scss'], +}) +export class SkeletonListItemComponent { + @Input() hideThumbnail = false; +} diff --git a/frontend/app/src/app/modules/data/elements/skeleton-list-item.html b/frontend/app/src/app/modules/data/elements/skeleton-list-item.html new file mode 100644 index 00000000..8e65f754 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/skeleton-list-item.html @@ -0,0 +1,20 @@ + + + + + + + +

+ +

+

+ +

+ + + +
+
+
+
diff --git a/frontend/app/src/app/modules/data/elements/skeleton-list-item.scss b/frontend/app/src/app/modules/data/elements/skeleton-list-item.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/data/elements/skeleton-segment-button.component.ts b/frontend/app/src/app/modules/data/elements/skeleton-segment-button.component.ts new file mode 100644 index 00000000..4d747806 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/skeleton-segment-button.component.ts @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component} from '@angular/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-skeleton-segment-button', + templateUrl: 'skeleton-segment-button.html', +}) +export class SkeletonSegmentComponent {} diff --git a/frontend/app/src/app/modules/data/elements/skeleton-segment-button.html b/frontend/app/src/app/modules/data/elements/skeleton-segment-button.html new file mode 100644 index 00000000..edf95f6b --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/skeleton-segment-button.html @@ -0,0 +1,3 @@ + + + diff --git a/frontend/app/src/app/modules/data/elements/skeleton-simple-card.component.ts b/frontend/app/src/app/modules/data/elements/skeleton-simple-card.component.ts new file mode 100644 index 00000000..d7d0ffa7 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/skeleton-simple-card.component.ts @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; + +/** + * A placeholder to show when a simple card is being loaded + */ +@Component({ + selector: 'stapps-skeleton-simple-card', + templateUrl: 'skeleton-simple-card.html', +}) +export class SkeletonSimpleCardComponent { + /** + * Show title + */ + @Input() + title = true; + + /** + * The number of lines after the title + */ + @Input() + lines = 1; +} diff --git a/frontend/app/src/app/modules/data/elements/skeleton-simple-card.html b/frontend/app/src/app/modules/data/elements/skeleton-simple-card.html new file mode 100644 index 00000000..4ad421a3 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/skeleton-simple-card.html @@ -0,0 +1,14 @@ + + + + + +

+ +

+
+
diff --git a/frontend/app/src/app/modules/data/elements/title-card.component.html b/frontend/app/src/app/modules/data/elements/title-card.component.html new file mode 100644 index 00000000..d3ecafdb --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/title-card.component.html @@ -0,0 +1,48 @@ + + + + +

+ {{ + 'honorificPrefix' | thingTranslate: item + }} + {{ 'name' | thingTranslate: item }} + {{ + 'honorificSuffix' | thingTranslate: item + }} +

+
+
+ +
+ +
+
+
+ {{ 'description' | thingTranslate: item }} +
+
+ + + +
+
diff --git a/frontend/app/src/app/modules/data/elements/title-card.component.scss b/frontend/app/src/app/modules/data/elements/title-card.component.scss new file mode 100644 index 00000000..c58e09d4 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/title-card.component.scss @@ -0,0 +1,48 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.text-accordion { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; +} + +ion-card { + border-radius: 0; + --background: var(--ion-color-primary); + padding: 0 var(--spacing-md); + + ion-card-header { + padding: 0; + + h1 { + color: var(--ion-color-primary-contrast); + font-weight: var(--font-weight-bold); + margin: var(--spacing-sm) 0 var(--spacing-sm) 0; + } + } + + ion-card-content { + padding: 0 0 var(--header-spacing-bottom); + + .description * { + color: var(--ion-color-light); + } + .openingHours { + color: var(--ion-color-light); + } + } +} diff --git a/frontend/app/src/app/modules/data/elements/title-card.component.ts b/frontend/app/src/app/modules/data/elements/title-card.component.ts new file mode 100644 index 00000000..9d3aba63 --- /dev/null +++ b/frontend/app/src/app/modules/data/elements/title-card.component.ts @@ -0,0 +1,93 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, ElementRef, HostListener, Input, OnChanges, OnInit, ViewChild} from '@angular/core'; +import {SCThings} from '@openstapps/core'; +import {SCIcon} from '../../../util/ion-icon/icon'; + +const AccordionButtonState = { + collapsed: SCIcon`expand_more`, + expanded: SCIcon`expand_less`, +}; + +@Component({ + selector: 'stapps-title-card', + templateUrl: './title-card.component.html', + styleUrls: ['./title-card.component.scss'], +}) +export class TitleCardComponent implements OnInit, OnChanges { + /** + * The item whose title (and description) to display + */ + @Input() item: SCThings; + + @ViewChild('accordionTextArea') accordionTextArea: ElementRef; + + buttonState = AccordionButtonState.collapsed; + + buttonShown = true; + + descriptionLinesShown: number; + + descriptionLinesTotal: number; + + descriptionPreviewLines = 3; + + descriptionLinesToDisplay = 0; + + ngOnInit(): void { + if (this.item.description) { + this.descriptionLinesToDisplay = this.descriptionPreviewLines; + setTimeout(() => this.checkTextElipsis(), 100); + } + } + + ngOnChanges() { + this.checkTextElipsis(); + } + + @HostListener('window:resize', ['$event']) + checkTextElipsis() { + if (typeof this.accordionTextArea === 'undefined') { + return; + } + const element = this.accordionTextArea.nativeElement as HTMLElement; + + const lineHeight = Number.parseInt(getComputedStyle(element).getPropertyValue('line-height')); + this.descriptionLinesTotal = element?.scrollHeight / lineHeight; + this.descriptionLinesShown = element?.offsetHeight / lineHeight; + if (this.buttonState === AccordionButtonState.expanded) { + this.descriptionLinesToDisplay = this.descriptionLinesTotal; + } + const isElipsed = element?.offsetHeight < element?.scrollHeight; + this.buttonShown = + (isElipsed && this.buttonState === AccordionButtonState.collapsed) || + (!isElipsed && this.buttonState === AccordionButtonState.expanded); + } + + toggleDescriptionAccordion() { + if (this.descriptionLinesToDisplay > 0) { + this.descriptionLinesToDisplay = + this.descriptionLinesToDisplay === this.descriptionPreviewLines + ? this.descriptionLinesTotal + : this.descriptionPreviewLines; + } + this.buttonState = + this.buttonState === AccordionButtonState.collapsed + ? AccordionButtonState.expanded + : AccordionButtonState.collapsed; + setTimeout(() => this.checkTextElipsis(), 0); + } +} diff --git a/frontend/app/src/app/modules/data/list/data-list-item-host-default.component.ts b/frontend/app/src/app/modules/data/list/data-list-item-host-default.component.ts new file mode 100644 index 00000000..6491d88e --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list-item-host-default.component.ts @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {SCThings} from '@openstapps/core'; + +@Component({ + selector: 'data-list-item-host-default', + templateUrl: 'data-list-item-host-default.html', +}) +export class DataListItemHostDefaultComponent { + @Input() item: SCThings; +} diff --git a/frontend/app/src/app/modules/data/list/data-list-item-host-default.html b/frontend/app/src/app/modules/data/list/data-list-item-host-default.html new file mode 100644 index 00000000..4b00cb45 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list-item-host-default.html @@ -0,0 +1,24 @@ + + +

+ {{ 'name' | thingTranslate: item }} +

+

+ +

diff --git a/frontend/app/src/app/modules/data/list/data-list-item-host.directive.ts b/frontend/app/src/app/modules/data/list/data-list-item-host.directive.ts new file mode 100644 index 00000000..9f9ff197 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list-item-host.directive.ts @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {ComponentRef, Directive, Input, Type, ViewContainerRef} from '@angular/core'; +import {SCThings, SCThingType} from '@openstapps/core'; +import {BookListItemComponent} from '../types/book/book-list-item.component'; +import {CatalogListItemComponent} from '../types/catalog/catalog-list-item.component'; +import {DateSeriesListItemComponent} from '../types/date-series/date-series-list-item.component'; +import {EventListItemComponent} from '../types/event/event-list-item.component'; +import {FavoriteListItemComponent} from '../types/favorite/favorite-list-item.component'; +import {MessageListItemComponent} from '../types/message/message-list-item.component'; +import {OrganizationListItemComponent} from '../types/organization/organization-list-item.component'; +import {PersonListItemComponent} from '../types/person/person-list-item.component'; +import {PlaceListItemComponent} from '../types/place/place-list-item.component'; +import {SemesterListItemComponent} from '../types/semester/semester-list-item.component'; +import {VideoListItemComponent} from '../types/video/video-list-item.component'; +import {PeriodicalListItemComponent} from '../types/periodical/periodical-list-item.component'; +import {DataListItemHostDefaultComponent} from './data-list-item-host-default.component'; +import {ArticleListItemComponent} from '../types/article/article-item.component'; +import {DishListItemComponent} from '../types/dish/dish-list-item.component'; + +export interface DataListItem { + item: SCThings; +} + +const DataListItemIndex: Partial>> = { + [SCThingType.Catalog]: CatalogListItemComponent, + [SCThingType.Dish]: DishListItemComponent, + [SCThingType.DateSeries]: DateSeriesListItemComponent, + [SCThingType.AcademicEvent]: EventListItemComponent, + [SCThingType.SportCourse]: DateSeriesListItemComponent, + [SCThingType.Favorite]: FavoriteListItemComponent, + [SCThingType.Message]: MessageListItemComponent, + [SCThingType.Organization]: OrganizationListItemComponent, + [SCThingType.Person]: PersonListItemComponent, + [SCThingType.Building]: PlaceListItemComponent, + [SCThingType.Floor]: PlaceListItemComponent, + [SCThingType.PointOfInterest]: PlaceListItemComponent, + [SCThingType.Room]: PlaceListItemComponent, + [SCThingType.Semester]: SemesterListItemComponent, + [SCThingType.Video]: VideoListItemComponent, + [SCThingType.Periodical]: PeriodicalListItemComponent, + [SCThingType.Book]: BookListItemComponent, + [SCThingType.Article]: ArticleListItemComponent, +}; + +@Directive({ + selector: '[dataListItemHost]', +}) +export class DataListItemHostDirective { + private type?: Type; + + private component?: ComponentRef; + + constructor(readonly viewContainerRef: ViewContainerRef) {} + + @Input() set dataListItemHost(value: SCThings | undefined) { + if (!value) { + this.viewContainerRef.clear(); + delete this.type; + delete this.component; + return; + } + + const type = DataListItemIndex[value.type] || DataListItemHostDefaultComponent; + if (this.type !== type || !this.component) { + this.type = type; + this.viewContainerRef.clear(); + this.component = this.viewContainerRef.createComponent(this.type); + } + this.component.instance.item = value; + } +} diff --git a/frontend/app/src/app/modules/data/list/data-list-item.component.ts b/frontend/app/src/app/modules/data/list/data-list-item.component.ts new file mode 100644 index 00000000..27bbf8d1 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list-item.component.ts @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, ContentChild, HostBinding, Input, TemplateRef} from '@angular/core'; +import {SCThings} from '@openstapps/core'; +import {DataRoutingService} from '../data-routing.service'; +import {DataListContext} from './data-list.component'; + +/** + * Shows data items in lists such es search result + */ +@Component({ + selector: 'stapps-data-list-item', + styleUrls: ['data-list-item.scss'], + templateUrl: 'data-list-item.html', +}) +export class DataListItemComponent { + /** + * Whether the list item should show a thumbnail + */ + @Input() hideThumbnail = false; + + /** + * An item to show + */ + @Input() item: SCThings; + + @Input() favoriteButton = true; + + @Input() lines = 'inset'; + + @Input() forceHeight = false; + + height?: string; + + @Input() appearance: 'normal' | 'square' = 'normal'; + + @ContentChild(TemplateRef) contentTemplateRef: TemplateRef>; + + @HostBinding('class.square') get square() { + return this.appearance === 'square'; + } + + constructor(private readonly dataRoutingService: DataRoutingService) {} + + /** + * Emit event that an item was selected + */ + notifySelect() { + this.dataRoutingService.emitChildEvent(this.item); + } +} diff --git a/frontend/app/src/app/modules/data/list/data-list-item.html b/frontend/app/src/app/modules/data/list/data-list-item.html new file mode 100644 index 00000000..3b785215 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list-item.html @@ -0,0 +1,49 @@ + + + +
+ + + + + +
+ +
+
+
+ + +
+ + + +
+ + +
+
+
diff --git a/frontend/app/src/app/modules/data/list/data-list-item.scss b/frontend/app/src/app/modules/data/list/data-list-item.scss new file mode 100644 index 00000000..714f93af --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list-item.scss @@ -0,0 +1,98 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@import 'src/theme/util/_mixins.scss'; +@import 'src/theme/common/_helper.scss'; + +:host { + display: block; +} + +ion-item::part(native) { + height: 100%; +} + +.ion-text-wrap ::ng-deep ion-label { + white-space: normal !important; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; +} + +ion-item { + --border-color: transparent; + @include border-radius-in-parallax(var(--border-radius-default)); + overflow: hidden; + --inner-padding-end: 0; + --padding-start: var(--spacing-sm); + margin: var(--spacing-sm); + + ion-thumbnail { + --ion-margin: var(--spacing-xs); + } + + ion-label { + width: 100%; + + div { + display: flex; + flex-direction: column; + } + } + ::ng-deep { + ion-note { + @extend %horizontal-list; + } + } +} + +:host.square ::ng-deep { + ion-item { + margin: 0; + } + + ion-row { + flex-direction: column; + justify-content: space-between; + height: 120px; + } + + ion-col { + flex-grow: 0; + flex-basis: min-content; + } + + .title { + display: -webkit-box; + white-space: break-spaces; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + overflow: hidden; + } + + .title-sub { + display: none; + } + + // fix for Safari + stapps-offers-in-list { + position: absolute; + bottom: 0; + right: 0; + } + + stapps-offers-in-list .place { + display: none; + } +} diff --git a/frontend/app/src/app/modules/data/list/data-list.component.spec.ts b/frontend/app/src/app/modules/data/list/data-list.component.spec.ts new file mode 100644 index 00000000..e60a1f98 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list.component.spec.ts @@ -0,0 +1,36 @@ +import {ComponentFixture, TestBed} from '@angular/core/testing'; + +import {DataListComponent} from './data-list.component'; +import {TranslateModule} from '@ngx-translate/core'; +import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; +import {ConfigProvider} from '../../config/config.provider'; + +describe('DataListComponent', () => { + let component: DataListComponent; + let fixture: ComponentFixture; + let configProviderMock: jasmine.SpyObj; + + beforeEach(() => { + configProviderMock = jasmine.createSpyObj('ConfigProvider', { + getValue: () => { + return {lat: 123, lng: 123}; + }, + }); + TestBed.configureTestingModule({ + declarations: [DataListComponent], + imports: [TranslateModule.forRoot()], + schemas: [CUSTOM_ELEMENTS_SCHEMA], + providers: [{provide: ConfigProvider, useValue: configProviderMock}], + }).compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(DataListComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/frontend/app/src/app/modules/data/list/data-list.component.ts b/frontend/app/src/app/modules/data/list/data-list.component.ts new file mode 100644 index 00000000..6fd07fa9 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list.component.ts @@ -0,0 +1,156 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CdkVirtualScrollViewport} from '@angular/cdk/scrolling'; +import { + Component, + ContentChild, + EventEmitter, + HostListener, + Input, + OnChanges, + OnDestroy, + OnInit, + Output, + SimpleChanges, + TemplateRef, + ViewChild, +} from '@angular/core'; +import {SCThings} from '@openstapps/core'; +import {BehaviorSubject, Observable, Subscription} from 'rxjs'; + +export interface DataListContext { + $implicit: T; +} + +/** + * Shows the list of items + */ +@Component({ + selector: 'stapps-data-list', + templateUrl: 'data-list.html', + styleUrls: ['data-list.scss'], +}) +export class DataListComponent implements OnChanges, OnInit, OnDestroy { + /** + * Amount of list items left to show (in percent) that should trigger a data reload + */ + private readonly reloadThreshold = 0.2; + + /** + * All SCThings to display + */ + @Input() items?: SCThings[]; + + @ContentChild(TemplateRef) listItemTemplateRef: TemplateRef>; + + /** + * Stream of SCThings for virtual scroll to consume + */ + itemStream = new BehaviorSubject([]); + + /** + * Output binding to trigger pagination fetch + */ + // eslint-disable-next-line @angular-eslint/no-output-rename + @Output('loadmore') loadMore = new EventEmitter(); + + /** + * Emits when scroll view should reset to top + */ + @Input() resetToTop?: Observable; + + /** + * Indicates whether or not the list is to display SCThings of a single type + */ + @Input() singleType = false; + + /** + * Items that display the skeleton list + */ + skeletonItems: number; + + /** + * Array of all subscriptions to Observables + */ + subscriptions: Subscription[] = []; + + @ViewChild(CdkVirtualScrollViewport) viewPort: CdkVirtualScrollViewport; + + /** + * Signalizes that the data is being loaded + */ + @Input() loading = true; + + /** + * Calculate how many items would fill the screen + */ + @HostListener('window:resize', ['$event']) + calcSkeletonItems() { + const itemHeight = 40; + this.skeletonItems = Math.ceil(window.innerHeight / itemHeight); + } + + /** + * Uniquely identifies item at a certain list index + */ + // eslint-disable-next-line class-methods-use-this + identifyItem(_index: number, item: SCThings) { + return item.uid; + } + + ngOnChanges(changes: SimpleChanges): void { + if (Array.isArray(this.items) && typeof changes.items !== 'undefined') { + this.itemStream.next(this.items); + } + } + + ngOnDestroy(): void { + for (const subscription of this.subscriptions) { + subscription.unsubscribe(); + } + } + + ngOnInit(): void { + this.calcSkeletonItems(); + if (typeof this.resetToTop !== 'undefined') { + this.subscriptions.push( + this.resetToTop.subscribe(() => { + this.viewPort.scrollToIndex(0); + }), + ); + } + } + + /** + * Component proxy for dataSource.finishedLoadMore + */ + notifyLoadMore() { + this.loadMore.emit(); + } + + /** + * Function to call whenever scroll view visible range changed + */ + scrolled(index: number) { + if ( + // first condition prevents "load more" to be executed even before scrolling + index > 0 && + (this.items?.length ?? 0) - this.viewPort.getRenderedRange().end <= + (this.items?.length ?? 0) * this.reloadThreshold + ) { + this.notifyLoadMore(); + } + } +} diff --git a/frontend/app/src/app/modules/data/list/data-list.html b/frontend/app/src/app/modules/data/list/data-list.html new file mode 100644 index 00000000..b6569188 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list.html @@ -0,0 +1,44 @@ + + + + + + + + + + +
+ + {{ 'search.nothing_found' | translate | titlecase }} + +
+ + + + + + + diff --git a/frontend/app/src/app/modules/data/list/data-list.scss b/frontend/app/src/app/modules/data/list/data-list.scss new file mode 100644 index 00000000..086552c5 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/data-list.scss @@ -0,0 +1,29 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +cdk-virtual-scroll-viewport { + height: 100%; + width: 100%; +} + +::ng-deep { + .cdk-virtual-scroll-content-wrapper { + width: 100%; + } +} + +.virtual-scroll-expander { + clear: both; +} diff --git a/frontend/app/src/app/modules/data/list/food-data-list.component.ts b/frontend/app/src/app/modules/data/list/food-data-list.component.ts new file mode 100644 index 00000000..4f260d72 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/food-data-list.component.ts @@ -0,0 +1,120 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component} from '@angular/core'; +import {MapPosition} from '../../map/position.service'; +import {SearchPageComponent} from './search-page.component'; +import {Geolocation} from '@capacitor/geolocation'; + +/** + * Presents a list of places for eating/drinking + */ +@Component({ + templateUrl: 'search-page.html', + styleUrls: ['../../data/list/search-page.scss'], +}) +export class FoodDataListComponent extends SearchPageComponent { + title = 'canteens.title'; + + showNavigation = false; + + /** + * Sets the forced filter to present only places for eating/drinking + */ + initialize() { + this.showDefaultData = true; + + this.sortQuery = [ + { + arguments: {field: 'name'}, + order: 'asc', + type: 'ducet', + }, + ]; + + this.forcedFilter = { + arguments: { + filters: [ + { + arguments: { + field: 'categories', + value: 'canteen', + }, + type: 'value', + }, + { + arguments: { + field: 'categories', + value: 'student canteen', + }, + type: 'value', + }, + { + arguments: { + field: 'categories', + value: 'cafe', + }, + type: 'value', + }, + { + arguments: { + field: 'categories', + value: 'restaurant', + }, + type: 'value', + }, + ], + operation: 'or', + }, + type: 'boolean', + }; + + if (this.positionService.position) { + this.sortQuery = [ + { + type: 'distance', + order: 'asc', + arguments: { + field: 'geo', + position: [this.positionService.position.longitude, this.positionService.position.latitude], + }, + }, + ]; + } + } + + async ionViewWillEnter() { + await super.ionViewWillEnter(); + this.subscriptions.push( + this.positionService + .watchCurrentLocation(this.constructor.name, {enableHighAccuracy: false, maximumAge: 1000}) + .subscribe({ + next: (position: MapPosition) => { + this.positionService.position = position; + }, + error: async _error => { + this.positionService.position = undefined; + await Geolocation.checkPermissions(); + }, + }), + ); + } + + ionViewWillLeave() { + void this.positionService.clearWatcher(this.constructor.name); + for (const sub of this.subscriptions) { + sub.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/modules/data/list/sc-thing-list-item-virtual-scroll-strategy.directive.ts b/frontend/app/src/app/modules/data/list/sc-thing-list-item-virtual-scroll-strategy.directive.ts new file mode 100644 index 00000000..c56468f0 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/sc-thing-list-item-virtual-scroll-strategy.directive.ts @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Directive, forwardRef, Input, Output, ViewChild} from '@angular/core'; +import {CdkVirtualForOf, VIRTUAL_SCROLL_STRATEGY} from '@angular/cdk/scrolling'; +import {ScThingListItemVirtualScrollStrategy} from './sc-thing-list-item-virtual-scroll-strategy'; + +/** + * + */ +function factory(directive: SCThingListItemVirtualScrollStrategyDirective) { + return directive.scrollStrategy; +} + +@Directive({ + selector: 'cdk-virtual-scroll-viewport[scThingListItemVirtualScrollStrategy]', + providers: [ + { + provide: VIRTUAL_SCROLL_STRATEGY, + useFactory: factory, + deps: [forwardRef(() => SCThingListItemVirtualScrollStrategyDirective)], + }, + ], +}) +export class SCThingListItemVirtualScrollStrategyDirective { + scrollStrategy = new ScThingListItemVirtualScrollStrategy(); + + @ViewChild(CdkVirtualForOf) virtualForOf: CdkVirtualForOf; + + @Output() readonly loadMore = this.scrollStrategy.loadMore; + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + @Input() set trackGroupBy(value: (item: any) => unknown) { + this.scrollStrategy.trackGroupBy = value; + } + + @Input() set minimumHeight(value: number) { + this.scrollStrategy.approximateItemHeight = value; + } + + @Input() set buffer(value: number) { + this.scrollStrategy.buffer = value; + } + + @Input() set gap(value: number) { + this.scrollStrategy.gap = value; + } + + @Input() set itemRenderTimeout(value: number) { + this.scrollStrategy.itemRenderTimeout = value; + } +} diff --git a/frontend/app/src/app/modules/data/list/sc-thing-list-item-virtual-scroll-strategy.ts b/frontend/app/src/app/modules/data/list/sc-thing-list-item-virtual-scroll-strategy.ts new file mode 100644 index 00000000..76387a29 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/sc-thing-list-item-virtual-scroll-strategy.ts @@ -0,0 +1,286 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {CdkVirtualForOf, CdkVirtualScrollViewport, VirtualScrollStrategy} from '@angular/cdk/scrolling'; +import {BehaviorSubject, Subject, Subscription, takeUntil, timer} from 'rxjs'; +import {debounceTime, distinctUntilChanged, tap} from 'rxjs/operators'; +import {SCThingType} from '@openstapps/core'; + +export class ScThingListItemVirtualScrollStrategy implements VirtualScrollStrategy { + private viewport?: CdkVirtualScrollViewport; + + private virtualForOf?: CdkVirtualForOf; + + private index$ = new Subject(); + + private heights = new Map(); + + private groupHeights = new Map(); + + private offsets: number[] = []; + + private totalHeight = 0; + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private _items?: readonly unknown[]; + + private _groups?: readonly unknown[]; + + /** + * We use this to track loadMore + */ + private currentLength = 0; + + private dataStreamSubscription?: Subscription; + + private mutationObserver?: MutationObserver; + + approximateItemHeight = 67; + + approximateGroupSizes: Map = new Map([[SCThingType.AcademicEvent, 139]]); + + buffer = 4000; + + gap = 8; + + itemRenderTimeout = 1000; + + heightUpdateDebounceTime = 25; + + heightSetDebounceTime = 100; + + loadMore = new Subject(); + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + trackGroupBy: (value: any) => unknown = it => it.type; + + attach(viewport: CdkVirtualScrollViewport): void { + this.viewport = viewport; + // @ts-expect-error private property + this.virtualForOf = viewport._forOf; + this.dataStreamSubscription = this.virtualForOf?.dataStream.subscribe(items => { + this.items = items; + }); + + this.mutationObserver = new MutationObserver(() => { + const renderedItems = this.renderedItems; + if (!renderedItems) { + this.mutationObserver?.disconnect(); + return this.onPrematureDisconnect(); + } + + this.intersectionObserver?.disconnect(); + this.intersectionObserver = new IntersectionObserver(this.observeIntersection.bind(this), { + rootMargin: `${this.buffer - 64}px`, + threshold: 1, + }); + + for (const node of renderedItems) { + const [item, group] = this.getItemByNode(node, renderedItems); + + if (!this.heights.has(item)) { + this.intersectionObserver.observe(node); + } else { + node.style.height = `${this.getHeight(item, group)}px`; + } + } + }); + + const contentWrapper = this.contentWrapper; + if (!contentWrapper) return this.onPrematureDisconnect(); + this.mutationObserver.observe(contentWrapper, {childList: true, subtree: true}); + + this.setTotalContentSize(); + } + + detach(): void { + this.index$.complete(); + this.dataStreamSubscription?.unsubscribe(); + this.mutationObserver?.disconnect(); + delete this.viewport; + } + + private getHeight(item: unknown, group: unknown) { + return ( + this.heights.get(item) || + this.groupHeights.get(group) || + this.approximateGroupSizes.get(group) || + this.approximateItemHeight + ); + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private set items(value: readonly unknown[]) { + const trackBy = this.virtualForOf?.cdkVirtualForTrackBy; + const tracks = value.map((it, i) => (trackBy ? trackBy(i, it) : it)); + if ( + this._items && + tracks.length === this._items.length && + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + tracks.every((it, i) => it === this._items![i]) + ) + return; + + this._items = tracks; + this._groups = value.map(this.trackGroupBy); + this.currentLength = tracks.length; + + this.updateHeights(); + } + + scrolledIndexChange = this.index$.pipe(distinctUntilChanged()); + + private getOffsetFromIndex(index: number): number { + return this.offsets[index]; + } + + private getIndexFromOffset(offset: number): number { + return Math.max( + 0, + this.offsets.findIndex((it, i, array) => it >= offset || i === array.length - 1), + ); + } + + private updateHeights() { + if (!this._items) return; + const heights = this._items.map((it, i) => this.getHeight(it, this._groups![i]) + this.gap); + this.offsets = Array.from({length: heights.length}, () => 0); + this.totalHeight = heights.reduce((a, b, index) => (this.offsets[index + 1] = a + b), 0) + this.gap; + + this.setTotalContentSize(); + this.updateRenderedRange(); + } + + private updateRenderedRange() { + if (!this.viewport) return; + const offset = this.viewport.measureScrollOffset('top'); + const viewportSize = this.viewport.getViewportSize(); + const firstVisibleIndex = Math.max(0, this.getIndexFromOffset(offset) - 1); + const range = { + start: this.getIndexFromOffset(Math.max(0, offset - this.buffer)), + end: this.getIndexFromOffset(offset + viewportSize + this.buffer), + }; + const {start, end} = this.viewport.getRenderedRange(); + if (range.start === start && range.end === end) return; + + if (this.currentLength !== 0 && range.end === this.currentLength) { + this.currentLength++; + this.loadMore.next(); + } + + this.viewport.setRenderedRange(range); + this.viewport.setRenderedContentOffset(this.getOffsetFromIndex(range.start), 'to-start'); + + this.index$.next(firstVisibleIndex); + } + + private setTotalContentSize() { + this.viewport?.setTotalContentSize(this.totalHeight); + // @ts-expect-error TODO + this.viewport?._measureViewportSize(); + } + + observeIntersection(entries: IntersectionObserverEntry[], observer: IntersectionObserver) { + const renderedItems = this.renderedItems; + if (!renderedItems) return this.onPrematureDisconnect(); + + const update = new Subject(); + for (const entry of entries) { + if (!entry.isIntersecting) continue; + + const outerNode = entry.target as HTMLElement; + const [item] = this.getItemByNode(outerNode, renderedItems); + const node = outerNode.firstChild! as HTMLElement; + + const height = new BehaviorSubject(node.offsetHeight); + const resizeObserver = new ResizeObserver(() => { + const renderedItems = this.renderedItems; + if (!renderedItems) { + resizeObserver.disconnect(); + return this.onPrematureDisconnect(); + } + const [newItem] = this.getItemByNode(node, renderedItems); + if (newItem !== item) { + this.heights.delete(item); + resizeObserver.disconnect(); + return; + } + height.next(node.offsetHeight); + }); + resizeObserver.observe(node); + height + .pipe( + distinctUntilChanged(), + debounceTime(this.heightSetDebounceTime), + takeUntil(timer(this.itemRenderTimeout)), + tap({complete: () => resizeObserver.disconnect()}), + ) + .subscribe(height => { + this.heights.set(item, height); + outerNode.style.height = `${height}px`; + update.next(); + }); + + observer.unobserve(node); + } + update + .pipe(debounceTime(this.heightUpdateDebounceTime), takeUntil(timer(this.itemRenderTimeout))) + .subscribe(() => { + this.updateHeights(); + }); + } + + intersectionObserver?: IntersectionObserver; + + get contentWrapper() { + return this.viewport?._contentWrapper.nativeElement; + } + + get renderedItems() { + const contentWrapper = this.contentWrapper; + return contentWrapper + ? // eslint-disable-next-line unicorn/prefer-spread + (Array.from(contentWrapper.children).filter(it => it instanceof HTMLElement) as HTMLElement[]) + : undefined; + } + + getItemByNode(node: HTMLElement, renderedItems: HTMLElement[]) { + const {start} = this.viewport!.getRenderedRange(); + const index = renderedItems.indexOf(node) + start; + return [this._items![index], this._groups![index]]; + } + + // eslint-disable-next-line @typescript-eslint/no-empty-function + onContentRendered(): void {} + + onContentScrolled() { + this.updateRenderedRange(); + } + + onPrematureDisconnect() { + console.warn('Virtual Scroll strategy was disconnected unexpectedly', new Error('foo').stack); + } + + onDataLengthChanged(): void { + this.setTotalContentSize(); + } + + // eslint-disable-next-line @typescript-eslint/no-empty-function + onRenderedOffsetChanged(): void {} + + scrollToIndex(index: number, behavior: ScrollBehavior): void { + this.viewport?.scrollToOffset(this.getOffsetFromIndex(index), behavior); + } +} diff --git a/frontend/app/src/app/modules/data/list/search-page-switch-animation.ts b/frontend/app/src/app/modules/data/list/search-page-switch-animation.ts new file mode 100644 index 00000000..860103c3 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/search-page-switch-animation.ts @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import type {AnimationBuilder} from '@ionic/angular'; +import {AnimationController} from '@ionic/angular'; +import type {AnimationOptions} from '@ionic/angular/providers/nav-controller'; + +/** + * + */ +export function searchPageSwitchAnimation(animationController: AnimationController): AnimationBuilder { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return (_baseElement: HTMLElement, options: AnimationOptions | any) => { + const rootTransition = animationController + .create() + .duration(options.duration ?? 200) + .easing('ease'); + + const enterTransition = animationController + .create() + .fromTo('opacity', '0', '1') + .addElement(options.enteringEl); + const exitTransition = animationController + .create() + .fromTo('opacity', '1', '1') + .addElement(options.leavingEl); + console.log(options.enteringEl.querySelector('stapps-data-list')); + const contentSlide = animationController + .create() + .fromTo('transform', 'translateX(600px)', 'translateX(0px)') + .addElement(options.enteringEl.querySelector('stapps-data-list')); + + rootTransition.addAnimation([enterTransition, exitTransition, contentSlide]); + return rootTransition; + }; +} diff --git a/frontend/app/src/app/modules/data/list/search-page.component.ts b/frontend/app/src/app/modules/data/list/search-page.component.ts new file mode 100644 index 00000000..0fb4ceb1 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/search-page.component.ts @@ -0,0 +1,364 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnDestroy, OnInit} from '@angular/core'; +import {ActivatedRoute, Router} from '@angular/router'; +import {Keyboard} from '@capacitor/keyboard'; +import {AlertController, AnimationBuilder, AnimationController} from '@ionic/angular'; +import {Capacitor} from '@capacitor/core'; +import { + SCFacet, + SCFeatureConfiguration, + SCSearchFilter, + SCSearchQuery, + SCSearchSort, + SCThings, +} from '@openstapps/core'; +import {NGXLogger} from 'ngx-logger'; +import {combineLatest, Subject, Subscription} from 'rxjs'; +import {debounceTime, distinctUntilChanged, startWith} from 'rxjs/operators'; +import {ContextMenuService} from '../../menu/context/context-menu.service'; +import {SettingsProvider} from '../../settings/settings.provider'; +import {DataRoutingService} from '../data-routing.service'; +import {DataProvider} from '../data.provider'; +import {PositionService} from '../../map/position.service'; +import {ConfigProvider} from '../../config/config.provider'; +import {searchPageSwitchAnimation} from './search-page-switch-animation'; + +/** + * SearchPageComponent queries things and shows list of things as search results and filter as context menu + */ +@Component({ + selector: 'stapps-search-page', + templateUrl: 'search-page.html', + styleUrls: ['search-page.scss'], + providers: [ContextMenuService], +}) +export class SearchPageComponent implements OnInit, OnDestroy { + title = 'search.title'; + + isHebisAvailable = false; + + /** + * Signalizes that the data is being loaded + */ + loading = false; + + /** + * Display the navigation between default and library search + */ + @Input() showNavigation = true; + + /** + * Show default data (e.g. when there is user interaction) + */ + @Input() showDefaultData = false; + + /** + * Show the navigation drawer + */ + @Input() showDrawer = true; + + /** + * Show "universal search" toolbar + */ + @Input() showTopToolbar = true; + + /** + * Api query filter + */ + filterQuery: SCSearchFilter | undefined; + + /** + * Filters the search should be initialized with + */ + @Input() forcedFilter?: SCSearchFilter; + + /** + * If routing should be done if the user clicks on an item + */ + @Input() itemRouting? = true; + + /** + * Thing counter to start query the next page from + */ + from = 0; + + /** + * Container for queried things + */ + items: Promise; + + /** + * Page size of queries + */ + pageSize = 30; + + /** + * Search value from search bar + */ + queryText: string; + + /** + * Emits when there is a change in the query (search, sort or filter changed) + */ + queryChanged = new Subject(); + + /** + * Subject to handle search text changes + */ + queryTextChanged = new Subject(); + + /** + * Time to wait for search query if search text is changing + */ + searchQueryDueTime = 1000; + + /** + * Search response only ever contains a single SCThingType + */ + singleTypeResponse = false; + + /** + * Api query sorting + */ + sortQuery: SCSearchSort[] | undefined; + + /** + * Array of all subscriptions to Observables + */ + subscriptions: Subscription[] = []; + + routeAnimation: AnimationBuilder; + + /** + * Injects the providers and creates subscriptions + * + * @param alertController AlertController + * @param dataProvider DataProvider + * @param contextMenuService ContextMenuService + * @param settingsProvider SettingsProvider + * @param logger An angular logger + * @param dataRoutingService DataRoutingService + * @param router Router + * @param route ActivatedRoute + * @param positionService PositionService + * @param configProvider ConfigProvider + */ + constructor( + protected readonly alertController: AlertController, + protected dataProvider: DataProvider, + protected readonly contextMenuService: ContextMenuService, + protected readonly settingsProvider: SettingsProvider, + protected readonly logger: NGXLogger, + protected dataRoutingService: DataRoutingService, + protected router: Router, + private readonly route: ActivatedRoute, + protected positionService: PositionService, + private readonly configProvider: ConfigProvider, + animationController: AnimationController, + ) { + this.routeAnimation = searchPageSwitchAnimation(animationController); + } + + /** + * Fetches items with set query configuration + * + * @param append If true fetched data gets appended to existing, override otherwise (default false) + */ + protected async fetchAndUpdateItems(append = false): Promise { + // build query search options + const searchOptions: SCSearchQuery = { + from: this.from, + size: this.pageSize, + }; + const filters: SCSearchFilter[] = []; + + if (this.queryText && this.queryText.length > 0) { + // add query string + searchOptions.query = this.queryText; + } + + if (this.sortQuery) { + // add query sorting + searchOptions.sort = this.sortQuery; + } + + for (const filter of [this.forcedFilter, this.filterQuery]) { + if (typeof filter !== 'undefined') { + filters.push(filter); + } + } + if (filters.length > 0) { + searchOptions.filter = { + arguments: { + filters: filters, + operation: 'and', + }, + type: 'boolean', + }; + } + + this.loading = !append; + + try { + const result = await this.dataProvider.search(searchOptions); + this.singleTypeResponse = result.facets.find(facet => facet.field === 'type')?.buckets.length === 1; + if (append) { + // append results + this.items = this.items.then(it => + // fix for some very short results + it.length === result.pagination.total ? it : [...it, ...result.data], + ); + } else { + // override items with results + this.updateContextFilter(result.facets); + this.items = Promise.resolve(result.data); + } + + this.items.then(it => { + if (it.length === result.pagination.total) console.log('final page loaded'); + }); + } catch (error) { + this.logger.error(error); + } finally { + this.loading = false; + } + } + + /** + * Hides keyboard in native app environments + */ + hideKeyboard() { + if (Capacitor.isNativePlatform()) { + Keyboard.hide(); + } + } + + /** + * Set starting values (e.g. forced filter, which can be set in components inheriting this one) + */ + // eslint-disable-next-line class-methods-use-this + initialize() { + // nothing to do here + } + + /** + * Loads next page of things + */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + async loadMore(): Promise { + this.from += this.pageSize; + await this.fetchAndUpdateItems(true); + } + + /** + * Search event of search bar + */ + searchStringChanged(queryValue: string) { + this.router.navigate([], { + relativeTo: this.route, + queryParams: {query: queryValue}, + queryParamsHandling: 'merge', + }); + this.queryTextChanged.next(queryValue); + } + + /** + * Updates the possible filter options in ContextMenuService with facets + */ + updateContextFilter(facets: SCFacet[]) { + this.contextMenuService.updateContextFilter(facets); + } + + ngOnInit() { + this.initialize(); + this.contextMenuService.setContextSort({ + name: 'sort', + reversed: false, + value: 'relevance', + values: [ + { + reversible: false, + value: 'relevance', + }, + { + reversible: true, + value: 'name', + }, + { + reversible: true, + value: 'type', + }, + ], + }); + + this.subscriptions.push( + combineLatest([ + this.queryTextChanged.pipe( + debounceTime(this.searchQueryDueTime), + distinctUntilChanged(), + startWith(this.queryText), + ), + this.contextMenuService.filterQueryChanged$.pipe(startWith(this.filterQuery)), + this.contextMenuService.sortQueryChanged$.pipe(startWith(this.sortQuery)), + ]).subscribe(async query => { + this.queryText = query[0]; + this.filterQuery = query[1]; + this.sortQuery = query[2]; + this.from = 0; + if (typeof this.filterQuery !== 'undefined' || this.queryText?.length > 0 || this.showDefaultData) { + await this.fetchAndUpdateItems(); + this.queryChanged.next(); + } + }), + this.settingsProvider.settingsActionChanged$.subscribe(({type, payload}) => { + if (type === 'stapps.settings.changed') { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const {category, name, value} = payload!; + this.logger.log(`received event "settings.changed" with category: + ${category}, name: ${name}, value: ${JSON.stringify(value)}`); + } + }), + this.dataRoutingService.itemSelectListener().subscribe(item => { + if (this.itemRouting) { + void this.router.navigate(['/data-detail', item.uid]); + } + }), + ); + try { + const features = this.configProvider.getValue('features') as SCFeatureConfiguration; + this.isHebisAvailable = !!features.plugins?.['hebis-plugin']?.urlPath; + } catch (error) { + this.logger.error(error); + } + } + + /** + * Initialize + */ + async ionViewWillEnter() { + const term = this.route.snapshot.queryParamMap.get('query') || undefined; + if (term) { + this.queryText = term; + this.searchStringChanged(term); + } + } + + ngOnDestroy() { + for (const subscription of this.subscriptions) { + subscription.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/modules/data/list/search-page.html b/frontend/app/src/app/modules/data/list/search-page.html new file mode 100644 index 00000000..1ae5bc0d --- /dev/null +++ b/frontend/app/src/app/modules/data/list/search-page.html @@ -0,0 +1,72 @@ + + + + + + + + + {{ title | translate }} + + + + + + + + + + + {{ 'search.type' | translate }} + {{ 'hebisSearch.type' | translate }} + + + + + + +
+ + {{ 'search.instruction' | translate }} + +
+ +
diff --git a/frontend/app/src/app/modules/data/list/search-page.scss b/frontend/app/src/app/modules/data/list/search-page.scss new file mode 100644 index 00000000..78d6f4ca --- /dev/null +++ b/frontend/app/src/app/modules/data/list/search-page.scss @@ -0,0 +1,60 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host { + display: flex; + flex-direction: column; + flex: 1 1 100%; + height: 100%; +} + +ion-toolbar:first-of-type { + padding: 0 var(--spacing-md) var(--spacing-xs); +} + +.category-tab { + ion-buttons { + gap: var(--spacing-md); + + ion-button { + width: 50%; + margin: 0; + text-transform: none; + } + } +} + +ion-content { + --background: var(--ion-color-light); +} + +.content > div { + height: 100%; + + ion-label.centeredMessageContainer { + min-height: unset; + height: 100%; + margin-top: 0; + margin-bottom: 0; + } +} + +ion-header { + background: var(--ion-color-primary); +} + +ion-toolbar { + --ion-color-base: none !important; +} diff --git a/frontend/app/src/app/modules/data/list/search-provider.ts b/frontend/app/src/app/modules/data/list/search-provider.ts new file mode 100644 index 00000000..b088485d --- /dev/null +++ b/frontend/app/src/app/modules/data/list/search-provider.ts @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {SCThings} from '@openstapps/core'; + +export abstract class SearchProvider { + abstract fetchAndUpdateItems(append: boolean): Promise | void; + + abstract route(item: SCThings): Promise | void; +} diff --git a/frontend/app/src/app/modules/data/list/simple-data-list.component.ts b/frontend/app/src/app/modules/data/list/simple-data-list.component.ts new file mode 100644 index 00000000..9e4b0f80 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/simple-data-list.component.ts @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, ContentChild, Input, OnDestroy, OnInit, TemplateRef} from '@angular/core'; +import {SCThings} from '@openstapps/core'; +import {Subscription} from 'rxjs'; +import {Router} from '@angular/router'; +import {DataRoutingService} from '../data-routing.service'; +import {DataListContext} from './data-list.component'; + +/** + * Shows the list of items + */ +@Component({ + selector: 'stapps-simple-data-list', + templateUrl: 'simple-data-list.html', + styleUrls: ['simple-data-list.scss'], +}) +export class SimpleDataListComponent implements OnInit, OnDestroy { + @Input() items?: Promise; + + /** + * Indicates whether or not the list is to display SCThings of a single type + */ + @Input() singleType = false; + + @Input() autoRouting = true; + + /** + * List header + */ + @Input() listHeader?: string; + + @Input() emptyListMessage?: string; + + @ContentChild(TemplateRef) listItemTemplateRef: TemplateRef>; + + /** + * Items that display the skeleton list + */ + skeletonItems = 6; + + /** + * Array of all subscriptions to Observables + */ + subscriptions: Subscription[] = []; + + constructor(protected router: Router, private readonly dataRoutingService: DataRoutingService) {} + + ngOnInit(): void { + if (!this.autoRouting) return; + this.subscriptions.push( + this.dataRoutingService.itemSelectListener().subscribe(item => { + void this.router.navigate(['/data-detail', item.uid]); + }), + ); + } + + /** + * Remove subscriptions when the component is removed + */ + ngOnDestroy() { + for (const sub of this.subscriptions) { + sub.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/modules/data/list/simple-data-list.html b/frontend/app/src/app/modules/data/list/simple-data-list.html new file mode 100644 index 00000000..a6ca7720 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/simple-data-list.html @@ -0,0 +1,49 @@ + + + + + + + + + + {{ + emptyListMessage + }} + + + + + + + + + + +

+ {{ listHeader }} +

+
+
+
+ + + diff --git a/frontend/app/src/app/modules/data/list/simple-data-list.scss b/frontend/app/src/app/modules/data/list/simple-data-list.scss new file mode 100644 index 00000000..8fb8b57f --- /dev/null +++ b/frontend/app/src/app/modules/data/list/simple-data-list.scss @@ -0,0 +1,22 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.empty-list-message { + display: flex; + justify-content: center; + align-items: center; + color: var(--ion-color-medium); + min-height: 300px; +} diff --git a/frontend/app/src/app/modules/data/list/tree-list-fragment.component.ts b/frontend/app/src/app/modules/data/list/tree-list-fragment.component.ts new file mode 100644 index 00000000..9e19a89f --- /dev/null +++ b/frontend/app/src/app/modules/data/list/tree-list-fragment.component.ts @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, TemplateRef} from '@angular/core'; +import {SCThings, SCThingWithoutReferences, SCUuid} from '@openstapps/core'; +import {Tree} from '../../../_helpers/collections/tree-group'; +import {DataListContext} from './data-list.component'; + +@Component({ + selector: 'tree-list-fragment', + templateUrl: 'tree-list-fragment.html', + styleUrls: ['tree-list-fragment.scss'], +}) +export class TreeListFragmentComponent { + entries?: [string, Tree][]; + + @Input() set items(items: Tree | undefined) { + if (!items) { + delete this.entries; + return; + } + const temporary = items._; + delete items._; + this.entries = Object.entries(items) as [string, Tree][]; + items._ = temporary; + } + + @Input() groupMap: Record; + + @Input() singleType = false; + + @Input() listItemTemplateRef: TemplateRef>; +} diff --git a/frontend/app/src/app/modules/data/list/tree-list-fragment.html b/frontend/app/src/app/modules/data/list/tree-list-fragment.html new file mode 100644 index 00000000..5a0af94b --- /dev/null +++ b/frontend/app/src/app/modules/data/list/tree-list-fragment.html @@ -0,0 +1,41 @@ + + + + +
+ +
+ +
+ +
+ +
+
+
+ + + + diff --git a/frontend/app/src/app/modules/data/list/tree-list-fragment.scss b/frontend/app/src/app/modules/data/list/tree-list-fragment.scss new file mode 100644 index 00000000..aa0b7694 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/tree-list-fragment.scss @@ -0,0 +1,67 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-list { + margin-left: 16px; +} + +:host ::ng-deep ion-item { + pointer-events: auto; +} + +.tree-indicator { + overflow: hidden; + position: relative; +} + +ion-accordion::before, +.tree-indicator::before, +.tree-indicator::after { + content: ''; + display: block; + + background-color: grey; + + z-index: 1000; + position: absolute; + left: 0; +} + +ion-accordion::before, +.tree-indicator::before { + height: 100%; + width: 1px; + + top: 0; +} + +.tree-indicator::after { + width: 40px; + height: 1px; + + transform: translateX(calc(-50% - 8px)); + top: 50%; +} + +ion-accordion::after { + top: 24px; +} + +ion-accordion:last-of-type::before { + height: 24px; +} +.tree-indicator:last-of-type::before { + height: 50%; +} diff --git a/frontend/app/src/app/modules/data/list/tree-list.component.ts b/frontend/app/src/app/modules/data/list/tree-list.component.ts new file mode 100644 index 00000000..ba57e2af --- /dev/null +++ b/frontend/app/src/app/modules/data/list/tree-list.component.ts @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, ContentChild, Input, TemplateRef} from '@angular/core'; +import {DataListContext} from './data-list.component'; +import {SCThings, SCThingWithoutReferences, SCUuid} from '@openstapps/core'; +import {Tree, treeGroupBy} from '../../../_helpers/collections/tree-group'; + +@Component({ + selector: 'tree-list', + templateUrl: 'tree-list.html', + styleUrls: ['tree-list.scss'], +}) +export class TreeListComponent { + _items?: Promise; + + _groupingKey?: string; + + _groups?: Promise | undefined>; + + _groupItems?: Record; + + @Input() set groupingKey(value: keyof SCThings | string | undefined) { + this._groupingKey = value; + this.groupItems(); + } + + @Input() set items(items: Promise | undefined) { + this._items = items; + this.groupItems(); + } + + @Input() singleType = false; + + @ContentChild(TemplateRef) listItemTemplateRef: TemplateRef>; + + groupItems() { + if (!this._items || !this._groupingKey) return; + + this._groups = this._items.then(items => { + if (!items || !this._groupingKey) return; + + this._groupItems = {}; + for (const item of items) { + const path = (item as unknown as Record)[this._groupingKey]; + + for (const pathFragment of path) { + this._groupItems[pathFragment.uid] = pathFragment; + } + } + + const tree = treeGroupBy(items, item => + (item as unknown as Record)[ + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + this._groupingKey! + ].map(thing => thing.uid), + ); + return tree; + }); + } +} diff --git a/frontend/app/src/app/modules/data/list/tree-list.html b/frontend/app/src/app/modules/data/list/tree-list.html new file mode 100644 index 00000000..58114e46 --- /dev/null +++ b/frontend/app/src/app/modules/data/list/tree-list.html @@ -0,0 +1,22 @@ + + + diff --git a/frontend/app/src/app/modules/data/list/tree-list.scss b/frontend/app/src/app/modules/data/list/tree-list.scss new file mode 100644 index 00000000..7f595d7f --- /dev/null +++ b/frontend/app/src/app/modules/data/list/tree-list.scss @@ -0,0 +1,14 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ diff --git a/frontend/app/src/app/modules/data/stapps-web-http-client.provider.ts b/frontend/app/src/app/modules/data/stapps-web-http-client.provider.ts new file mode 100644 index 00000000..17240f21 --- /dev/null +++ b/frontend/app/src/app/modules/data/stapps-web-http-client.provider.ts @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {HttpClient, HttpResponse} from '@angular/common/http'; +import {Injectable} from '@angular/core'; +import {HttpClientInterface, HttpClientRequest} from '@openstapps/api/lib/http-client-interface'; +import {map, retry} from 'rxjs/operators'; +import {lastValueFrom, Observable} from 'rxjs'; +import {InternetConnectionService} from '../../util/internet-connection.service'; + +type HttpRequestFunctions = InstanceType['request']; +type HttpRequestFunction> = Extract< + HttpRequestFunctions, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (...parameters: any[]) => T +>; +type HttpRequestParameters> = Parameters>; + +/** + * HttpClient that is based on the Angular HttpClient (@TODO: move it to provider or independent package) + */ +@Injectable() +export class StAppsWebHttpClient implements HttpClientInterface { + /** + * + */ + constructor( + private readonly http: HttpClient, + private readonly connectionService: InternetConnectionService, + ) {} + + /** + * Make a request + * + * @param requestConfig Configuration of the request + */ + async request(requestConfig: HttpClientRequest): Promise> { + const request: HttpRequestParameters>> = [ + requestConfig.method || 'GET', + requestConfig.url.toString(), + { + body: (requestConfig.body || {}) as TYPE_OF_BODY, + headers: requestConfig.headers, + observe: 'response', + responseType: 'json', + }, + ]; + // TODO: cache requests by hashing the parameters. + + const response: Observable> = this.http.request(...request).pipe( + retry(this.connectionService.retryConfig), + map( + response => + Object.assign(response, { + statusCode: response.status, + body: response.body || {}, + }) as Response, + ), + ); + + return lastValueFrom(response); + } +} + +/** + * Response with generic for the type of body that is returned from the request + */ +export interface Response extends HttpResponse { + /** + * TODO + */ + body: TYPE_OF_BODY; + /** + * TODO + */ + statusCode: number; +} diff --git a/frontend/app/src/app/modules/data/types/article/article-content.component.ts b/frontend/app/src/app/modules/data/types/article/article-content.component.ts new file mode 100644 index 00000000..569fc73f --- /dev/null +++ b/frontend/app/src/app/modules/data/types/article/article-content.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCArticle} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-article-content', + templateUrl: 'article-content.html', +}) +export class ArticleContentComponent { + /** + * TODO + */ + @Input() item: SCArticle; +} diff --git a/frontend/app/src/app/modules/data/types/article/article-content.html b/frontend/app/src/app/modules/data/types/article/article-content.html new file mode 100644 index 00000000..03c09bf9 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/article/article-content.html @@ -0,0 +1,93 @@ + + + + {{ 'hebisSearch.detail.title' | translate | sentencecase }} + + + + + + + + + + + + + + {{ 'authors' | propertyNameTranslate: item | sentencecase }} + + {{ 'name' | thingTranslate: author }} + + + + + + + + + + + {{ 'publications' | propertyNameTranslate: item | sentencecase }} + +

+ {{ publication.locations | join: ', ' }} + {{ publication.locations && publication.publisher ? ':' : '' }} + {{ publication.publisher }} +

+
+
+ + + + + + {{ 'categories' | propertyNameTranslate: item | sentencecase }} + + + + {{ 'categories' | thingTranslate: item }} + + + diff --git a/frontend/app/src/app/modules/data/types/article/article-item.component.ts b/frontend/app/src/app/modules/data/types/article/article-item.component.ts new file mode 100644 index 00000000..66aea6bd --- /dev/null +++ b/frontend/app/src/app/modules/data/types/article/article-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCArticle} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-article-item', + templateUrl: 'article-list-item.html', +}) +export class ArticleListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCArticle; +} diff --git a/frontend/app/src/app/modules/data/types/article/article-list-item.html b/frontend/app/src/app/modules/data/types/article/article-list-item.html new file mode 100644 index 00000000..ad213ae5 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/article/article-list-item.html @@ -0,0 +1,39 @@ + + + + + +

+ {{ 'name' | thingTranslate: item }} +

+

+ {{ 'name' | thingTranslate: author }} + {{ + item.firstPublished + }}{{ + [item.firstPublished, item.lastPublished] | join: ' - ' + }} +

+ + {{ 'categories' | thingTranslate: item }} + +
+
+
diff --git a/frontend/app/src/app/modules/data/types/book/book-detail-content.component.ts b/frontend/app/src/app/modules/data/types/book/book-detail-content.component.ts new file mode 100644 index 00000000..64d0ffbe --- /dev/null +++ b/frontend/app/src/app/modules/data/types/book/book-detail-content.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCBook} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-book-detail-content', + templateUrl: 'book-detail-content.html', +}) +export class BookDetailContentComponent { + /** + * TODO + */ + @Input() item: SCBook; +} diff --git a/frontend/app/src/app/modules/data/types/book/book-detail-content.html b/frontend/app/src/app/modules/data/types/book/book-detail-content.html new file mode 100644 index 00000000..06e0e9fa --- /dev/null +++ b/frontend/app/src/app/modules/data/types/book/book-detail-content.html @@ -0,0 +1,92 @@ + + + + {{ 'hebisSearch.detail.title' | translate | sentencecase }} + + + + + + + + + + + + + + + + + {{ 'authors' | propertyNameTranslate: item | sentencecase }} + + {{ 'name' | thingTranslate: author }} + + + + + + + + + + + {{ 'publications' | propertyNameTranslate: item | sentencecase }} + +

+ {{ publication.locations | join: ', ' }} + {{ publication.locations && publication.publisher ? ':' : '' }} + {{ publication.publisher }} +

+
+
+ + {{ 'categories' | propertyNameTranslate: item | sentencecase }} + + + + {{ 'categories' | thingTranslate: item }} + + + diff --git a/frontend/app/src/app/modules/data/types/book/book-list-item.component.ts b/frontend/app/src/app/modules/data/types/book/book-list-item.component.ts new file mode 100644 index 00000000..e6b3bc23 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/book/book-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCBook} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-book-list-item', + templateUrl: 'book-list-item.html', +}) +export class BookListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCBook; +} diff --git a/frontend/app/src/app/modules/data/types/book/book-list-item.html b/frontend/app/src/app/modules/data/types/book/book-list-item.html new file mode 100644 index 00000000..ad213ae5 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/book/book-list-item.html @@ -0,0 +1,39 @@ + + + + + +

+ {{ 'name' | thingTranslate: item }} +

+

+ {{ 'name' | thingTranslate: author }} + {{ + item.firstPublished + }}{{ + [item.firstPublished, item.lastPublished] | join: ' - ' + }} +

+ + {{ 'categories' | thingTranslate: item }} + +
+
+
diff --git a/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.component.ts b/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.component.ts new file mode 100644 index 00000000..26fa24c9 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.component.ts @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnInit} from '@angular/core'; +import {SCCatalog, SCSearchBooleanFilter, SCDucetSort} from '@openstapps/core'; +import {SearchPageComponent} from '../../list/search-page.component'; + +@Component({ + selector: 'stapps-catalog-detail-content', + templateUrl: 'catalog-detail-content.html', + styleUrls: ['catalog-detail-content.scss'], +}) +export class CatalogDetailContentComponent extends SearchPageComponent implements OnInit { + /** + * SCCatalog to display + */ + @Input() item: SCCatalog; + + ngOnInit() { + super.ngOnInit(); + } + + initialize() { + this.showDefaultData = true; + this.pageSize = 100; + + const nameSort: SCDucetSort = { + arguments: {field: 'name'}, + order: 'asc', + type: 'ducet', + }; + + const typeSort: SCDucetSort = { + arguments: {field: 'type'}, + order: 'desc', + type: 'ducet', + }; + + this.sortQuery = [typeSort, nameSort]; + + const subCatalogFilter: SCSearchBooleanFilter = { + arguments: { + operation: 'and', + filters: [ + { + type: 'value', + arguments: { + field: 'type', + value: 'catalog', + }, + }, + { + type: 'value', + arguments: { + field: 'superCatalog.uid', + value: this.item.uid, + }, + }, + ], + }, + type: 'boolean', + }; + + const subEventsFilter: SCSearchBooleanFilter = { + arguments: { + operation: 'and', + filters: [ + { + type: 'value', + arguments: { + field: 'type', + value: 'academic event', + }, + }, + { + type: 'value', + arguments: { + field: 'catalogs.uid', + value: this.item.uid, + }, + }, + ], + }, + type: 'boolean', + }; + + this.forcedFilter = { + arguments: { + filters: [subCatalogFilter, subEventsFilter], + operation: 'or', + }, + type: 'boolean', + }; + } +} diff --git a/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.html b/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.html new file mode 100644 index 00000000..e67413ac --- /dev/null +++ b/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.html @@ -0,0 +1,22 @@ + + + diff --git a/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.scss b/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.scss new file mode 100644 index 00000000..bc381711 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/catalog/catalog-detail-content.scss @@ -0,0 +1,14 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ diff --git a/frontend/app/src/app/modules/data/types/catalog/catalog-list-item.component.ts b/frontend/app/src/app/modules/data/types/catalog/catalog-list-item.component.ts new file mode 100644 index 00000000..1c132666 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/catalog/catalog-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCCatalog} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-catalog-list-item', + templateUrl: 'catalog-list-item.html', +}) +export class CatalogListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCCatalog; +} diff --git a/frontend/app/src/app/modules/data/types/catalog/catalog-list-item.html b/frontend/app/src/app/modules/data/types/catalog/catalog-list-item.html new file mode 100644 index 00000000..1fa3b8ca --- /dev/null +++ b/frontend/app/src/app/modules/data/types/catalog/catalog-list-item.html @@ -0,0 +1,14 @@ + + + +
+ + {{ 'name' | thingTranslate: item }} + +

+ {{ item.academicTerm.name }} +

+
+
+
+
diff --git a/frontend/app/src/app/modules/data/types/date-series/date-series-detail-content.component.ts b/frontend/app/src/app/modules/data/types/date-series/date-series-detail-content.component.ts new file mode 100644 index 00000000..4063ab87 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/date-series/date-series-detail-content.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCDateSeries} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-date-series-detail-content', + templateUrl: 'date-series-detail-content.html', +}) +export class DateSeriesDetailContentComponent { + /** + * TODO + */ + @Input() item: SCDateSeries; +} diff --git a/frontend/app/src/app/modules/data/types/date-series/date-series-detail-content.html b/frontend/app/src/app/modules/data/types/date-series/date-series-detail-content.html new file mode 100644 index 00000000..4056340f --- /dev/null +++ b/frontend/app/src/app/modules/data/types/date-series/date-series-detail-content.html @@ -0,0 +1,62 @@ + + + + {{ 'event' | propertyNameTranslate: item | titlecase }} + + + {{ 'name' | thingTranslate: item.event }} + + + + + {{ 'inPlace' | propertyNameTranslate: item | titlecase }} + + + + {{ 'name' | thingTranslate: item.inPlace }} + + + + + + + + + + diff --git a/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.component.ts b/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.component.ts new file mode 100644 index 00000000..e8c6f455 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.component.ts @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCDateSeries} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-date-series-list-item', + templateUrl: 'date-series-list-item.html', + styleUrls: ['date-series-list-item.scss'], +}) +export class DateSeriesListItemComponent extends DataListItemComponent { + /** + * Compact view for schedule + */ + @Input() compact = false; + + /** + * TODO + */ + @Input() item: SCDateSeries; +} diff --git a/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.html b/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.html new file mode 100644 index 00000000..75ab4d5c --- /dev/null +++ b/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.html @@ -0,0 +1,42 @@ + + + + + +
+ {{ 'name' | thingTranslate: item }} +

+ + + + {{ item.repeatFrequency | durationLocalized: true | sentencecase }}, + {{ item.dates[0] | dateFormat: 'weekday:long' }} + + + ({{ item.dates[0] | dateFormat }} - {{ item.dates[item.dates.length - 1] | dateFormat }}) + + +

+ {{ + 'categories' | thingTranslate: item.event | join: ', ' + }} +
+
+ + + +
+
diff --git a/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.scss b/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.scss new file mode 100644 index 00000000..a3b23d95 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/date-series/date-series-list-item.scss @@ -0,0 +1,8 @@ +.remove-button { + &:hover { + --color-hover: var(--ion-color-danger); + --border-color: var(--ion-color-danger); + } + --color: var(--ion-color-success); + --border-color: var(--ion-color-success); +} diff --git a/frontend/app/src/app/modules/data/types/dish/dish-detail-content.component.ts b/frontend/app/src/app/modules/data/types/dish/dish-detail-content.component.ts new file mode 100644 index 00000000..b370436a --- /dev/null +++ b/frontend/app/src/app/modules/data/types/dish/dish-detail-content.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2018, 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCDish} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-dish-detail-content', + styleUrls: ['dish-detail-content.scss'], + templateUrl: 'dish-detail-content.html', +}) +export class DishDetailContentComponent { + /** + * TODO + */ + @Input() item: SCDish; +} diff --git a/frontend/app/src/app/modules/data/types/dish/dish-detail-content.html b/frontend/app/src/app/modules/data/types/dish/dish-detail-content.html new file mode 100644 index 00000000..ee1c1221 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/dish/dish-detail-content.html @@ -0,0 +1,98 @@ + + + + + + + + {{ 'categories' | thingTranslate: item | join: ', ' | titlecase }} + + + + + + +
    +
  • + + + +
  • +
+
+
+
+
+
+ + + + + diff --git a/frontend/app/src/app/modules/data/types/dish/dish-detail-content.scss b/frontend/app/src/app/modules/data/types/dish/dish-detail-content.scss new file mode 100644 index 00000000..85527a04 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/dish/dish-detail-content.scss @@ -0,0 +1,21 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@import 'src/theme/common/_helper.scss'; +.vertical-list { + ul li img { + filter: unset; + } +} diff --git a/frontend/app/src/app/modules/data/types/dish/dish-list-item.component.ts b/frontend/app/src/app/modules/data/types/dish/dish-list-item.component.ts new file mode 100644 index 00000000..dd7650e4 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/dish/dish-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2018, 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCDish} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-dish-list-item', + templateUrl: 'dish-list-item.html', +}) +export class DishListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCDish; +} diff --git a/frontend/app/src/app/modules/data/types/dish/dish-list-item.html b/frontend/app/src/app/modules/data/types/dish/dish-list-item.html new file mode 100644 index 00000000..5567c6e5 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/dish/dish-list-item.html @@ -0,0 +1,44 @@ + + + + + +
+ {{ 'name' | thingTranslate: item }} +

+ {{ 'description' | thingTranslate: item }} +

+ +
    +
  • + {{ 'categories' | thingTranslate: item | join: ', ' | titlecase }} +
  • +
  • + + + +
  • +
+
+
+
+ +
+ +
+
+
+
diff --git a/frontend/app/src/app/modules/data/types/event/event-detail-content.component.ts b/frontend/app/src/app/modules/data/types/event/event-detail-content.component.ts new file mode 100644 index 00000000..9b401ebb --- /dev/null +++ b/frontend/app/src/app/modules/data/types/event/event-detail-content.component.ts @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCAcademicEvent, SCSportCourse, SCThing, SCThingTranslator, SCTranslations} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-event-detail-content', + templateUrl: 'event-detail-content.html', + styleUrls: ['event-detail-content.scss'], +}) +export class EventDetailContentComponent { + /** + * TODO + */ + @Input() item: SCAcademicEvent | SCSportCourse; + + /** + * TODO + */ + @Input() language: keyof SCTranslations; + + /** + * TODO + */ + objectKeys = Object.keys; + + /** + * TODO + */ + translator: SCThingTranslator; + + /** + * TODO + */ + constructor() { + this.translator = new SCThingTranslator(this.language); + } +} diff --git a/frontend/app/src/app/modules/data/types/event/event-detail-content.html b/frontend/app/src/app/modules/data/types/event/event-detail-content.html new file mode 100644 index 00000000..8a6fbf5a --- /dev/null +++ b/frontend/app/src/app/modules/data/types/event/event-detail-content.html @@ -0,0 +1,56 @@ + + + + + + + + + + + + + {{ + $any('superCatalogs' | propertyNameTranslate: 'catalog') | titlecase + }} + + + + + diff --git a/frontend/app/src/app/modules/data/types/event/event-detail-content.scss b/frontend/app/src/app/modules/data/types/event/event-detail-content.scss new file mode 100644 index 00000000..fb0e8f07 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/event/event-detail-content.scss @@ -0,0 +1,20 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +stapps-add-event-action-chip { + position: absolute; + top: 0; + right: 0; +} diff --git a/frontend/app/src/app/modules/data/types/event/event-list-item.component.ts b/frontend/app/src/app/modules/data/types/event/event-list-item.component.ts new file mode 100644 index 00000000..77b7a8aa --- /dev/null +++ b/frontend/app/src/app/modules/data/types/event/event-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCAcademicEvent, SCSportCourse} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-event-list-item', + templateUrl: 'event-list-item.html', +}) +export class EventListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCAcademicEvent | SCSportCourse; +} diff --git a/frontend/app/src/app/modules/data/types/event/event-list-item.html b/frontend/app/src/app/modules/data/types/event/event-list-item.html new file mode 100644 index 00000000..3815915e --- /dev/null +++ b/frontend/app/src/app/modules/data/types/event/event-list-item.html @@ -0,0 +1,46 @@ + + + + + +
+ {{ 'name' | thingTranslate: item }} +

+ {{ 'description' | thingTranslate: item }} +

+

+ {{ 'name' | thingTranslate: item.academicTerms[0] }} +

+ {{ 'type' | thingTranslate: item }} + + {{ 'categories' | thingTranslate: item | join: ', ' }} + +
+
+
+ + + {{ 'name' | thingTranslate: item }} +

+ {{ 'description' | thingTranslate: item }} +

+

+ {{ 'name' | thingTranslate: item.academicTerms[0] }} +

+ {{ 'type' | thingTranslate: item }} +
+
+
diff --git a/frontend/app/src/app/modules/data/types/event/event-route-path.component.ts b/frontend/app/src/app/modules/data/types/event/event-route-path.component.ts new file mode 100644 index 00000000..65b7cee7 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/event/event-route-path.component.ts @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCThingWithoutReferences} from '@openstapps/core'; +import {Observable} from 'rxjs'; + +/** + * This was originally intended to be used in more than one place. + * I kept this in place to make it easier to adapt it in the future, if needed. + */ +@Component({ + selector: 'event-route-path', + templateUrl: 'event-route-path.html', + styleUrls: ['event-route-path.scss'], +}) +export class EventRoutePathComponent { + @Input() maxItems?: number; + + @Input() itemsAfterCollapse?: number; + + @Input() itemsBeforeCollapse?: number; + + @Input() showSelfInPopover = false; + + @Input() items: Array = []; + + @Input() more?: Observable; + + @Input() moreAnchor: 'start' | 'end' = 'start'; +} diff --git a/frontend/app/src/app/modules/data/types/event/event-route-path.html b/frontend/app/src/app/modules/data/types/event/event-route-path.html new file mode 100644 index 00000000..e0a10180 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/event/event-route-path.html @@ -0,0 +1,60 @@ + + + + + {{ + 'name' | thingTranslate: $any(item) + }} + + + + + + + + + + + + + + + + + + + + + {{ 'name' | thingTranslate: $any(item) }} + + diff --git a/frontend/app/src/app/modules/data/types/event/event-route-path.scss b/frontend/app/src/app/modules/data/types/event/event-route-path.scss new file mode 100644 index 00000000..2b2fd5c6 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/event/event-route-path.scss @@ -0,0 +1,23 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-breadcrumb:last-child { + overflow: hidden; + flex: 1; +} + +.crumb-label { + cursor: pointer; +} diff --git a/frontend/app/src/app/modules/data/types/favorite/favorite-detail-content.component.ts b/frontend/app/src/app/modules/data/types/favorite/favorite-detail-content.component.ts new file mode 100644 index 00000000..24876583 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/favorite/favorite-detail-content.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCFavorite} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-favorite-detail-content', + templateUrl: 'favorite-detail-content.html', +}) +export class FavoriteDetailContentComponent { + /** + * TODO + */ + @Input() item: SCFavorite; +} diff --git a/frontend/app/src/app/modules/data/types/favorite/favorite-detail-content.html b/frontend/app/src/app/modules/data/types/favorite/favorite-detail-content.html new file mode 100644 index 00000000..956ee1cd --- /dev/null +++ b/frontend/app/src/app/modules/data/types/favorite/favorite-detail-content.html @@ -0,0 +1 @@ + diff --git a/frontend/app/src/app/modules/data/types/favorite/favorite-list-item.component.ts b/frontend/app/src/app/modules/data/types/favorite/favorite-list-item.component.ts new file mode 100644 index 00000000..defae2bc --- /dev/null +++ b/frontend/app/src/app/modules/data/types/favorite/favorite-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCFavorite} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-favorite-list-item', + templateUrl: 'favorite-list-item.html', +}) +export class FavoriteListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCFavorite; +} diff --git a/frontend/app/src/app/modules/data/types/favorite/favorite-list-item.html b/frontend/app/src/app/modules/data/types/favorite/favorite-list-item.html new file mode 100644 index 00000000..f72c387b --- /dev/null +++ b/frontend/app/src/app/modules/data/types/favorite/favorite-list-item.html @@ -0,0 +1,37 @@ + + + + + +
+ + {{ 'name' | thingTranslate: item }}: + {{ 'name' | thingTranslate: item.data }} + +

+ +

+ {{ 'type' | thingTranslate: item }} ({{ 'type' | thingTranslate: item.data }}) +
+
+ + + +
+
diff --git a/frontend/app/src/app/modules/data/types/message/message-detail-content.component.ts b/frontend/app/src/app/modules/data/types/message/message-detail-content.component.ts new file mode 100644 index 00000000..5315d5d3 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/message/message-detail-content.component.ts @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCMessage} from '@openstapps/core'; +import {SimpleBrowser} from '../../../../util/browser.factory'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-message-detail-content', + templateUrl: 'message-detail-content.html', + styleUrls: ['message-detail-content.scss'], +}) +export class MessageDetailContentComponent { + constructor(private browser: SimpleBrowser) {} + + /** + * TODO + */ + @Input() item: SCMessage; + + /** + * Open the external link when clicked + * + * @param url Web address to open + */ + onLinkClick(url: string) { + // make sure if the url is valid and then open it in the browser (prevent problem in iOS) + this.browser.open(new URL(url).href); + } +} diff --git a/frontend/app/src/app/modules/data/types/message/message-detail-content.html b/frontend/app/src/app/modules/data/types/message/message-detail-content.html new file mode 100644 index 00000000..d285968e --- /dev/null +++ b/frontend/app/src/app/modules/data/types/message/message-detail-content.html @@ -0,0 +1,65 @@ + + +
+ + + + + +
+ + + + + + + + + + {{ 'sameAs' | propertyNameTranslate: item | titlecase }} + + + + + + diff --git a/frontend/app/src/app/modules/data/types/message/message-detail-content.scss b/frontend/app/src/app/modules/data/types/message/message-detail-content.scss new file mode 100644 index 00000000..4a4473bb --- /dev/null +++ b/frontend/app/src/app/modules/data/types/message/message-detail-content.scss @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host { + ion-thumbnail { + width: 100%; + height: auto; + img { + display: block; + } + } + // Show smaller image on a desktop + @media (min-width: 992px) { + ion-thumbnail { + width: 60%; + margin: 0 auto; + } + } + + .date-published { + --ion-card-color: var(--ion-color-medium-shade); + text-transform: uppercase; + font-weight: var(--font-weight-semi-bold); + } +} diff --git a/frontend/app/src/app/modules/data/types/message/message-list-item.component.ts b/frontend/app/src/app/modules/data/types/message/message-list-item.component.ts new file mode 100644 index 00000000..108c442b --- /dev/null +++ b/frontend/app/src/app/modules/data/types/message/message-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCMessage} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-message-list-item', + templateUrl: 'message-list-item.html', +}) +export class MessageListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCMessage; +} diff --git a/frontend/app/src/app/modules/data/types/message/message-list-item.html b/frontend/app/src/app/modules/data/types/message/message-list-item.html new file mode 100644 index 00000000..dede9103 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/message/message-list-item.html @@ -0,0 +1,28 @@ + + + + + +
+ {{ 'name' | thingTranslate: item }} +

+ +

+ {{ 'type' | thingTranslate: item }} +
+
+
+
diff --git a/frontend/app/src/app/modules/data/types/organization/organization-detail-content.component.ts b/frontend/app/src/app/modules/data/types/organization/organization-detail-content.component.ts new file mode 100644 index 00000000..6c701984 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/organization/organization-detail-content.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCOrganization} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-organization-detail-content', + templateUrl: 'organization-detail-content.html', +}) +export class OrganizationDetailContentComponent { + /** + * TODO + */ + @Input() item: SCOrganization; +} diff --git a/frontend/app/src/app/modules/data/types/organization/organization-detail-content.html b/frontend/app/src/app/modules/data/types/organization/organization-detail-content.html new file mode 100644 index 00000000..a34c8c27 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/organization/organization-detail-content.html @@ -0,0 +1,28 @@ + + + + + {{ 'inPlace' | propertyNameTranslate: item | titlecase }} + + + + {{ 'name' | thingTranslate: item.inPlace }} + + + diff --git a/frontend/app/src/app/modules/data/types/organization/organization-list-item.component.ts b/frontend/app/src/app/modules/data/types/organization/organization-list-item.component.ts new file mode 100644 index 00000000..fdb35156 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/organization/organization-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCOrganization} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-organization-list-item', + templateUrl: 'organization-list-item.html', +}) +export class OrganizationListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCOrganization; +} diff --git a/frontend/app/src/app/modules/data/types/organization/organization-list-item.html b/frontend/app/src/app/modules/data/types/organization/organization-list-item.html new file mode 100644 index 00000000..65c4f23b --- /dev/null +++ b/frontend/app/src/app/modules/data/types/organization/organization-list-item.html @@ -0,0 +1,34 @@ + + + + + +
+ {{ 'name' | thingTranslate: item }} +

+ {{ 'description' | thingTranslate: item }} +

+ {{ 'type' | thingTranslate: item }} +
+
+ + + + {{ 'name' | thingTranslate: item.inPlace }} + + +
+
diff --git a/frontend/app/src/app/modules/data/types/periodical/periodical-detail-content.component.ts b/frontend/app/src/app/modules/data/types/periodical/periodical-detail-content.component.ts new file mode 100644 index 00000000..908e5d67 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/periodical/periodical-detail-content.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCPeriodical} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-periodical-detail-content', + templateUrl: 'periodical-detail-content.html', +}) +export class PeriodicalDetailContentComponent { + /** + * TODO + */ + @Input() item: SCPeriodical; +} diff --git a/frontend/app/src/app/modules/data/types/periodical/periodical-detail-content.html b/frontend/app/src/app/modules/data/types/periodical/periodical-detail-content.html new file mode 100644 index 00000000..06b186ea --- /dev/null +++ b/frontend/app/src/app/modules/data/types/periodical/periodical-detail-content.html @@ -0,0 +1,85 @@ + + + + {{ 'hebisSearch.detail.title' | translate | sentencecase }} + + + + + + + + + + + + + + {{ 'authors' | propertyNameTranslate: item | sentencecase }} + + {{ 'name' | thingTranslate: author }} + + + + + + + + + {{ 'publications' | propertyNameTranslate: item | sentencecase }} + +

+ {{ publication.locations | join: ', ' }} + {{ publication.locations && publication.publisher ? ':' : '' }} + {{ publication.publisher }} +

+
+
+ + {{ 'categories' | propertyNameTranslate: item | sentencecase }} + + + + {{ 'categories' | thingTranslate: item }} + + + + + diff --git a/frontend/app/src/app/modules/data/types/periodical/periodical-list-item.component.ts b/frontend/app/src/app/modules/data/types/periodical/periodical-list-item.component.ts new file mode 100644 index 00000000..1dc81d6b --- /dev/null +++ b/frontend/app/src/app/modules/data/types/periodical/periodical-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCPeriodical} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-periodical-list-item', + templateUrl: 'periodical-list-item.html', +}) +export class PeriodicalListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCPeriodical; +} diff --git a/frontend/app/src/app/modules/data/types/periodical/periodical-list-item.html b/frontend/app/src/app/modules/data/types/periodical/periodical-list-item.html new file mode 100644 index 00000000..ad213ae5 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/periodical/periodical-list-item.html @@ -0,0 +1,39 @@ + + + + + +

+ {{ 'name' | thingTranslate: item }} +

+

+ {{ 'name' | thingTranslate: author }} + {{ + item.firstPublished + }}{{ + [item.firstPublished, item.lastPublished] | join: ' - ' + }} +

+ + {{ 'categories' | thingTranslate: item }} + +
+
+
diff --git a/frontend/app/src/app/modules/data/types/person/person-detail-content.component.ts b/frontend/app/src/app/modules/data/types/person/person-detail-content.component.ts new file mode 100644 index 00000000..ba8d8de0 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/person/person-detail-content.component.ts @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import { + SCContactPoint, + SCContactPointWithoutReferences, + SCPerson, + SCSearchQuery, + SCUuid, +} from '@openstapps/core'; +import {DataProvider} from '../../data.provider'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-person-detail-content', + templateUrl: 'person-detail-content.html', +}) +export class PersonDetailContentComponent { + private _item: SCPerson; + + contactPoints: SCContactPoint[] | SCContactPointWithoutReferences[]; + + get item(): SCPerson { + return this._item; + } + + @Input() set item(item: SCPerson) { + this._item = item; + if (item.workLocations) { + this.contactPoints = item.workLocations; + this.getContactPoints(item.workLocations).then(contactPoints => { + this.contactPoints = contactPoints; + }); + } + } + + constructor(private readonly dataProvider: DataProvider) {} + + async getContactPoints(workLocations: SCContactPointWithoutReferences[]): Promise { + const query: {[uid in SCUuid]: SCSearchQuery} = {}; + workLocations.map(workLocation => { + query[workLocation.uid] = { + filter: { + arguments: { + field: 'uid', + value: workLocation.uid, + }, + type: 'value', + }, + }; + }); + + const contactPoints: SCContactPoint[] = Object.values(await this.dataProvider.multiSearch(query)).map( + result => result.data[0] as SCContactPoint, + ); + + return contactPoints; + } +} diff --git a/frontend/app/src/app/modules/data/types/person/person-detail-content.html b/frontend/app/src/app/modules/data/types/person/person-detail-content.html new file mode 100644 index 00000000..47449724 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/person/person-detail-content.html @@ -0,0 +1,54 @@ + + + + + + {{ i + 1 }}. + {{ 'type' | thingTranslate: contactPoint | titlecase }} + + +

+ {{ 'telephone' | propertyNameTranslate: contactPoint | titlecase }}: + {{ contactPoint.telephone }} +

+

+ {{ 'email' | propertyNameTranslate: contactPoint | titlecase }}: + {{ contactPoint.email }} +

+

+ {{ 'faxNumber' | propertyNameTranslate: contactPoint | titlecase }}: + {{ contactPoint.faxNumber }} +

+

+ {{ 'officeHours' | propertyNameTranslate: contactPoint | titlecase }}: + {{ contactPoint.officeHours }} +

+

+ {{ 'url' | propertyNameTranslate: contactPoint | titlecase }}: + {{ contactPoint.url }} +

+

+ {{ 'areaServed' | propertyNameTranslate: contactPoint | titlecase }}: + {{ contactPoint.areaServed.name }} +

+
+
+
+ diff --git a/frontend/app/src/app/modules/data/types/person/person-list-item.component.ts b/frontend/app/src/app/modules/data/types/person/person-list-item.component.ts new file mode 100644 index 00000000..f6d42fb1 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/person/person-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCPerson} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-person-list-item', + templateUrl: 'person-list-item.html', +}) +export class PersonListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCPerson; +} diff --git a/frontend/app/src/app/modules/data/types/person/person-list-item.html b/frontend/app/src/app/modules/data/types/person/person-list-item.html new file mode 100644 index 00000000..c4713f21 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/person/person-list-item.html @@ -0,0 +1,37 @@ + + + + + +
+ + {{ 'name' | thingTranslate: item }} + , {{ item.honorificPrefix }} + +

+ +  {{ item.telephone }}   {{ item.email }} +

+ +
+
+
+
diff --git a/frontend/app/src/app/modules/data/types/place/place-detail-content.component.ts b/frontend/app/src/app/modules/data/types/place/place-detail-content.component.ts new file mode 100644 index 00000000..fcfa3583 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/place-detail-content.component.ts @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnInit} from '@angular/core'; +import {SCBuilding, SCFloor, SCPointOfInterest, SCRoom, SCThings} from '@openstapps/core'; +import {DataProvider} from '../../data.provider'; +import {hasValidLocation, isSCFloor} from './place-types'; + +/** + * TODO + */ +@Component({ + providers: [DataProvider], + styleUrls: ['place-detail-content.scss'], + selector: 'stapps-place-detail-content', + templateUrl: 'place-detail-content.html', +}) +export class PlaceDetailContentComponent implements OnInit { + /** + * TODO + */ + @Input() item: SCBuilding | SCRoom | SCPointOfInterest | SCFloor; + + @Input() openAsModal = false; + + /** + * Does it have valid location or not (for showing in in a map widget) + */ + hasValidLocation = false; + + /** + * TODO + * + * @param item TODO + */ + hasCategories(item: SCThings): item is SCThings & {categories: string[]} { + return typeof (item as {categories: string[]}).categories !== 'undefined'; + } + + /** + * Helper function as 'typeof' is not accessible in HTML + * + * @param item TODO + */ + isMensaThing(item: SCThings): boolean { + return ( + this.hasCategories(item) && + ((item.categories as string[]).includes('canteen') || + (item.categories as string[]).includes('cafe') || + (item.categories as string[]).includes('student canteen') || + (item.categories as string[]).includes('restaurant')) + ); + } + + ngOnInit() { + this.hasValidLocation = !isSCFloor(this.item) && hasValidLocation(this.item); + } +} diff --git a/frontend/app/src/app/modules/data/types/place/place-detail-content.html b/frontend/app/src/app/modules/data/types/place/place-detail-content.html new file mode 100644 index 00000000..dcbe89ae --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/place-detail-content.html @@ -0,0 +1,49 @@ + + + + + + + + + + + {{ 'inPlace' | propertyNameTranslate: item | titlecase }} + + + + {{ 'name' | thingTranslate: item.inPlace }} + + + + + + diff --git a/frontend/app/src/app/modules/data/types/place/place-detail-content.scss b/frontend/app/src/app/modules/data/types/place/place-detail-content.scss new file mode 100644 index 00000000..15281020 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/place-detail-content.scss @@ -0,0 +1,21 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.map-widget { + position: relative; + height: 300px; + min-height: 300px; + width: auto; +} diff --git a/frontend/app/src/app/modules/data/types/place/place-list-item.component.ts b/frontend/app/src/app/modules/data/types/place/place-list-item.component.ts new file mode 100644 index 00000000..53407c4f --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/place-list-item.component.ts @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {PositionService} from '../../../map/position.service'; +import {Subscription, interval} from 'rxjs'; +import {hasValidLocation, isSCFloor, PlaceTypes, PlaceTypesWithDistance} from './place-types'; + +/** + * Shows a place as a list item + */ +@Component({ + selector: 'stapps-place-list-item', + templateUrl: 'place-list-item.html', +}) +export class PlaceListItemComponent { + /** + * Item getter + */ + get item(): PlaceTypesWithDistance { + return this._item; + } + + /** + * An item to show (setter is used as there were issues assigning the distance to the right place in a list) + */ + @Input() set item(item: PlaceTypes) { + this._item = item; + if (!isSCFloor(item) && hasValidLocation(item)) { + this.distance = this.positionService.getDistance(item.geo.point); + this.distanceSubscription = interval(10_000).subscribe(_ => { + this.distance = this.positionService.getDistance(item.geo.point); + }); + } + } + + /** + * An item to show + */ + private _item: PlaceTypesWithDistance; + + /** + * Distance in meters + */ + distance?: number; + + distanceSubscription?: Subscription; + + constructor(private positionService: PositionService) {} +} diff --git a/frontend/app/src/app/modules/data/types/place/place-list-item.html b/frontend/app/src/app/modules/data/types/place/place-list-item.html new file mode 100644 index 00000000..a180ad2f --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/place-list-item.html @@ -0,0 +1,65 @@ + + + + + +
+ {{ 'name' | thingTranslate: item }} + +

+ + + +

+

+ +

    +
  • + {{ 'categories' | thingTranslate: item | join: ', ' | titlecase }} +
  • +
  • + + {{ distance | metersLocalized }} +
  • +
+ +

+ + +
    +
  • + {{ 'type' | thingTranslate: item }} +
  • +
  • + + {{ distance | metersLocalized }} +
  • +
+
+
+
+

+ {{ 'description' | thingTranslate: item }} +

+
+
+
+ + {{ 'name' | thingTranslate: item.inPlace }} + +
+
+
diff --git a/frontend/app/src/app/modules/data/types/place/place-types.ts b/frontend/app/src/app/modules/data/types/place/place-types.ts new file mode 100644 index 00000000..d2cb1d30 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/place-types.ts @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {SCBuilding, SCFloor, SCPointOfInterest, SCRoom} from '@openstapps/core'; + +/** + * Possible place types + */ +export type PlaceTypes = SCBuilding | SCRoom | SCPointOfInterest | SCFloor; + +/** + * Place types with their dynamic distance (from the position of the device) + */ +export type PlaceTypesWithDistance = PlaceTypes & { + distance?: number; +}; + +/** + * Detects "null island" places, which means places with point coordinates [0, 0] + * + * @param place A place to check + */ +export function hasValidLocation(place: Exclude) { + return place.geo.point.coordinates.some(coordinate => coordinate !== 0); +} + +/** + * Provide information if a place is a floor + * + * @param place A place to check + */ +export function isSCFloor(place: PlaceTypes): place is SCFloor { + return place.type === 'floor'; +} diff --git a/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts b/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts new file mode 100644 index 00000000..63ddfc32 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts @@ -0,0 +1,125 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import moment, {Moment} from 'moment'; + +import {AfterViewInit, Component, Input, OnDestroy} from '@angular/core'; +import {SCDish, SCISO8601Date, SCPlace} from '@openstapps/core'; +import {PlaceMensaService} from './place-mensa-service'; +import {Router} from '@angular/router'; +import {Subscription} from 'rxjs'; +import {IonRouterOutlet} from '@ionic/angular'; +import {DataRoutingService} from '../../../../data-routing.service'; +import {groupBy} from 'src/app/_helpers/collections/group-by'; + +/** + * TODO + */ +@Component({ + providers: [PlaceMensaService], + selector: 'stapps-place-mensa-detail-content', + templateUrl: 'place-mensa.html', + styleUrls: ['place-mensa.scss'], +}) +export class PlaceMensaDetailComponent implements AfterViewInit, OnDestroy { + /** + * Map of dishes for each day + */ + dishes: Promise>> | null = + // eslint-disable-next-line unicorn/no-null + null; + + /** + * number of days to display mensa menus for + */ + @Input() displayRange = 7; + + /** + * TODO + */ + @Input() item: SCPlace; + + @Input() openAsModal = false; + + /** + * The currently selected day + */ + selectedDay: string; + + /** + * First day to display menu items for + */ + startingDay: Moment; + + /** + * Array of all subscriptions to Observables + */ + subscriptions: Subscription[] = []; + + constructor( + private readonly mensaService: PlaceMensaService, + protected router: Router, + readonly routerOutlet: IonRouterOutlet, + private readonly dataRoutingService: DataRoutingService, + ) { + this.startingDay = moment().startOf('day'); + } + + /** + * TODO + */ + ngAfterViewInit() { + if (!this.openAsModal) { + this.subscriptions.push( + this.dataRoutingService.itemSelectListener().subscribe(item => { + void this.router.navigate(['/data-detail', item.uid]); + }), + ); + } + + const dishesByDay = this.mensaService.getAllDishes(this.item, this.displayRange); + + dishesByDay.then(result => { + for (const [key, value] of Object.entries(result)) { + if (value.length === 0) { + delete result[key]; + } + } + this.selectedDay = Object.keys(result)[0]; + }); + + this.dishes = new Promise(async (resolve, reject) => { + try { + const dishesBySections: Record> = {}; + for (const [key, value] of Object.entries(await dishesByDay)) { + dishesBySections[key] = groupBy(value, x => x.menuSection?.name ?? ''); + } + resolve(dishesBySections); + } catch { + // eslint-disable-next-line unicorn/no-null + reject(null); + } + }); + } + + /** + * Remove subscriptions when the component is removed + */ + ngOnDestroy() { + for (const sub of this.subscriptions) { + sub.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa-service.ts b/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa-service.ts new file mode 100644 index 00000000..e18b4021 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa-service.ts @@ -0,0 +1,96 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {SCDish, SCISO8601Date, SCPlace, SCSearchQuery, SCThingType} from '@openstapps/core'; +import moment from 'moment'; +import {DataProvider} from '../../../../data.provider'; +import {mapValues} from '../../../../../../_helpers/collections/map-values'; +import {SettingsProvider} from '../../../../../settings/settings.provider'; + +/** + * TODO + */ +@Injectable({ + providedIn: 'root', +}) +export class PlaceMensaService { + constructor(private dataProvider: DataProvider, readonly settingsProvider: SettingsProvider) {} + + /** + * Fetches all dishes for this building + * + * Splits dishes as such that each list contains all dishes that are available at that day. + */ + async getAllDishes(place: SCPlace, days: number): Promise> { + const priceGroup = await this.settingsProvider.getSetting('profile', 'group'); + const request = mapValues, SCSearchQuery>( + Array.from({length: days}) + .map((_, i) => i) + .map(i => moment().add(i, 'days').toISOString()) + .reduce((accumulator, item) => { + accumulator[item] = item; + return accumulator; + }, {} as Record), + date => ({ + filter: { + arguments: { + filters: [ + { + arguments: { + field: 'offers.inPlace.uid', + value: place.uid, + }, + type: 'value', + }, + { + arguments: { + field: 'type', + value: SCThingType.Dish, + }, + type: 'value', + }, + { + arguments: { + field: 'offers.availabilityRange', + scope: 'd', + time: date, + }, + type: 'availability', + }, + ], + operation: 'and', + }, + type: 'boolean', + }, + sort: [ + { + arguments: { + field: `offers.prices.${(priceGroup.value as string).replace(/s$/, '')}`, + }, + order: 'desc', + type: 'generic', + }, + ], + size: 1000, + }), + ); + + return mapValues(await this.dataProvider.multiSearch(request), it => it.data) as Record< + SCISO8601Date, + SCDish[] + >; + } +} diff --git a/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa.html b/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa.html new file mode 100644 index 00000000..196534e5 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa.html @@ -0,0 +1,69 @@ + + + + + + + + {{ + day.key | dateFormat: 'weekday:long,month:numeric,day:numeric' + }} + {{ + day.key | dateFormat: 'weekday:short,month:numeric,day:numeric' + }} + + + + + + + + + + {{ + 'data.types.dish.detail.' + section.value[0].menuSection.name | translate | titlecase + }} + {{ section.value[0].menuSection.servingHours }} + + + + + + + + + + + + + + + + + + + + + + + + + {{ 'data.types.dish.EMPTY_DISHES' | translate }} + + + + + diff --git a/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa.scss b/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa.scss new file mode 100644 index 00000000..95f4a6c3 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/place/special/mensa/place-mensa.scss @@ -0,0 +1,40 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-segment-button { + text-transform: none; +} + +ion-segment { + justify-content: space-between; + overflow: auto; + height: 50px; + + &::-webkit-scrollbar { + width: 0; + height: 0; + display: none; + } + + ion-segment-button.segment-button { + flex: 1 0 100px; + } +} + +ion-list-header { + ion-label { + color: var(--ion-color-medium-shade); + } +} diff --git a/frontend/app/src/app/modules/data/types/semester/semester-detail-content.component.ts b/frontend/app/src/app/modules/data/types/semester/semester-detail-content.component.ts new file mode 100644 index 00000000..227811d6 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/semester/semester-detail-content.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCSemester} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-semester-detail-content', + templateUrl: 'semester-detail-content.html', +}) +export class SemesterDetailContentComponent { + /** + * TODO + */ + @Input() item: SCSemester; +} diff --git a/frontend/app/src/app/modules/data/types/semester/semester-detail-content.html b/frontend/app/src/app/modules/data/types/semester/semester-detail-content.html new file mode 100644 index 00000000..c6a34d9b --- /dev/null +++ b/frontend/app/src/app/modules/data/types/semester/semester-detail-content.html @@ -0,0 +1,24 @@ + + + diff --git a/frontend/app/src/app/modules/data/types/semester/semester-list-item.component.ts b/frontend/app/src/app/modules/data/types/semester/semester-list-item.component.ts new file mode 100644 index 00000000..8b5905ac --- /dev/null +++ b/frontend/app/src/app/modules/data/types/semester/semester-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCSemester} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-semester-list-item', + templateUrl: 'semester-list-item.html', +}) +export class SemesterListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCSemester; +} diff --git a/frontend/app/src/app/modules/data/types/semester/semester-list-item.html b/frontend/app/src/app/modules/data/types/semester/semester-list-item.html new file mode 100644 index 00000000..a43c981b --- /dev/null +++ b/frontend/app/src/app/modules/data/types/semester/semester-list-item.html @@ -0,0 +1,29 @@ + + + + + +
+ {{ 'name' | thingTranslate: item }} +

+ + {{ item.startDate | dateFormat }} - {{ item.endDate | dateFormat }} +

+ {{ 'type' | thingTranslate: item }} +
+
+
+
diff --git a/frontend/app/src/app/modules/data/types/video/video-detail-content.component.ts b/frontend/app/src/app/modules/data/types/video/video-detail-content.component.ts new file mode 100644 index 00000000..657f291f --- /dev/null +++ b/frontend/app/src/app/modules/data/types/video/video-detail-content.component.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2018, 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCVideo} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-video-detail-content', + templateUrl: 'video-detail-content.html', +}) +export class VideoDetailContentComponent { + /** + * TODO + */ + @Input() item: SCVideo; +} diff --git a/frontend/app/src/app/modules/data/types/video/video-detail-content.html b/frontend/app/src/app/modules/data/types/video/video-detail-content.html new file mode 100644 index 00000000..f6f05699 --- /dev/null +++ b/frontend/app/src/app/modules/data/types/video/video-detail-content.html @@ -0,0 +1,32 @@ + + + + + + + diff --git a/frontend/app/src/app/modules/data/types/video/video-list-item.component.ts b/frontend/app/src/app/modules/data/types/video/video-list-item.component.ts new file mode 100644 index 00000000..f0fe349e --- /dev/null +++ b/frontend/app/src/app/modules/data/types/video/video-list-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCVideo} from '@openstapps/core'; +import {DataListItemComponent} from '../../list/data-list-item.component'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-video-list-item', + templateUrl: 'video-list-item.html', +}) +export class VideoListItemComponent extends DataListItemComponent { + /** + * TODO + */ + @Input() item: SCVideo; +} diff --git a/frontend/app/src/app/modules/data/types/video/video-list-item.html b/frontend/app/src/app/modules/data/types/video/video-list-item.html new file mode 100644 index 00000000..abfe344e --- /dev/null +++ b/frontend/app/src/app/modules/data/types/video/video-list-item.html @@ -0,0 +1,20 @@ + + + +
+ {{ 'name' | thingTranslate: item }} +

+ +

+

+ {{ 'duration' | propertyNameTranslate: item | titlecase }}: + {{ item.duration | amDuration: 'seconds' }} +

+ {{ 'type' | thingTranslate: item }} +
+
+
+
diff --git a/frontend/app/src/app/modules/favorites/favorites-page.component.scss b/frontend/app/src/app/modules/favorites/favorites-page.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/favorites/favorites-page.component.ts b/frontend/app/src/app/modules/favorites/favorites-page.component.ts new file mode 100644 index 00000000..b2141bb9 --- /dev/null +++ b/frontend/app/src/app/modules/favorites/favorites-page.component.ts @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnInit} from '@angular/core'; +import {AlertController, AnimationController} from '@ionic/angular'; +import {ActivatedRoute, Router} from '@angular/router'; +import {NGXLogger} from 'ngx-logger'; +import {debounceTime, distinctUntilChanged, startWith, take} from 'rxjs/operators'; +import {combineLatest} from 'rxjs'; +import {SCThingType} from '@openstapps/core'; +import {FavoritesService} from './favorites.service'; +import {DataRoutingService} from '../data/data-routing.service'; +import {ContextMenuService} from '../menu/context/context-menu.service'; +import {SearchPageComponent} from '../data/list/search-page.component'; +import {DataProvider} from '../data/data.provider'; +import {SettingsProvider} from '../settings/settings.provider'; +import {PositionService} from '../map/position.service'; +import {ConfigProvider} from '../config/config.provider'; + +/** + * The page for showing favorites + */ +@Component({ + templateUrl: '../data/list/search-page.html', + providers: [ContextMenuService], + styleUrls: ['../data/list/search-page.scss'], +}) +export class FavoritesPageComponent extends SearchPageComponent implements OnInit { + title = 'favorites.page.TITLE'; + + showNavigation = false; + + constructor( + alertController: AlertController, + dataProvider: DataProvider, + contextMenuService: ContextMenuService, + settingsProvider: SettingsProvider, + logger: NGXLogger, + dataRoutingService: DataRoutingService, + router: Router, + route: ActivatedRoute, + positionService: PositionService, + private favoritesService: FavoritesService, + configProvider: ConfigProvider, + animationController: AnimationController, + ) { + super( + alertController, + dataProvider, + contextMenuService, + settingsProvider, + logger, + dataRoutingService, + router, + route, + positionService, + configProvider, + animationController, + ); + } + + ngOnInit() { + super.ngOnInit(); + for (const subscription of this.subscriptions) { + subscription.unsubscribe(); + } + + // Recreate subscriptions to handle different routing + this.subscriptions.push( + combineLatest([ + this.queryTextChanged.pipe( + debounceTime(this.searchQueryDueTime), + distinctUntilChanged(), + startWith(this.queryText), + ), + this.contextMenuService.filterQueryChanged$.pipe(startWith(this.filterQuery)), + this.contextMenuService.sortQueryChanged$.pipe(startWith(this.sortQuery)), + this.favoritesService.favoritesChanged$, + ]).subscribe(async query => { + this.queryText = query[0]; + this.filterQuery = query[1]; + this.sortQuery = query[2]; + this.from = 0; + if (typeof this.filterQuery !== 'undefined' || this.queryText?.length > 0 || this.showDefaultData) { + await this.fetchAndUpdateItems(); + this.queryChanged.next(); + } + }), + this.settingsProvider.settingsActionChanged$.subscribe(({type, payload}) => { + if (type === 'stapps.settings.changed') { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const {category, name, value} = payload!; + this.logger.log(`received event "settings.changed" with category: + ${category}, name: ${name}, value: ${JSON.stringify(value)}`); + } + }), + this.dataRoutingService.itemSelectListener().subscribe(item => { + if (this.itemRouting) { + if ([SCThingType.Book, SCThingType.Periodical, SCThingType.Article].includes(item.type)) { + void this.router.navigate([ + 'hebis-detail', + (item.origin && 'originalId' in item.origin && item.origin['originalId']) || '', + ]); + } else { + void this.router.navigate(['data-detail', item.uid]); + } + } + }), + ); + } + + /** + * Fetches/updates the favorites (search page component's method override) + */ + async fetchAndUpdateItems() { + this.favoritesService + .search(this.queryText, this.filterQuery, this.sortQuery) + .pipe(take(1)) + .subscribe(result => { + this.items = (async () => result.data)(); + this.updateContextFilter(result.facets); + }); + } + + initialize() { + this.showDefaultData = true; + } +} diff --git a/frontend/app/src/app/modules/favorites/favorites.module.ts b/frontend/app/src/app/modules/favorites/favorites.module.ts new file mode 100644 index 00000000..e9a69b9f --- /dev/null +++ b/frontend/app/src/app/modules/favorites/favorites.module.ts @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {CommonModule} from '@angular/common'; +import {FormsModule} from '@angular/forms'; +import {IonicModule} from '@ionic/angular'; +import {FavoritesPageComponent} from './favorites-page.component'; +import {RouterModule, Routes} from '@angular/router'; +import {MenuModule} from '../menu/menu.module'; +import {TranslateModule} from '@ngx-translate/core'; +import {DataModule} from '../data/data.module'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +const favoritesRoutes: Routes = [ + { + path: 'favorites', + component: FavoritesPageComponent, + }, +]; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + RouterModule.forChild(favoritesRoutes), + MenuModule, + TranslateModule, + DataModule, + IonIconModule, + UtilModule, + ], + declarations: [FavoritesPageComponent], +}) +export class FavoritesModule {} diff --git a/frontend/app/src/app/modules/favorites/favorites.service.ts b/frontend/app/src/app/modules/favorites/favorites.service.ts new file mode 100644 index 00000000..24423907 --- /dev/null +++ b/frontend/app/src/app/modules/favorites/favorites.service.ts @@ -0,0 +1,224 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import { + SCFacet, + SCFavorite, + SCIndexableThings, + SCSaveableThing, + SCSearchBooleanFilter, + SCSearchFilter, + SCSearchSort, + SCSearchValueFilter, + SCThings, + SCThingType, + SCUuid, +} from '@openstapps/core'; +import {StorageProvider} from '../storage/storage.provider'; +import {DataProvider} from '../data/data.provider'; +import {ThingTranslatePipe} from '../../translation/thing-translate.pipe'; +import {TranslateService} from '@ngx-translate/core'; +import {ThingTranslateService} from '../../translation/thing-translate.service'; +import {BehaviorSubject, Observable} from 'rxjs'; +import {debounceTime, map} from 'rxjs/operators'; + +/** + * Service handling favorites + */ +@Injectable({ + providedIn: 'root', +}) +export class FavoritesService { + /** + * Translation pipe + */ + thingTranslatePipe: ThingTranslatePipe; + + favorites = new BehaviorSubject>(new Map()); + + // using debounce time 0 allows change detection to run through async suspension + favoritesChanged$ = this.favorites.pipe(debounceTime(0)); + + static getDataFromFavorites(items: SCFavorite[]) { + return items.map(item => item.data); + } + + /** + * Provides the type value from a filter + * + * @param filter Filter to get the type from + */ + static getFilterType(filter: SCSearchBooleanFilter | SCSearchValueFilter) { + let value: string | undefined; + if (filter.type === 'boolean') { + for (const internalFilter of filter.arguments.filters) { + value = FavoritesService.getFilterType(internalFilter as SCSearchBooleanFilter | SCSearchValueFilter); + } + } else { + value = filter.arguments.value as string; + } + + return value; + } + + /** + * Provides all the saved favorites + */ + async getAll() { + return this.storageProvider.search(this.storagePrefix); + } + + /** + * Sorts provided items by the provided field + * + * @param items Items to sort + * @param field The field to use for sorting the items + * @param sortType In which order to sort the provided textual field + */ + sortItems(items: SCIndexableThings[], field: 'name' | 'type', sortType: 'asc' | 'desc') { + const reverse = sortType === 'asc' ? 1 : -1; + + return items.sort((a, b) => { + return ( + new Intl.Collator(this.translate.currentLang).compare( + this.thingTranslatePipe.transform(field, a), + this.thingTranslatePipe.transform(field, b), + ) * reverse + ); + }); + } + + /** + * Gets storage prefix text + */ + get storagePrefix(): string { + return this._storagePrefix; + } + + /** + * Sets storage prefix text + */ + set storagePrefix(storagePrefix) { + this._storagePrefix = storagePrefix; + } + + /** + * Storage prefix text + */ + private _storagePrefix = 'stapps.favorites'; + + constructor( + private storageProvider: StorageProvider, + private readonly translate: TranslateService, + private readonly thingTranslate: ThingTranslateService, + ) { + this.thingTranslatePipe = new ThingTranslatePipe(this.translate, this.thingTranslate); + void this.emitAll(); + } + + /** + * Provides key for storing data into the local database + * + * @param uid Unique identifier of a resource + */ + getStorageKey(uid: string): string { + return `${this.storagePrefix}.${uid}`; + } + + /** + * Removes an item from favorites + * + * @param item Data item that needs to be deleted + */ + async delete(item: SCIndexableThings): Promise { + await this.storageProvider.delete(this.getStorageKey(item.uid)); + void (await this.emitAll()); + } + + /** + * Save an item as a favorite + * + * @param item Data item that needs to be saved + */ + async put(item: SCIndexableThings): Promise { + const favorite = DataProvider.createSaveable(item, SCThingType.Favorite); + await this.storageProvider.put(this.getStorageKey(item.uid), favorite); + void (await this.emitAll()); + } + + async emitAll() { + this.favorites.next(await this.getAll()); + } + + get(uid: SCUuid): Observable { + return this.favoritesChanged$.pipe( + map(favoritesMap => { + return favoritesMap.get(this.getStorageKey(uid)); + }), + ); + } + + /** + * Search through the (saved) favorites + * + * @param queryText Text to filter the data with + * @param filterQuery Filters to apply on the data + * @param sortQuery Sort to apply on the data + */ + search( + queryText?: string, + filterQuery?: SCSearchFilter, + sortQuery?: SCSearchSort[], + ): Observable<{data: SCThings[]; facets: SCFacet[]}> { + return this.favoritesChanged$.pipe( + map(favoritesMap => { + let items = [...favoritesMap.values()].map(favorite => favorite.data); + if (typeof queryText !== 'undefined') { + const textFilteredItems: SCIndexableThings[] = []; + for (const item of items) { + if ( + this.thingTranslatePipe.transform('name', item).toLowerCase().includes(queryText.toLowerCase()) + ) { + textFilteredItems.push(item); + } + } + items = textFilteredItems; + } + + if (typeof filterQuery !== 'undefined') { + const filterType = FavoritesService.getFilterType( + filterQuery as SCSearchBooleanFilter | SCSearchValueFilter, + ); + const filteredItems: SCIndexableThings[] = []; + for (const item of items) { + if (item.type === filterType) { + filteredItems.push(item); + } + } + items = filteredItems; + } + + if (typeof sortQuery !== 'undefined') { + items = this.sortItems(items, sortQuery[0].arguments.field as 'name' | 'type', sortQuery[0].order); + } + + return { + data: items, + facets: [DataProvider.facetForField(items, 'type')], + }; + }), + ); + } +} diff --git a/frontend/app/src/app/modules/feedback/feedback-page.component.ts b/frontend/app/src/app/modules/feedback/feedback-page.component.ts new file mode 100644 index 00000000..51f38360 --- /dev/null +++ b/frontend/app/src/app/modules/feedback/feedback-page.component.ts @@ -0,0 +1,157 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component} from '@angular/core'; +import { + SCFeedbackRequest, + SCFeedbackRequestMetaData, + SCMessage, + SCPersonWithoutReferences, + SCThingOriginType, + SCThingType, +} from '@openstapps/core'; +import {DataProvider} from '../data/data.provider'; +import {DebugDataCollectorService} from '../data/debug-data-collector.service'; +import {AlertController, ToastController} from '@ionic/angular'; +import {TranslateService} from '@ngx-translate/core'; + +@Component({ + templateUrl: './feedback-page.html', + styleUrls: ['./feedback-page.scss'], +}) +export class FeedbackPageComponent { + /** + * Minimum allowed size of the feedback message + */ + MINIMUM_MESSAGE_SIZE = 15; + + constructor( + private readonly dataProvider: DataProvider, + private readonly debugDataCollector: DebugDataCollectorService, + private readonly toastController: ToastController, + private readonly alertController: AlertController, + private readonly translateService: TranslateService, + ) {} + + /** + * Sender of the feedback message + */ + author: SCPersonWithoutReferences = { + uid: '0f53f16a-e618-5ae0-a1b6-336e34f0d4d1', + name: '', + type: SCThingType.Person, + }; + + /** + * The message to be sent + */ + message: SCMessage = { + uid: '0f53f16a-e618-5ae0-a1b6-336e34f0d4d1', + name: 'Bug', + type: SCThingType.Message, + audiences: [], + categories: [], + origin: { + type: SCThingOriginType.User, + created: new Date().toISOString(), + }, + messageBody: '', + }; + + /** + * Terms of feedback accepted or not + */ + termsAgree = false; + + /** + * Providing of protocol data accepted or not + */ + protocolDataAgree = false; + + /** + * Show meta data or not + */ + showMetaData = false; + + /** + * Feedback successfully sent + */ + submitSuccess = false; + + /** + * Terms of feedback accepted or not + */ + metaData: SCFeedbackRequestMetaData; + + async ionViewDidEnter() { + this.metaData = await this.debugDataCollector.getFeedbackMetaData(); + } + + /** + * Assemble and send the feedback + */ + async onSubmit() { + if (this.author.name !== '') { + this.message.authors = [this.author]; + } + + const feedbackRequest: SCFeedbackRequest = { + ...this.message, + metaData: { + platform: '', + scope: {}, + state: {}, + userAgent: '', + version: '', + }, + }; + if (this.protocolDataAgree) { + feedbackRequest.metaData = this.metaData; + } + + try { + await this.dataProvider.sendFeedback(feedbackRequest); + void this.onSuccess(); + } catch { + void this.onError(); + } + } + + /** + * Show/hide the meta data + */ + toggleShowMetaData() { + this.showMetaData = !this.showMetaData; + } + + async onSuccess() { + this.submitSuccess = true; + const toast = await this.toastController.create({ + message: this.translateService.instant('feedback.system_messages.success'), + duration: 2000, + color: 'success', + }); + await toast.present(); + } + + async onError() { + const alert: HTMLIonAlertElement = await this.alertController.create({ + buttons: [this.translateService.instant('app.ui.CLOSE')], + header: this.translateService.instant('app.ui.ERROR'), + message: this.translateService.instant('app.errors.UNKNOWN'), + }); + + await alert.present(); + } +} diff --git a/frontend/app/src/app/modules/feedback/feedback-page.html b/frontend/app/src/app/modules/feedback/feedback-page.html new file mode 100644 index 00000000..280adf40 --- /dev/null +++ b/frontend/app/src/app/modules/feedback/feedback-page.html @@ -0,0 +1,127 @@ + + + + + + + + {{ 'feedback.page.TITLE' | translate }} + + + +
+ +
+
diff --git a/frontend/app/src/app/modules/feedback/feedback-page.scss b/frontend/app/src/app/modules/feedback/feedback-page.scss new file mode 100644 index 00000000..8235c41c --- /dev/null +++ b/frontend/app/src/app/modules/feedback/feedback-page.scss @@ -0,0 +1,81 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +pre { + white-space: pre-wrap; +} +ion-button { + margin: 10px; +} + +@import 'src/theme/util/_mixins.scss'; + +:host ::ng-deep { + ion-card { + margin: 0; + box-shadow: none; + ion-card-content { + h1 { + margin: 0; + } + padding-bottom: 8px; + } + ion-card-header { + color: var(--ion-color-dark); + padding-top: 8px; + padding-bottom: 4px; + font-weight: bold; + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } + + .feedback-content { + margin: var(--spacing-md); + display: flex; + flex-direction: column; + gap: var(--spacing-sm); + background: var(--ion-color-light); + @include border-radius-in-parallax(var(--border-radius-default)); + + & > * { + ion-card-subtitle { + font-size: var(--font-size-lg); + color: var(--ion-color-light-contrast); + } + + display: block; + @include border-radius-in-parallax(var(--border-radius-default)); + overflow: hidden; + position: relative; + background-color: var(--ion-color-primary-contrast); + margin: 0; + + & > ion-thumbnail { + background: var(--ion-color-primary); + } + } + } +} diff --git a/frontend/app/src/app/modules/feedback/feedback.module.ts b/frontend/app/src/app/modules/feedback/feedback.module.ts new file mode 100644 index 00000000..bd3d58ba --- /dev/null +++ b/frontend/app/src/app/modules/feedback/feedback.module.ts @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {CommonModule} from '@angular/common'; +import {FormsModule} from '@angular/forms'; +import {IonicModule} from '@ionic/angular'; +import {FeedbackPageComponent} from './feedback-page.component'; +import {RouterModule, Routes} from '@angular/router'; +import {TranslateModule} from '@ngx-translate/core'; +import {MarkdownModule} from 'ngx-markdown'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +const feedbackRoutes: Routes = [ + { + path: 'feedback', + component: FeedbackPageComponent, + }, +]; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + IonIconModule, + RouterModule.forChild(feedbackRoutes), + TranslateModule, + MarkdownModule, + UtilModule, + ], + declarations: [FeedbackPageComponent], +}) +export class FeedbackModule {} diff --git a/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.component.spec.ts b/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.component.spec.ts new file mode 100644 index 00000000..377bc32b --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.component.spec.ts @@ -0,0 +1,120 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-non-null-assertion,@typescript-eslint/no-explicit-any */ +import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; +import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {ActivatedRoute, RouterModule} from '@angular/router'; +import {TranslateLoader, TranslateModule, TranslateService} from '@ngx-translate/core'; +import {sampleThingsMap} from '../../../_helpers/data/sample-things'; +import {HebisRoutingModule} from '../hebis-routing.module'; +import {HebisModule} from '../hebis.module'; +import {DaiaAvailabilityComponent} from './daia-availability.component'; +import {Observable, of} from 'rxjs'; +import {StorageProvider} from '../../storage/storage.provider'; +import {DaiaDataProvider} from '../daia-data.provider'; +import {LoggerConfig, LoggerModule, NGXLogger} from 'ngx-logger'; +import {ConfigProvider} from '../../config/config.provider'; + +const translations: any = {data: {detail: {TITLE: 'Foo'}}}; + +class TranslateFakeLoader implements TranslateLoader { + getTranslation(_lang: string): Observable { + return of(translations); + } +} + +describe('DaiaAvailabilityComponent', () => { + let comp: DaiaAvailabilityComponent; + let fixture: ComponentFixture; + let dataProvider: DaiaDataProvider; + const sampleThing = sampleThingsMap.book[0]; + let translateService: TranslateService; + let configProviderMock: jasmine.SpyObj; + + // @Component({ selector: 'stapps-data-list-item', template: '' }) + // class DataListItemComponent { + // @Input() item; + // } + + const fakeActivatedRoute = { + snapshot: { + paramMap: { + get: () => { + return sampleThing.uid; + }, + }, + }, + }; + + const storageProviderSpy = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put', 'search']); + + beforeEach(() => { + configProviderMock = jasmine.createSpyObj('ConfigProvider', ['init', 'getValue', 'getAnyValue']); + TestBed.configureTestingModule({ + imports: [ + RouterModule.forRoot([], {relativeLinkResolution: 'legacy'}), + HebisRoutingModule, + HebisModule, + TranslateModule.forRoot({ + loader: {provide: TranslateLoader, useClass: TranslateFakeLoader}, + }), + LoggerModule, + ], + providers: [ + { + provide: ActivatedRoute, + useValue: fakeActivatedRoute, + }, + { + provide: StorageProvider, + useValue: storageProviderSpy, + }, + { + provide: ConfigProvider, + useValue: configProviderMock, + }, + NGXLogger, + LoggerConfig, + ], + schemas: [CUSTOM_ELEMENTS_SCHEMA], + }).compileComponents(); + }); + + beforeEach(async () => { + dataProvider = TestBed.inject(DaiaDataProvider); + const workingDAIAurl = 'https://daia.hebis.de/DAIA2/UB_Frankfurt'; + dataProvider.daiaServiceUrl = workingDAIAurl; + translateService = TestBed.inject(TranslateService); + spyOn(dataProvider, 'getAvailability' as any).and.returnValue(Promise.resolve([])); + spyOn(DaiaAvailabilityComponent.prototype, 'getAvailability').and.callThrough(); + fixture = await TestBed.createComponent(DaiaAvailabilityComponent); + comp = fixture.componentInstance; + translateService.use('foo'); + fixture.detectChanges(); + }); + + it('should create component', () => expect(comp).toBeDefined()); + + it('should get the availability of an item', () => { + comp.getAvailability(sampleThing.uid); + expect(DaiaAvailabilityComponent.prototype.getAvailability).toHaveBeenCalledWith(sampleThing.uid); + }); + + it('should get the availability of an item when the view is entered', () => { + comp.ngOnInit(); + expect(DaiaAvailabilityComponent.prototype.getAvailability).toHaveBeenCalledWith(sampleThing.uid); + }); +}); diff --git a/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.component.ts b/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.component.ts new file mode 100644 index 00000000..e783794c --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.component.ts @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnInit} from '@angular/core'; +import {ActivatedRoute} from '@angular/router'; +import {TranslateService} from '@ngx-translate/core'; +import {SCUuid} from '@openstapps/core'; +import {FavoritesService} from '../../favorites/favorites.service'; +import {DataProvider} from '../../data/data.provider'; +import {DataDetailComponent} from '../../data/detail/data-detail.component'; +import {DaiaDataProvider} from '../daia-data.provider'; +import {DaiaHolding} from '../protocol/response'; +import {ModalController} from '@ionic/angular'; +import {groupByStable} from '../../../_helpers/collections/group-by'; + +/** + * A Component to display an SCThing detailed + */ +@Component({ + selector: 'stapps-daia-availability', + styleUrls: ['daia-availability.scss'], + templateUrl: 'daia-availability.html', +}) +export class DaiaAvailabilityComponent extends DataDetailComponent implements OnInit { + holdings?: DaiaHolding[]; + + holdingsByDepartments?: Map; + + /** + * + * @param route the route the page was accessed from + * @param dataProvider the data provider + * @param favoritesService the favorites provider + * @param modalController the modal controller + * @param translateService he translate provider + * @param daiaDataProvider DaiaDataProvider + */ + constructor( + route: ActivatedRoute, + dataProvider: DataProvider, + favoritesService: FavoritesService, + modalController: ModalController, + translateService: TranslateService, + private daiaDataProvider: DaiaDataProvider, + ) { + super(route, dataProvider, favoritesService, modalController, translateService); + } + + /** + * Initialize + */ + async ngOnInit() { + const uid = this.route.snapshot.paramMap.get('uid'); + if (uid) { + await this.getAvailability(uid); + } + } + + /** + * Provides data item with given UID + * + * @param uid Unique identifier of a thing + */ + async getAvailability(uid: SCUuid) { + this.daiaDataProvider.getAvailability(uid).then(holdings => { + if (typeof holdings !== 'undefined') { + this.holdings = holdings; + this.holdingsByDepartments = groupByStable(holdings, holding => holding.department.id); + } + }); + } +} diff --git a/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.html b/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.html new file mode 100644 index 00000000..7224726f --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.html @@ -0,0 +1,45 @@ + + + + + + {{ 'hebisSearch.daia.availability' | translate }} + + + + + + + + + + + + + + + {{ 'hebisSearch.daia.unavailableAvailability' | translate }} + + + {{ 'hebisSearch.daia.unknownAvailability' | translate }} + + + + diff --git a/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.scss b/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.scss new file mode 100644 index 00000000..636eece5 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-availability/daia-availability.scss @@ -0,0 +1,31 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host ion-card { + margin: 0; + box-shadow: none; + ion-card-content { + h1 { + margin: 0; + } + padding-bottom: 8px; + } + ion-card-header { + color: var(--ion-color-dark); + padding-top: 8px; + padding-bottom: 4px; + font-weight: bold; + } +} diff --git a/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.component.ts b/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.component.ts new file mode 100644 index 00000000..f3c84298 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.component.ts @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input, OnInit} from '@angular/core'; +import {DaiaHolding} from '../protocol/response'; +import {DaiaDataProvider} from '../daia-data.provider'; + +@Component({ + selector: 'stapps-daia-holding', + templateUrl: './daia-holding.html', + styleUrls: ['./daia-holding.scss'], +}) +export class DaiaHoldingComponent implements OnInit { + @Input() holding: DaiaHolding; + + constructor(private daiaDataProvider: DaiaDataProvider) {} + + resourceLink?: string; + + ngOnInit(): void { + this.resourceLink = this.daiaDataProvider.getHoldingLink(this.holding, this.holding.open); + } +} diff --git a/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.html b/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.html new file mode 100644 index 00000000..ff61f986 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.html @@ -0,0 +1,72 @@ + + + + {{ 'hebisSearch.daia.location' | translate }} + + + + {{ 'hebisSearch.daia.signature' | translate }} + {{ holding.signature }} + + + {{ 'hebisSearch.daia.holdings' | translate }} + {{ holding.holdings }} + + + {{ 'hebisSearch.daia.comment' | translate }} + + + + {{ 'Online' }} + + + + + + {{ 'hebisSearch.daia.status' | translate }} + + + + + + {{ 'hebisSearch.daia.status_states' + '.' + holding.status | translate }} + + + + + + + + {{ 'hebisSearch.daia.dueDate' | translate }} + {{ holding.dueDate | amDateFormat: 'll' }} + + diff --git a/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.scss b/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.scss new file mode 100644 index 00000000..f0b92375 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-availability/daia-holding.scss @@ -0,0 +1,39 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +ion-label a { + display: block; + text-decoration: none; + font-weight: 700; + color: var(--ion-color-primary); + margin: 20px 0 5px; +} +ion-grid { + padding: 0; + margin: 5px 5px; + + ion-row { + background-color: var(--ion-color-light); + color: var(--ion-color-light-contrast); + border-bottom: 1px solid #fff; + + ion-col:first-child { + font-weight: 700; + } + } +} + +ion-icon ::ng-deep stapps-icon { + --fill: 1; +} diff --git a/frontend/app/src/app/modules/hebis/daia-data.provider.spec.ts b/frontend/app/src/app/modules/hebis/daia-data.provider.spec.ts new file mode 100644 index 00000000..9fefb831 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-data.provider.spec.ts @@ -0,0 +1,233 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any, unicorn/no-thenable */ +import {TestBed} from '@angular/core/testing'; +import {DaiaDataProvider} from './daia-data.provider'; +import {HebisModule} from './hebis.module'; +import {ConfigProvider} from '../config/config.provider'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {StorageProvider} from '../storage/storage.provider'; +import {LoggerConfig, LoggerModule, NGXLogger} from 'ngx-logger'; +import {MapModule} from '../map/map.module'; +import {HttpClientModule} from '@angular/common/http'; +import {StorageModule} from '../storage/storage.module'; +import {DaiaHolding, DaiaService} from './protocol/response'; +import {Observable, of} from 'rxjs'; +import {TranslateLoader, TranslateModule} from '@ngx-translate/core'; + +const translations: any = {data: {detail: {TITLE: 'Foo'}}}; + +class TranslateFakeLoader implements TranslateLoader { + getTranslation(_lang: string): Observable { + return of(translations); + } +} + +describe('DaiaDataProvider', () => { + let daiaDataProvider: DaiaDataProvider; + let configProvider: ConfigProvider; + const proxyUrl = 'https://some-proxy.com?q='; + const getProxifiedUrl = (url: string) => `${proxyUrl}${encodeURIComponent(url)}`; + + beforeEach(async () => { + configProvider = jasmine.createSpyObj('ConfigProvider', ['getValue']); + TestBed.configureTestingModule({ + imports: [ + HebisModule, + MapModule, + HttpClientModule, + StorageModule, + LoggerModule, + TranslateModule.forRoot({ + loader: {provide: TranslateLoader, useClass: TranslateFakeLoader}, + }), + ], + providers: [ + { + provide: ConfigProvider, + useValue: configProvider, + }, + StAppsWebHttpClient, + StorageProvider, + NGXLogger, + LoggerConfig, + DaiaDataProvider, + ], + }); + daiaDataProvider = TestBed.inject(DaiaDataProvider); + daiaDataProvider.hebisProxyUrl = proxyUrl; + }); + describe('getResourceLink', () => { + it('should return link with proxy when open property is undefined', () => { + const available: DaiaService = { + delay: '', + expected: '', + href: 'https://some-url.com', + limitations: [], + service: 'presentation', + }; + const holding: DaiaHolding = { + department: {id: '', content: ''}, + id: '', + online: false, + signature: '', + available: available, + }; + + expect(daiaDataProvider.getHoldingLink(holding, holding.open)).toEqual( + getProxifiedUrl(available.href as string), + ); + }); + + it('should return the resource link without proxy when the resource is open', () => { + const available: DaiaService = { + delay: '', + expected: '', + href: 'https://some-url.com', + limitations: [], + service: 'other', + }; + const holding: DaiaHolding = { + department: {id: '', content: ''}, + id: '', + online: false, + open: true, + signature: '', + available: available, + }; + + expect(daiaDataProvider.getHoldingLink(holding, holding.open)).toEqual(available.href as string); + }); + + it('should return the resource link with proxy when the resource is not open', () => { + const available: DaiaService = { + delay: '', + expected: '', + href: 'https://some-url.com', + limitations: [], + service: 'other', + }; + const holding: DaiaHolding = { + department: {id: '', content: ''}, + id: '', + online: false, + open: false, + signature: '', + available: available, + }; + + expect(daiaDataProvider.getHoldingLink(holding, holding.open)).toEqual( + getProxifiedUrl(available.href as string), + ); + }); + }); + + describe('getResourceStatus', () => { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + // let available, unavalable: SCDaiaService[]; + + const checkedOut: DaiaService = { + expected: '2022-09-01', + limitations: [], + service: 'loan', + }; + + const notYetAvailableOnBuy: DaiaService = { + limitations: [{id: 'OnBuy', content: ''}], + service: 'loan', + }; + + const notYetAvailableJustReturned: DaiaService = { + limitations: [{id: 'JustReturned', content: ''}], + service: 'loan', + }; + + const notAvailableCopyIsMissing: DaiaService = { + limitations: [{id: 'CopyIsMissing', content: ''}], + service: 'loan', + }; + + const notAvailableCanceled: DaiaService = { + limitations: [{id: 'Canceled', content: ''}], + service: 'loan', + }; + + const libraryOnlyOnlyInHouse: DaiaService = { + limitations: [{id: 'OnlyInHouse', content: ''}], + service: 'loan', + }; + + const libraryOnlyExternalLoan: DaiaService = { + limitations: [{id: 'ExternalLoan', content: ''}], + service: 'loan', + }; + + const libraryOnlyPresentation: DaiaService = { + service: 'presentation', + }; + + const availableLimitationsUndefined: DaiaService = { + service: 'loan', + }; + + const availableLimitationsEmpty: DaiaService = { + limitations: [], + service: 'loan', + }; + + it('should return check out', () => { + expect(daiaDataProvider.getHoldingStatus([], [checkedOut])).toEqual('checked_out'); + }); + + it('should return not yet available', () => { + expect(daiaDataProvider.getHoldingStatus([], [notYetAvailableOnBuy])).toEqual('not_yet_available'); + expect(daiaDataProvider.getHoldingStatus([], [notYetAvailableJustReturned])).toEqual( + 'not_yet_available', + ); + }); + + it('should return not available', () => { + expect(daiaDataProvider.getHoldingStatus([], [notAvailableCopyIsMissing])).toEqual('not_available'); + expect(daiaDataProvider.getHoldingStatus([], [notAvailableCanceled])).toEqual('not_available'); + }); + + it('should return library only', () => { + expect(daiaDataProvider.getHoldingStatus([], [libraryOnlyOnlyInHouse])).toEqual('library_only'); + expect(daiaDataProvider.getHoldingStatus([libraryOnlyExternalLoan], [])).toEqual('library_only'); + expect(daiaDataProvider.getHoldingStatus([libraryOnlyPresentation], [])).toEqual('library_only'); + }); + + it('should return available', () => { + expect( + daiaDataProvider.getHoldingStatus([availableLimitationsUndefined, libraryOnlyPresentation], []), + ).toEqual('available'); + expect( + daiaDataProvider.getHoldingStatus([availableLimitationsEmpty, libraryOnlyPresentation], []), + ).toEqual('available'); + }); + + it('should return unknown otherwise', () => { + const withoutLoan: DaiaService = { + limitations: [], + service: 'anything else', + }; + + expect(daiaDataProvider.getHoldingStatus([withoutLoan], [])).toEqual('unknown'); + expect(daiaDataProvider.getHoldingStatus([], [withoutLoan])).toEqual('unknown'); + expect(daiaDataProvider.getHoldingStatus([], [availableLimitationsUndefined])).toEqual('unknown'); + expect(daiaDataProvider.getHoldingStatus([], [availableLimitationsEmpty])).toEqual('unknown'); + }); + }); +}); diff --git a/frontend/app/src/app/modules/hebis/daia-data.provider.ts b/frontend/app/src/app/modules/hebis/daia-data.provider.ts new file mode 100644 index 00000000..9b140190 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/daia-data.provider.ts @@ -0,0 +1,234 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {DaiaAvailabilityResponse, DaiaHolding, DaiaService} from './protocol/response'; +import {StorageProvider} from '../storage/storage.provider'; +import {HttpClient, HttpHeaders} from '@angular/common/http'; +import {ConfigProvider} from '../config/config.provider'; +import {SCFeatureConfiguration} from '@openstapps/core'; +import {NGXLogger} from 'ngx-logger'; +import {TranslateService} from '@ngx-translate/core'; + +/** + * Generated class for the DataProvider provider. + * + * See https://angular.io/guide/dependency-injection for more info on providers + * and Angular DI. + */ +@Injectable({ + providedIn: 'root', +}) +export class DaiaDataProvider { + /** + * TODO + */ + storageProvider: StorageProvider; + + httpClient: HttpClient; + + daiaServiceUrl?: string; + + hebisProxyUrl?: string; + + clientHeaders = new HttpHeaders(); + + /** + * TODO + * + * @param storageProvider TODO + * @param httpClient TODO + * @param configProvider TODO + * @param logger TODO + * @param translateService TODO + */ + constructor( + storageProvider: StorageProvider, + httpClient: HttpClient, + private configProvider: ConfigProvider, + private readonly logger: NGXLogger, + private translateService: TranslateService, + ) { + this.storageProvider = storageProvider; + this.httpClient = httpClient; + this.clientHeaders = this.clientHeaders.set('Content-Type', 'application/json'); + } + + async getAvailability(id: string): Promise { + if (typeof this.daiaServiceUrl === 'undefined') { + try { + const features = this.configProvider.getValue('features') as SCFeatureConfiguration; + if (features.extern?.daia?.url) { + this.daiaServiceUrl = features.extern?.daia?.url; + } else { + this.logger.error('Daia service url undefined'); + return undefined; + } + if (features.extern?.hebisProxy?.url) { + this.hebisProxyUrl = features.extern?.hebisProxy?.url; + } else { + this.logger.error('HeBIS proxy url undefined'); + return undefined; + } + } catch (error) { + this.logger.error(error); + return undefined; + } + } + + return new Promise(resolve => + this.httpClient + .get(this.daiaServiceUrl as string, { + params: {id, lang: this.translateService.currentLang}, + }) + .subscribe( + (response: DaiaAvailabilityResponse) => { + const holdings: DaiaHolding[] = []; + if (response && Array.isArray(response.document)) { + response.document.map(document => { + Array.isArray(document.item) && + document.item.map(element => { + try { + const { + department: {id: departmentId, content: departmentLabel, href: departmentLink} = { + id: 'noDep', + content: '', + href: '', + }, + label, + about, + available, + storage, + chronology, + unavailable, + } = element; + const holdingStatus = this.holdingHasStatus(available || []) + ? this.getHoldingStatus(available || [], unavailable || []) + : undefined; + + const dueDate = + holdingStatus === 'checked_out' + ? (unavailable.find(item => item.service === 'loan') as DaiaService).expected + : undefined; + + holdings.push({ + id: element.id, + department: { + id: departmentId, + content: departmentLabel, + href: departmentLink, + }, + signature: label, + status: holdingStatus, + dueDate: dueDate, + online: + Array.isArray(available) && + typeof available.find(item => item.service === 'remote') !== 'undefined', + available: + (Array.isArray(available) && + available.find(item => + ['openaccess', 'loan', 'presentation'].includes(item.service), + )) || + undefined, + unavailable: + (Array.isArray(unavailable) && unavailable.find(item => item.service === 'loan')) || + undefined, + storage, + about, + holdings: chronology?.about, + open: + (Array.isArray(available) && + available.some(item => item.service === 'openaccess')) || + undefined, + }); + } catch { + // No element available + } + }); + }); + } + resolve(holdings); + }, + error => { + // handle "availability info not found" separately from the problems with getting the info + if (error.status === 404) resolve([]); + // eslint-disable-next-line unicorn/no-useless-undefined + resolve(undefined); + }, + ), + ); + } + + getHoldingLink(holding: DaiaHolding, open = false) { + if (typeof this.hebisProxyUrl === 'undefined') { + this.logger.error('HeBIS proxy url undefined'); + + return; + } + const resourceLink = holding.available?.href; + return open ? resourceLink : `${this.hebisProxyUrl}${encodeURIComponent(resourceLink as string)}`; + } + + holdingHasStatus(available: DaiaService[]): boolean { + return !available.some(item => item.service === 'remote'); + } + + getHoldingStatus(available: DaiaService[], unavailable: DaiaService[]): DaiaHolding['status'] { + const loan: {available: number; unavailable: number} = { + available: available.findIndex(item => item.service === 'loan'), + unavailable: unavailable.findIndex(item => item.service === 'loan'), + }; + const presentation: {available: number; unavailable: number} = { + available: available.findIndex(item => item.service === 'presentation'), + unavailable: unavailable.findIndex(item => item.service === 'presentation'), + }; + + if (loan.unavailable !== -1 && typeof unavailable[loan.unavailable].expected !== 'undefined') { + return 'checked_out'; + } + + if ( + loan.unavailable !== -1 && + unavailable[loan.unavailable].limitations?.some(limitation => + ['OnBuy', 'JustReturned'].includes(limitation.id), + ) + ) + return 'not_yet_available'; + + if ( + loan.unavailable !== -1 && + unavailable[loan.unavailable].limitations?.some(limitation => + ['CopyIsMissing', 'Canceled'].includes(limitation.id), + ) + ) + return 'not_available'; + + if ( + (loan.unavailable !== -1 && + unavailable[loan.unavailable].limitations?.some(limitation => + ['OnlyInHouse'].includes(limitation.id), + )) || + (loan.available !== -1 && + available[loan.available].limitations?.some(limitation => + ['ExternalLoan'].includes(limitation.id), + )) || + (loan.available === -1 && presentation.available !== -1 && presentation.unavailable === -1) + ) + return 'library_only'; + + if (loan.available !== -1) return 'available'; + + return 'unknown'; + } +} diff --git a/frontend/app/src/app/modules/hebis/hebis-data.provider.ts b/frontend/app/src/app/modules/hebis/hebis-data.provider.ts new file mode 100644 index 00000000..7756b6d9 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-data.provider.ts @@ -0,0 +1,104 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {Client} from '@openstapps/api/lib/client'; +import {SCHebisSearchRequest} from './protocol/request'; +import {HebisSearchResponse} from './protocol/response'; +import {StorageProvider} from '../storage/storage.provider'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {HttpClient} from '@angular/common/http'; +import {DataProvider} from '../data/data.provider'; +import {SCHebisSearchRoute} from './protocol/route'; + +const HEBIS_PREFIX = 'HEB'; + +/** + * Generated class for the DataProvider provider. + * + * See https://angular.io/guide/dependency-injection for more info on providers + * and Angular DI. + */ +@Injectable({ + providedIn: 'root', +}) +export class HebisDataProvider extends DataProvider { + /** + * TODO + */ + storageProvider: StorageProvider; + + httpClient: HttpClient; + + /** + * Instance of hebis search request route + */ + private readonly hebisSearchRoute = new SCHebisSearchRoute(); + + /** + * TODO + * + * @param stAppsWebHttpClient TODO + * @param storageProvider TODO + * @param httpClient TODO + */ + constructor( + stAppsWebHttpClient: StAppsWebHttpClient, + storageProvider: StorageProvider, + httpClient: HttpClient, + ) { + super(stAppsWebHttpClient, storageProvider); + this.storageProvider = storageProvider; + this.httpClient = httpClient; + this.client = new Client(stAppsWebHttpClient, this.backendUrl, this.appVersion); + } + + /** + * Send a search request to the backend + * + * All results will be returned if no size is set in the request. + * + * @param searchRequest Search request + * @param options Search options + * @param options.addPrefix Add HeBIS prefix (useful when having only an ID, e.g. when using PAIA) + */ + async hebisSearch( + searchRequest: SCHebisSearchRequest, + options?: {addPrefix: boolean}, + ): Promise { + if (options?.addPrefix) { + searchRequest.query = [HEBIS_PREFIX, searchRequest.query].join(''); + } + + let page: number | undefined = searchRequest.page; + + if (typeof page === 'undefined') { + const preFlightResponse = await this.client.invokeRoute( + this.hebisSearchRoute, + undefined, + { + ...searchRequest, + page: 0, + }, + ); + + page = preFlightResponse.pagination.total; + } + + return this.client.invokeRoute(this.hebisSearchRoute, undefined, { + ...searchRequest, + page, + }); + } +} diff --git a/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.component.ts b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.component.ts new file mode 100644 index 00000000..291b3957 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCThings} from '@openstapps/core'; + +/** + * TODO + */ +@Component({ + selector: 'stapps-hebis-detail-content', + styleUrls: ['hebis-detail-content.scss'], + templateUrl: 'hebis-detail-content.html', +}) +export class HebisDetailContentComponent { + /** + * TODO + */ + @Input() item: SCThings; +} diff --git a/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.html b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.html new file mode 100644 index 00000000..6ea8524b --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.html @@ -0,0 +1,45 @@ + + +
+ + + + + + + + + + + +
+

{{ item.name }}

+ {{ item.type }} +
+
+
+
+
+ +
+
diff --git a/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.scss b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.scss new file mode 100644 index 00000000..5f00ff95 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail-content.scss @@ -0,0 +1,45 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host ::ng-deep { + ion-card { + margin: 0; + box-shadow: none; + ion-card-content { + h1 { + margin: 0; + } + padding-bottom: 8px; + } + ion-card-header { + color: var(--ion-color-dark); + padding-top: 8px; + padding-bottom: 4px; + font-weight: bold; + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } +} diff --git a/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.component.spec.ts b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.component.spec.ts new file mode 100644 index 00000000..55a69a31 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.component.spec.ts @@ -0,0 +1,114 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-non-null-assertion,@typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-non-null-assertion,@typescript-eslint/no-explicit-any */ +import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; +import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {ActivatedRoute, RouterModule} from '@angular/router'; +import {TranslateLoader, TranslateModule, TranslateService} from '@ngx-translate/core'; +import {sampleThingsMap} from '../../../_helpers/data/sample-things'; +import {HebisRoutingModule} from '../hebis-routing.module'; +import {HebisModule} from '../hebis.module'; +import {HebisDataProvider} from '../hebis-data.provider'; +import {HebisDetailComponent} from './hebis-detail.component'; +import {Observable, of} from 'rxjs'; +import {StorageProvider} from '../../storage/storage.provider'; +import {IonicModule} from '@ionic/angular'; +import {IonIconModule} from '../../../util/ion-icon/ion-icon.module'; +import {LoggerModule, NgxLoggerLevel} from 'ngx-logger'; + +const translations: any = {data: {detail: {TITLE: 'Foo'}}}; + +class TranslateFakeLoader implements TranslateLoader { + getTranslation(_lang: string): Observable { + return of(translations); + } +} + +describe('HebisDetailComponent', () => { + let comp: HebisDetailComponent; + let fixture: ComponentFixture; + let dataProvider: HebisDataProvider; + const sampleThing = sampleThingsMap.book[0]; + let translateService: TranslateService; + + // @Component({ selector: 'stapps-data-list-item', template: '' }) + // class DataListItemComponent { + // @Input() item; + // } + + const fakeActivatedRoute = { + snapshot: { + paramMap: { + get: () => { + return sampleThing.uid; + }, + }, + }, + }; + + const storageProviderSpy = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put', 'search']); + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [ + RouterModule.forRoot([], {relativeLinkResolution: 'legacy'}), + HebisRoutingModule, + HebisModule, + IonicModule, + IonIconModule, + TranslateModule.forRoot({ + loader: {provide: TranslateLoader, useClass: TranslateFakeLoader}, + }), + LoggerModule.forRoot({level: NgxLoggerLevel.TRACE}), + ], + providers: [ + { + provide: ActivatedRoute, + useValue: fakeActivatedRoute, + }, + { + provide: StorageProvider, + useValue: storageProviderSpy, + }, + ], + schemas: [CUSTOM_ELEMENTS_SCHEMA], + }).compileComponents(); + }); + + beforeEach(() => { + dataProvider = TestBed.inject(HebisDataProvider); + translateService = TestBed.inject(TranslateService); + spyOn(dataProvider, 'get' as any).and.returnValue(Promise.resolve(sampleThing)); + spyOn(HebisDetailComponent.prototype, 'getItem').and.callThrough(); + fixture = TestBed.createComponent(HebisDetailComponent); + comp = fixture.componentInstance; + translateService.use('foo'); + fixture.detectChanges(); + }); + + it('should create component', () => expect(comp).toBeDefined()); + + it('should get a data item', () => { + comp.getItem(sampleThing.uid, false); + expect(HebisDetailComponent.prototype.getItem).toHaveBeenCalledWith(sampleThing.uid, false); + }); + + it('should get a data item when the view is entered', () => { + comp.ionViewWillEnter(); + expect(HebisDetailComponent.prototype.getItem).toHaveBeenCalledWith(sampleThing.uid, false); + }); +}); diff --git a/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.component.ts b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.component.ts new file mode 100644 index 00000000..c0f486ce --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.component.ts @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component} from '@angular/core'; +import {ActivatedRoute} from '@angular/router'; +import {TranslateService} from '@ngx-translate/core'; +import {SCUuid} from '@openstapps/core'; +import {HebisDataProvider} from '../hebis-data.provider'; +import {FavoritesService} from '../../favorites/favorites.service'; +import {DataProvider} from '../../data/data.provider'; +import {DataDetailComponent} from '../../data/detail/data-detail.component'; +import {DaiaHolding} from '../protocol/response'; +import {ModalController} from '@ionic/angular'; + +/** + * A Component to display an SCThing detailed + */ +@Component({ + selector: 'stapps-hebis-detail', + styleUrls: ['hebis-detail.scss'], + templateUrl: 'hebis-detail.html', +}) +export class HebisDetailComponent extends DataDetailComponent { + holdings: DaiaHolding[]; + + /** + * + * @param route the route the page was accessed from + * @param dataProvider the data provider + * @param favoritesService the favorites provider + * @param modalController the modal controller + * @param translateService he translate provider + * @param hebisDataProvider HebisDataProvider + */ + constructor( + route: ActivatedRoute, + dataProvider: DataProvider, + favoritesService: FavoritesService, + modalController: ModalController, + translateService: TranslateService, + private hebisDataProvider: HebisDataProvider, + ) { + super(route, dataProvider, favoritesService, modalController, translateService); + } + + /** + * Initialize + */ + async ionViewWillEnter() { + const uid = this.route.snapshot.paramMap.get('uid') || ''; + await this.getItem(uid ?? '', false); + } + + /** + * Provides data item with given UID + * + * @param uid Unique identifier of a thing + * @param _forceReload Ignore any cached data + */ + async getItem(uid: SCUuid, _forceReload: boolean) { + this.hebisDataProvider.hebisSearch({query: uid, page: 0}).then(result => { + // eslint-disable-next-line unicorn/no-null + this.item = (result.data && result.data[0]) || null; + }); + } +} diff --git a/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.html b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.html new file mode 100644 index 00000000..b5d69c65 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.html @@ -0,0 +1,50 @@ + + + + + + + + {{ 'data.detail.TITLE' | translate }} + + + + + + +
+ +
+ + {{ 'data.detail.COULD_NOT_CONNECT' | translate }} +
+
+ +
+ + {{ 'data.detail.NOT_FOUND' | translate }} +
+
+ + + + + + + + +
+
diff --git a/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.scss b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.scss new file mode 100644 index 00000000..2a8df22b --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-detail/hebis-detail.scss @@ -0,0 +1,5 @@ +::ng-deep { + ion-card-header { + font-weight: bold; + } +} diff --git a/frontend/app/src/app/modules/hebis/hebis-routing.module.ts b/frontend/app/src/app/modules/hebis/hebis-routing.module.ts new file mode 100644 index 00000000..7aad4cb1 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-routing.module.ts @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {RouterModule, Routes} from '@angular/router'; +import {HebisDetailComponent} from './hebis-detail/hebis-detail.component'; +import {HebisSearchPageComponent} from './list/hebis-search-page.component'; + +const hebisRoutes: Routes = [ + {path: 'hebis-search', component: HebisSearchPageComponent}, + {path: 'hebis-detail/:uid', component: HebisDetailComponent}, +]; + +/** + * Module defining routes for data module + */ +@NgModule({ + exports: [RouterModule], + imports: [RouterModule.forChild(hebisRoutes)], +}) +export class HebisRoutingModule {} diff --git a/frontend/app/src/app/modules/hebis/hebis-search.provider.ts b/frontend/app/src/app/modules/hebis/hebis-search.provider.ts new file mode 100644 index 00000000..5f7c0465 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis-search.provider.ts @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; + +@Injectable({ + providedIn: 'root', +}) +export class HebisSearchProvider {} diff --git a/frontend/app/src/app/modules/hebis/hebis.module.ts b/frontend/app/src/app/modules/hebis/hebis.module.ts new file mode 100644 index 00000000..26cca1ce --- /dev/null +++ b/frontend/app/src/app/modules/hebis/hebis.module.ts @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2018-2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {ScrollingModule} from '@angular/cdk/scrolling'; +import {CommonModule} from '@angular/common'; +import {HttpClientModule} from '@angular/common/http'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {MarkdownModule} from 'ngx-markdown'; +import {MomentModule} from 'ngx-moment'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {MenuModule} from '../menu/menu.module'; +import {StorageModule} from '../storage/storage.module'; +import {HebisDetailComponent} from './hebis-detail/hebis-detail.component'; +import {HebisDetailContentComponent} from './hebis-detail/hebis-detail-content.component'; +import {HebisSearchPageComponent} from './list/hebis-search-page.component'; +import {HebisDataProvider} from './hebis-data.provider'; +import {DaiaDataProvider} from './daia-data.provider'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {HebisRoutingModule} from './hebis-routing.module'; +import {DataModule} from '../data/data.module'; +import {DataListComponent} from '../data/list/data-list.component'; +import {DaiaAvailabilityComponent} from './daia-availability/daia-availability.component'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; +import {DaiaHoldingComponent} from './daia-availability/daia-holding.component'; + +/** + * Module for handling data + */ +@NgModule({ + declarations: [ + HebisSearchPageComponent, + HebisDetailComponent, + HebisDetailContentComponent, + DaiaAvailabilityComponent, + DaiaHoldingComponent, + ], + entryComponents: [DataListComponent], + imports: [ + CommonModule, + DataModule, + FormsModule, + HebisRoutingModule, + IonIconModule, + HttpClientModule, + IonicModule.forRoot(), + MarkdownModule.forRoot(), + MenuModule, + MomentModule.forRoot({ + relativeTimeThresholdOptions: { + m: 59, + }, + }), + ScrollingModule, + StorageModule, + TranslateModule.forChild(), + ThingTranslateModule.forChild(), + UtilModule, + ], + providers: [HebisDataProvider, DaiaDataProvider, StAppsWebHttpClient], +}) +export class HebisModule {} diff --git a/frontend/app/src/app/modules/hebis/list/hebis-search-page.component.ts b/frontend/app/src/app/modules/hebis/list/hebis-search-page.component.ts new file mode 100644 index 00000000..82259bcf --- /dev/null +++ b/frontend/app/src/app/modules/hebis/list/hebis-search-page.component.ts @@ -0,0 +1,188 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnDestroy, OnInit} from '@angular/core'; +import {ActivatedRoute, Router} from '@angular/router'; +import {AlertController, AnimationController} from '@ionic/angular'; +import {NGXLogger} from 'ngx-logger'; +import {combineLatest} from 'rxjs'; +import {debounceTime, distinctUntilChanged, startWith} from 'rxjs/operators'; +import {ContextMenuService} from '../../menu/context/context-menu.service'; +import {SettingsProvider} from '../../settings/settings.provider'; +import {DataRoutingService} from '../../data/data-routing.service'; +import {SearchPageComponent} from '../../data/list/search-page.component'; +import {HebisDataProvider} from '../hebis-data.provider'; +import {PositionService} from '../../map/position.service'; +import {ConfigProvider} from '../../config/config.provider'; + +/** + * HebisSearchPageComponent queries things and shows list of things as search results and filter as context menu + */ +@Component({ + selector: 'stapps-hebissearch-page', + templateUrl: 'hebis-search-page.html', + styleUrls: ['../../data/list/search-page.scss'], +}) +export class HebisSearchPageComponent extends SearchPageComponent implements OnInit, OnDestroy { + /** + * If routing should be done if the user clicks on an item + */ + @Input() itemRouting? = true; + + /** + * Current page to start query + */ + page = 0; + + /** + * Injects the providers and creates subscriptions + * + * @param alertController AlertController + * @param dataProvider HebisProvider + * @param contextMenuService ContextMenuService + * @param settingsProvider SettingsProvider + * @param logger An angular logger + * @param dataRoutingService DataRoutingService + * @param router Router + * @param route Active Route + * @param positionService PositionService + * @param configProvider ConfigProvider + */ + constructor( + protected readonly alertController: AlertController, + protected dataProvider: HebisDataProvider, + protected readonly contextMenuService: ContextMenuService, + protected readonly settingsProvider: SettingsProvider, + protected readonly logger: NGXLogger, + protected dataRoutingService: DataRoutingService, + protected router: Router, + route: ActivatedRoute, + protected positionService: PositionService, + configProvider: ConfigProvider, + animationController: AnimationController, + ) { + super( + alertController, + dataProvider, + contextMenuService, + settingsProvider, + logger, + dataRoutingService, + router, + route, + positionService, + configProvider, + animationController, + ); + } + + /** + * Fetches items with set query configuration + * + * @param append If true fetched data gets appended to existing, override otherwise (default false) + */ + protected async fetchAndUpdateItems(append = false): Promise { + // build query search options + const searchOptions: {page: number; query: string} = { + page: this.page, + query: '', + }; + + if (this.queryText && this.queryText.length > 0) { + // add query string + searchOptions.query = this.queryText; + } + + return this.dataProvider.hebisSearch(searchOptions).then( + async result => { + /*this.singleTypeResponse = + result.facets.find(facet => facet.field === 'type')?.buckets + .length === 1;*/ + if (append) { + let items = await this.items; + // append results + items = [...items, ...result.data]; + this.items = (async () => items)(); + } else { + // override items with results + this.items = (async () => { + return result.data; + })(); + } + }, + async error => { + const alert: HTMLIonAlertElement = await this.alertController.create({ + buttons: ['Dismiss'], + header: 'Error', + subHeader: error.message, + }); + + await alert.present(); + }, + ); + } + + /** + * Loads next page of things + */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + async loadMore(): Promise { + this.page += 1; + await this.fetchAndUpdateItems(true); + } + + ngOnInit() { + //this.fetchAndUpdateItems(); + this.initialize(); + + this.subscriptions.push( + combineLatest([ + this.queryTextChanged.pipe( + debounceTime(this.searchQueryDueTime), + distinctUntilChanged(), + startWith(this.queryText), + ), + ]).subscribe(async query => { + this.queryText = query[0]; + this.page = 0; + if (this.queryText?.length > 0 || this.showDefaultData) { + await this.fetchAndUpdateItems(); + this.queryChanged.next(); + } + }), + this.settingsProvider.settingsActionChanged$.subscribe(({type, payload}) => { + if (type === 'stapps.settings.changed') { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const {category, name, value} = payload!; + this.logger.log(`received event "settings.changed" with category: + ${category}, name: ${name}, value: ${JSON.stringify(value)}`); + } + }), + this.dataRoutingService.itemSelectListener().subscribe(async item => { + if (this.itemRouting) { + void this.router.navigate([ + 'hebis-detail', + (item.origin && 'originalId' in item.origin && item.origin['originalId']) || '', + ]); + } + }), + ); + } + + ngOnDestroy() { + for (const subscription of this.subscriptions) { + subscription.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/modules/hebis/list/hebis-search-page.html b/frontend/app/src/app/modules/hebis/list/hebis-search-page.html new file mode 100644 index 00000000..251fbaaa --- /dev/null +++ b/frontend/app/src/app/modules/hebis/list/hebis-search-page.html @@ -0,0 +1,66 @@ + + + + + + + + {{ 'hebisSearch.title' | translate }} + + + + + + + + {{ 'search.type' | translate }} + + {{ 'hebisSearch.type' | translate }} + + + + + +
+ + {{ 'hebisSearch.instruction' | translate }} + +
+ +
diff --git a/frontend/app/src/app/modules/hebis/protocol/request.ts b/frontend/app/src/app/modules/hebis/protocol/request.ts new file mode 100644 index 00000000..0a03c761 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/protocol/request.ts @@ -0,0 +1,20 @@ +import {SCLicensePlate} from '@openstapps/core'; + +export interface SCHebisSearchRequest { + /** + * HDS2 will supply results for the speficied insitute / university if available (Defaults to f-u) + */ + institute?: SCLicensePlate; + /** + * Simple pagination support (Defaults to 0) + */ + page?: number; + /** + * Search query for HDS + */ + query: string; +} + +export interface SCDaiaAvailabilityRequest { + id: string; +} diff --git a/frontend/app/src/app/modules/hebis/protocol/response.ts b/frontend/app/src/app/modules/hebis/protocol/response.ts new file mode 100644 index 00000000..f618af82 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/protocol/response.ts @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {SCArticle, SCBook, SCPeriodical, SCSearchResultPagination} from '@openstapps/core'; + +export interface HebisSearchResponse { + /** + * Response Array of SCBook type or Object + */ + data: Array; + + /** + * Pagination information + */ + pagination: SCSearchResultPagination; +} + +export interface DaiaAvailabilityResponse { + document: Array<{ + item: Array<{ + id: string; + label: string; + chronology?: { + about?: string; + }; + department: DaiaSimpleContent; + available: DaiaService[]; + unavailable: DaiaService[]; + debugInfo: string; + about?: string; + storage?: DaiaSimpleContent; + }>; + }>; + institution: DaiaSimpleContent; + timestamp: string; +} + +export interface DaiaSimpleContent { + id: string; + content: string; + href?: string; +} + +export interface DaiaService { + delay?: string; + href?: string; + service: string; + expected?: string; + limitations?: DaiaSimpleContent[]; +} + +export interface DaiaHolding { + id: string; + department: DaiaSimpleContent; + signature: string; + storage?: DaiaSimpleContent; + available?: DaiaService; + unavailable?: DaiaService; + about?: string; + online: boolean; + open?: boolean; + dueDate?: string; + holdings?: string; + status?: 'checked_out' | 'not_yet_available' | 'not_available' | 'library_only' | 'available' | 'unknown'; +} diff --git a/frontend/app/src/app/modules/hebis/protocol/route.ts b/frontend/app/src/app/modules/hebis/protocol/route.ts new file mode 100644 index 00000000..25e1be87 --- /dev/null +++ b/frontend/app/src/app/modules/hebis/protocol/route.ts @@ -0,0 +1,54 @@ +import { + SCAbstractRoute, + SCRouteHttpVerbs, + SCInternalServerErrorResponse, + SCMethodNotAllowedErrorResponse, + SCRequestBodyTooLargeErrorResponse, + SCSyntaxErrorResponse, + SCUnsupportedMediaTypeErrorResponse, + SCValidationErrorResponse, +} from '@openstapps/core'; + +/** + * Route for searching things + */ +export class SCHebisSearchRoute extends SCAbstractRoute { + constructor() { + super(); + this.errorNames = [ + SCInternalServerErrorResponse, + SCMethodNotAllowedErrorResponse, + SCRequestBodyTooLargeErrorResponse, + SCSyntaxErrorResponse, + SCUnsupportedMediaTypeErrorResponse, + SCValidationErrorResponse, + ]; + this.method = SCRouteHttpVerbs.POST; + this.requestBodyName = 'SCHebisSearchRequest'; + this.responseBodyName = 'SCHebisSearchResponse'; + this.statusCodeSuccess = 200; + this.urlPath = '/hebissearch'; + } +} + +/** + * Route for availability + */ +export class SCDaiaRoute extends SCAbstractRoute { + constructor() { + super(); + this.errorNames = [ + SCInternalServerErrorResponse, + SCMethodNotAllowedErrorResponse, + SCRequestBodyTooLargeErrorResponse, + SCSyntaxErrorResponse, + SCUnsupportedMediaTypeErrorResponse, + SCValidationErrorResponse, + ]; + this.method = SCRouteHttpVerbs.GET; + this.requestBodyName = 'SCDaiaAvailabilityRequest'; + this.responseBodyName = 'SCDaiaAvailabilityResponse'; + this.statusCodeSuccess = 200; + this.urlPath = '/UB_Frankfurt'; + } +} diff --git a/frontend/app/src/app/modules/library/account/account.page.html b/frontend/app/src/app/modules/library/account/account.page.html new file mode 100644 index 00000000..2c5b61be --- /dev/null +++ b/frontend/app/src/app/modules/library/account/account.page.html @@ -0,0 +1,50 @@ + + + + + + + + {{ 'library.account.title' | translate | titlecase }} + + + + +

+ {{ 'library.account.greeting' | translate }} + {{ name | firstLastName }}! + {{ 'library.account.login.success' | translate }} +

+ +

+
+ + {{ 'library.account.pages.profile.title' | translate | titlecase }} + + + {{ 'library.account.pages.holds.title' | translate | titlecase }} + + + {{ 'library.account.pages.checked_out.title' | translate | titlecase }} + + + {{ 'library.account.pages.fines.title' | translate | titlecase }} + +
diff --git a/frontend/app/src/app/modules/library/account/account.page.scss b/frontend/app/src/app/modules/library/account/account.page.scss new file mode 100644 index 00000000..b498ff0f --- /dev/null +++ b/frontend/app/src/app/modules/library/account/account.page.scss @@ -0,0 +1,4 @@ +ion-content { + --padding-start: 8px; + --padding-top: 8px; +} diff --git a/frontend/app/src/app/modules/library/account/account.page.ts b/frontend/app/src/app/modules/library/account/account.page.ts new file mode 100644 index 00000000..93d9d0db --- /dev/null +++ b/frontend/app/src/app/modules/library/account/account.page.ts @@ -0,0 +1,17 @@ +import {Component} from '@angular/core'; +import {LibraryAccountService} from './library-account.service'; + +@Component({ + templateUrl: './account.page.html', + styleUrls: ['./account.page.scss'], +}) +export class LibraryAccountPageComponent { + name?: string; + + constructor(private readonly libraryAccountService: LibraryAccountService) {} + + async ionViewWillEnter(): Promise { + const patron = await this.libraryAccountService.getProfile(); + this.name = patron?.name; + } +} diff --git a/frontend/app/src/app/modules/library/account/checked-out/checked-out-page.component.ts b/frontend/app/src/app/modules/library/account/checked-out/checked-out-page.component.ts new file mode 100644 index 00000000..0c1a756b --- /dev/null +++ b/frontend/app/src/app/modules/library/account/checked-out/checked-out-page.component.ts @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component} from '@angular/core'; +import {DocumentAction, PAIADocument, PAIADocumentStatus} from '../../types'; +import {LibraryAccountService} from '../library-account.service'; + +@Component({ + selector: 'app-checked-out', + templateUrl: './checked-out-page.html', + styleUrls: ['./checked-out-page.scss'], +}) +export class CheckedOutPageComponent { + checkedOutItems?: PAIADocument[]; + + constructor(private readonly libraryAccountService: LibraryAccountService) {} + + async ionViewWillEnter(): Promise { + await this.fetchItems(); + } + + async onDocumentAction(documentAction: DocumentAction) { + const answer = await this.libraryAccountService.handleDocumentAction(documentAction); + + if (answer) await this.fetchItems(); + } + + async fetchItems() { + try { + this.checkedOutItems = undefined; + this.checkedOutItems = await this.libraryAccountService.getFilteredItems([PAIADocumentStatus.Held]); + } catch { + await this.libraryAccountService.handleError(); + this.checkedOutItems = []; + } + } +} diff --git a/frontend/app/src/app/modules/library/account/checked-out/checked-out-page.html b/frontend/app/src/app/modules/library/account/checked-out/checked-out-page.html new file mode 100644 index 00000000..5281d107 --- /dev/null +++ b/frontend/app/src/app/modules/library/account/checked-out/checked-out-page.html @@ -0,0 +1,47 @@ + + + + + + + + {{ 'library.account.pages.checked_out.title' | translate | titlecase }} + + + + + + + + + + + + + {{ 'search.nothing_found' | translate | titlecase }} + + + + diff --git a/frontend/app/src/app/modules/library/account/checked-out/checked-out-page.scss b/frontend/app/src/app/modules/library/account/checked-out/checked-out-page.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/library/account/elements/fee-item/fee-item.component.ts b/frontend/app/src/app/modules/library/account/elements/fee-item/fee-item.component.ts new file mode 100644 index 00000000..c526007f --- /dev/null +++ b/frontend/app/src/app/modules/library/account/elements/fee-item/fee-item.component.ts @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input} from '@angular/core'; +import {PAIAFee} from '../../../types'; +import {SCArticle, SCBook, SCPeriodical} from '@openstapps/core'; +import {LibraryAccountService} from '../../library-account.service'; + +@Component({ + selector: 'stapps-fee-item', + templateUrl: './fee-item.html', + styleUrls: ['./fee-item.scss'], +}) +export class FeeItemComponent { + _fee: PAIAFee; + + book?: SCBook | SCPeriodical | SCArticle; + + hasEdition = false; + + @Input() + set fee(fee: PAIAFee) { + this.hasEdition = !fee.edition?.includes('null'); + this._fee = fee; + if (this.hasEdition) { + this.libraryAccountService.getDocumentFromHDS(fee.edition as string).then(book => { + this.book = book; + }); + } + } + + get fee() { + return this._fee; + } + + propertiesToShow: (keyof PAIAFee)[] = ['about', 'date', 'amount']; + + constructor(private readonly libraryAccountService: LibraryAccountService) {} +} diff --git a/frontend/app/src/app/modules/library/account/elements/fee-item/fee-item.html b/frontend/app/src/app/modules/library/account/elements/fee-item/fee-item.html new file mode 100644 index 00000000..fc6a6957 --- /dev/null +++ b/frontend/app/src/app/modules/library/account/elements/fee-item/fee-item.html @@ -0,0 +1,40 @@ + + + + + +

+ {{ 'library.account.pages.fines.labels.edition' | translate }}: + {{ book.name }} +

+

+

+
+ +

+ {{ 'library.account.pages.fines.labels' + '.' + property | translate }}: + + {{ fee[property] }} + + + {{ fee[property] | amDateFormat: 'll' }} + +

+
+
diff --git a/frontend/app/src/app/modules/library/account/elements/fee-item/fee-item.scss b/frontend/app/src/app/modules/library/account/elements/fee-item/fee-item.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.component.ts b/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.component.ts new file mode 100644 index 00000000..e08546e6 --- /dev/null +++ b/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.component.ts @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, EventEmitter, Input, Output} from '@angular/core'; +import {DocumentAction, PAIADocument} from '../../../types'; + +@Component({ + selector: 'stapps-paia-item', + templateUrl: './paiaitem.html', + styleUrls: ['./paiaitem.scss'], +}) +export class PAIAItemComponent { + @Input() item: PAIADocument; + + @Input() + propertiesToShow: (keyof PAIADocument)[]; + + @Input() + listName: string; + + @Output() + documentAction: EventEmitter = new EventEmitter(); + + async onClick(action: DocumentAction['action']) { + this.documentAction.emit({doc: this.item, action}); + } +} diff --git a/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.html b/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.html new file mode 100644 index 00000000..0831edd4 --- /dev/null +++ b/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.html @@ -0,0 +1,45 @@ + + + + +

{{ item.about }}

+ +

+ {{ 'library.account.pages' + '.' + listName + '.' + 'labels' + '.' + property | translate }}: + + {{ item[property] }} + + + {{ item[property] | amDateFormat: 'll' }} + +

+
+ + + + + + + + + + + {{ 'library.account.actions.renew.header' | translate }} + +
+
diff --git a/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.scss b/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.scss new file mode 100644 index 00000000..7f595d7f --- /dev/null +++ b/frontend/app/src/app/modules/library/account/elements/paia-item/paiaitem.scss @@ -0,0 +1,14 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ diff --git a/frontend/app/src/app/modules/library/account/fines/fines-page.component.ts b/frontend/app/src/app/modules/library/account/fines/fines-page.component.ts new file mode 100644 index 00000000..f530bc12 --- /dev/null +++ b/frontend/app/src/app/modules/library/account/fines/fines-page.component.ts @@ -0,0 +1,44 @@ +import {Component} from '@angular/core'; +import {LibraryAccountService} from '../library-account.service'; +import {PAIAFee} from '../../types'; + +@Component({ + selector: 'app-fines', + templateUrl: './fines-page.html', + styleUrls: ['./fines-page.scss'], +}) +export class FinesPageComponent { + amount?: string; + + fines: PAIAFee[]; + + constructor(private readonly libraryAccountService: LibraryAccountService) {} + + async ionViewWillEnter(): Promise { + await this.fetchItems(); + } + + private async cleanUp(fines: PAIAFee[]): Promise { + for (const fine of fines) { + for (const property in fine) { + // remove properties with "null" included + if (fine[property]?.includes('null')) { + delete fine.item; + } + } + } + return fines; + } + + async fetchItems() { + try { + const fees = await this.libraryAccountService.getFees(); + if (fees) { + this.amount = fees.amount; + this.fines = await this.cleanUp(fees.fee); + } + } catch { + await this.libraryAccountService.handleError(); + } + } +} diff --git a/frontend/app/src/app/modules/library/account/fines/fines-page.html b/frontend/app/src/app/modules/library/account/fines/fines-page.html new file mode 100644 index 00000000..6cad3e0d --- /dev/null +++ b/frontend/app/src/app/modules/library/account/fines/fines-page.html @@ -0,0 +1,47 @@ + + + + + + + + {{ 'library.account.pages.fines.title' | translate | titlecase }} + + + + + + + + + + + + + {{ 'library.account.pages.fines.labels.total_amount' | translate }}: + + {{ amount }} + + + + + + + + + + + diff --git a/frontend/app/src/app/modules/library/account/fines/fines-page.scss b/frontend/app/src/app/modules/library/account/fines/fines-page.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/library/account/first-last-name.pipe.ts b/frontend/app/src/app/modules/library/account/first-last-name.pipe.ts new file mode 100644 index 00000000..23dc22e7 --- /dev/null +++ b/frontend/app/src/app/modules/library/account/first-last-name.pipe.ts @@ -0,0 +1,10 @@ +import {Pipe, PipeTransform} from '@angular/core'; + +@Pipe({ + name: 'firstLastName', +}) +export class FirstLastNamePipe implements PipeTransform { + transform(value: string): unknown { + return value.split(', ').reverse().join(' '); + } +} diff --git a/frontend/app/src/app/modules/library/account/holds/holds-page.component.ts b/frontend/app/src/app/modules/library/account/holds/holds-page.component.ts new file mode 100644 index 00000000..0a0f2f2f --- /dev/null +++ b/frontend/app/src/app/modules/library/account/holds/holds-page.component.ts @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component} from '@angular/core'; +import {DocumentAction, PAIADocument, PAIADocumentStatus} from '../../types'; +import {LibraryAccountService} from '../library-account.service'; + +type Segment = 'orders' | 'reservations'; + +@Component({ + selector: 'stapps-holds', + templateUrl: './holds-page.html', + styleUrls: ['./holds-page.scss'], +}) +export class HoldsPageComponent { + paiaDocuments?: PAIADocument[]; + + paiaDocumentStatus = PAIADocumentStatus; + + activeSegment: Segment = 'orders'; + + constructor(private readonly libraryAccountService: LibraryAccountService) {} + + async ionViewWillEnter(): Promise { + await this.fetchItems(this.activeSegment); + } + + async fetchItems(segment: Segment) { + this.activeSegment = segment; + this.paiaDocuments = undefined; + const itemsStatus = + segment === 'reservations' + ? [PAIADocumentStatus.Reserved] + : [PAIADocumentStatus.Ordered, PAIADocumentStatus.Provided]; + try { + this.paiaDocuments = await this.libraryAccountService.getFilteredItems(itemsStatus); + } catch { + await this.libraryAccountService.handleError(); + this.paiaDocuments = []; + } + } + + toNumber = Number; + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + async segmentChanged(event: any) { + await this.fetchItems(event.detail.value); + } + + async onDocumentAction(documentAction: DocumentAction) { + const answer = await this.libraryAccountService.handleDocumentAction(documentAction); + + if (answer) await this.fetchItems(this.activeSegment); + } +} diff --git a/frontend/app/src/app/modules/library/account/holds/holds-page.html b/frontend/app/src/app/modules/library/account/holds/holds-page.html new file mode 100644 index 00000000..f61a8599 --- /dev/null +++ b/frontend/app/src/app/modules/library/account/holds/holds-page.html @@ -0,0 +1,79 @@ + + + + + + + + {{ 'library.account.pages.holds.title' | translate | titlecase }} + + + + + + {{ 'library.account.pages.holds.holds' | translate }} + + + {{ 'library.account.pages.holds.reservations' | translate }} + + + + + + + + + + + + + + + + + + + + + + + + + {{ 'search.nothing_found' | translate | titlecase }} + + + + diff --git a/frontend/app/src/app/modules/library/account/holds/holds-page.scss b/frontend/app/src/app/modules/library/account/holds/holds-page.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/library/account/library-account.service.ts b/frontend/app/src/app/modules/library/account/library-account.service.ts new file mode 100644 index 00000000..ceedf1e1 --- /dev/null +++ b/frontend/app/src/app/modules/library/account/library-account.service.ts @@ -0,0 +1,222 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {JQueryRequestor, Requestor} from '@openid/appauth'; +import { + SCAuthorizationProviderType, + SCFeatureConfiguration, + SCFeatureConfigurationExtern, +} from '@openstapps/core'; +import {DocumentAction, PAIADocument, PAIADocumentStatus, PAIAFees, PAIAItems, PAIAPatron} from '../types'; +import {HebisDataProvider} from '../../hebis/hebis-data.provider'; +import {PAIATokenResponse} from '../../auth/paia/paia-token-response'; +import {AuthHelperService} from '../../auth/auth-helper.service'; +import {ConfigProvider} from '../../config/config.provider'; +import {TranslateService} from '@ngx-translate/core'; +import {AlertController, ToastController} from '@ionic/angular'; +import {HebisSearchResponse} from '../../hebis/protocol/response'; + +@Injectable({ + providedIn: 'root', +}) +export class LibraryAccountService { + /** + * Base url of the external service + */ + baseUrl: string; + + /** + * Authorization provider type + */ + authType: SCAuthorizationProviderType; + + constructor( + protected requestor: Requestor = new JQueryRequestor(), + private readonly hebisDataProvider: HebisDataProvider, + private readonly authHelper: AuthHelperService, + readonly configProvider: ConfigProvider, + private readonly translateService: TranslateService, + private readonly alertController: AlertController, + private readonly toastController: ToastController, + ) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const config: SCFeatureConfigurationExtern = ( + configProvider.getValue('features') as SCFeatureConfiguration + ).extern!.paia; + this.baseUrl = config.url; + this.authType = config.authProvider as SCAuthorizationProviderType; + } + + async getProfile() { + const patron = ((await this.getValidToken()) as PAIATokenResponse).patron; + return { + ...(await this.performRequest(`${this.baseUrl}/{patron}`)), + id: patron, + } as PAIAPatron; + } + + async getItems() { + return this.performRequest(`${this.baseUrl}/{patron}/items`); + } + + async getFees() { + return this.performRequest(`${this.baseUrl}/{patron}/fees`); + } + + async getValidToken() { + return this.authHelper.getProvider(this.authType).getValidToken(); + } + + private async performRequest( + urlTemplate: string, + method = 'GET', + data?: JQuery.PlainObject, + ): Promise { + const token = await this.getValidToken(); + const url = urlTemplate.replace('{patron}', (token as PAIATokenResponse).patron); + const settings: JQueryAjaxSettings = { + url: url, + dataType: 'json', + method: method, + headers: { + 'Authorization': `Bearer: ${token.accessToken}`, + 'Content-Type': 'application/json', + }, + }; + + if (method === 'POST') settings.data = data; + + let result: T; + + try { + result = await this.requestor.xhr(settings); + return result; + } catch { + void this.handleError(); + } + + return; + } + + getRawId(input: string) { + return input.split(':').pop(); + } + + async getFilteredItems(documentStatus: PAIADocumentStatus[]) { + return (await this.getItems())?.doc.filter(document => { + return documentStatus.includes(Number(document.status) as PAIADocumentStatus); + }); + } + + async getDocumentFromHDS(edition: string) { + if (typeof edition === 'undefined') { + return; + } + + let response: HebisSearchResponse; + + try { + response = await this.hebisDataProvider.hebisSearch( + { + query: this.getRawId(edition) as string, + page: 0, + }, + {addPrefix: true}, + ); + return response.data[0]; + } catch { + await this.handleError(); + } + + return; + } + + async cancelReservation(document: PAIADocument) { + const result = await this.performRequest(`${this.baseUrl}/{patron}/cancel`, 'POST', { + doc: [document], + }); + if (result) { + void this.onSuccess('cancel'); + } + } + + async renewLending(document: PAIADocument) { + const result = await this.performRequest(`${this.baseUrl}/{patron}/renew`, 'POST', { + doc: [document], + }); + if (result) { + void this.onSuccess('renew'); + } + } + + async handleDocumentAction(documentAction: DocumentAction): Promise { + return new Promise(async resolve => { + const handleDocument = () => { + switch (documentAction.action) { + case 'cancel': + return this.cancelReservation(documentAction.doc); + break; + case 'renew': + return this.renewLending(documentAction.doc); + } + }; + const alert = await this.alertController.create({ + buttons: [ + { + role: 'cancel', + text: this.translateService.instant('abort'), + handler: () => { + resolve(false); + }, + }, + { + handler: async () => { + await handleDocument(); + resolve(true); + }, + text: this.translateService.instant('OK'), + }, + ], + header: this.translateService.instant(`library.account.actions.${documentAction.action}.header`), + message: this.translateService.instant(`library.account.actions.${documentAction.action}.text`, { + value: + documentAction.doc.about ?? + this.translateService.instant(`library.account.actions.${documentAction.doc.about}.unknown_book`), + }), + }); + await alert.present(); + }); + } + + async handleError() { + const alert = await this.alertController.create({ + header: this.translateService.instant('app.ui.ERROR'), + message: this.translateService.instant('app.errors.SERVICE'), + buttons: ['OK'], + }); + + await alert.present(); + } + + async onSuccess(action: DocumentAction['action']) { + const toast = await this.toastController.create({ + message: this.translateService.instant(`library.account.actions.${action}.success`), + duration: 2000, + color: 'success', + }); + await toast.present(); + } +} diff --git a/frontend/app/src/app/modules/library/account/profile/profile-page.component.ts b/frontend/app/src/app/modules/library/account/profile/profile-page.component.ts new file mode 100644 index 00000000..d3772aca --- /dev/null +++ b/frontend/app/src/app/modules/library/account/profile/profile-page.component.ts @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component} from '@angular/core'; +import {LibraryAccountService} from '../library-account.service'; +import {PAIAPatron} from '../../types'; + +@Component({ + selector: 'app-profile', + templateUrl: './profile-page.html', + styleUrls: ['./profile-page.scss'], +}) +export class ProfilePageComponent { + patron?: PAIAPatron; + + propertiesToShow: (keyof PAIAPatron)[] = ['id', 'name', 'email', 'address', 'expires', 'note']; + + constructor(private readonly libraryAccountService: LibraryAccountService) {} + + async ionViewWillEnter(): Promise { + try { + this.patron = await this.libraryAccountService.getProfile(); + } catch { + await this.libraryAccountService.handleError(); + } + } +} diff --git a/frontend/app/src/app/modules/library/account/profile/profile-page.html b/frontend/app/src/app/modules/library/account/profile/profile-page.html new file mode 100644 index 00000000..e84e31fa --- /dev/null +++ b/frontend/app/src/app/modules/library/account/profile/profile-page.html @@ -0,0 +1,54 @@ + + + + + + + + {{ 'library.account.pages.profile.title' | translate | titlecase }} + + + + + + + + + {{ 'library.account.pages.profile.labels' + '.' + property | translate }}: + + + {{ patron[property] }} + + + + {{ 'library.account.pages.profile.values.unlimited' | translate }} + + + {{ 'library.account.pages.profile.values.expires' | translate }}: {{ + patron[property] | amDateFormat: 'll' + }} + + + + + + + + + + + + diff --git a/frontend/app/src/app/modules/library/account/profile/profile-page.scss b/frontend/app/src/app/modules/library/account/profile/profile-page.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/library/library.module.ts b/frontend/app/src/app/modules/library/library.module.ts new file mode 100644 index 00000000..8cef1d92 --- /dev/null +++ b/frontend/app/src/app/modules/library/library.module.ts @@ -0,0 +1,93 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {NgModule} from '@angular/core'; +import {CommonModule} from '@angular/common'; +import {FormsModule} from '@angular/forms'; +import {IonicModule} from '@ionic/angular'; +import {RouterModule, Routes} from '@angular/router'; +import {TranslateModule} from '@ngx-translate/core'; +import {LibraryAccountPageComponent} from './account/account.page'; +import {ProfilePageComponent} from './account/profile/profile-page.component'; +import {CheckedOutPageComponent} from './account/checked-out/checked-out-page.component'; +import {HoldsPageComponent} from './account/holds/holds-page.component'; +import {FinesPageComponent} from './account/fines/fines-page.component'; +import {PAIAItemComponent} from './account/elements/paia-item/paiaitem.component'; +import {FirstLastNamePipe} from './account/first-last-name.pipe'; +import {AuthGuardService} from '../auth/auth-guard.service'; +import {ProtectedRoutes} from '../auth/protected.routes'; +import {MomentModule} from 'ngx-moment'; +import {FeeItemComponent} from './account/elements/fee-item/fee-item.component'; +import {DataModule} from '../data/data.module'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +const routes: ProtectedRoutes | Routes = [ + { + path: 'library-account', + component: LibraryAccountPageComponent, + data: {authProvider: 'paia'}, + canActivate: [AuthGuardService], + }, + { + path: 'library-account/profile', + component: ProfilePageComponent, + data: {authProvider: 'paia'}, + canActivate: [AuthGuardService], + }, + { + path: 'library-account/checked-out', + component: CheckedOutPageComponent, + data: {authProvider: 'paia'}, + canActivate: [AuthGuardService], + }, + { + path: 'library-account/holds', + component: HoldsPageComponent, + data: {authProvider: 'paia'}, + canActivate: [AuthGuardService], + }, + { + path: 'library-account/fines', + component: FinesPageComponent, + data: {authProvider: 'paia'}, + canActivate: [AuthGuardService], + }, +]; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + IonIconModule, + RouterModule.forChild(routes), + TranslateModule, + MomentModule, + DataModule, + UtilModule, + ], + declarations: [ + LibraryAccountPageComponent, + ProfilePageComponent, + CheckedOutPageComponent, + HoldsPageComponent, + FinesPageComponent, + PAIAItemComponent, + FirstLastNamePipe, + FeeItemComponent, + ], +}) +export class LibraryModule {} diff --git a/frontend/app/src/app/modules/library/types.ts b/frontend/app/src/app/modules/library/types.ts new file mode 100644 index 00000000..dcdf33a7 --- /dev/null +++ b/frontend/app/src/app/modules/library/types.ts @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +export interface PAIAPatron { + id: string; + name: string; + email?: string; + address?: string; + expires?: string; + status?: string; + type?: string; + note?: string; +} + +/* + * Document representing a library item received from the HeBIS PAIA service + * TODO: would be good to standardize the items of HeBIS PAIA to match the official PAIA documentation + * e.g. status should be number (0-5), and queue, renewals, reminder should be numbers too + * https://gbv.github.io/paia/paia.html#documents + */ +export interface PAIADocument { + status: string; + item?: string; + edition?: string; + about?: string; + label?: string; + queue?: string; + renewals?: string; + reminder?: string; + endtime?: string; + duedate?: string; + cancancel?: boolean; + canrenew?: boolean; + storage?: string; + // with locations + condition?: unknown; +} + +export interface PAIAItems { + doc: PAIADocument[]; +} + +export interface PAIAFee { + amount: string; + date?: string; + about?: string; + item?: string; + edition?: string; + feetype?: string; + feeid?: string; +} + +export interface PAIAFees { + amount?: string; + fee: PAIAFee[]; +} + +export enum PAIADocumentStatus { + NoRelation = 0, + Reserved = 1, + Ordered = 2, + Held = 3, + Provided = 4, + Rejected = 5, +} + +export interface DocumentAction { + action: 'cancel' | 'renew'; + doc: PAIADocument; +} diff --git a/frontend/app/src/app/modules/map/item/map-item.component.html b/frontend/app/src/app/modules/map/item/map-item.component.html new file mode 100644 index 00000000..ffdb98bd --- /dev/null +++ b/frontend/app/src/app/modules/map/item/map-item.component.html @@ -0,0 +1,36 @@ + + + + + + + + + + + {{ $any(item).inPlace.name }}, + {{ address.streetAddress }}, {{ address.addressLocality }} + + + {{ 'map.page.buttons.MORE' | translate }} + + diff --git a/frontend/app/src/app/modules/map/item/map-item.component.scss b/frontend/app/src/app/modules/map/item/map-item.component.scss new file mode 100644 index 00000000..84083b77 --- /dev/null +++ b/frontend/app/src/app/modules/map/item/map-item.component.scss @@ -0,0 +1,71 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@import '../../../../theme/util/mixins'; + +:host { + display: block; + max-width: 100%; + + ion-card { + padding: 0; + overflow: visible; + + ion-card-header { + padding: 0; + border-bottom: var(--border-width-default) solid var(--border-color-default); + + stapps-data-list-item { + --ion-margin: 0; + + &::ng-deep ion-item { + --padding-start: 0; + --padding-end: 0; + + ion-label { + white-space: break-spaces; + } + } + } + + .close { + position: absolute; + top: -15px; + right: -15px; + z-index: 1; + --padding-top: 0; + --padding-bottom: 0; + --padding-start: 0; + --padding-end: 0; + + ion-icon { + width: 30px; + height: 30px; + } + } + } + + ion-card-content { + padding: var(--spacing-md); + display: flex; + flex-direction: row; + + .show-more-button { + text-transform: uppercase; + margin-left: auto; + } + } + } +} diff --git a/frontend/app/src/app/modules/map/item/map-item.component.ts b/frontend/app/src/app/modules/map/item/map-item.component.ts new file mode 100644 index 00000000..856339ab --- /dev/null +++ b/frontend/app/src/app/modules/map/item/map-item.component.ts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, EventEmitter, Input, Output} from '@angular/core'; +import {SCPlace} from '@openstapps/core'; +import {IonRouterOutlet} from '@ionic/angular'; + +@Component({ + selector: 'stapps-map-item', + templateUrl: './map-item.component.html', + styleUrls: ['./map-item.component.scss'], +}) +export class MapItemComponent { + /** + * An item to show + */ + @Input() item: SCPlace; + + // eslint-disable-next-line @angular-eslint/no-output-on-prefix + @Output() onClose = new EventEmitter(); + + constructor(readonly routerOutlet: IonRouterOutlet) {} + + /** + * Action when edit is clicked + */ + onCloseClick() { + this.onClose.emit(); + } +} diff --git a/frontend/app/src/app/modules/map/map.module.ts b/frontend/app/src/app/modules/map/map.module.ts new file mode 100644 index 00000000..9868bc36 --- /dev/null +++ b/frontend/app/src/app/modules/map/map.module.ts @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CommonModule} from '@angular/common'; +import {FormsModule} from '@angular/forms'; +import {RouterModule, Routes} from '@angular/router'; +import {LeafletModule} from '@asymmetrik/ngx-leaflet'; +import {LeafletMarkerClusterModule} from '@asymmetrik/ngx-leaflet-markercluster'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {Polygon} from 'geojson'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {ConfigProvider} from '../config/config.provider'; +import {DataFacetsProvider} from '../data/data-facets.provider'; +import {DataModule} from '../data/data.module'; +import {DataProvider} from '../data/data.provider'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {MenuModule} from '../menu/menu.module'; +import {MapProvider} from './map.provider'; +import {MapPageComponent} from './page/map-page.component'; +import {MapListModalComponent} from './page/modals/map-list-modal.component'; +import {MapSingleModalComponent} from './page/modals/map-single-modal.component'; +import {MapItemComponent} from './item/map-item.component'; +import {NgModule} from '@angular/core'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +/** + * Initializes the default area to show in advance (before components are initialized) + * + * @param configProvider An instance of the ConfigProvider to read the campus polygon from + * @param mapProvider An instance of the MapProvider to set the default polygon (area to show on the map) + */ +export function initMapConfigFactory(configProvider: ConfigProvider, mapProvider: MapProvider) { + return async () => { + mapProvider.defaultPolygon = (await configProvider.getValue('campusPolygon')) as Polygon; + }; +} + +const mapRoutes: Routes = [ + {path: 'map', component: MapPageComponent}, + {path: 'map/:uid', component: MapPageComponent}, +]; + +/** + * Module containing map related stuff + */ +@NgModule({ + declarations: [MapPageComponent, MapListModalComponent, MapSingleModalComponent, MapItemComponent], + exports: [], + imports: [ + CommonModule, + IonicModule.forRoot(), + LeafletModule, + IonIconModule, + LeafletMarkerClusterModule, + RouterModule.forChild(mapRoutes), + TranslateModule.forChild(), + MenuModule, + DataModule, + FormsModule, + ThingTranslateModule, + UtilModule, + ], + providers: [Geolocation, MapProvider, DataProvider, DataFacetsProvider, StAppsWebHttpClient], +}) +export class MapModule {} diff --git a/frontend/app/src/app/modules/map/map.provider.spec.ts b/frontend/app/src/app/modules/map/map.provider.spec.ts new file mode 100644 index 00000000..566eeaa5 --- /dev/null +++ b/frontend/app/src/app/modules/map/map.provider.spec.ts @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {TestBed} from '@angular/core/testing'; + +import {MapProvider} from './map.provider'; +import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider'; +import {HttpClientModule} from '@angular/common/http'; +import {StorageProvider} from '../storage/storage.provider'; +import {MapModule} from './map.module'; +import {StorageModule} from '../storage/storage.module'; +import {LoggerModule, NGXLogger, NgxLoggerLevel} from 'ngx-logger'; +import {ConfigProvider} from '../config/config.provider'; +import {sampleDefaultPolygon} from '../../_helpers/data/sample-configuration'; +import {RouterModule} from '@angular/router'; + +describe('MapProvider', () => { + let provider: MapProvider; + let configProvider: jasmine.SpyObj; + + beforeEach(() => { + configProvider = jasmine.createSpyObj('ConfigProvider', ['getValue']); + TestBed.configureTestingModule({ + imports: [ + MapModule, + HttpClientModule, + StorageModule, + LoggerModule.forRoot({level: NgxLoggerLevel.TRACE}), + RouterModule.forRoot([]), + ], + providers: [ + { + provide: ConfigProvider, + useValue: configProvider, + }, + StAppsWebHttpClient, + StorageProvider, + NGXLogger, + ], + }); + + configProvider.getValue.and.returnValue(sampleDefaultPolygon); + provider = TestBed.inject(MapProvider); + }); + + it('should be created', () => { + expect(provider).toBeTruthy(); + }); +}); diff --git a/frontend/app/src/app/modules/map/map.provider.ts b/frontend/app/src/app/modules/map/map.provider.ts new file mode 100644 index 00000000..1729c346 --- /dev/null +++ b/frontend/app/src/app/modules/map/map.provider.ts @@ -0,0 +1,242 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {ElementRef, Injectable} from '@angular/core'; +import { + SCBuilding, + SCSearchFilter, + SCSearchQuery, + SCSearchResponse, + SCThingType, + SCUuid, +} from '@openstapps/core'; +import {Point, Polygon} from 'geojson'; +import {divIcon, geoJSON, LatLng, Map, marker, Marker} from 'leaflet'; +import {DataProvider} from '../data/data.provider'; +import {MapPosition, PositionService} from './position.service'; +import {hasValidLocation} from '../data/types/place/place-types'; +import {ConfigProvider} from '../config/config.provider'; +import {SCIcon} from '../../util/ion-icon/icon'; + +/** + * Provides methods for presenting the map + */ +@Injectable({ + providedIn: 'root', +}) +export class MapProvider { + /** + * Area to show when the map is initialized (shown for the first time) + */ + defaultPolygon: Polygon; + + /** + * Provide a point marker for a leaflet map + * + * @param point Point to get marker for + * @param className CSS class name + * @param iconSize Size of the position icon + */ + static getPointMarker(point: Point, className: string, iconSize: number) { + return marker(geoJSON(point).getBounds().getCenter(), { + icon: divIcon({ + className: className, + html: `${SCIcon`location_on`}`, + iconSize: [iconSize, iconSize], + iconAnchor: [iconSize / 2, iconSize], + }), + }); + } + + /** + * Provide a position marker for a leaflet map + * + * @param position Current position + * @param className CSS class name + * @param iconSize Size of the position icon + */ + static getPositionMarker(position: MapPosition, className: string, iconSize: number) { + return new Marker(new LatLng(position.latitude, position.longitude), { + icon: divIcon({ + className: className, + html: + typeof position.heading !== 'undefined' + ? `${SCIcon`navigation`}` + : `${SCIcon`person_pin_circle`}`, + iconSize: [iconSize, iconSize], + }), + zIndexOffset: 1000, + }); + } + + /** + * Fixes the issue of missing tiles when map renders before its container element + * + * @param map The initialized map + * @param element The element containing the map + * @param interval Interval to clear when map's appearance is corrected + */ + static invalidateWhenRendered = (map: Map, element: ElementRef, interval: number) => { + if (element.nativeElement.offsetWidth === 0) { + return; + } + + // map's container is ready + map.invalidateSize(); + // stop repeating when it's rendered and invalidateSize done + clearInterval(interval); + }; + + constructor( + private dataProvider: DataProvider, + private positionService: PositionService, + private configProvider: ConfigProvider, + ) { + this.defaultPolygon = this.configProvider.getValue('campusPolygon') as Polygon; + } + + /** + * Provide the specific place by its UID + * + * @param uid UUID of the place to look for + */ + async searchPlace(uid: SCUuid): Promise { + const uidFilter: SCSearchFilter = { + arguments: { + field: 'uid', + value: uid, + }, + type: 'value', + }; + + return this.dataProvider.search({filter: uidFilter}); + } + + /** + * Provide places (buildings and canteens) const result = await this.dataProvider.search(query); + * + * @param contextFilter Additional contextual filter (e.g. from the context menu) + * @param queryText Query (text) of the search query + */ + async searchPlaces(contextFilter?: SCSearchFilter, queryText?: string): Promise { + const buildingFilter: SCSearchFilter = { + arguments: { + field: 'type', + value: SCThingType.Building, + }, + type: 'value', + }; + + const mensaFilter: SCSearchFilter = { + arguments: { + filters: [ + { + arguments: { + field: 'categories', + value: 'canteen', + }, + type: 'value', + }, + { + arguments: { + field: 'categories', + value: 'student canteen', + }, + type: 'value', + }, + { + arguments: { + field: 'categories', + value: 'cafe', + }, + type: 'value', + }, + { + arguments: { + field: 'categories', + value: 'restaurant', + }, + type: 'value', + }, + ], + operation: 'or', + }, + type: 'boolean', + }; + + // initial filter for the places + const baseFilter: SCSearchFilter = { + arguments: { + operation: 'or', + filters: [buildingFilter, mensaFilter], + }, + type: 'boolean', + }; + + let filter = baseFilter; + + if (typeof contextFilter !== 'undefined') { + filter = { + arguments: { + operation: 'and', + filters: [baseFilter, contextFilter], + }, + type: 'boolean', + }; + } + + const query: SCSearchQuery = { + filter, + }; + + if (queryText && queryText.length > 0) { + query.query = queryText; + } + + if (this.positionService.position) { + query.sort = [ + { + type: 'distance', + order: 'asc', + arguments: { + field: 'geo', + position: [this.positionService.position.longitude, this.positionService.position.latitude], + }, + }, + ]; + } + + const result = await this.dataProvider.search(query); + + result.data = result.data.filter(place => hasValidLocation(place as SCBuilding)); + + return result; + } +} diff --git a/frontend/app/src/app/modules/map/page/map-page.component.ts b/frontend/app/src/app/modules/map/page/map-page.component.ts new file mode 100644 index 00000000..b2628d34 --- /dev/null +++ b/frontend/app/src/app/modules/map/page/map-page.component.ts @@ -0,0 +1,433 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Location} from '@angular/common'; +import {ChangeDetectorRef, Component, ElementRef, ViewChild} from '@angular/core'; +import {ActivatedRoute, Router} from '@angular/router'; +import {Keyboard} from '@capacitor/keyboard'; +import {AlertController, IonRouterOutlet, ModalController} from '@ionic/angular'; +import {TranslateService} from '@ngx-translate/core'; +import {SCBuilding, SCPlace, SCRoom, SCSearchFilter, SCUuid} from '@openstapps/core'; +import {featureGroup, geoJSON, LatLng, Layer, Map, MapOptions, Marker, tileLayer} from 'leaflet'; +import {Subscription} from 'rxjs'; +import {DataRoutingService} from '../../data/data-routing.service'; +import {ContextMenuService} from '../../menu/context/context-menu.service'; +import {MapProvider} from '../map.provider'; +import {MapPosition, PositionService} from '../position.service'; +import {Geolocation, PermissionStatus} from '@capacitor/geolocation'; +import {Capacitor} from '@capacitor/core'; + +/** + * The main page of the map + */ +@Component({ + styleUrls: ['./map-page.scss'], + templateUrl: './map-page.html', + providers: [ContextMenuService], +}) +export class MapPageComponent { + /** + * Default map zoom level + */ + DEFAULT_ZOOM = 16; + + /** + * Distance to the shown place + */ + distance?: number; + + /** + * Api query filter + */ + filterQuery?: SCSearchFilter; + + /** + * Places to show + */ + items: SCPlace[] = []; + + /** + * Leaflet (map) layers to show items on (not the position) + */ + layers: Layer[] = []; + + /** + * Location settings on the user's device + */ + locationStatus?: PermissionStatus; + + /** + * The leaflet map + */ + map: Map; + + /** + * Container element of the map + */ + @ViewChild('mapContainer') mapContainer: ElementRef; + + /** + * Map layers to show as marker clusters + */ + markerClusterData: Layer[] = []; + + /** + * Options how to show the marker clusters + */ + markerClusterOptions = { + // don't show rectangles containing the markers in a cluster + showCoverageOnHover: false, + }; + + /** + * Maximal map zoom level + */ + MAX_ZOOM = 18; + + /** + * Options of the leaflet map + */ + options: MapOptions; + + /** + * Position of the user on the map + */ + position: MapPosition | null; + + /** + * Marker showing the position of the user on the map + */ + positionMarker: Marker; + + /** + * Search value from search bar + */ + queryText: string; + + /** + * Subscriptions used by the page + */ + subscriptions: Subscription[] = []; + + constructor( + private translateService: TranslateService, + private router: Router, + private mapProvider: MapProvider, + public location: Location, + private ref: ChangeDetectorRef, + private readonly contextMenuService: ContextMenuService, + private alertController: AlertController, + private route: ActivatedRoute, + private modalController: ModalController, + private dataRoutingService: DataRoutingService, + private positionService: PositionService, + readonly routerOutlet: IonRouterOutlet, + ) { + // initialize the options + this.options = { + center: geoJSON(this.mapProvider.defaultPolygon).getBounds().getCenter(), + layers: [ + tileLayer('https://osm.server.uni-frankfurt.de/tiles/roads/x={x}&y={y}&z={z}', { + attribution: '© OpenStreetMap contributors', + maxZoom: this.MAX_ZOOM, + }), + ], + zoom: this.DEFAULT_ZOOM, + zoomControl: false, + }; + } + + /** + * Animate to coordinates + * + * @param latLng Coordinates to animate to + */ + private focus(latLng?: LatLng) { + if (typeof latLng !== 'undefined') { + this.map.flyTo(latLng, this.MAX_ZOOM); + + return; + } + } + + /** + * Add places to the map + * + * @param items Places to add to the map + * @param clean Remove everything from the map first + * @param focus Animate to the item(s) + */ + addToMap(items: SCPlace[], clean = false, focus = false) { + if (clean) { + this.removeAll(); + } + const addSCPlace = (place: SCPlace): Layer | Marker => { + if (typeof place.geo.polygon !== 'undefined') { + const polygonLayer = geoJSON(place.geo.polygon, { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + bubblingMouseEvents: false, + }).getLayers()[0]; + + return polygonLayer.on('click', this.showItem.bind(this, place.uid)); + } + + const markerLayer = MapProvider.getPointMarker(place.geo.point, 'stapps-location', 32); + + return markerLayer.on('click', this.showItem.bind(this, place.uid)); + }; + + items.map(thing => { + // IMPORTANT: change this to support inPlace.geo when there is a need to show floors (the building of the floor) + if (typeof thing.geo !== 'undefined') { + this.layers.push(addSCPlace(thing as SCPlace)); + } + }); + + this.markerClusterData = this.layers; + + if (!focus || this.items.length === 0) { + return; + } + + if (this.items.length === 1) { + this.focus(geoJSON(this.items[0].geo.point).getBounds().getCenter()); + + return; + } + + const groupedLayers = featureGroup(this.layers); + this.map.flyToBounds(groupedLayers.getBounds()); + } + + /** + * Fetches items with set query configuration + * + * @param fetchAll Should fetch all items + * @param animate Should the fly animation be used + */ + async fetchAndUpdateItems(fetchAll = false, animate?: boolean): Promise { + try { + const result = await this.mapProvider.searchPlaces(this.filterQuery, fetchAll ? '' : this.queryText); + if (result.data.length === 0) { + const alert = await this.alertController.create({ + buttons: [this.translateService.instant('ok')], + header: this.translateService.instant('search.nothing_found'), + }); + await alert.present(); + + return; + } + // override items with results + this.items = result.data as SCPlace[]; + this.addToMap(result.data as Array, true, animate); + // update filter options if result contains facets + if (typeof result.facets !== 'undefined') { + this.contextMenuService.updateContextFilter(result.facets); + } + } catch (error) { + const alert: HTMLIonAlertElement = await this.alertController.create({ + buttons: ['Dismiss'], + header: 'Error', + subHeader: (error as Error).message, + }); + + await alert.present(); + } + } + + /** + * Hides keyboard in native app environments + */ + hideKeyboard() { + if (Capacitor.isNativePlatform()) { + Keyboard.hide(); + } + } + + /** + * Subscribe to needed observables and get the location status when user is entering the page + */ + async ionViewWillEnter() { + if (this.positionService.position) { + this.position = this.positionService.position; + this.positionMarker = MapProvider.getPositionMarker(this.position, 'stapps-device-location', 32); + } + + this.subscriptions.push( + this.dataRoutingService.itemSelectListener().subscribe(async item => { + // in case the list item is clicked + if (this.items.length > 1) { + await Promise.all([this.modalController.dismiss(), this.showItem(item.uid)]); + } else { + void this.router.navigate(['/data-detail', item.uid]); + } + }), + this.positionService + .watchCurrentLocation(this.constructor.name, {enableHighAccuracy: true, maximumAge: 1000}) + .subscribe({ + next: (position: MapPosition) => { + this.position = position; + this.positionMarker = MapProvider.getPositionMarker(position, 'stapps-device-location', 32); + }, + error: async _error => { + this.locationStatus = await Geolocation.checkPermissions(); + // eslint-disable-next-line unicorn/no-null + this.position = null; + }, + }), + ); + + // get detailed location status (diagnostics only supports devices) + this.locationStatus = await Geolocation.checkPermissions(); + } + + /** + * Unsubscribe from all subscriptions when user leaves page + */ + ionViewWillLeave() { + void this.positionService.clearWatcher(this.constructor.name); + for (const sub of this.subscriptions) { + sub.unsubscribe(); + } + } + + /** + * What happens when the leaflet map is ready (note: doesn't mean that tiles are loaded) + */ + async onMapReady(map: Map) { + this.map = map; + const interval = window.setInterval(() => + MapProvider.invalidateWhenRendered(map, this.mapContainer, interval), + ); + + const uid = this.route.snapshot.paramMap.get('uid'); + const response = await (uid !== null + ? this.mapProvider.searchPlace(uid) + : this.mapProvider.searchPlaces()); + + if (response.data.length === 0) { + return; + } + + this.items = response.data as SCBuilding[]; + this.addToMap(this.items, true, uid !== null); + this.contextMenuService.updateContextFilter(response.facets); + + this.subscriptions.push( + this.contextMenuService.filterQueryChanged$.subscribe(query => { + this.filterQuery = query; + this.fetchAndUpdateItems(false, true); + }), + ); + + this.distance = this.positionService.getDistance(this.items[0].geo.point); + } + + /** + * What happens when position button is clicked + */ + async onPositionClick() { + if (this.position) { + this.focus(this.positionMarker.getLatLng()); + + return; + } + + this.locationStatus = await (!Capacitor.isNativePlatform() + ? Geolocation.checkPermissions() + : Geolocation.requestPermissions()); + + this.translateService + .get(['map.page.geolocation', 'app.errors.UNKNOWN']) + .subscribe(async translations => { + const [location, unknownError] = [ + translations['map.page.geolocation'], + translations['app.errors.UNKNOWN'], + ]; + await ( + await this.alertController.create({ + header: location.TITLE, + message: `${ + this.locationStatus?.location === 'denied' + ? location.NOT_ALLOWED + : this.locationStatus?.location !== 'granted' + ? location.NOT_ENABLED + : unknownError + }`, + buttons: ['OK'], + }) + ).present(); + }); + } + + /** + * Remove all of the layers + */ + removeAll() { + for (const layer of this.layers) { + this.map.removeLayer(layer); + } + + this.layers = []; + } + + /** + * Resets the map = fetch all the items based on the filters (and go to component's base location) + */ + async resetView() { + this.location.go('/map'); + await this.fetchAndUpdateItems(this.items.length > 0); + + this.ref.detectChanges(); + } + + /** + * On enter key up do the search + * + * @param event Keyboard keyup event + */ + searchKeyUp(event: KeyboardEvent) { + if (event.key === 'Enter') { + this.searchStringChanged((event.target as HTMLInputElement).value); + } + } + + /** + * Search event of search bar + * + * @param queryText New query text to be set + */ + searchStringChanged(queryText?: string) { + this.queryText = queryText || ''; + void this.fetchAndUpdateItems(false, true); + } + + /** + * Show an single place + * + * @param uid Uuid of the place + */ + async showItem(uid: SCUuid) { + const response = await this.mapProvider.searchPlace(uid); + this.items = response.data as SCPlace[]; + this.distance = this.positionService.getDistance(this.items[0].geo.point); + this.addToMap(this.items, true); + this.ref.detectChanges(); + const url = this.router.createUrlTree(['/map', uid]).toString(); + this.location.go(url); + // center the selected place + this.focus(geoJSON(this.items[0].geo.point).getBounds().getCenter()); + } +} diff --git a/frontend/app/src/app/modules/map/page/map-page.html b/frontend/app/src/app/modules/map/page/map-page.html new file mode 100644 index 00000000..52b9aceb --- /dev/null +++ b/frontend/app/src/app/modules/map/page/map-page.html @@ -0,0 +1,119 @@ + + + + + + + + + + {{ 'map.page.TITLE' | translate }} + + + + + + + + + + + +
+
+
+
+
+ +   {{ 'map.page.buttons.SHOW_LIST' | translate }} + + + + + + + + + + +
+ +
+
+ +   {{ 'map.page.buttons.SHOW_LIST' | translate }} + + + + + + + + + + +
+ + + + + + +
diff --git a/frontend/app/src/app/modules/map/page/map-page.scss b/frontend/app/src/app/modules/map/page/map-page.scss new file mode 100644 index 00000000..5c9ef49a --- /dev/null +++ b/frontend/app/src/app/modules/map/page/map-page.scss @@ -0,0 +1,125 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-content { + // fixes the unexpected issue that the content is not fullscreen (behind the header) + position: absolute; + div.map-container { + width: 100%; + height: 100%; + position: fixed; + } + & > div { + overflow: hidden; + } +} + +ion-toolbar:first-of-type { + padding: 0 var(--spacing-md) var(--spacing-xs); +} + +::ng-deep { + .stapps-location { + ion-icon { + color: #fd435c; + width: 100%; + height: 100%; + } + } + + .stapps-device-location { + ion-icon { + color: #4387fd; + width: 100%; + height: 100%; + } + } + + div.floating-content { + display: block; + position: fixed; + left: 0; + right: 0; + bottom: 0; + z-index: 1000; + width: 100%; + padding: 0 var(--spacing-md) 8vh; + justify-content: center; + + ion-card { + margin: 0; + } + + div.map-buttons { + display: flex; + justify-content: flex-end; + } + + stapps-map-item { + width: 550px; + position: center; + justify-self: center; + margin: var(--spacing-sm) auto; + } + } +} + +div.floating-buttons { + z-index: 1000; + position: absolute; + bottom: 15px; + right: 10px; +} + +div.map-buttons { + ion-button { + margin: 4px; + // important for iOS + --box-shadow: var(--map-box-shadow); + align-self: flex-end; + } + + ion-button::part(native) { + background: white; + } + + ion-button::part(native):hover, + ion-button::part(native):focus { + background: whitesmoke; + } +} + +div.map-buttons.above { + min-width: 70%; + display: none; +} + +@media (max-width: 667px) { + div.map-buttons.above { + display: flex; + } + div.floating-content { + justify-content: normal; + padding: 0 var(--spacing-md) var(--spacing-lg); + stapps-map-item { + display: grid; + width: 100%; + } + } + + div.map-buttons.floating-buttons { + display: none; + } +} diff --git a/frontend/app/src/app/modules/map/page/modals/map-list-modal.component.ts b/frontend/app/src/app/modules/map/page/modals/map-list-modal.component.ts new file mode 100644 index 00000000..33314ba8 --- /dev/null +++ b/frontend/app/src/app/modules/map/page/modals/map-list-modal.component.ts @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnInit} from '@angular/core'; +import {SCSearchBooleanFilter, SCPlace, SCSearchFilter} from '@openstapps/core'; +import {MapProvider} from '../../map.provider'; +import {ModalController} from '@ionic/angular'; +import {LatLngBounds} from 'leaflet'; + +/** + * Modal showing a provided list of places + */ +@Component({ + selector: 'map-list-modal', + templateUrl: 'map-list.html', + styleUrls: ['map-list.scss'], +}) +export class MapListModalComponent implements OnInit { + /** + * Used for creating the search for the shown list + */ + @Input() filterQuery?: SCSearchFilter; + + /** + * Map visible boundaries limiting items in lust + */ + @Input() mapBounds?: LatLngBounds; + + /** + * Places to show in the list + */ + items: SCPlace[]; + + /** + * Used for creating the search for the shown list + */ + @Input() queryText?: string; + + constructor(private mapProvider: MapProvider, readonly modalController: ModalController) {} + + /** + * Populate the list with the results from the search + */ + ngOnInit() { + let geofencedFilter: SCSearchBooleanFilter | undefined; + if (typeof this.mapBounds !== 'undefined') { + geofencedFilter = { + arguments: { + operation: 'and', + filters: [ + { + type: 'geo', + arguments: { + field: 'geo', + shape: { + coordinates: [ + [this.mapBounds.getNorthWest().lng, this.mapBounds.getNorthWest().lat], + [this.mapBounds.getSouthEast().lng, this.mapBounds.getSouthEast().lat], + ], + type: 'envelope', + }, + spatialRelation: 'intersects', + }, + }, + ], + }, + type: 'boolean', + }; + if (typeof this.filterQuery !== 'undefined') { + geofencedFilter.arguments.filters.push(this.filterQuery); + } + } + + const geofencedFilterQuery = geofencedFilter ?? this.filterQuery; + this.mapProvider.searchPlaces(geofencedFilterQuery, this.queryText).then(result => { + this.items = result.data as SCPlace[]; + }); + } +} diff --git a/frontend/app/src/app/modules/map/page/modals/map-list.html b/frontend/app/src/app/modules/map/page/modals/map-list.html new file mode 100644 index 00000000..d137f0aa --- /dev/null +++ b/frontend/app/src/app/modules/map/page/modals/map-list.html @@ -0,0 +1,28 @@ + + +
+ + + {{ 'map.modals.list.TITLE' | translate }} + + {{ 'app.ui.CLOSE' | translate }} + + + + + + +
diff --git a/frontend/app/src/app/modules/map/page/modals/map-list.scss b/frontend/app/src/app/modules/map/page/modals/map-list.scss new file mode 100644 index 00000000..04a923c5 --- /dev/null +++ b/frontend/app/src/app/modules/map/page/modals/map-list.scss @@ -0,0 +1,20 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.container { + display: flex; + flex-direction: column; + height: 100%; +} diff --git a/frontend/app/src/app/modules/map/page/modals/map-single-modal.component.ts b/frontend/app/src/app/modules/map/page/modals/map-single-modal.component.ts new file mode 100644 index 00000000..4852d64e --- /dev/null +++ b/frontend/app/src/app/modules/map/page/modals/map-single-modal.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCPlace} from '@openstapps/core'; +import {ModalController} from '@ionic/angular'; + +@Component({ + selector: 'app-map-single-modal', + templateUrl: './map-single.html', + styleUrls: ['./map-single.scss'], +}) +export class MapSingleModalComponent { + /** + * The item to be shown + */ + @Input() item: SCPlace; + + constructor(readonly modalController: ModalController) {} +} diff --git a/frontend/app/src/app/modules/map/page/modals/map-single.html b/frontend/app/src/app/modules/map/page/modals/map-single.html new file mode 100644 index 00000000..5fe7c588 --- /dev/null +++ b/frontend/app/src/app/modules/map/page/modals/map-single.html @@ -0,0 +1,26 @@ + + + + + {{ 'map.modals.single.TITLE' | translate }} + + {{ 'app.ui.CLOSE' | translate }} + + + + + + diff --git a/frontend/app/src/app/modules/map/page/modals/map-single.scss b/frontend/app/src/app/modules/map/page/modals/map-single.scss new file mode 100644 index 00000000..4cef8a0c --- /dev/null +++ b/frontend/app/src/app/modules/map/page/modals/map-single.scss @@ -0,0 +1,4 @@ +:host { + display: flex; + flex-direction: column; +} diff --git a/frontend/app/src/app/modules/map/position.service.spec.ts b/frontend/app/src/app/modules/map/position.service.spec.ts new file mode 100644 index 00000000..9a165eb9 --- /dev/null +++ b/frontend/app/src/app/modules/map/position.service.spec.ts @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {TestBed} from '@angular/core/testing'; +import {MapModule} from './map.module'; +import {HttpClientModule} from '@angular/common/http'; +import {StorageModule} from '../storage/storage.module'; +import {MapPosition, PositionService} from './position.service'; +import {ConfigProvider} from '../config/config.provider'; +import {LoggerConfig, LoggerModule, NGXLogger, NGXMapperService} from 'ngx-logger'; + +describe('PositionService', () => { + let positionService: PositionService; + let configProviderMock: jasmine.SpyObj; + + const sampleMapPosition: MapPosition = { + heading: 123, + latitude: 34.12, + longitude: 12.34, + }; + + beforeEach(() => { + configProviderMock = jasmine.createSpyObj('ConfigProvider', { + getValue: () => { + return; + }, + }); + TestBed.configureTestingModule({ + imports: [MapModule, HttpClientModule, StorageModule, LoggerModule], + providers: [ + LoggerConfig, + NGXLogger, + NGXMapperService, + { + provider: ConfigProvider, + useValue: configProviderMock, + }, + ], + }); + positionService = TestBed.inject(PositionService); + }); + + it('should provide the current location of the device', async () => { + const currentLocation = await positionService.getCurrentLocation(); + + expect(currentLocation).toEqual(sampleMapPosition); + }); + + it('should continuously provide (watch) location of the device', done => { + positionService.watchCurrentLocation('testCaller').subscribe(location => { + expect(location).toBeDefined(); + done(); + }); + }); + + it('should stop to continuously provide (watch) location of the device', done => { + positionService.watchers.set( + 'clearWatch', + new Promise(resolve => { + setTimeout(function () { + resolve(`watcherID123`); + }, 20); + }), + ); + positionService + .clearWatcher('clearWatch') + .then(result => { + expect(result).toBeUndefined(); + done(); + }) + .catch(error => { + expect(error).toBeUndefined(); + done(); + }); + }); +}); diff --git a/frontend/app/src/app/modules/map/position.service.ts b/frontend/app/src/app/modules/map/position.service.ts new file mode 100644 index 00000000..1a3316f2 --- /dev/null +++ b/frontend/app/src/app/modules/map/position.service.ts @@ -0,0 +1,127 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {Point} from 'geojson'; +import {geoJSON, LatLng} from 'leaflet'; +import {Observable} from 'rxjs'; +import {Geolocation, Position} from '@capacitor/geolocation'; + +export interface Coordinates { + /** + * Geographic latitude from a device + */ + latitude: number; + /** + * Geographic longitude from a device + */ + longitude: number; +} + +export interface MapPosition extends Coordinates { + /** + * Where is the device pointed + */ + heading?: number; +} + +@Injectable({ + providedIn: 'root', +}) +export class PositionService { + /** + * Current position + */ + position?: MapPosition; + + /** + * Map of callers and their running watchers. Both by their ID + */ + watchers: Map> = new Map(); + + /** + * Gets current coordinates information of the device + * + * @param options Options which define which data should be provided (e.g. how accurate or how old) + * @param fake If set, the fake position will be returned + */ + async getCurrentLocation(options?: PositionOptions, fake?: Position): Promise { + const geoPosition = fake ?? (await Geolocation.getCurrentPosition(options)); + + this.position = { + heading: + Number.isNaN(geoPosition.coords.heading) || geoPosition.coords.heading == undefined + ? undefined + : geoPosition.coords.heading, + latitude: geoPosition.coords.latitude, + longitude: geoPosition.coords.longitude, + }; + + return this.position; + } + + /** + * Provides distance from users position + * + * @param point Point to which distance should be calculated + */ + getDistance(point: Point): number | undefined { + if (typeof this.position === 'undefined') { + return undefined; + } + + return new LatLng(this.position.latitude, this.position.longitude).distanceTo( + geoJSON(point).getBounds().getCenter(), + ); + } + + /** + * Watches (continuously gets) current coordinates information of the device + * + * @param caller Identifier for later reference. (I.e use of `clearWatcher`) + * @param options Options which define which data should be provided (e.g. how accurate or how old) + */ + watchCurrentLocation(caller: string, options: PositionOptions = {}): Observable { + return new Observable(subscriber => { + const watcherID = Geolocation.watchPosition(options, (position, error) => { + if (error) { + subscriber.error(position); + } else { + this.position = { + // TODO use native compass heading instead + // waiting for https://github.com/ionic-team/capacitor-plugins/issues/1192 + heading: undefined, + latitude: position?.coords.latitude ?? 0, + longitude: position?.coords.longitude ?? 0, // TODO: handle null position + }; + + subscriber.next(this.position); + } + }); + this.watchers.set(caller, watcherID); + }); + } + + /** + * Clears watcher for a certain caller + * + * @param caller Identifier of the caller wanting to clear the watcher + */ + async clearWatcher(caller: string): Promise { + const watcherID = await this.watchers.get(caller); + if (watcherID) { + Geolocation.clearWatch({id: watcherID}); + } + } +} diff --git a/frontend/app/src/app/modules/map/widget/map-widget.component.ts b/frontend/app/src/app/modules/map/widget/map-widget.component.ts new file mode 100644 index 00000000..7f522634 --- /dev/null +++ b/frontend/app/src/app/modules/map/widget/map-widget.component.ts @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, ElementRef, Input, OnInit, ViewChild} from '@angular/core'; +import {Router} from '@angular/router'; +import {SCPlace} from '@openstapps/core'; +import {geoJSON, Map, MapOptions, tileLayer} from 'leaflet'; +import {MapProvider} from '../map.provider'; + +/** + * The map widget (needs a container with explicit size) + */ +@Component({ + selector: 'stapps-map-widget', + styleUrls: ['./map-widget.scss'], + templateUrl: './map-widget.html', +}) +export class MapWidgetComponent implements OnInit { + /** + * A leaflet map showed + */ + map: Map; + + /** + * Container element of the map + */ + @ViewChild('mapContainer') mapContainer: ElementRef; + + /** + * Options of the leaflet map + */ + options: MapOptions; + + /** + * A place to show on the map + */ + @Input() place: SCPlace; + + /** + * Indicates if the expand button should be visible + */ + showExpandButton = true; + + constructor(private router: Router) {} + + /** + * Prepare the map + */ + ngOnInit() { + const markerLayer = MapProvider.getPointMarker(this.place.geo.point, 'stapps-location', 32); + this.options = { + center: geoJSON(this.place.geo.polygon || this.place.geo.point) + .getBounds() + .getCenter(), + layers: [ + tileLayer('https://osm.server.uni-frankfurt.de/tiles/roads/x={x}&y={y}&z={z}', { + attribution: '© OpenStreetMap contributors', + maxZoom: 18, + }), + markerLayer, + ], + zoom: 16, + zoomControl: false, + }; + if (this.router) { + this.showExpandButton = !this.router.url.startsWith('/map'); + } + } + + /** + * What happens when the leaflet map is ready (note: doesn't mean that tiles are loaded) + */ + onMapReady(map: Map) { + this.map = map; + this.map.dragging.disable(); + const interval = window.setInterval(() => { + MapProvider.invalidateWhenRendered(map, this.mapContainer, interval); + }); + } +} diff --git a/frontend/app/src/app/modules/map/widget/map-widget.html b/frontend/app/src/app/modules/map/widget/map-widget.html new file mode 100644 index 00000000..c0bb910b --- /dev/null +++ b/frontend/app/src/app/modules/map/widget/map-widget.html @@ -0,0 +1,27 @@ + + +
+
+ + + +
diff --git a/frontend/app/src/app/modules/map/widget/map-widget.scss b/frontend/app/src/app/modules/map/widget/map-widget.scss new file mode 100644 index 00000000..482425b2 --- /dev/null +++ b/frontend/app/src/app/modules/map/widget/map-widget.scss @@ -0,0 +1,13 @@ +div.map-container { + height: 100%; + width: 100%; + display: block; + pointer-events: none; +} + +div.map-buttons { + position: absolute; + top: 10px; + right: 10px; + z-index: 10000; +} diff --git a/frontend/app/src/app/modules/menu/context/context-menu.component.spec.ts b/frontend/app/src/app/modules/menu/context/context-menu.component.spec.ts new file mode 100644 index 00000000..609d06e8 --- /dev/null +++ b/frontend/app/src/app/modules/menu/context/context-menu.component.spec.ts @@ -0,0 +1,298 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/ban-ts-comment */ +import {APP_BASE_HREF, CommonModule, Location, LocationStrategy, PathLocationStrategy} from '@angular/common'; +import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {FormsModule} from '@angular/forms'; +import {ChildrenOutletContexts, RouterModule, UrlSerializer} from '@angular/router'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {SCFacet, SCThingType} from '@openstapps/core'; +import {ContextMenuComponent} from './context-menu.component'; +import {SettingsModule} from '../../settings/settings.module'; +import {ContextMenuService} from './context-menu.service'; +import {FilterContext, SortContext} from './context-type'; +import {Component} from '@angular/core'; +import {By} from '@angular/platform-browser'; + +// prettier-ignore +@Component({ + template: ` +`, +}) +class ContextMenuContainerComponent {} + +describe('ContextMenuComponent', async () => { + let fixture: ComponentFixture; + let instance: ContextMenuComponent; + + beforeEach(() => { + TestBed.configureTestingModule({ + declarations: [ContextMenuComponent, ContextMenuContainerComponent], + providers: [ + ChildrenOutletContexts, + Location, + UrlSerializer, + ContextMenuService, + {provide: LocationStrategy, useClass: PathLocationStrategy}, + {provide: APP_BASE_HREF, useValue: '/'}, + ], + imports: [ + FormsModule, + IonicModule.forRoot(), + TranslateModule.forRoot(), + CommonModule, + SettingsModule, + RouterModule.forRoot([], {relativeLinkResolution: 'legacy'}), + ], + }).compileComponents(); + + fixture = TestBed.createComponent(ContextMenuContainerComponent); + instance = fixture.debugElement.query(By.directive(ContextMenuComponent)).componentInstance; + }); + + it('should show items in sort context', () => { + instance.sortOption = getSortContextType(); + fixture.detectChanges(); + const sort: HTMLElement = fixture.debugElement.nativeElement.querySelector('.context-sort'); + const sortItem = sort.querySelector('.sort-item'); + expect(sortItem!.querySelector('ion-label')?.textContent).toContain('relevance'); + }); + + it('should show items in filter context', () => { + instance.filterOption = getFilterContextType(); + fixture.detectChanges(); + const filter: HTMLElement = fixture.debugElement.nativeElement.querySelector('.context-filter'); + const filterItem = filter.querySelector('.filter-group'); + expect(filterItem!.querySelector('ion-list-header')!.textContent).toContain('Type'); + }); + + it('should set sort context value and reverse on click', () => { + instance.sortOption = getSortContextType(); + fixture.detectChanges(); + const sort: HTMLElement = fixture.debugElement.nativeElement.querySelector('.context-sort'); + // @ts-expect-error not relevant for this case + const sortItem: HTMLElement = sort.querySelectorAll('.sort-item')[1]; + sortItem!.click(); + expect(instance.sortOption.value).toEqual('name'); + expect(instance.sortOption.reversed).toBe(false); + + // click again for reverse + sortItem!.click(); + expect(instance.sortOption.reversed).toBe(true); + }); + + it('should show all filterable facets', () => { + // get set facets with non empty buckets + const facets: SCFacet[] = getFilterContextType().options; + + instance.filterOption = getFilterContextType(); + fixture.detectChanges(); + // get filter context div + const filter: HTMLElement = fixture.debugElement.nativeElement.querySelector('.context-filter'); + // get all filter groups that represent a facet + const filterGroups = filter.querySelectorAll('.filter-group'); + + expect(filterGroups.length).toEqual(facets.length); + + for (const facet of facets) { + let filterGroup; + + // get filter option for facets field + // eslint-disable-next-line unicorn/no-array-for-each + filterGroups.forEach(element => { + if ( + element + .querySelector('ion-list-header')! + .textContent!.toString() + .toLowerCase() + .includes(facet.field) + ) { + filterGroup = element; + return; + } + }); + + expect(filterGroup).toBeDefined(); + + // @ts-expect-error it is defined + const filterItems = filterGroup.querySelectorAll('.filter-item-label'); + + if (filterItems.length !== facet.buckets.length) { + console.log(JSON.stringify(facet)); + } + expect(filterItems.length).toEqual(facet.buckets.length); + + // check all buckets are shown + for (const bucket of facet.buckets) { + let filterItem; + + for (let i = 0; i < filterItems.length; i++) { + if ( + filterItems.item(i).textContent!.toString().toLowerCase().indexOf(bucket.key.toLowerCase()) > 0 + ) { + filterItem = filterItems.item(i); + break; + } + } + expect(filterItem).toBeDefined(); + } + } + }); + + it('should reset filter', () => { + instance.filterOption = getFilterContextType(); + instance.filterOption.options = [ + { + field: 'type', + buckets: [{count: 10, key: 'date series', checked: true}], + }, + ]; + + fixture.detectChanges(); + + // click reset button + const resetButton: HTMLElement = fixture.debugElement.nativeElement.querySelector('.resetFilterButton'); + resetButton.click(); + + expect(instance.filterOption.options[0].buckets[0].checked).toEqual(false); + }); +}); + +/** + * + */ +function getSortContextType(): SortContext { + return { + name: 'sort', + reversed: false, + value: 'relevance', + values: [ + { + reversible: false, + value: 'relevance', + }, + { + reversible: true, + value: 'name', + }, + { + reversible: true, + value: 'date', + }, + { + reversible: true, + value: 'type', + }, + ], + }; +} + +/** + * + */ +function getFilterContextType(): FilterContext { + return { + name: 'filter', + compact: false, + options: facetsMock + .filter(facet => facet.buckets.length > 0) + .map(facet => { + return { + buckets: facet.buckets.map(bucket => { + return { + count: bucket.count, + key: bucket.key, + checked: false, + }; + }), + compact: false, + field: facet.field, + onlyOnType: facet.onlyOnType, + }; + }), + }; +} + +const facetsMock: SCFacet[] = [ + { + buckets: [ + { + count: 60, + key: 'academic event', + }, + { + count: 160, + key: 'message', + }, + { + count: 151, + key: 'date series', + }, + { + count: 106, + key: 'dish', + }, + { + count: 20, + key: 'building', + }, + ], + field: 'type', + }, + { + buckets: [ + { + count: 12, + key: 'Max Mustermann', + }, + { + count: 2, + key: 'Foo Bar', + }, + ], + field: 'performers', + onlyOnType: SCThingType.AcademicEvent, + }, + { + buckets: [ + { + count: 5, + key: 'colloquium', + }, + { + count: 15, + key: 'course', + }, + ], + field: 'categories', + onlyOnType: SCThingType.AcademicEvent, + }, + { + buckets: [ + { + count: 5, + key: 'employees', + }, + { + count: 15, + key: 'students', + }, + ], + field: 'audiences', + onlyOnType: SCThingType.Message, + }, +]; diff --git a/frontend/app/src/app/modules/menu/context/context-menu.component.ts b/frontend/app/src/app/modules/menu/context/context-menu.component.ts new file mode 100644 index 00000000..b4b81b16 --- /dev/null +++ b/frontend/app/src/app/modules/menu/context/context-menu.component.ts @@ -0,0 +1,160 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnDestroy} from '@angular/core'; +import {LangChangeEvent, TranslateService} from '@ngx-translate/core'; +import {SCLanguage, SCThingTranslator, SCThingType, SCTranslations} from '@openstapps/core'; +import {Subscription} from 'rxjs'; +import {ContextMenuService} from './context-menu.service'; +import {FilterContext, SortContext, SortContextOption} from './context-type'; + +/** + * The context menu + * + * It can be configured with sorting types and filtering on facets + * + * Example:
+ * `` + */ +@Component({ + selector: 'stapps-context', + templateUrl: 'context-menu.html', +}) +export class ContextMenuComponent implements OnDestroy { + /** + * Id of the content the menu is used for + */ + @Input() + contentId: string; + + /** + * Amount of filter options shown on compact view + */ + compactFilterOptionCount = 5; + + /** + * Container for the filter context + */ + filterOption: FilterContext; + + /** + * Possible languages to be used for translation + */ + language: keyof SCTranslations; + + /** + * Mapping of SCThingType + */ + scThingType = SCThingType; + + /** + * Container for the sort context + */ + sortOption: SortContext; + + /** + * Array of all Subscriptions + */ + subscriptions: Subscription[] = []; + + /** + * Core translator + */ + translator: SCThingTranslator; + + constructor( + private translateService: TranslateService, + private readonly contextMenuService: ContextMenuService, + ) { + this.language = this.translateService.currentLang as keyof SCTranslations; + this.translator = new SCThingTranslator(this.language); + + this.subscriptions.push( + this.translateService.onLangChange.subscribe((event: LangChangeEvent) => { + this.language = event.lang as keyof SCTranslations; + this.translator = new SCThingTranslator(this.language); + }), + this.contextMenuService.filterContextChanged$.subscribe(filterContext => { + this.filterOption = filterContext; + }), + this.contextMenuService.sortOptions.subscribe(sortContext => { + this.sortOption = sortContext; + }), + ); + } + + /** + * Sets selected filter options and updates listener + */ + filterChanged = () => { + this.contextMenuService.contextFilterChanged(this.filterOption); + }; + + /** + * Returns translated property name + */ + getTranslatedPropertyName(property: string, onlyForType?: SCThingType): string { + return ( + this.translator.translatedPropertyNames( + onlyForType ?? SCThingType.AcademicEvent, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + ) as any + )[property]; + } + + /** + * Returns translated property value + */ + getTranslatedPropertyValue(onlyForType: SCThingType, field: string, key?: string): string | undefined { + return this.translator.translatedPropertyValue(onlyForType, field, key); + } + + /** + * Unsubscribe from Observables + */ + ngOnDestroy() { + for (const sub of this.subscriptions) { + sub.unsubscribe(); + } + } + + /** + * Resets filter options + */ + resetFilter = (option: FilterContext) => { + for (const filterFacet of option.options) + for (const filterBucket of filterFacet.buckets) { + filterBucket.checked = false; + } + this.contextMenuService.contextFilterChanged(this.filterOption); + }; + + /** + * Updates selected sort option and updates listener + */ + sortChanged = (option: SortContext, value: SortContextOption) => { + if (option.value === value.value) { + if (value.reversible) { + option.reversed = !option.reversed; + } + } else { + option.value = value.value; + if (value.reversible) { + option.reversed = false; + } + } + this.contextMenuService.contextSortChanged(option); + }; +} diff --git a/frontend/app/src/app/modules/menu/context/context-menu.html b/frontend/app/src/app/modules/menu/context/context-menu.html new file mode 100644 index 00000000..cbfca7a8 --- /dev/null +++ b/frontend/app/src/app/modules/menu/context/context-menu.html @@ -0,0 +1,128 @@ + + + + + +

+ {{ 'menu.context.title' | translate | titlecase }} +

+
+
+ + + + + + + {{ 'menu.context.sort.title' | translate | titlecase }} + + + {{ 'menu.context.sort.' + value.value | translate | titlecase }} + + + + + + + + + + +
+ + + {{ 'menu.context.filter.title' | translate | titlecase }} + + + + + + +
+ + + {{ + (facet.onlyOnType + ? getTranslatedPropertyName(facet.field, facet.onlyOnType) + : getTranslatedPropertyName(facet.field) + ) | titlecase + }} + {{ + facet.onlyOnType + ? ' | ' + (getTranslatedPropertyValue(facet.onlyOnType, 'type') | titlecase) + : '' + }} + + +
+ + + ({{ bucket.count }}) + {{ + facet.field === 'type' + ? (getTranslatedPropertyValue($any(bucket.key), 'type') | titlecase) + : (getTranslatedPropertyValue(facet.onlyOnType, facet.field, bucket.key) | titlecase) + }} + + + + + + {{ 'menu.context.filter.showAll' | translate }} + +
+
+
+ + {{ 'menu.context.filter.showAll' | translate }} + +
+
+
diff --git a/frontend/app/src/app/modules/menu/context/context-menu.service.spec.ts b/frontend/app/src/app/modules/menu/context/context-menu.service.spec.ts new file mode 100644 index 00000000..5f4ca189 --- /dev/null +++ b/frontend/app/src/app/modules/menu/context/context-menu.service.spec.ts @@ -0,0 +1,148 @@ +import {TestBed} from '@angular/core/testing'; + +import {ContextMenuService} from './context-menu.service'; +import {SCFacet} from '@openstapps/core'; +import {FilterContext, SortContext} from './context-type'; + +describe('ContextMenuService', () => { + let service: ContextMenuService; + + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [ContextMenuService], + }); + service = TestBed.inject(ContextMenuService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); + + it('should update filterOptions', done => { + service.filterContextChanged$.subscribe(result => { + expect(result).toBeDefined(); + done(); + }); + service.updateContextFilter(facetsMock); + }); + + it('should update filterQuery', done => { + service.filterContextChanged$.subscribe(result => { + expect(result).toBeDefined(); + expect(service.contextFilter.options[0].buckets.length).toEqual( + filterContext.options[0].buckets.length, + ); + done(); + }); + service.updateContextFilter(facetsMock); + }); + + it('should update sortOptions', done => { + service.sortContextChanged$.subscribe(result => { + expect(result).toBeDefined(); + done(); + }); + service.setContextSort(sortContext); + }); + + it('should update sortQuery', done => { + service.sortContextChanged$.subscribe(result => { + expect(result).toBeDefined(); + done(); + }); + service.setContextSort(sortContext); + }); +}); + +const facetsMock: SCFacet[] = [ + { + buckets: [ + { + count: 60, + key: 'academic event', + }, + { + count: 160, + key: 'message', + }, + { + count: 151, + key: 'date series', + }, + { + count: 106, + key: 'dish', + }, + { + count: 20, + key: 'building', + }, + { + count: 20, + key: 'semester', + }, + ], + field: 'type', + }, +]; + +const filterContext: FilterContext = { + name: 'filter', + options: [ + { + buckets: [ + { + checked: true, + count: 60, + key: 'academic event', + }, + { + checked: false, + count: 160, + key: 'message', + }, + { + checked: false, + count: 151, + key: 'date series', + }, + { + checked: false, + count: 106, + key: 'dish', + }, + { + checked: false, + count: 20, + key: 'building', + }, + { + checked: false, + count: 20, + key: 'semester', + }, + ], + field: 'type', + }, + ], +}; + +const sortContext: SortContext = { + name: 'sort', + reversed: false, + value: 'name', + values: [ + { + reversible: false, + value: 'relevance', + }, + { + reversible: true, + value: 'name', + }, + { + reversible: true, + value: 'type', + }, + ], +}; diff --git a/frontend/app/src/app/modules/menu/context/context-menu.service.ts b/frontend/app/src/app/modules/menu/context/context-menu.service.ts new file mode 100644 index 00000000..be0cb799 --- /dev/null +++ b/frontend/app/src/app/modules/menu/context/context-menu.service.ts @@ -0,0 +1,247 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {SCFacet, SCSearchFilter, SCSearchSort, SCThingType} from '@openstapps/core'; +import {Subject} from 'rxjs'; +import {FilterBucket, FilterContext, FilterFacet, SortContext} from './context-type'; + +/** + * ContextMenuService provides bidirectional communication of context menu options and search queries + */ +@Injectable() +export class ContextMenuService { + /** + * Local filter context object + */ + contextFilter: FilterContext; + + /** + * Container for the filter context + */ + filterOptions = new Subject(); + + /** + * Observable filterContext streams + */ + filterContextChanged$ = this.filterOptions.asObservable(); + + /** + * Container for the filter query (SCSearchFilter) + */ + filterQuery = new Subject(); + + /** + * Observable filterContext streams + */ + filterQueryChanged$ = this.filterQuery.asObservable(); + + /** + * Forced SCThingTypeFilter + */ + forcedType?: SCThingType; + + /** + * Container for the sort context + */ + sortOptions = new Subject(); + + /** + * Observable SortContext streams + */ + sortContextChanged$ = this.sortOptions.asObservable(); + + /** + * Container for the sort query + */ + sortQuery = new Subject(); + + /** + * Observable SortContext streams + */ + sortQueryChanged$ = this.sortQuery.asObservable(); + + /** + * Returns SCSearchFilter if filterContext value is set, undefined otherwise + * + * @param filterContext FilterContext to build SCSearchFilter from + */ + buildFilterQuery = (filterContext: FilterContext): SCSearchFilter | undefined => { + const filters: SCSearchFilter[] = []; + + if (typeof this.forcedType !== 'undefined') { + filters.push({ + arguments: { + field: 'type', + value: this.forcedType, + }, + type: 'value', + }); + } + + for (const filterFacet of filterContext.options) { + const optionFilters: SCSearchFilter[] = []; + for (const filterBucket of filterFacet.buckets) { + if (filterBucket.checked) { + optionFilters.push({ + arguments: { + field: filterFacet.field, + value: filterBucket.key, + }, + type: 'value', + }); + } + } + if (optionFilters.length > 0) { + filters.push({ + arguments: { + filters: optionFilters, + operation: 'or', + }, + type: 'boolean', + }); + } + } + + if (filters.length > 0) { + return { + arguments: { + filters: filters, + operation: 'and', + }, + type: 'boolean', + }; + } + + return; + }; + + /** + * Returns SCSearchSort if sorting value is set, undefined otherwise + * + * @param sortContext SortContext to build SCSearchSort from + */ + buildSortQuery = (sortContext: SortContext): SCSearchSort[] | undefined => { + if ( + sortContext.value && + sortContext.value.length > 0 && + (sortContext.value === 'name' || sortContext.value === 'type') + ) { + return [ + { + arguments: { + field: sortContext.value, + position: 0, + }, + order: sortContext.reversed ? 'desc' : 'asc', + type: 'ducet', + }, + ]; + } + + return; + }; + + /** + * Updates filter query from filterContext + */ + contextFilterChanged(filterContext: FilterContext) { + this.filterQuery.next(this.buildFilterQuery(filterContext)); + } + + /** + * Updates sort query from sortContext + */ + contextSortChanged(sortContext: SortContext) { + this.sortQuery.next(this.buildSortQuery(sortContext)); + } + + /** + * Sets sort context + */ + setContextSort(sortContext: SortContext) { + this.sortOptions.next(sortContext); + } + + /** + * Updates the filter context options from given facets + */ + updateContextFilter(facets: SCFacet[]) { + // arrange facet field "type" to first position + facets.sort((a: SCFacet, b: SCFacet) => { + if (a.field === 'type') { + return -1; + } + + if (b.field === 'type') { + return 1; + } + + return 0; + }); + + if (!this.contextFilter) { + this.contextFilter = { + name: 'filter', + options: [], + }; + } + + this.updateContextFilterOptions(this.contextFilter, facets); + } + + /** + * Updates context filter with new facets. + * It preserves the checked status of existing filter options + */ + updateContextFilterOptions = (contextFilter: FilterContext, facets: SCFacet[]) => { + const newFilterOptions: FilterFacet[] = []; + + // iterate new facets + for (const facet of facets) { + if (facet.buckets.length > 0) { + const newFilterFacet: FilterFacet = { + buckets: [], + field: facet.field, + onlyOnType: facet.onlyOnType, + }; + newFilterOptions.push(newFilterFacet); + + // search existing filterOption + const filterOption = contextFilter.options.find( + (contextFacet: FilterFacet) => + contextFacet.field === facet.field && contextFacet.onlyOnType === facet.onlyOnType, + ); + for (const bucket of facet.buckets) { + // search existing bucket to preserve checked status + const existingFilterBucket = filterOption + ? filterOption.buckets.find((contextBucket: FilterBucket) => contextBucket.key === bucket.key) + : undefined; + const filterBucket: FilterBucket = { + checked: existingFilterBucket ? existingFilterBucket.checked : false, + count: bucket.count, + key: bucket.key, + }; + newFilterFacet.buckets.push(filterBucket); + } + } + } + + // update filter options + contextFilter.options = newFilterOptions; + this.contextFilter = contextFilter; + + this.filterOptions.next(contextFilter); + }; +} diff --git a/frontend/app/src/app/modules/menu/context/context-type.ts b/frontend/app/src/app/modules/menu/context/context-type.ts new file mode 100644 index 00000000..2abe8021 --- /dev/null +++ b/frontend/app/src/app/modules/menu/context/context-type.ts @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2020 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {SCFacet, SCFacetBucket} from '@openstapps/core'; + +export type ContextType = FilterContext | SortContext; + +/** + * A sort context + */ +export interface SortContext { + /** + * Name of the context + */ + name: 'sort'; + + /** + * Reverse option + */ + reversed: boolean; + + /** + * sort value + */ + value: string; + + /** + * Sort options + */ + values: SortContextOption[]; +} + +/** + * A sort context option + */ +export interface SortContextOption { + /** + * sort option is reversible + */ + reversible: boolean; + + /** + * sort option value + */ + value: string; +} + +/** + * A filter context + */ +export interface FilterContext { + /** + * Compact view of the filter options + */ + compact?: boolean; + /** + * Name of the context + */ + name: 'filter'; + + /** + * Filter values + */ + options: FilterFacet[]; +} + +export interface FilterFacet extends SCFacet { + /** + * FilterBuckets of a FilterFacet + */ + buckets: FilterBucket[]; + /** + * Compact view of the option buckets + */ + compact?: boolean; +} + +export interface FilterBucket extends SCFacetBucket { + /** + * Sets the Filter active + */ + checked: boolean; +} diff --git a/frontend/app/src/app/modules/menu/menu.module.ts b/frontend/app/src/app/modules/menu/menu.module.ts new file mode 100644 index 00000000..9402cac3 --- /dev/null +++ b/frontend/app/src/app/modules/menu/menu.module.ts @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {RouterModule} from '@angular/router'; +import {LayoutModule} from '@angular/cdk/layout'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {SettingsModule} from '../settings/settings.module'; +import {ContextMenuComponent} from './context/context-menu.component'; +import {ContextMenuService} from './context/context-menu.service'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +/** + * Menu module + */ +@NgModule({ + declarations: [ContextMenuComponent], + exports: [ContextMenuComponent], + imports: [ + CommonModule, + IonIconModule, + FormsModule, + IonicModule.forRoot(), + RouterModule, + SettingsModule, + TranslateModule.forChild(), + LayoutModule, + ], + providers: [ContextMenuService], +}) +export class MenuModule {} diff --git a/frontend/app/src/app/modules/menu/navigation/navigation.component.ts b/frontend/app/src/app/modules/menu/navigation/navigation.component.ts new file mode 100644 index 00000000..e10a7c83 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/navigation.component.ts @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnInit} from '@angular/core'; +import {LangChangeEvent, TranslateService} from '@ngx-translate/core'; +import { + SCAppConfigurationMenuCategory, + SCLanguage, + SCThingTranslator, + SCTranslations, +} from '@openstapps/core'; +import {NavigationService} from './navigation.service'; +import config from 'capacitor.config'; +import {SettingsProvider} from '../../settings/settings.provider'; +import {BreakpointObserver} from '@angular/cdk/layout'; + +/** + * Generated class for the MenuPage page. + * + * See https://ionicframework.com/docs/components/#navigation for more info on + * Ionic pages and navigation. + */ +@Component({ + selector: 'stapps-navigation', + styleUrls: ['navigation.scss'], + templateUrl: 'navigation.html', +}) +export class NavigationComponent implements OnInit { + showTabbar = true; + + /** + * Name of the app + */ + appName = config.appName; + + /** + * Possible languages to be used for translation + */ + language: keyof SCTranslations; + + /** + * Menu entries from config module + */ + menu: SCAppConfigurationMenuCategory[]; + + /** + * Core translator + */ + translator: SCThingTranslator; + + constructor( + public translateService: TranslateService, + private navigationService: NavigationService, + private settingsProvider: SettingsProvider, + private responsive: BreakpointObserver, + ) { + translateService.onLangChange.subscribe((event: LangChangeEvent) => { + this.language = event.lang as keyof SCTranslations; + this.translator = new SCThingTranslator(this.language); + }); + + this.responsive.observe(['(min-width: 768px)']).subscribe(result => { + this.showTabbar = !result.matches; + }); + } + + async ngOnInit() { + this.language = (await this.settingsProvider.getValue( + 'profile', + 'language', + )) as keyof SCTranslations; + this.translator = new SCThingTranslator(this.language); + this.menu = await this.navigationService.getMenu(); + } +} diff --git a/frontend/app/src/app/modules/menu/navigation/navigation.html b/frontend/app/src/app/modules/menu/navigation/navigation.html new file mode 100644 index 00000000..59c503b6 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/navigation.html @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + {{ category.translations[language].title | titlecase }} + + + + + + {{ item.translations[language].title | titlecase }} + + + + + + + + diff --git a/frontend/app/src/app/modules/menu/navigation/navigation.module.ts b/frontend/app/src/app/modules/menu/navigation/navigation.module.ts new file mode 100644 index 00000000..53879654 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/navigation.module.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {RootLinkDirective} from './root-link.directive'; +import {NavigationComponent} from './navigation.component'; +import {TabsComponent} from './tabs.component'; +import {CommonModule} from '@angular/common'; +import {IonicModule} from '@ionic/angular'; +import {IonIconModule} from '../../../util/ion-icon/ion-icon.module'; +import {TranslateModule} from '@ngx-translate/core'; +import {RouterModule} from '@angular/router'; +import {OfflineNoticeComponent} from './offline-notice.component'; + +@NgModule({ + declarations: [RootLinkDirective, NavigationComponent, TabsComponent, OfflineNoticeComponent], + imports: [CommonModule, IonicModule, IonIconModule, TranslateModule, RouterModule], + exports: [TabsComponent, RootLinkDirective, NavigationComponent], +}) +export class NavigationModule {} diff --git a/frontend/app/src/app/modules/menu/navigation/navigation.scss b/frontend/app/src/app/modules/menu/navigation/navigation.scss new file mode 100644 index 00000000..830ebd71 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/navigation.scss @@ -0,0 +1,85 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@import '../../../../theme/util/mixins'; + +stapps-navigation-tabs { + @include ion-lg-up { + display: none; + } +} + +stapps-offline-notice.has-error ~ ion-split-pane, +stapps-offline-notice.is-offline ~ ion-split-pane { + margin-top: calc(var(--font-size-md) + 2 * var(--spacing-sm)); +} + +:host { + ion-split-pane { + transition: margin-top 150ms ease; + --side-max-width: 256px; + margin-bottom: calc(var(--ion-tabbar-height) + env(safe-area-inset-bottom)); + + @include phoneLandscape { + margin-bottom: 0; + } + + @include ion-md-up { + margin-bottom: 0; + margin-left: var(--navigation-rail-width); + } + + @include ion-lg-up { + margin-left: 0; + } + } + + ion-toolbar.in-toolbar { + padding-bottom: 0; + + ion-title { + position: relative; + padding: var(--spacing-xl) var(--spacing-md); + + .logo { + object-position: left; + height: 80px; + + @include ion-md-up { + height: var(--tablet-top-bar-height); + } + } + } + } +} + +ion-router-outlet { + background: white; +} + +.menu-category { + ion-label { + font-weight: bold; + font-size: 115%; + } +} + +.link-active > * { + color: var(--ion-color-primary); + + ::ng-deep stapps-icon { + --fill: 1; + } +} diff --git a/frontend/app/src/app/modules/menu/navigation/navigation.service.ts b/frontend/app/src/app/modules/menu/navigation/navigation.service.ts new file mode 100644 index 00000000..4f9033d7 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/navigation.service.ts @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {SCAppConfigurationMenuCategory} from '@openstapps/core'; +import {ConfigProvider} from '../../config/config.provider'; +import {NGXLogger} from 'ngx-logger'; + +@Injectable({ + providedIn: 'root', +}) +export class NavigationService { + constructor(private configProvider: ConfigProvider, private logger: NGXLogger) {} + + async getMenu() { + let menu: SCAppConfigurationMenuCategory[] = []; + try { + menu = this.configProvider.getValue('menus') as SCAppConfigurationMenuCategory[]; + } catch (error) { + this.logger.error(`error from loading menu entries: ${error}`); + } + + return menu; + } +} diff --git a/frontend/app/src/app/modules/menu/navigation/offline-notice.component.ts b/frontend/app/src/app/modules/menu/navigation/offline-notice.component.ts new file mode 100644 index 00000000..758fc8b3 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/offline-notice.component.ts @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, ElementRef, HostBinding, OnDestroy, ViewChild} from '@angular/core'; +import {InternetConnectionService} from '../../../util/internet-connection.service'; +import {Subscription} from 'rxjs'; +import {Router} from '@angular/router'; +import {NGXLogger} from 'ngx-logger'; + +@Component({ + selector: 'stapps-offline-notice', + templateUrl: 'offline-notice.html', + styleUrls: ['offline-notice.scss'], +}) +export class OfflineNoticeComponent implements OnDestroy { + @HostBinding('class.is-offline') isOffline = false; + + @HostBinding('class.has-error') hasError = false; + + @ViewChild('spinIcon', {read: ElementRef}) spinIcon: ElementRef; + + readonly subscriptions: Subscription[]; + + constructor( + readonly offlineProvider: InternetConnectionService, + readonly router: Router, + readonly logger: NGXLogger, + ) { + this.subscriptions = [ + this.offlineProvider.offline$.subscribe(isOffline => { + this.isOffline = isOffline; + }), + this.offlineProvider.error$.subscribe(hasError => { + this.hasError = hasError; + }), + ]; + } + + retry() { + this.spinIcon.nativeElement.classList.remove('spin'); + this.spinIcon.nativeElement.offsetWidth; + this.spinIcon.nativeElement.classList.add('spin'); + this.offlineProvider.retry(); + } + + ngOnDestroy() { + for (const subscription of this.subscriptions) { + subscription.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/modules/menu/navigation/offline-notice.html b/frontend/app/src/app/modules/menu/navigation/offline-notice.html new file mode 100644 index 00000000..ebd5e89a --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/offline-notice.html @@ -0,0 +1,25 @@ + + + + {{ 'app.errors.OFFLINE' | translate }} + + + + {{ 'app.errors.CONNECTION_ERROR' | translate }} + + diff --git a/frontend/app/src/app/modules/menu/navigation/offline-notice.scss b/frontend/app/src/app/modules/menu/navigation/offline-notice.scss new file mode 100644 index 00000000..952651bd --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/offline-notice.scss @@ -0,0 +1,77 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +:host { + display: grid; + $height: calc(var(--font-size-md) + 2 * var(--spacing-sm)); + + height: $height; + width: 100%; + + line-height: var(--font-size-md); + font-size: var(--font-size-md); + font-weight: bold; + + transform: translateY(calc(-1 * $height)); + + transition: all 150ms ease; + + &.is-offline, + &.has-error { + transform: translateY(0px); + } + + > ion-button { + grid-row: 1; + grid-column: 1; + margin: 0; + --border-radius: 0; + opacity: 0; + --padding-top: 0; + --padding-bottom: 0; + transition: all 150ms ease; + z-index: 0; + + &.close { + height: 100%; + margin: 0; + position: absolute; + right: 0; + top: 50%; + bottom: 0; + transform: translateY(-50%); + z-index: 1; + color: var(--ion-color-danger-contrast); + } + } + + &.is-offline > .offline-button, + &.has-error > .close, + &.has-error > .error-button { + opacity: 1; + } +} + +.spin { + animation: loading 1s ease running 3; +} + +@keyframes loading { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} diff --git a/frontend/app/src/app/modules/menu/navigation/root-link.directive.ts b/frontend/app/src/app/modules/menu/navigation/root-link.directive.ts new file mode 100644 index 00000000..ea933589 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/root-link.directive.ts @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Directive, ElementRef, Input, OnDestroy, OnInit, Renderer2} from '@angular/core'; +import {AnimationController, NavController} from '@ionic/angular'; +import {Router, RouterEvent} from '@angular/router'; +import {tabsTransition} from './tabs-transition'; +import {Subscription} from 'rxjs'; + +@Directive({ + selector: '[rootLink]', +}) +export class RootLinkDirective implements OnInit, OnDestroy { + @Input() rootLink: string; + + @Input() redirectedFrom: string; + + dispose: () => void; + + subscriptions: Subscription[] = []; + + private readonly classNames = ['tab-selected', 'link-active']; + + private needsInit = true; + + constructor( + private element: ElementRef, + private renderer: Renderer2, + private navController: NavController, + private router: Router, + private animationController: AnimationController, + ) {} + + ngOnInit() { + const animation = tabsTransition(this.animationController); + this.renderer.setAttribute(this.element.nativeElement, 'button', ''); + + this.subscriptions.push( + this.router.events.subscribe(event => { + if ( + event instanceof RouterEvent && + // @ts-expect-error access private member + (this.navController.direction === 'root' || this.needsInit) + ) { + if (event.url === this.rootLink || (this.redirectedFrom && event.url === this.redirectedFrom)) { + this.setActive(); + } else { + this.setInactive(); + } + this.needsInit = false; + } + }), + ); + + this.dispose = this.renderer.listen(this.element.nativeElement, 'click', () => { + this.setActive(); + this.navController.setDirection('root', true, 'back', animation); + void this.router.navigate([this.rootLink]); + }); + } + + setActive() { + for (const className of this.classNames) { + this.renderer.addClass(this.element.nativeElement, className); + } + } + + setInactive() { + for (const className of this.classNames) { + this.renderer.removeClass(this.element.nativeElement, className); + } + } + + ngOnDestroy() { + this.dispose(); + for (const subscription of this.subscriptions) { + subscription.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/modules/menu/navigation/tabs-routing.module.ts b/frontend/app/src/app/modules/menu/navigation/tabs-routing.module.ts new file mode 100644 index 00000000..8046ff51 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/tabs-routing.module.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {NgModule} from '@angular/core'; +import {RouterModule, Routes} from '@angular/router'; + +const routes: Routes = [ + { + path: '', + redirectTo: '/overview', + pathMatch: 'full', + }, +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class TabsRoutingModule {} diff --git a/frontend/app/src/app/modules/menu/navigation/tabs-transition.ts b/frontend/app/src/app/modules/menu/navigation/tabs-transition.ts new file mode 100644 index 00000000..1e04b6ce --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/tabs-transition.ts @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import type {AnimationBuilder} from '@ionic/angular'; +import {AnimationController} from '@ionic/angular'; +import type {AnimationOptions} from '@ionic/angular/providers/nav-controller'; + +/** + * + */ +export function tabsTransition(animationController: AnimationController): AnimationBuilder { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return (_baseElement: HTMLElement, options: AnimationOptions | any) => { + const duration = options.duration || 350; + const contentExitDuration = options.contentExitDuration || 100; + + const rootTransition = animationController.create().duration(duration); + + const enterTransition = animationController + .create() + .fromTo('opacity', '1', '1') + .addElement(options.enteringEl); + const exitZIndex = animationController + .create() + .beforeStyles({zIndex: 0}) + .afterClearStyles(['zIndex']) + .addElement(options.leavingEl); + const exitTransition = animationController + .create() + .duration(contentExitDuration * 2) + .easing('cubic-bezier(0.87, 0, 0.13, 1)') + .fromTo('opacity', '1', '0') + .addElement(options.leavingEl.querySelector('ion-header')); + const contentExit = animationController + .create() + .easing('linear') + .duration(contentExitDuration) + .fromTo('opacity', '1', '0') + .addElement(options.leavingEl.querySelectorAll(':scope > *:not(ion-header)')); + const contentEnter = animationController + .create() + .delay(contentExitDuration) + .duration(duration - contentExitDuration) + .easing('cubic-bezier(0.16, 1, 0.3, 1)') + .fromTo('transform', 'scale(1.025)', 'scale(1)') + .fromTo('opacity', '0', '1') + .addElement(options.enteringEl.querySelectorAll(':scope > *:not(ion-header)')); + + rootTransition.addAnimation([enterTransition, contentExit, contentEnter, exitTransition, exitZIndex]); + return rootTransition; + }; +} diff --git a/frontend/app/src/app/modules/menu/navigation/tabs.component.scss b/frontend/app/src/app/modules/menu/navigation/tabs.component.scss new file mode 100644 index 00000000..d6664e02 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/tabs.component.scss @@ -0,0 +1,60 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@import '../../../../theme/util/mixins'; + +:host { + position: absolute; + bottom: 0; + left: 0; + right: 0; + z-index: 100; + + .menu-button { + display: none; + } + + @include ion-md-up { + right: unset; + top: 0; + + .menu-button { + display: revert; + position: absolute; + top: 0; + left: 0; + right: 0; + margin-top: var(--spacing-xxl); + } + + ion-tab-bar { + border-top: unset; + position: relative; + border-right: var(--border); + flex-direction: column; + gap: var(--spacing-md); + width: var(--navigation-rail-width); + height: 100vh; + } + + ion-tab-button { + flex: unset; + height: var(--navigation-rail-item-height); + } + } +} + +.tab-selected ::ng-deep stapps-icon { + --fill: 1; +} diff --git a/frontend/app/src/app/modules/menu/navigation/tabs.component.ts b/frontend/app/src/app/modules/menu/navigation/tabs.component.ts new file mode 100644 index 00000000..cea59eb5 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/tabs.component.ts @@ -0,0 +1,104 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component} from '@angular/core'; +import {NavigationEnd, Router} from '@angular/router'; +import { + SCAppConfigurationMenuCategory, + SCLanguage, + SCThingTranslator, + SCTranslations, +} from '@openstapps/core'; +import {ConfigProvider} from '../../config/config.provider'; +import {LangChangeEvent, TranslateService} from '@ngx-translate/core'; +import {NGXLogger} from 'ngx-logger'; + +@Component({ + selector: 'stapps-navigation-tabs', + templateUrl: 'tabs.template.html', + styleUrls: ['./tabs.component.scss'], +}) +export class TabsComponent { + /** + * Possible languages to be used for translation + */ + language: keyof SCTranslations; + + /** + * Menu entries from config module + */ + menu: SCAppConfigurationMenuCategory[]; + + /** + * Core translator + */ + translator: SCThingTranslator; + + /** + * Name of selected tab + */ + selectedTab: string; + + constructor( + private readonly configProvider: ConfigProvider, + public translateService: TranslateService, + private readonly logger: NGXLogger, + private readonly router: Router, + ) { + this.language = this.translateService.currentLang as keyof SCTranslations; + this.translator = new SCThingTranslator(this.language); + void this.loadMenuEntries(); + this.router.events.subscribe((event: unknown) => { + if (event instanceof NavigationEnd) { + this.selectTab(event.url); + } + }); + this.selectTab(router.url); + + translateService.onLangChange?.subscribe((event: LangChangeEvent) => { + this.language = event.lang as keyof SCTranslations; + this.translator = new SCThingTranslator(this.language); + }); + } + + /** + * Loads menu entries from configProvider + */ + async loadMenuEntries() { + try { + const menus = (await this.configProvider.getValue('menus')) as SCAppConfigurationMenuCategory[]; + + const menu = menus.slice(0, 5); + if (menu) { + this.menu = menu; + } + } catch (error) { + this.logger.error(`error from loading menu entries: ${error}`); + } + } + + /* eslint-disable @typescript-eslint/no-explicit-any */ + selectTab(url: string) { + if (!this.menu) { + return; + } + if (url === '/') { + this.selectedTab = (this.menu[0] as any)?.title ?? ''; + return; + } + const candidate = this.menu.slice(0, 5).find(category => url.includes(category.route)); + this.selectedTab = candidate?.title ?? ''; + } +} diff --git a/frontend/app/src/app/modules/menu/navigation/tabs.spec.ts b/frontend/app/src/app/modules/menu/navigation/tabs.spec.ts new file mode 100644 index 00000000..3a350346 --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/tabs.spec.ts @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-explicit-any */ +import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; +import {TestBed, waitForAsync} from '@angular/core/testing'; +import {RouterTestingModule} from '@angular/router/testing'; + +import {TabsComponent} from './tabs.component'; +import {ConfigProvider} from '../../config/config.provider'; +import {sampleAuthConfiguration} from '../../../_helpers/data/sample-configuration'; +import {TranslateModule, TranslateService} from '@ngx-translate/core'; +import {NGXLogger} from 'ngx-logger'; +import {Platform} from '@ionic/angular'; +import {ThingTranslateService} from '../../../translation/thing-translate.service'; +import {SettingsProvider} from '../../settings/settings.provider'; +import {ScheduleSyncService} from '../../background/schedule/schedule-sync.service'; +import {StorageProvider} from '../../storage/storage.provider'; + +describe('Tabs', () => { + let platformReadySpy: any; + let platformSpy: jasmine.SpyObj; + let translateServiceSpy: jasmine.SpyObj; + let thingTranslateServiceSpy: jasmine.SpyObj; + let settingsProvider: jasmine.SpyObj; + let configProvider: jasmine.SpyObj; + let ngxLogger: jasmine.SpyObj; + let scheduleSyncServiceSpy: jasmine.SpyObj; + let platformIsSpy; + let storageProvider: jasmine.SpyObj; + beforeEach(waitForAsync(() => { + platformReadySpy = Promise.resolve(); + platformIsSpy = Promise.resolve(); + platformSpy = jasmine.createSpyObj('Platform', { + ready: platformReadySpy, + is: platformIsSpy, + }); + translateServiceSpy = jasmine.createSpyObj('TranslateService', ['setDefaultLang', 'use']); + thingTranslateServiceSpy = jasmine.createSpyObj('ThingTranslateService', ['init']); + settingsProvider = jasmine.createSpyObj('SettingsProvider', [ + 'getSettingValue', + 'provideSetting', + 'setCategoriesOrder', + ]); + scheduleSyncServiceSpy = jasmine.createSpyObj('ScheduleSyncService', [ + 'getDifferences', + 'postDifferencesNotification', + ]); + configProvider = jasmine.createSpyObj('ConfigProvider', ['init', 'getAnyValue']); + configProvider.getAnyValue = jasmine.createSpy().and.callFake(function () { + return sampleAuthConfiguration; + }); + ngxLogger = jasmine.createSpyObj('NGXLogger', ['log', 'error', 'warn']); + storageProvider = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put']); + + TestBed.configureTestingModule({ + declarations: [TabsComponent], + schemas: [CUSTOM_ELEMENTS_SCHEMA], + imports: [RouterTestingModule, TranslateModule.forRoot()], + providers: [ + {provide: Platform, useValue: platformSpy}, + {provide: TranslateService, useValue: translateServiceSpy}, + {provide: ThingTranslateService, useValue: thingTranslateServiceSpy}, + {provide: ScheduleSyncService, useValue: scheduleSyncServiceSpy}, + {provide: SettingsProvider, useValue: settingsProvider}, + {provide: ConfigProvider, useValue: configProvider}, + {provide: NGXLogger, useValue: ngxLogger}, + {provide: StorageProvider, useValue: storageProvider}, + ], + }).compileComponents(); + })); + + it('should create the tabs page', () => { + const fixture = TestBed.createComponent(TabsComponent); + const app = fixture.debugElement.componentInstance; + expect(app).toBeTruthy(); + }); +}); diff --git a/frontend/app/src/app/modules/menu/navigation/tabs.template.html b/frontend/app/src/app/modules/menu/navigation/tabs.template.html new file mode 100644 index 00000000..93fe858b --- /dev/null +++ b/frontend/app/src/app/modules/menu/navigation/tabs.template.html @@ -0,0 +1,51 @@ + + + + + + + + + + + + {{ category.translations[language].title | titlecase }} + + diff --git a/frontend/app/src/app/modules/news/elements/news-filter-settings/news-settings-filter.component.html b/frontend/app/src/app/modules/news/elements/news-filter-settings/news-settings-filter.component.html new file mode 100644 index 00000000..92a825dc --- /dev/null +++ b/frontend/app/src/app/modules/news/elements/news-filter-settings/news-settings-filter.component.html @@ -0,0 +1,9 @@ + + + + diff --git a/frontend/app/src/app/modules/news/elements/news-filter-settings/news-settings-filter.component.scss b/frontend/app/src/app/modules/news/elements/news-filter-settings/news-settings-filter.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/news/elements/news-filter-settings/news-settings-filter.component.ts b/frontend/app/src/app/modules/news/elements/news-filter-settings/news-settings-filter.component.ts new file mode 100644 index 00000000..2cf1db58 --- /dev/null +++ b/frontend/app/src/app/modules/news/elements/news-filter-settings/news-settings-filter.component.ts @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; +import {newsFilterSettingsFieldsMapping, NewsFilterSettingsNames} from '../../news-filter-settings'; +import {SCSearchValueFilter, SCSetting} from '@openstapps/core'; +import {DataProvider} from '../../../data/data.provider'; + +@Component({ + selector: 'stapps-news-settings-filter', + templateUrl: './news-settings-filter.component.html', + styleUrls: ['./news-settings-filter.component.scss'], +}) +export class NewsSettingsFilterComponent implements OnInit { + /** + * A map of the filters where the keys are settings names + */ + filtersMap = new Map(); + + /** + * Emits the current filters + */ + @Output() filtersChanged = new EventEmitter(); + + /** + * Provided settings to show the filters for + */ + @Input() settings: SCSetting[]; + + ngOnInit() { + for (const setting of this.settings) { + this.filtersMap.set( + setting.name as NewsFilterSettingsNames, + DataProvider.createValueFilter( + newsFilterSettingsFieldsMapping[setting.name as NewsFilterSettingsNames], + setting.value as string, + ), + ); + } + + this.filtersChanged.emit([...this.filtersMap.values()]); + } + + /** + * To be executed when a chip filter has been enabled/disabled + * + * @param setting The value of the filter + */ + stateChanged(setting: SCSetting) { + if (typeof this.filtersMap.get(setting.name as NewsFilterSettingsNames) !== 'undefined') { + this.filtersMap.delete(setting.name as NewsFilterSettingsNames); + } else { + this.filtersMap.set( + setting.name as NewsFilterSettingsNames, + DataProvider.createValueFilter( + newsFilterSettingsFieldsMapping[setting.name as NewsFilterSettingsNames], + setting.value as string, + ), + ); + } + + this.filtersChanged.emit([...this.filtersMap.values()]); + } +} diff --git a/frontend/app/src/app/modules/news/item/news-item.component.ts b/frontend/app/src/app/modules/news/item/news-item.component.ts new file mode 100644 index 00000000..4c5634bd --- /dev/null +++ b/frontend/app/src/app/modules/news/item/news-item.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {SCMessage} from '@openstapps/core'; + +/** + * News page component + */ +@Component({ + selector: 'stapps-news-item', + templateUrl: 'news-item.html', + styleUrls: ['news-item.scss'], +}) +export class NewsItemComponent { + /** + * News (message) to show + */ + @Input() item: SCMessage; +} diff --git a/frontend/app/src/app/modules/news/item/news-item.html b/frontend/app/src/app/modules/news/item/news-item.html new file mode 100644 index 00000000..3ec8c828 --- /dev/null +++ b/frontend/app/src/app/modules/news/item/news-item.html @@ -0,0 +1,29 @@ + + + + + {{ + item.datePublished | amCalendar | sentencecase + }} + + {{ item.name }} + + + diff --git a/frontend/app/src/app/modules/news/item/news-item.scss b/frontend/app/src/app/modules/news/item/news-item.scss new file mode 100644 index 00000000..495db923 --- /dev/null +++ b/frontend/app/src/app/modules/news/item/news-item.scss @@ -0,0 +1,47 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-card { + height: 100%; + margin: 0; + background-size: cover; +} + +ion-card::part(native) { + display: flex; + flex-direction: column-reverse; + height: 100%; + background: linear-gradient(to top, var(--ion-color-dark), transparent); +} + +.card { + aspect-ratio: 1; + padding: 0; + box-shadow: none; +} + +ion-card-title { + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + overflow: hidden; + font-size: var(--font-size-xl); + --color: var(--ion-color-dark-contrast); + max-lines: 3; +} + +ion-card-subtitle { + --color: var(--ion-color-dark-contrast); +} diff --git a/frontend/app/src/app/modules/news/item/skeleton-news-item.component.ts b/frontend/app/src/app/modules/news/item/skeleton-news-item.component.ts new file mode 100644 index 00000000..3f168138 --- /dev/null +++ b/frontend/app/src/app/modules/news/item/skeleton-news-item.component.ts @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2020-2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component} from '@angular/core'; + +/** + * A placeholder to show when a news item is being loaded + */ +@Component({ + selector: 'stapps-skeleton-news-item', + templateUrl: 'skeleton-news-item.html', +}) +export class SkeletonNewsItemComponent {} diff --git a/frontend/app/src/app/modules/news/item/skeleton-news-item.html b/frontend/app/src/app/modules/news/item/skeleton-news-item.html new file mode 100644 index 00000000..a4696a8c --- /dev/null +++ b/frontend/app/src/app/modules/news/item/skeleton-news-item.html @@ -0,0 +1,27 @@ + + + + + + + + + +

+

+

+
+
diff --git a/frontend/app/src/app/modules/news/news-filter-settings.ts b/frontend/app/src/app/modules/news/news-filter-settings.ts new file mode 100644 index 00000000..8860344b --- /dev/null +++ b/frontend/app/src/app/modules/news/news-filter-settings.ts @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {SCSettingCategories, SCThingsField} from '@openstapps/core'; +/** + * Category of settings to use for news filter + */ +export const newsFilterSettingsCategory: SCSettingCategories = 'profile'; +/** + * Settings to use for news filter + */ +export type NewsFilterSettingsNames = 'language' | 'group'; +/** + * The mapping between settings and corresponding data fields for building a value filter + */ +export const newsFilterSettingsFieldsMapping: { + [key in NewsFilterSettingsNames]: SCThingsField; +} = { + language: 'inLanguage', + group: 'audiences', +}; diff --git a/frontend/app/src/app/modules/news/news.module.ts b/frontend/app/src/app/modules/news/news.module.ts new file mode 100644 index 00000000..96419e4a --- /dev/null +++ b/frontend/app/src/app/modules/news/news.module.ts @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {RouterModule, Routes} from '@angular/router'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {MomentModule} from 'ngx-moment'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {DataModule} from '../data/data.module'; +import {SettingsProvider} from '../settings/settings.provider'; +import {NewsItemComponent} from './item/news-item.component'; +import {NewsPageComponent} from './page/news-page.component'; +import {SkeletonNewsItemComponent} from './item/skeleton-news-item.component'; +import {ChipFilterComponent} from '../data/chips/filter/chip-filter.component'; +import {SettingsModule} from '../settings/settings.module'; +import {NewsSettingsFilterComponent} from './elements/news-filter-settings/news-settings-filter.component'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +const newsRoutes: Routes = [{path: 'news', component: NewsPageComponent}]; + +/** + * News Module + */ +@NgModule({ + declarations: [ + NewsPageComponent, + SkeletonNewsItemComponent, + NewsItemComponent, + ChipFilterComponent, + NewsSettingsFilterComponent, + ], + imports: [ + IonicModule.forRoot(), + ThingTranslateModule.forChild(), + TranslateModule.forChild(), + RouterModule.forChild(newsRoutes), + IonIconModule, + CommonModule, + MomentModule, + DataModule, + ThingTranslateModule, + SettingsModule, + UtilModule, + ], + providers: [SettingsProvider], + exports: [NewsItemComponent], +}) +export class NewsModule {} diff --git a/frontend/app/src/app/modules/news/news.provider.ts b/frontend/app/src/app/modules/news/news.provider.ts new file mode 100644 index 00000000..e4006695 --- /dev/null +++ b/frontend/app/src/app/modules/news/news.provider.ts @@ -0,0 +1,113 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import { + SCBooleanFilterArguments, + SCMessage, + SCSearchBooleanFilter, + SCSearchFilter, + SCSearchQuery, + SCSearchValueFilter, + SCSetting, +} from '@openstapps/core'; +import {DataProvider} from '../data/data.provider'; +import { + newsFilterSettingsCategory, + newsFilterSettingsFieldsMapping, + NewsFilterSettingsNames, +} from './news-filter-settings'; +import {SettingsProvider} from '../settings/settings.provider'; + +/** + * Service for providing news messages + */ +@Injectable({ + providedIn: 'root', +}) +export class NewsProvider { + constructor(private dataProvider: DataProvider, private settingsProvider: SettingsProvider) {} + + async getCurrentSettings(): Promise { + const settings: SCSetting[] = []; + for (const settingName of Object.keys(newsFilterSettingsFieldsMapping) as NewsFilterSettingsNames[]) { + settings.push(await this.settingsProvider.getSetting(newsFilterSettingsCategory, settingName)); + } + return settings; + } + + async getCurrentFilters(): Promise { + const settings = await this.getCurrentSettings(); + const filtersMap = new Map(); + for (const setting of settings) { + filtersMap.set( + setting.name as NewsFilterSettingsNames, + DataProvider.createValueFilter( + newsFilterSettingsFieldsMapping[setting.name as NewsFilterSettingsNames], + setting.value as string, + ), + ); + } + + return [...filtersMap.values()]; + } + + /** + * Get news messages + * + * @param size How many messages/news to fetch + * @param from From which (results) page to start + * @param filters Additional filters to apply + */ + async getList(size: number, from: number, filters?: SCSearchFilter[]): Promise { + const query: SCSearchQuery = { + filter: { + type: 'boolean', + arguments: { + filters: [ + { + type: 'value', + arguments: { + field: 'type', + value: 'message', + }, + }, + ], + operation: 'and', + }, + }, + sort: [ + { + type: 'generic', + arguments: { + field: 'datePublished', + }, + order: 'desc', + }, + ], + size: size, + from: from, + }; + + if (typeof filters !== 'undefined') { + for (const filter of filters) { + ((query.filter as SCSearchBooleanFilter).arguments as SCBooleanFilterArguments).filters.push(filter); + } + } + + const result = await this.dataProvider.search(query); + + return result.data as SCMessage[]; + } +} diff --git a/frontend/app/src/app/modules/news/page/news-page.component.ts b/frontend/app/src/app/modules/news/page/news-page.component.ts new file mode 100644 index 00000000..7498f54a --- /dev/null +++ b/frontend/app/src/app/modules/news/page/news-page.component.ts @@ -0,0 +1,133 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnInit} from '@angular/core'; +import {IonRefresher} from '@ionic/angular'; +import {SCMessage, SCSearchFilter, SCSearchValueFilter, SCSetting} from '@openstapps/core'; +import {NewsProvider} from '../news.provider'; +import {SplashScreen} from '@capacitor/splash-screen'; + +/** + * News page component + */ +@Component({ + selector: 'stapps-news-page', + templateUrl: 'news-page.html', + styleUrls: ['news-page.scss'], +}) +export class NewsPageComponent implements OnInit { + /** + * Thing counter to start query the next page from + */ + from = 0; + + /** + * News (messages) to show + */ + news: SCMessage[] = []; + + /** + * Minimum page size of queries + */ + minPageSize = 10; + + /** + * Page size of queries + */ + pageSize = 10; + + /** + * Element size in px + */ + elementSize = [300, 300]; + + /** + * Relevant settings + */ + settings: SCSetting[]; + + /** + * Active filters + */ + filters: SCSearchFilter[]; + + constructor(private newsProvider: NewsProvider) {} + + /** + * Fetch news from the backend + */ + async fetchNews() { + this.from = this.pageSize; + this.news = await this.newsProvider.getList(this.pageSize, 0, [...this.filters]); + + await SplashScreen.hide(); + } + + /** + * Loads more news + */ + async loadMore(infiniteScrollElement?: HTMLIonInfiniteScrollElement, more = this.pageSize): Promise { + const from = this.from; + this.from += more; + const fetchedNews = await this.newsProvider.getList(more, from, [...this.filters]); + + this.news = [...this.news, ...fetchedNews]; + await infiniteScrollElement?.complete(); + } + + calcPageSize(entry: ResizeObserverEntry) { + this.pageSize = Math.max( + this.minPageSize, + Math.floor(entry.contentRect.width / this.elementSize[0]) * + Math.ceil(entry.contentRect.height / this.elementSize[1] + 0.25), + ); + if (!this.from || this.from === 0) return; + const more = Math.max(0, this.pageSize - this.from); + if (more !== 0) { + void this.loadMore(undefined, Math.max(more, this.minPageSize)); + } + } + + /** + * Initialize the local variables on component initialization + */ + async ngOnInit() { + this.settings = await this.newsProvider.getCurrentSettings(); + } + + /** + * Updates the shown list + * + * @param refresher Refresher component that triggers the update + */ + async refresh(refresher: IonRefresher) { + try { + await this.fetchNews(); + } catch { + this.news = []; + } finally { + await refresher.complete(); + } + } + + /** + * Executed when filters have been changed + * + * @param filters Current filters to be used + */ + toggleFilter(filters: SCSearchValueFilter[]) { + this.filters = filters; + void this.fetchNews(); + } +} diff --git a/frontend/app/src/app/modules/news/page/news-page.html b/frontend/app/src/app/modules/news/page/news-page.html new file mode 100644 index 00000000..8b631bf2 --- /dev/null +++ b/frontend/app/src/app/modules/news/page/news-page.html @@ -0,0 +1,62 @@ + + + + + + + + {{ 'news.title' | translate }} + + + + +
+ + + + + + + + + + + +
+ + + + + + +
+ + {{ 'search.nothing_found' | translate | titlecase }} + + + + +
+
diff --git a/frontend/app/src/app/modules/news/page/news-page.scss b/frontend/app/src/app/modules/news/page/news-page.scss new file mode 100644 index 00000000..6e55f07a --- /dev/null +++ b/frontend/app/src/app/modules/news/page/news-page.scss @@ -0,0 +1,32 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@import 'src/theme/util/mixins'; + +.news-grid { + display: grid; + gap: var(--spacing-sm); + margin: var(--spacing-sm); + @include auto-grid(300px); + + > * { + height: 100%; + } +} + +ion-content.ios > div > .news-grid { + gap: var(--spacing-lg); + margin: var(--spacing-lg); + @include auto-grid(350px); +} diff --git a/frontend/app/src/app/modules/profile/page/profile-page-section.component.ts b/frontend/app/src/app/modules/profile/page/profile-page-section.component.ts new file mode 100644 index 00000000..eacd025a --- /dev/null +++ b/frontend/app/src/app/modules/profile/page/profile-page-section.component.ts @@ -0,0 +1,131 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, Input, OnDestroy, OnInit} from '@angular/core'; +import {SCSection} from './sections'; +import {AuthHelperService} from '../../auth/auth-helper.service'; +import {Observable, Subscription} from 'rxjs'; +import {SCAuthorizationProviderType} from '@openstapps/core'; +import Swiper from 'swiper'; +import {AlertController} from '@ionic/angular'; +import {TranslateService} from '@ngx-translate/core'; + +@Component({ + selector: 'stapps-profile-page-section', + templateUrl: 'profile-page-section.html', + styleUrls: ['profile-page-section.scss'], +}) +export class ProfilePageSectionComponent implements OnInit, OnDestroy { + @Input() item: SCSection; + + @Input() minSlideWidth = 110; + + isLoggedIn: boolean; + + isEnd = false; + + isBeginning = true; + + subscriptions: Subscription[] = []; + + slidesPerView: number; + + slidesFillScreen = false; + + data: { + [key in SCAuthorizationProviderType]: {loggedIn$: Observable}; + } = { + default: { + loggedIn$: this.authHelper.getProvider('default').isAuthenticated$, + }, + paia: { + loggedIn$: this.authHelper.getProvider('paia').isAuthenticated$, + }, + }; + + constructor( + private authHelper: AuthHelperService, + private alertController: AlertController, + private translateService: TranslateService, + ) {} + + ngOnInit() { + if (this.item.authProvider) { + this.subscriptions.push( + this.data[this.item.authProvider].loggedIn$.subscribe(loggedIn => { + this.isLoggedIn = loggedIn; + }), + ); + } + } + + activeIndexChange(swiper: Swiper) { + this.isBeginning = swiper.isBeginning; + this.isEnd = swiper.isEnd; + this.slidesFillScreen = this.slidesPerView >= swiper.slides.length; + } + + resizeSwiper(resizeEvent: ResizeObserverEntry, swiper: Swiper) { + const slidesPerView = + Math.floor((resizeEvent.contentRect.width - this.minSlideWidth / 2) / this.minSlideWidth) + 0.5; + + if (slidesPerView > 1 && slidesPerView !== this.slidesPerView) { + this.slidesPerView = slidesPerView; + swiper.params.slidesPerView = this.slidesPerView; + swiper.update(); + this.activeIndexChange(swiper); + } + } + + async toggleLogIn() { + if (!this.item.authProvider) return; + await (this.isLoggedIn ? this.signOut(this.item.authProvider) : this.signIn(this.item.authProvider)); + } + + async signIn(providerType: SCAuthorizationProviderType) { + await this.authHelper.getProvider(providerType).signIn(); + } + + async signOut(providerType: SCAuthorizationProviderType) { + await this.authHelper.getProvider(providerType).signOut(); + + const alert: HTMLIonAlertElement = await this.alertController.create({ + header: this.translateService.instant(`auth.messages.${providerType}.log_out_alert.header`), + message: this.translateService.instant(`auth.messages.${providerType}.log_out_alert.message`), + buttons: [ + { + text: this.translateService.instant('no'), + cssClass: 'default', + }, + { + text: this.translateService.instant('yes'), + role: 'confirm', + cssClass: 'preferred', + handler: () => { + this.authHelper.endBrowserSession(providerType); + }, + }, + ], + }); + + await alert.present(); + } + + ngOnDestroy() { + for (const subscription of this.subscriptions) { + subscription.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/modules/profile/page/profile-page-section.html b/frontend/app/src/app/modules/profile/page/profile-page-section.html new file mode 100644 index 00000000..053ea254 --- /dev/null +++ b/frontend/app/src/app/modules/profile/page/profile-page-section.html @@ -0,0 +1,38 @@ + + + + + + + + + {{ 'profile.buttons.default.log_' + (isLoggedIn ? 'out' : 'in') | translate }} + + + + +
+ + {{ 'name' | translateSimple: link }} +
+
+
+
diff --git a/frontend/app/src/app/modules/profile/page/profile-page-section.scss b/frontend/app/src/app/modules/profile/page/profile-page-section.scss new file mode 100644 index 00000000..fd2d18f1 --- /dev/null +++ b/frontend/app/src/app/modules/profile/page/profile-page-section.scss @@ -0,0 +1,66 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +$width: 108px; + +simple-swiper { + container-type: inline-size; + --swiper-slide-width: #{$width}; + + ion-item { + @each $i in 7, 6, 5, 4, 3, 2, 1 { + $max: #{($width + 8px) * $i}; + @container (inline-size < #{$max}) { + --swiper-slide-width: #{100cqi / $i}; + } + } + } +} + +ion-item { + height: 96px; + --border-radius: var(--border-radius-default); + --inner-padding-start: unset; + --inner-padding-end: unset; + --padding-start: unset; + --padding-end: unset; + + > div { + width: 100%; + height: 100%; + } + + div, + ion-label { + white-space: normal; + text-align: center; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + font-size: var(--font-size-sm); + } + + &::part(native) { + height: 100%; + width: 100%; + } +} + +.log-in-hint { + padding: var(--spacing-xl); + height: 100%; + box-shadow: none; + background: var(--ion-color-light-tint); +} diff --git a/frontend/app/src/app/modules/profile/page/profile-page.component.ts b/frontend/app/src/app/modules/profile/page/profile-page.component.ts new file mode 100644 index 00000000..62aa913e --- /dev/null +++ b/frontend/app/src/app/modules/profile/page/profile-page.component.ts @@ -0,0 +1,158 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, OnInit} from '@angular/core'; +import {Observable, of, Subscription} from 'rxjs'; +import {AuthHelperService} from '../../auth/auth-helper.service'; +import {SCAuthorizationProviderType, SCDateSeries, SCUserConfiguration} from '@openstapps/core'; +import {ActivatedRoute} from '@angular/router'; +import {ScheduleProvider} from '../../calendar/schedule.provider'; +import moment from 'moment'; +import {SCIcon} from '../../../util/ion-icon/icon'; +import {profilePageSections} from './sections'; +import {filter, map} from 'rxjs/operators'; + +const CourseCard = { + collapsed: SCIcon`expand_more`, + expanded: SCIcon`expand_less`, +}; + +interface MyCoursesTodayInterface { + startTime: string; + endTime: string; + course: SCDateSeries; +} + +@Component({ + selector: 'app-home', + templateUrl: 'profile-page.html', + styleUrls: ['profile-page.scss'], +}) +export class ProfilePageComponent implements OnInit { + data: { + [key in SCAuthorizationProviderType]: {loggedIn$: Observable}; + } = { + default: {loggedIn$: of(false)}, + paia: {loggedIn$: of(false)}, + }; + + user$ = this.authHelper.getProvider('default').user$.pipe( + filter(user => typeof user !== 'undefined'), + map(userInfo => { + return this.authHelper.getUserFromUserInfo(userInfo as object); + }), + ); + + sections = profilePageSections; + + logins: SCAuthorizationProviderType[] = []; + + originPath: string | null; + + userInfo?: SCUserConfiguration; + + courseCardEnum = CourseCard; + + courseCardState = CourseCard.expanded; + + todayDate = moment().startOf('day').add(0, 'day').format(); // moment().startOf('day').format(); '2022-05-03T00:00:00+02:00' + + myCoursesToday: MyCoursesTodayInterface[] = []; + + subscriptions: Subscription[] = []; + + constructor( + private authHelper: AuthHelperService, + private route: ActivatedRoute, + protected readonly scheduleProvider: ScheduleProvider, + ) {} + + ngOnInit() { + this.data.default.loggedIn$ = this.authHelper.getProvider('default').isAuthenticated$; + this.data.paia.loggedIn$ = this.authHelper.getProvider('paia').isAuthenticated$; + + this.subscriptions.push( + this.route.queryParamMap.subscribe(queryParameters => { + this.originPath = queryParameters.get('origin_path'); + }), + ); + + this.getMyCourses(); + } + + async getMyCourses() { + const uuidSubscription = this.scheduleProvider.uuids$.subscribe(async result => { + const courses = await this.scheduleProvider.getDateSeries(result); + + for (const course of courses.dates) { + for (const date of course.dates) { + if (moment(date).startOf('day').format() === this.todayDate) { + this.myCoursesToday[this.myCoursesToday.length] = { + startTime: moment(date).format('LT'), + endTime: moment(date).add(course.duration).format('LT'), + course, + }; + } + } + } + uuidSubscription.unsubscribe(); + }); + } + + async signIn(providerType: SCAuthorizationProviderType) { + await this.handleOriginPath(); + this.authHelper.getProvider(providerType).signIn(); + } + + async signOut(providerType: SCAuthorizationProviderType) { + await this.authHelper.getProvider(providerType).signOut(); + this.userInfo = undefined; + } + + toggleCourseCardState() { + if (this.courseCardState === CourseCard.expanded) { + const card: HTMLElement | null = document.querySelector('.course-card'); + const height = card?.scrollHeight; + if (card && height) { + card.style.setProperty('--max-height', height + 'px'); + } + } + + this.courseCardState = + this.courseCardState === CourseCard.expanded ? CourseCard.collapsed : CourseCard.expanded; + } + + private async handleOriginPath() { + this.originPath + ? await this.authHelper.setOriginPath(this.originPath) + : await this.authHelper.deleteOriginPath(); + } + + ionViewWillEnter() { + this.authHelper + .getProvider('default') + .getValidToken() + .then(() => void this.authHelper.getProvider('default').loadUserInfo()) + .catch(() => { + // noop + }); + this.authHelper + .getProvider('paia') + .getValidToken() + .catch(() => { + // noop + }); + } +} diff --git a/frontend/app/src/app/modules/profile/page/profile-page.html b/frontend/app/src/app/modules/profile/page/profile-page.html new file mode 100644 index 00000000..a52c2550 --- /dev/null +++ b/frontend/app/src/app/modules/profile/page/profile-page.html @@ -0,0 +1,122 @@ + + + + + + + + {{ 'profile.title' | translate | titlecase }} + + + + +
+
+ + + + + {{ + userInfo.role ? (userInfo?.role | titlecase) : ('profile.role_guest' | translate | titlecase) + }} + + + + + + + + + + + {{ userInfo?.name }} + +
+ + {{ 'profile.userInfo.studentId' | translate | uppercase }} + + + {{ userInfo?.studentId }} + +
+
+ + {{ 'profile.userInfo.username' | translate | uppercase }} + + {{ userInfo?.id }} +
+ +
+
+ + + + + +
+
+
+
+
+ +
+ + {{ 'profile.titleCourses' | translate | uppercase }} + + + + {{ 'profile.courses.today' | translate | uppercase }} + + + + +
+ {{ 'profile.courses.no_courses' | translate }} +
+
+ +
+
{{ myCourse?.startTime }} - {{ myCourse?.endTime }}
+
{{ myCourse?.course.event?.originalCategory }}
+
+ {{ myCourse.course?.event?.name }} +
+
+ {{ myCourse.course?.inPlace.name }} +
+
+
+
+
+
+
+
diff --git a/frontend/app/src/app/modules/profile/page/profile-page.scss b/frontend/app/src/app/modules/profile/page/profile-page.scss new file mode 100644 index 00000000..ff2ecdce --- /dev/null +++ b/frontend/app/src/app/modules/profile/page/profile-page.scss @@ -0,0 +1,213 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@import 'src/theme/common/ion-content-parallax'; + +:host { + ion-content { + --background: var(--ion-color-light); + + @include ion-content-parallax($content-size: 130px); + } + + section { + margin-bottom: calc(2 * var(--spacing-lg) - var(--spacing-md)); + padding: var(--spacing-md); + + &:last-of-type { + margin-bottom: 0; + } + } + .section-headline { + margin-bottom: var(--spacing-md); + } + .user-card-wrapper { + margin-bottom: 0; + .user-card { + border-radius: var(--border-radius-default); + position: relative; + margin: 0; + box-shadow: var(--shadow-profile-card); + max-width: 400px; + + ion-card-header { + --background: var(--ion-color-tertiary); + display: flex; + align-items: center; + padding-top: var(--spacing-sm); + padding-bottom: var(--spacing-sm); + + ion-img { + display: block; + height: 36px; + object-position: left 50%; + margin-right: auto; + } + + span { + color: var(--ion-color-light); + font-size: var(--font-size-lg); + font-weight: var(--font-weight-bold); + line-height: 1; + padding-top: 3px; + } + } + + ion-card-content { + min-height: 15vh; + + .profile-card-img { + position: absolute; + opacity: 0.13; + height: 100%; + width: 50%; + margin-left: calc(var(--spacing-md) * -4); + object-position: left bottom; + } + + .main-info { + display: grid; + grid-template-areas: + 'fullName fullName' + 'matriculationNumber userName' + 'email email'; + + ion-label { + font-size: var(--font-size-sm); + font-weight: var(--font-weight-bold); + color: var(--ion-color-medium-shade); + display: block; + } + + ion-text { + font-size: var(--font-size-md); + font-weight: var(--font-weight-bold); + color: var(--ion-color-text); + display: block; + } + + .full-name { + grid-area: fullName; + display: block; + font-size: var(--font-size-lg); + font-weight: var(--font-weight-bold); + margin-bottom: var(--spacing-sm); + } + + .matriculation-number { + grid-area: matriculationNumber; + margin-bottom: var(--spacing-sm); + } + + .user-name { + grid-area: userName; + margin-bottom: var(--spacing-sm); + } + + .email { + grid-area: email; + } + } + + .log-in-prompt { + margin: auto 0; + color: var(--ion-color-text); + font-size: var(--font-size-lg); + font-weight: var(--font-weight-semi-bold); + } + } + } + } + + ion-thumbnail { + background: var(--placeholder-gray); + height: 80%; + width: 80%; + align-items: center; + padding: 10px; + margin: 0; + border-radius: var(--border-radius-default); + ion-icon { + width: 100%; + height: 100%; + color: white; + display: block; + } + } + ion-row.main-info { + font-weight: bold; + margin-bottom: 2px; + } + + .courses { + .courses-card { + margin: 0; + box-shadow: none; + border-radius: var(--border-radius-default) var(--border-radius-default) 0 0; + background-color: unset; + max-width: 800px; + + ion-card-header { + background-color: var(--ion-color-light-contrast); + border-radius: var(--border-radius-default) var(--border-radius-default) 0 0; + display: flex; + justify-content: space-between; + align-items: center; + + span { + color: var(--ion-color-light); + font-size: var(--font-size-lg); + font-weight: var(--font-weight-bold); + } + ion-icon { + color: var(--ion-color-light); + cursor: pointer; + } + } + + ion-card-content { + margin: 0; + padding: 0; + background-color: var(--ion-color-primary-contrast); + border-radius: var(--border-radius-default); + max-height: 0; + overflow: hidden; + transition: max-height 250ms ease-in-out, padding 250ms ease-in-out, margin 250ms ease-in-out; + + &.show-card { + height: 100%; + display: block; + margin: var(--spacing-xxl); + padding: var(--spacing-md); + max-height: var(--max-height); + } + + div { + font-size: var(--font-size-md); + font-weight: var(--font-weight-black); + color: var(--ion-color-light-contrast); + text-align: center; + + &.no-course { + padding: var(--spacing-xxl) var(--spacing-lg); + } + + &.last { + margin-bottom: var(--spacing-xl); + } + } + } + } + } +} diff --git a/frontend/app/src/app/modules/profile/page/profile-page.spec.ts b/frontend/app/src/app/modules/profile/page/profile-page.spec.ts new file mode 100644 index 00000000..f2a60ace --- /dev/null +++ b/frontend/app/src/app/modules/profile/page/profile-page.spec.ts @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; +import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {HttpClientTestingModule} from '@angular/common/http/testing'; +import {RouterTestingModule} from '@angular/router/testing'; +import {AuthModule} from '../../auth/auth.module'; +import {ProfilePageComponent} from './profile-page.component'; +import {TranslateModule} from '@ngx-translate/core'; +import {ConfigProvider} from '../../config/config.provider'; +import {sampleAuthConfiguration} from '../../../_helpers/data/sample-configuration'; +import {StorageProvider} from '../../storage/storage.provider'; +import {ScheduleProvider} from '../../calendar/schedule.provider'; +import {DataProvider} from '../../data/data.provider'; +import {StAppsWebHttpClient} from '../../data/stapps-web-http-client.provider'; +import {SimpleBrowser} from '../../../util/browser.factory'; + +describe('ProfilePage', () => { + let component: ProfilePageComponent; + let fixture: ComponentFixture; + let configProvider: ConfigProvider; + let storageProvider: jasmine.SpyObj; + let simpleBrowser: jasmine.SpyObj; + + beforeEach(() => { + configProvider = jasmine.createSpyObj('ConfigProvider', ['init', 'getAnyValue']); + storageProvider = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put']); + simpleBrowser = jasmine.createSpyObj('SimpleBrowser', ['open']); + configProvider.getAnyValue = jasmine.createSpy().and.callFake(function () { + return sampleAuthConfiguration; + }); + + const webHttpClientMethodSpy = jasmine.createSpyObj('StAppsWebHttpClient', ['request']); + + TestBed.configureTestingModule({ + declarations: [ProfilePageComponent], + imports: [HttpClientTestingModule, RouterTestingModule, AuthModule, TranslateModule.forRoot()], + providers: [ + {provide: ConfigProvider, useValue: configProvider}, + {provide: StorageProvider, useValue: storageProvider}, + {provide: StAppsWebHttpClient, useValue: webHttpClientMethodSpy}, + {provide: SimpleBrowser, useValue: simpleBrowser}, + ScheduleProvider, + DataProvider, + ], + schemas: [CUSTOM_ELEMENTS_SCHEMA], + }).compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(ProfilePageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/frontend/app/src/app/modules/profile/page/sections.ts b/frontend/app/src/app/modules/profile/page/sections.ts new file mode 100644 index 00000000..6da89ea3 --- /dev/null +++ b/frontend/app/src/app/modules/profile/page/sections.ts @@ -0,0 +1,232 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +// TODO: move this to external configuration & stapps core + +import { + SCAuthorizationProviderType, + SCThing, + SCThingOriginType, + SCThingRemoteOrigin, + SCThingType, +} from '@openstapps/core'; +import {SCIcon} from '../../../util/ion-icon/icon'; + +export const SCSectionThingType = 'section' as SCThingType; +export const SCSectionLinkThingType = 'section link' as SCThingType; + +const StubOrigin: SCThingRemoteOrigin = { + type: SCThingOriginType.Remote, + name: 'todo', + indexed: new Date(Date.now()).toISOString(), +}; + +const SCSectionConstantValues: Pick = { + type: SCSectionThingType, + origin: StubOrigin, + uid: 'stub', +}; + +const SCSectionLinkConstantValues: Pick = { + type: SCSectionLinkThingType, + origin: StubOrigin, + uid: 'stub', +}; + +export interface SCSectionLink extends SCThing { + link: string[]; + needsAuth?: true; + icon?: string; +} + +export interface SCSection extends SCThing { + authProvider?: SCAuthorizationProviderType; + links: SCSectionLink[]; +} + +export const profilePageSections: SCSection[] = [ + { + name: '', + links: [ + { + name: 'Favorites', + icon: SCIcon`grade`, + link: ['/favorites'], + translations: { + de: { + name: 'Favoriten', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'Schedule', + icon: SCIcon`calendar_today`, + link: ['/schedule'], + translations: { + de: { + name: 'Stundenplan', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'Course Catalog', + icon: SCIcon`inventory_2`, + link: ['/catalog'], + translations: { + de: { + name: 'Vorlesungs-verzeichnis', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'Settings', + icon: SCIcon`settings`, + link: ['/settings'], + translations: { + de: { + name: 'Einstellungen', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'Feedback', + icon: SCIcon`rate_review`, + link: ['/feedback'], + translations: { + de: { + name: 'Feedback', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'About', + icon: SCIcon`info`, + link: ['/about'], + translations: { + de: { + name: 'Über die App', + }, + }, + ...SCSectionLinkConstantValues, + }, + ], + translations: { + de: { + name: '', + }, + }, + ...SCSectionConstantValues, + }, + { + name: 'Campus Services', + authProvider: 'default', + links: [ + { + name: 'Assessments', + icon: SCIcon`fact_check`, + link: ['/assessments'], + needsAuth: true, + translations: { + de: { + name: 'Noten', + }, + }, + ...SCSectionLinkConstantValues, + }, + ], + translations: { + de: { + name: 'Campus Dienste', + }, + }, + ...SCSectionConstantValues, + }, + { + name: 'Library', + authProvider: 'paia', + links: [ + { + name: 'Library Catalog', + icon: SCIcon`local_library`, + link: ['/hebis-search'], + translations: { + de: { + name: 'Bibliotheks-katalog', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'Library Account', + icon: SCIcon`badge`, + needsAuth: true, + link: ['/library-account/profile'], + translations: { + de: { + name: 'Bibliotheks-konto', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'Orders & Reservations', + icon: SCIcon`collections_bookmark`, + needsAuth: true, + link: ['/library-account/holds'], + translations: { + de: { + name: 'Bestellungen & Vormerkungen', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'Checked out items', + icon: SCIcon`library_books`, + needsAuth: true, + link: ['/library-account/checked-out'], + translations: { + de: { + name: 'Deine Ausleihen', + }, + }, + ...SCSectionLinkConstantValues, + }, + { + name: 'Fines', + icon: SCIcon`request_page`, + needsAuth: true, + link: ['/library-account/fines'], + translations: { + de: { + name: 'Gebühren', + }, + }, + ...SCSectionLinkConstantValues, + }, + ], + translations: { + de: { + name: 'Bibliothek', + }, + }, + ...SCSectionConstantValues, + }, +]; diff --git a/frontend/app/src/app/modules/profile/profile.module.ts b/frontend/app/src/app/modules/profile/profile.module.ts new file mode 100644 index 00000000..fc09fc83 --- /dev/null +++ b/frontend/app/src/app/modules/profile/profile.module.ts @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {NgModule} from '@angular/core'; +import {CommonModule} from '@angular/common'; +import {FormsModule} from '@angular/forms'; +import {RouterModule, Routes} from '@angular/router'; +import {IonicModule} from '@ionic/angular'; +import {ProfilePageComponent} from './page/profile-page.component'; +import {TranslateModule} from '@ngx-translate/core'; +import {SwiperModule} from 'swiper/angular'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; +import {ProfilePageSectionComponent} from './page/profile-page-section.component'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; + +const routes: Routes = [ + { + path: 'profile', + component: ProfilePageComponent, + }, +]; + +@NgModule({ + declarations: [ProfilePageComponent, ProfilePageSectionComponent], + imports: [ + CommonModule, + FormsModule, + IonIconModule, + IonicModule, + RouterModule.forChild(routes), + TranslateModule, + SwiperModule, + UtilModule, + ThingTranslateModule, + ], +}) +export class ProfilePageModule {} diff --git a/frontend/app/src/app/modules/schedule/page/calendar-view.component.ts b/frontend/app/src/app/modules/schedule/page/calendar-view.component.ts new file mode 100644 index 00000000..68faff56 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/calendar-view.component.ts @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {AfterViewInit, Component, Input, OnDestroy, OnInit, ViewChild} from '@angular/core'; +import {ActivatedRoute} from '@angular/router'; +import moment from 'moment'; +import {materialFade, materialManualFade, materialSharedAxisX} from '../../../animation/material-motion'; +import {ScheduleResponsiveBreakpoint} from './schema/schema'; +import {ScheduleProvider} from '../../calendar/schedule.provider'; +import {CalendarComponent} from './components/calendar.component'; +import {CalendarService} from '../../calendar/calendar.service'; +import {InfiniteSwiperComponent} from './grid/infinite-swiper.component'; +import {IonContent} from '@ionic/angular'; + +/** + * Component that displays the schedule + */ +@Component({ + selector: 'stapps-calendar-view', + templateUrl: 'calendar-view.html', + styleUrls: ['calendar-view.scss', './components/calendar-component.scss'], + animations: [materialFade, materialSharedAxisX, materialManualFade], +}) +export class CalendarViewComponent extends CalendarComponent implements OnInit, OnDestroy, AfterViewInit { + @ViewChild('mainSwiper') mainSwiper: InfiniteSwiperComponent; + + @ViewChild('headerSwiper') headerSwiper: InfiniteSwiperComponent; + + @ViewChild('content') content: IonContent; + + /** + * Layout of the schedule + */ + @Input() layout: ScheduleResponsiveBreakpoint; + + /** + * Vertical scale of the schedule (distance between hour lines) + */ + scale = 70; + + /** + * For use in templates + */ + moment = moment; + + constructor( + activatedRoute: ActivatedRoute, + calendarService: CalendarService, + scheduleProvider: ScheduleProvider, + ) { + super(activatedRoute, calendarService, scheduleProvider); + // This could be done directly on the properties too instead of + // here in the constructor, but because of TSLint member ordering, + // some properties wouldn't be initialized, and if you disable + // member ordering, auto-fixing the file can still cause reordering + // of properties. + const hoursAmount = this.hoursRange.to - this.hoursRange.from + 1; + this.hours = [...Array.from({length: hoursAmount}).keys()]; + } + + /** + * Initialize + */ + ngOnInit() { + super.onInit(); + if (this.calendarServiceSubscription) { + this.calendarServiceSubscription.unsubscribe(); + } + this.calendarServiceSubscription = this.calendarService.goToDateClicked.subscribe(async newIndex => { + await this.mainSwiper.goToIndex(newIndex); + this.setDateRange(newIndex); + await this.scrollCursorIntoView(this.content); + }); + } + + ngAfterViewInit() { + void this.scrollCursorIntoView(this.content); + } + + /** + * OnDestroy + */ + ngOnDestroy(): void { + super.onDestroy(); + } + + /** + * Load events + */ + async loadEvents(): Promise { + await super.loadEvents(); + + return this.todaySlideIndex; + } +} diff --git a/frontend/app/src/app/modules/schedule/page/calendar-view.html b/frontend/app/src/app/modules/schedule/page/calendar-view.html new file mode 100644 index 00000000..b0af6a04 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/calendar-view.html @@ -0,0 +1,80 @@ + +
+ + + + + + + + +
+ + {{ dateRange.startDate }} - {{ dateRange.endDate }} + + + + + + + + +
+
+
+
+ + +
+
+ +
+ {{ i + hoursRange.from }} +
+
+
+ + + + + + +
+
+
diff --git a/frontend/app/src/app/modules/schedule/page/calendar-view.scss b/frontend/app/src/app/modules/schedule/page/calendar-view.scss new file mode 100644 index 00000000..40ab8523 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/calendar-view.scss @@ -0,0 +1,14 @@ +/*! + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ diff --git a/frontend/app/src/app/modules/schedule/page/components/calendar-component.html b/frontend/app/src/app/modules/schedule/page/components/calendar-component.html new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/schedule/page/components/calendar-component.scss b/frontend/app/src/app/modules/schedule/page/components/calendar-component.scss new file mode 100644 index 00000000..feb3fcfa --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/components/calendar-component.scss @@ -0,0 +1,123 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +$header-height: 50px; +$hours-width: 40px; + +.header { + height: $header-height; + background-color: var(--ion-color-light); + position: relative; + + .left-button, + .right-button { + color: var(--ion-color-medium-shade); + position: absolute; + z-index: 99; + height: 100%; + margin: 0; + --padding-start: 0; + --padding-end: 0; + } + .left-button { + left: 0; + padding: 0 var(--spacing-sm); + } + .right-button { + right: 0; + padding: 0 var(--spacing-sm); + } + + .day-labels { + ion-button { + width: unset; + color: var(--ion-color-light-contrast); + overflow: visible !important; + } + } + + .header-swiper { + background-color: var(--ion-color-light); + } +} + +.full-height { + height: 100%; +} + +.day-labels { + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + + ion-button { + width: 100%; + height: 100%; + + text-transform: none; + ion-label { + overflow: visible !important; + } + } +} + +ion-content { + overflow-y: auto; +} + +.schedule-wrapper { + display: grid; + grid-template-columns: 40px calc(100% - 40px); // swiper.js can't calculate width when using 1fr instead of 100% + height: 100%; + + .hours-wrapper { + z-index: 100; + background-color: var(--ion-color-primary-contrast); + + .hour-lines { + width: 40px; + height: 70px; + border-right: 1px solid var(--ion-color-light); + text-align: center; + top: 0; + position: absolute; + font-weight: var(--font-weight-bold); + background-color: var(--calender-background-color); + } + } + + .infinite-swiper-wrapper { + width: 100%; + } +} + +.date-header { + border-bottom: 1px solid var(--calender-date-line-gray); + padding: var(--spacing-sm) auto; + height: fit-content; + font-weight: var(--font-weight-bold); + text-transform: uppercase; + text-align: center; +} + +.day-labels > ion-button[disabled] { + opacity: 1; +} + +div { + height: 100%; +} diff --git a/frontend/app/src/app/modules/schedule/page/components/calendar.component.ts b/frontend/app/src/app/modules/schedule/page/components/calendar.component.ts new file mode 100644 index 00000000..092f5748 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/components/calendar.component.ts @@ -0,0 +1,240 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnDestroy, OnInit} from '@angular/core'; +import {ActivatedRoute} from '@angular/router'; +import {SCISO8601Date, SCUuid} from '@openstapps/core'; +import moment, {Moment} from 'moment'; +import {materialFade, materialManualFade, materialSharedAxisX} from '../../../../animation/material-motion'; +import {ScheduleProvider} from '../../../calendar/schedule.provider'; +import {ScheduleEvent, ScheduleResponsiveBreakpoint} from '../schema/schema'; +import {SwiperComponent} from 'swiper/angular'; +import {InfiniteSwiperComponent} from '../grid/infinite-swiper.component'; +import {IonContent, IonDatetime} from '@ionic/angular'; +import {Subscription} from 'rxjs'; +import {CalendarService} from '../../../calendar/calendar.service'; +import {getScheduleCursorOffset} from '../grid/schedule-cursor-offset'; + +/** + * Component that displays the schedule + */ +@Component({ + selector: 'stapps-calendar-component', + templateUrl: 'calendar-component.html', + styleUrls: ['calendar-component.scss'], + animations: [materialFade, materialSharedAxisX, materialManualFade], +}) +export class CalendarComponent implements OnInit, OnDestroy { + /** + * The day that the schedule started out on + */ + @Input() baselineDate: Moment; + + /** + * Range of date of the slides shown on screen. + */ + dateRange: { + startDate: string; + endDate: string; + } = { + startDate: '', + endDate: '', + }; + + calendarServiceSubscription: Subscription; + + prevHeaderIndex = 0; + + /** + * Hours for grid + */ + @Input() hours: number[]; + + /** + * Range of hours to display + */ + @Input() readonly hoursRange = { + from: 5, + to: 22, + }; + + todaySlideIndex: number; + + initialSlideIndex?: Promise; + + /** + * Layout of the schedule + */ + @Input() layout: ScheduleResponsiveBreakpoint; + + /** + * Route fragment + */ + routeFragment = 'schedule/calendar'; + + /** + * Vertical scale of the schedule (distance between hour lines) + */ + @Input() scale = 70; + + /** + * unix -> (uid -> event) + */ + @Input() testSchedule: Record> = {}; + + /** + * UUIDs + */ + @Input() uuids: SCUuid[]; + + /** + * UUID subscription + */ + uuidSubscription: Subscription; + + @Input() useInfiniteSwiper = true; + + @Input() weekDates: Array; + + constructor( + protected readonly activatedRoute: ActivatedRoute, + protected readonly calendarService: CalendarService, + protected readonly scheduleProvider: ScheduleProvider, + ) {} + + ngOnInit() { + this.onInit(); + } + + ngOnDestroy() { + this.onDestroy(); + } + + onInit() { + let dayString: string | number | null = this.activatedRoute.snapshot.paramMap.get('date'); + if (dayString == undefined || dayString === 'now') { + const fragments = window.location.href.split('/'); + const urlFragment: string = fragments[fragments.length - 1] ?? ''; + + dayString = /^\d{4}-\d{2}-\d{2}$/.test(urlFragment) ? urlFragment : moment.now(); + } + + this.baselineDate = moment(dayString).startOf('day'); + + this.initialSlideIndex = new Promise(resolve => { + this.uuidSubscription = this.scheduleProvider.uuids$.subscribe(async result => { + this.uuids = result; + resolve(await this.loadEvents()); + }); + }); + + this.dateRange.startDate = this.calculateDateFromIndex(0, 0, 'DD.MM.YY'); + this.dateRange.endDate = this.calculateDateFromIndex(0, this.layout.days - 1, 'DD.MM.YY'); + } + + async scrollCursorIntoView(content: IonContent) { + const scrollElement = await content.getScrollElement(); + scrollElement.scrollTo({ + top: getScheduleCursorOffset(this.hoursRange.from, this.scale) - scrollElement.clientHeight / 3, + }); + } + + onDestroy() { + this.uuidSubscription.unsubscribe(); + if (this.calendarServiceSubscription) { + this.calendarServiceSubscription.unsubscribe(); + } + } + + /** + * Get date from baseline date and index of current slide. + * + * @param index number + * @param delta number - is added to index + * @param dateFormat string + */ + calculateDateFromIndex(index: number, delta = 0, dateFormat = 'YYYY-MM-DD') { + return moment(this.baselineDate) + .add(index + delta, 'days') + .format(dateFormat); + } + + /** + * Change page + */ + onPageChange(index: number) { + this.setDateRange(index); + + window.history.replaceState({}, '', `${this.routeFragment}/${this.calculateDateFromIndex(index)}`); + } + + setDateRange(index: number) { + this.dateRange.startDate = this.calculateDateFromIndex(index, 0, 'DD.MM.YY'); + this.dateRange.endDate = this.calculateDateFromIndex(index, this.layout.days - 1, 'DD.MM.YY'); + } + + onHeaderSwipe(index: number, infiniteController: InfiniteSwiperComponent) { + if (index < this.prevHeaderIndex) { + infiniteController?.pageBackwards(); + } + if (index > this.prevHeaderIndex) { + infiniteController?.pageForward(); + } + this.prevHeaderIndex = index; + } + + syncSwiper(self: SwiperComponent, other: SwiperComponent) { + other.swiperRef.slideTo(self.swiperRef.activeIndex); + } + + presentDatePopover( + mainSwiper: InfiniteSwiperComponent, + headerSwiper: InfiniteSwiperComponent, + index: number, + popoverDateTime: IonDatetime, + ) { + const nextIndex = + moment(popoverDateTime.value).diff(this.baselineDate, 'days') - headerSwiper.virtualIndex - index; + + mainSwiper.goToIndex(nextIndex).then(() => { + this.setDateRange(nextIndex); + }); + popoverDateTime.confirm(true); + } + + /** + * Load events + */ + async loadEvents(): Promise { + const dateSeries = await this.scheduleProvider.getDateSeries(this.uuids); + + this.testSchedule = {}; + + for (const series of dateSeries.dates) { + for (const date of series.dates) { + const index = moment(date).startOf('day').diff(this.baselineDate, 'days'); + + // fall back to default + (this.testSchedule[index] ?? (this.testSchedule[index] = {}))[series.uid] = { + dateSeries: series, + time: { + start: moment(date).hours(), + duration: series.duration, + }, + }; + } + } + return this.todaySlideIndex; + } +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.component.ts b/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.component.ts new file mode 100644 index 00000000..815f740e --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.component.ts @@ -0,0 +1,258 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-non-null-assertion */ +import { + AfterViewInit, + Component, + ContentChild, + ElementRef, + EventEmitter, + Input, + OnChanges, + OnDestroy, + OnInit, + Output, + QueryList, + SimpleChanges, + TemplateRef, + ViewChild, + ViewChildren, + ViewContainerRef, +} from '@angular/core'; +import Swiper from 'swiper'; +import {materialManualFade} from '../../../../animation/material-motion'; +import {zip} from '../../../../_helpers/collections/zip'; + +export interface SlideContext { + $implicit: number; +} + +/** + * Wait for specified amount of time + */ +async function wait(ms?: number) { + await new Promise(resolve => setTimeout(resolve, ms)); +} + +/** + * This is an infinite version of the swiper + * + * The basic principle it works on is + * 1. The user can never swiper further than the amount of visible slides + * 2. Only out of view slides are re-initialized + */ +@Component({ + selector: 'infinite-swiper', + templateUrl: 'infinite-swiper.html', + styleUrls: ['infinite-swiper.scss'], + animations: [materialManualFade], +}) +export class InfiniteSwiperComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges { + @Input() controller?: InfiniteSwiperComponent; + + @Input() slidesPerView = 5; + + virtualIndex = 0; + + @ContentChild(TemplateRef) userSlideTemplateRef: TemplateRef; + + @Output() indexChange = new EventEmitter(); + + @Output() indexChangeStart = new EventEmitter(); + + slidesArray: number[]; + + @ViewChild('swiper', {static: true}) + swiperElement: ElementRef; + + @ViewChildren('slideContainers', {read: ViewContainerRef}) + slideContainers: QueryList; + + swiper: Swiper; + + visibilityState: 'in' | 'out' = 'in'; + + private preventControllerCallback = false; + + ngOnInit() { + this.createSwiper(); + } + + ngAfterViewInit() { + this.initSwiper(); + } + + ngOnDestroy() { + this.swiper.destroy(); + this.clearSlides(); + } + + async ngOnChanges(changes: SimpleChanges) { + if ('slidesPerView' in changes) { + const change = changes.slidesPerView; + if (change.isFirstChange()) return; + + // little bit of a cheesy trick just to reinitialize + // everything... But you know, it works just fine. + // And how often are you realistically going to + // resize your window. + this.visibilityState = 'out'; + await wait(250); + + this.ngOnDestroy(); + this.createSwiper(); + await wait(); + this.initSwiper(); + + this.visibilityState = 'in'; + } + } + + createSwiper() { + this.resetSlides(); + + // I have absolutely no clue why two results are returned here. + // Probably a bug, so be on the lookout if you get odd errors + const [swiper] = new Swiper('.swiper', { + // TODO: evaluate if the controller has decent performance, some time in the future + // modules: [Controller], + slidesPerView: this.slidesPerView, + initialSlide: this.slidesPerView, + init: false, + }) as unknown as [Swiper, Swiper]; + this.swiper = swiper; + } + + initSwiper() { + this.swiper.init(this.swiperElement.nativeElement); + // SwiperJS controller still has some performance issues unfortunately... + // So unfortunately we are kind of forced to use a workaround :/ + // TODO: evaluate if the controller has decent performance, some time in the future + /*setTimeout(() => { + this.swiper.controller.control = this.controller?.swiper; + });*/ + + this.shiftSlides(); + + this.swiper.on('activeIndexChange', () => { + if (!this.preventControllerCallback) { + this.controller?.controllerSlideTo(this.swiper.activeIndex); + } + }); + + this.swiper.on('slideChangeTransitionEnd', () => { + this.shiftSlides(this.swiper.activeIndex); + this.indexChange.emit(this.virtualIndex); + this.preventControllerCallback = false; + }); + + this.swiper.on('slideChangeTransitionStart', swiper => { + this.indexChangeStart.emit(this.virtualIndex + swiper.activeIndex - swiper.previousIndex); + }); + } + + clearSlides() { + for (const container of this.slideContainers) { + while (container.length > 0) { + container.remove(); + } + } + } + + pageForward() { + this.swiper.slideTo(this.slidesPerView * 2); + } + + pageBackwards() { + this.swiper.slideTo(0); + } + + /** + * This method is require to not cause a callback loop + * when the controller slides + */ + private async controllerSlideTo(index: number) { + // TODO: prevent virtual index falling out of sync + this.preventControllerCallback = true; + this.swiper.slideTo(index); + await wait(400); + if (this.controller && this.virtualIndex !== this.controller.virtualIndex) { + console.warn( + `Virtual indices fell out of sync ${this.virtualIndex} : ${this.controller.virtualIndex}, correcting...`, + ); + await this.controller.goToIndex(this.virtualIndex, false); + } + } + + async goToIndex(index: number, runCallbacks = true) { + if (runCallbacks) { + this.controller?.goToIndex(index, false); + } + + this.visibilityState = 'out'; + + await wait(250); + + this.virtualIndex = index; + this.clearSlides(); + this.shiftSlides(); + + this.visibilityState = 'in'; + } + + shiftSlides(activeIndex = this.slidesPerView) { + const delta = this.slidesPerView - activeIndex; + const deltaAmount = Math.abs(delta); + const direction = delta > 0; + this.virtualIndex -= delta; + const containers = this.slideContainers.toArray(); + + const slides = containers.map(it => (it.length > 0 ? it.detach(0) : undefined)); + + // delete slides that are going to be dropped + for (const slide of [...slides].splice(direction ? -deltaAmount : 0, deltaAmount)) { + slide?.destroy(); + } + + // reuse existing slides + const newElements: undefined[] = Array.from({length: deltaAmount}); + const shiftedSlides = direction + ? [...newElements, ...slides.slice(0, -deltaAmount)] + : [...slides.slice(deltaAmount), ...newElements]; + + for (const [i, [container, element]] of zip(containers, shiftedSlides).entries()) { + // TODO: we should be able to skip this... In theory. + while (container!.length > 0) { + console.warn('Slide container is not empty after detach!'); + container!.remove(); + } + + if (element) { + container!.insert(element); + } else { + container!.createEmbeddedView(this.userSlideTemplateRef, { + $implicit: this.virtualIndex + (i - this.slidesPerView), + }); + } + } + + this.swiper.slideTo(this.slidesPerView, 0, false); + } + + resetSlides() { + this.slidesArray = Array.from({length: this.slidesPerView * 3}).map((_, i) => i); + } +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.html b/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.html new file mode 100644 index 00000000..c20a6253 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.html @@ -0,0 +1,22 @@ + + +
+
+
+ +
+
+
diff --git a/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.scss b/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.scss new file mode 100644 index 00000000..17dd76c0 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/infinite-swiper.scss @@ -0,0 +1,25 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.swiper { + height: 100%; + width: 100%; +} + +.swiper, +.swiper-wrapper, +.swiper-slide { + overflow: unset; +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/range-overlap.spec.ts b/frontend/app/src/app/modules/schedule/page/grid/range-overlap.spec.ts new file mode 100644 index 00000000..c4883b59 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/range-overlap.spec.ts @@ -0,0 +1,154 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-explicit-any */ +import {groupRangeOverlaps} from './range-overlap'; +import {shuffle} from '../../../../_helpers/collections/shuffle'; + +interface SimpleRange { + starty: number; + endy: number; +} + +const from = (range: SimpleRange) => range.starty; +const till = (range: SimpleRange) => range.endy; + +describe('RangeOverlaps', () => { + it('should handle empty ranges', () => { + expect(groupRangeOverlaps([], from, till)).toEqual([]); + }); + + it('should handle single range', () => { + expect(groupRangeOverlaps([{starty: 0, endy: 1}], from, till)).toEqual([ + {start: 0, end: 1, elements: [{starty: 0, endy: 1}]}, + ]); + }); + + it('should handle two non-overlapping ranges', () => { + expect( + groupRangeOverlaps( + shuffle([ + {starty: 0, endy: 1}, + {starty: 2, endy: 3}, + ]), + from, + till, + ), + ).toEqual([ + {start: 0, end: 1, elements: [{starty: 0, endy: 1}]}, + {start: 2, end: 3, elements: [{starty: 2, endy: 3}]}, + ]); + }); + + it('should not overlap two directly adjacent ranges', () => { + expect( + groupRangeOverlaps( + shuffle([ + {starty: 0, endy: 1}, + {starty: 1, endy: 2}, + ]), + from, + till, + ), + ).toEqual([ + {start: 0, end: 1, elements: [{starty: 0, endy: 1}]}, + {start: 1, end: 2, elements: [{starty: 1, endy: 2}]}, + ]); + }); + + it('should handle two overlapping ranges', () => { + expect( + groupRangeOverlaps( + shuffle([ + {starty: 0, endy: 2}, + {starty: 1, endy: 3}, + ]), + from, + till, + ), + ).toEqual([ + { + start: 0, + end: 3, + elements: [ + {starty: 0, endy: 2}, + {starty: 1, endy: 3}, + ], + }, + ]); + }); + + it('should handle multiple overlapping ranges', () => { + expect( + groupRangeOverlaps( + shuffle([ + {starty: 0, endy: 2}, + {starty: 1, endy: 3}, + {starty: 2, endy: 4}, + {starty: 3, endy: 5}, + ]), + from, + till, + ), + ).toEqual([ + { + start: 0, + end: 5, + elements: [ + {starty: 0, endy: 2}, + {starty: 1, endy: 3}, + {starty: 2, endy: 4}, + {starty: 3, endy: 5}, + ], + }, + ]); + }); + + it('should handle two groups of three overlapping ranges each', () => { + expect( + groupRangeOverlaps( + shuffle([ + {starty: 0, endy: 2}, + {starty: 1, endy: 3}, + {starty: 2, endy: 4}, + {starty: 5, endy: 7}, + {starty: 6, endy: 8}, + {starty: 7, endy: 9}, + ]), + from, + till, + ), + ).toEqual([ + { + start: 0, + end: 4, + elements: [ + {starty: 0, endy: 2}, + {starty: 1, endy: 3}, + {starty: 2, endy: 4}, + ], + }, + { + start: 5, + end: 9, + elements: [ + {starty: 5, endy: 7}, + {starty: 6, endy: 8}, + {starty: 7, endy: 9}, + ], + }, + ]); + }); +}); diff --git a/frontend/app/src/app/modules/schedule/page/grid/range-overlap.ts b/frontend/app/src/app/modules/schedule/page/grid/range-overlap.ts new file mode 100644 index 00000000..bba6a7b4 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/range-overlap.ts @@ -0,0 +1,89 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {partition} from '../../../../_helpers/collections/partition'; + +export interface RangeInfo { + elements: T[]; + start: number; + end: number; +} + +/** + * Takes a list of ranges and groups by overlaps. + */ +export function groupRangeOverlaps( + ranges: T[], + start: (range: T) => number, + end: (range: T) => number, +): RangeInfo[] { + return internalGroupRangeOverlaps( + ranges + .sort((a, b) => start(a) - start(b)) + .map(range => ({ + elements: [range], + start: start(range), + end: end(range), + })), + ) + .map(range => ({ + ...range, + elements: range.elements.sort((a, b) => start(a) - start(b)), + })) + .sort((a, b) => a.start - b.start); +} + +/** + * + */ +function within(a: number, b: number, c: number): boolean { + return a > b && a < c; +} + +/** + * + */ +function equals(start1: number, end1: number, start2: number, end2: number) { + return start1 === start2 && end1 === end2; +} + +/** + * + */ +function hasOverlap(a1: number, b1: number, a2: number, b2: number): boolean { + return within(a1, a2, b2) || within(b1, a2, b2) || equals(a1, b1, a2, b2); +} + +/** + * Takes a list of ranges and groups by overlaps. + */ +function internalGroupRangeOverlaps(input: RangeInfo[]): RangeInfo[] { + const result: RangeInfo[] = []; + let ranges = [...input]; + let cumulativeReorders = 0; + while (ranges.length > 0) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const range = ranges.pop()!; + const [overlaps, rest] = partition(ranges, r => hasOverlap(range.start, range.end, r.start, r.end)); + cumulativeReorders += overlaps.length; + ranges = rest; + const elements = [range, ...overlaps]; + result.push({ + elements: elements.flatMap(it => it.elements), + start: Math.min(...elements.map(it => it.start)), + end: Math.max(...elements.map(it => it.end)), + }); + } + return cumulativeReorders === 0 ? result : internalGroupRangeOverlaps(result); +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-card.component.ts b/frontend/app/src/app/modules/schedule/page/grid/schedule-card.component.ts new file mode 100644 index 00000000..277f5adb --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-card.component.ts @@ -0,0 +1,128 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnInit} from '@angular/core'; +import moment from 'moment'; +import {ScheduleProvider} from '../../../calendar/schedule.provider'; +import {ScheduleEvent} from '../schema/schema'; + +/** + * Component that can display a schedule event + */ +@Component({ + selector: 'stapps-schedule-card', + templateUrl: 'schedule-card.html', + styleUrls: ['../../../data/list/data-list-item.scss', 'schedule-card.scss'], +}) +export class ScheduleCardComponent implements OnInit { + cardColor = { + isBlack: false, + isBlue: false, + isDefault: false, + }; + + /** + * The hour from which on the schedule is displayed + */ + @Input() fromHour = 0; + + /** + * Card Y start position + */ + fromY = 0; + + /** + * Card Y end position + */ + height = 0; + + /** + * Show the card without a top offset + */ + @Input() noOffset = false; + + /** + * The scale of the schedule + */ + @Input() scale = 1; + + /** + * The event + */ + @Input() scheduleEvent: ScheduleEvent; + + /** + * Card shows the name of the place the event takes place + */ + @Input() showPlaceName = false; + + /** + * The title of the event + */ + title: string; + + constructor(private readonly scheduleProvider: ScheduleProvider) {} + + /** + * Get the note text + */ + getNote(): string | undefined { + return this.scheduleEvent?.dateSeries?.name ?? undefined; + } + + /** + * Initializer + */ + ngOnInit() { + this.fromY = this.noOffset ? 0 : this.scheduleEvent.time.start; + this.height = moment.duration(this.scheduleEvent.time.duration).asHours(); + + this.title = this.scheduleEvent.dateSeries.event.name; + + this.cardColor = { + isBlack: false, + isBlue: false, + isDefault: false, + }; + + switch ( + 'categories' in this.scheduleEvent.dateSeries.event + ? this.scheduleEvent.dateSeries.event?.categories[0] + : '' + ) { + case 'lecture': + this.cardColor.isBlue = true; + break; + case 'exercise': + this.cardColor.isBlack = true; + break; + default: + this.cardColor.isDefault = true; + } + } + + /** + * Remove the event + */ + removeEvent(): false { + if (confirm('Remove event?')) { + this.scheduleProvider.partialEvents$.next( + this.scheduleProvider.partialEvents$.value.filter(it => it.uid !== this.scheduleEvent.dateSeries.uid), + ); + } + + // to prevent event propagation + return false; + } +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-card.html b/frontend/app/src/app/modules/schedule/page/grid/schedule-card.html new file mode 100644 index 00000000..97369540 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-card.html @@ -0,0 +1,41 @@ + + + + + + + {{ + this.scheduleEvent?.dateSeries?.event?.name | nullishCoalesce: this.scheduleEvent?.dateSeries?.name + }} + + + + + {{ getNote() }} + + {{ + scheduleEvent?.dateSeries?.inPlace?.name + }} + + diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-card.scss b/frontend/app/src/app/modules/schedule/page/grid/schedule-card.scss new file mode 100644 index 00000000..cadb6f8a --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-card.scss @@ -0,0 +1,130 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-card { + width: inherit; + z-index: 2; + margin-left: 0; + margin-right: 0; + border-radius: 0; + + &.blueCard { + --background: var(--calender-blue-card); + + ion-card-title, + ion-card-subtitle span, + ion-card-content ion-note, + ion-card-content ion-text { + color: var(--ion-color-primary-contrast); + } + + &:after { + background: linear-gradient( + rgba(var(--calender-blue-card-rgb), 0%), + rgba(var(--calender-blue-card-rgb), 100%) + ); + } + } + &.blackCard { + --background: var(--calender-black-card); + + ion-card-title, + ion-card-subtitle span, + ion-card-content ion-note, + ion-card-content ion-text { + color: var(--ion-color-primary-contrast); + } + + &:after { + background: linear-gradient( + rgba(var(--calender-black-card-rgb), 0%), + rgba(var(--calender-black-card-rgb), 100%) + ); + } + } + &.defaultCard { + --background: var(--calender-default-card); + + ion-card-title, + ion-card-subtitle span, + ion-card-content ion-note, + ion-card-content ion-text { + color: var(--ion-color-light-contrast); + } + + &:after { + background: linear-gradient( + rgba(var(--calender-light-card-rgb), 0%), + rgba(var(--calender-light-card-rgb), 100%) + ); + } + } + + &:after { + content: ''; + position: absolute; + bottom: 0; + height: 33%; + width: 100%; + background: linear-gradient( + rgba(var(--calender-blue-card-rgb), 0%), + rgba(var(--calender-blue-card-rgb), 100%) + ); + } + + ion-card-header { + height: available; + padding-bottom: var(--spacing-xs); + + ion-card-title { + overflow-wrap: break-word; + } + + ion-card-subtitle { + display: flex; + ion-icon.icon-white { + color: var(--ion-color-primary-contrast); + margin-right: var(--spacing-xs); + } + } + } + + ion-card-header, + ion-card-title, + ion-card-subtitle span, + ion-card-content ion-note { + font-size: var(--font-size-sm); + font-weight: var(--font-weight-bold); + font-family: var(--headline-font-family); + text-overflow: ellipsis; + } + + ion-card-content .place-name { + display: block; + font-family: var(--headline-font-family); + } + + ion-card-content .place-name { + display: block; + } + + div { + position: absolute; + bottom: 0; + height: 20px; + width: 100%; + background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 255) 100%); + } +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor-offset.ts b/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor-offset.ts new file mode 100644 index 00000000..211d107d --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor-offset.ts @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * + */ +export function getScheduleCursorOffset(from: number, scale: number, now = new Date().getHours()) { + return (now - from) * scale + 45; +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.component.ts b/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.component.ts new file mode 100644 index 00000000..dab8764e --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.component.ts @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnInit} from '@angular/core'; +import {HoursRange} from '../schema/schema'; +import moment from 'moment'; +import {getScheduleCursorOffset} from './schedule-cursor-offset'; + +/** + * Component that displays the schedule + */ +@Component({ + selector: 'stapps-schedule-cursor', + templateUrl: 'schedule-cursor.html', + styleUrls: ['schedule-cursor.scss'], +}) +export class ScheduleCursorComponent implements OnInit { + /** + * Cursor update + */ + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore unused + private cursorInterval: NodeJS.Timeout; + + /** + * Range of hours to display + */ + @Input() readonly hoursRange: HoursRange; + + /** + * Cursor + */ + now = ScheduleCursorComponent.getCursorTime(); + + /** + * Vertical scale of the schedule (distance between hour lines) + */ + @Input() readonly scale: number; + + getScheduleCursorOffset = getScheduleCursorOffset; + + /** + * Get a floating point time 0..24 + */ + static getCursorTime(): number { + const mnt = moment(moment.now()); + + const hh = mnt.hours(); + const mm = mnt.minutes(); + + // tslint:disable-next-line:no-magic-numbers + return hh + mm / 60; + } + + /** + * Initialize + */ + ngOnInit() { + this.cursorInterval = setInterval(async () => { + this.now = ScheduleCursorComponent.getCursorTime(); + // tslint:disable-next-line:no-magic-numbers + }, 1000 * 60 /*1 Minute*/); + } +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.html b/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.html new file mode 100644 index 00000000..84f68c16 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.html @@ -0,0 +1,21 @@ + + +
+
+
+
+
+
diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.scss b/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.scss new file mode 100644 index 00000000..6e016687 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-cursor.scss @@ -0,0 +1,51 @@ +/*! + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +div { + padding: 0; + margin: 0; + position: absolute; + display: flex; + flex-direction: row; + width: 100%; + top: 4px; + z-index: 2; + + div { + width: 100%; + height: fit-content; + + hr { + width: 100%; + position: absolute; + margin-right: 16px; + margin-top: 8px; + height: 2px; + border-top: 2px solid var(--ion-color-danger); + margin-block-start: 0; + margin-block-end: 0; + } + + div { + width: 8px; + height: 8px; + position: absolute; + top: -3px; + border-radius: 50% 0 50% 50%; + transform: rotateZ(45deg); + background-color: var(--ion-color-danger); + } + } +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-day.component.ts b/frontend/app/src/app/modules/schedule/page/grid/schedule-day.component.ts new file mode 100644 index 00000000..f6e2d867 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-day.component.ts @@ -0,0 +1,98 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, HostListener, Input, OnInit} from '@angular/core'; +import moment from 'moment'; +import {Range, ScheduleEvent, ScheduleResponsiveBreakpoint} from '../schema/schema'; +import {ScheduleProvider} from '../../../calendar/schedule.provider'; +import {SCISO8601Duration, SCUuid} from '@openstapps/core'; +import {materialFade} from '../../../../animation/material-motion'; +import {groupRangeOverlaps} from './range-overlap'; + +@Component({ + selector: 'schedule-day', + templateUrl: 'schedule-day.html', + styleUrls: ['schedule-day.scss'], + animations: [materialFade], +}) +export class ScheduleDayComponent implements OnInit { + @Input() day: moment.Moment; + + @Input() hoursRange: Range; + + @Input() uuids: SCUuid[]; + + @Input() scale: number; + + @Input() frequencies?: SCISO8601Duration[]; + + @Input() layout: ScheduleResponsiveBreakpoint; + + @Input() isLeftmost = false; + + dateSeriesGroups?: ScheduleEvent[][]; + + @Input() set dateSeries(value: Record) { + if (!value) { + delete this.dateSeriesGroups; + return; + } + + this.dateSeriesGroups = groupRangeOverlaps( + Object.values(value), + it => it.time.start, + it => it.time.start + moment.duration(it.time.duration).asHours(), + ).map(it => it.elements); + } + + dateFormat = 'dd'; + + constructor(protected readonly scheduleProvider: ScheduleProvider) {} + + ngOnInit() { + this.determineDateFormat(); + } + + @HostListener('window:resize', ['$event']) + _onResize() { + this.determineDateFormat(); + } + + private determineDateFormat() { + this.dateFormat = + this.layout && window.innerWidth > 1024 && window.innerWidth <= this.layout?.until ? 'dddd' : 'dd'; + } + + // TODO: backend bug results in the wrong date series being returned + /* async fetchDateSeries(): Promise { + const dateSeries = await this.scheduleProvider.getDateSeries( + this.uuids, + this.frequencies, + this.momentDay.clone().startOf('day').toISOString(), + this.momentDay.clone().endOf('day').toISOString(), + ); + + for (const series of dateSeries.dates) { + console.log(JSON.stringify(series.dates)); + } + + return dateSeries.dates.map(it => ({ + dateSeries: it, + time: { + start: moment(it.dates.find(date => date === this.day)).hours(), + duration: it.duration, + }, + })); + } */ +} diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-day.html b/frontend/app/src/app/modules/schedule/page/grid/schedule-day.html new file mode 100644 index 00000000..7607a04d --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-day.html @@ -0,0 +1,33 @@ + +
+
+ {{ day | amDateFormat: dateFormat }} +
+
+
+ + +
+
+ + +
diff --git a/frontend/app/src/app/modules/schedule/page/grid/schedule-day.scss b/frontend/app/src/app/modules/schedule/page/grid/schedule-day.scss new file mode 100644 index 00000000..c9c72725 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/grid/schedule-day.scss @@ -0,0 +1,77 @@ +/*! + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host { + .day-wrapper { + border-left: 1px solid var(--calender-date-line-gray); + border-right: 1px solid var(--calender-date-line-gray); + + &.leftmost { + border-left: unset; + } + + .day-header { + position: sticky; + top: 0; + left: 0; + height: fit-content; + padding: var(--spacing-md); + border-bottom: 2px solid var(--ion-color-light); + font-size: var(--font-size-md); + font-weight: var(--font-weight-bold); + text-align: center; + background-color: var(--ion-color-primary-contrast); + z-index: 3; + + &.leftmost { + border-left: 1px solid var(--ion-color-light); + } + } + } + + .schedule-card { + overflow: hidden; + } + + div { + height: 100%; + width: 100%; + } + + .horizontal-group { + position: absolute; + top: 10px; + left: 0; + grid-column: 1; + grid-row: 1; + width: 100%; + + box-sizing: border-box; + max-width: inherit; + + display: flex; + flex-direction: row; + align-items: flex-start; + } + + .vertical-line { + position: absolute; + top: 0; + left: 0; + width: 1px; + height: 100%; + background-color: var(--calender-date-line-gray); + } +} diff --git a/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.component.ts b/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.component.ts new file mode 100644 index 00000000..767aa25a --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.component.ts @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, OnDestroy, OnInit} from '@angular/core'; +import {SCSearchFilter, SCThingType} from '@openstapps/core'; +import {ModalController} from '@ionic/angular'; +import {DataRoutingService} from '../../../data/data-routing.service'; +import {DataDetailComponent} from '../../../data/detail/data-detail.component'; +import {Subscription} from 'rxjs'; + +/** + * TODO + */ +@Component({ + selector: 'modal-event-creator', + templateUrl: 'modal-event-creator.html', + styleUrls: ['modal-event-creator.scss'], +}) +export class ModalEventCreatorComponent implements OnInit, OnDestroy { + subscriptions: Subscription[] = []; + + constructor(readonly modalController: ModalController, readonly dataRoutingService: DataRoutingService) {} + + ngOnInit() { + this.subscriptions.push( + this.dataRoutingService.itemSelectListener().subscribe(async item => { + const modal = await this.modalController.create({ + component: DataDetailComponent, + componentProps: { + isModal: true, + inputItem: item, + }, + canDismiss: true, + }); + return modal.present(); + }), + ); + } + + ngOnDestroy() { + for (const subscription of this.subscriptions) subscription.unsubscribe(); + } + + /** + * Forced filter + */ + filter: SCSearchFilter = { + arguments: { + field: 'type', + value: SCThingType.AcademicEvent, + }, + type: 'value', + }; +} diff --git a/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.html b/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.html new file mode 100644 index 00000000..7f7b39aa --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.html @@ -0,0 +1,33 @@ + + + + {{ 'schedule.addEventModal.addEvent' | translate | titlecase }} + + + {{ 'modal.DISMISS' | translate }} + + + + + + + diff --git a/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.scss b/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.scss new file mode 100644 index 00000000..c933f1ae --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/modal/modal-event-creator.scss @@ -0,0 +1,35 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host { + height: 100%; + display: flex; + flex-direction: column; + flex: 1 1 20%; +} + +ion-button { + ion-label { + color: var(--ion-color-light); + } +} + +ion-card-content { + height: 100%; + padding: 0; + stapps-data-list { + height: 100%; + } +} diff --git a/frontend/app/src/app/modules/schedule/page/schedule-page.component.ts b/frontend/app/src/app/modules/schedule/page/schedule-page.component.ts new file mode 100644 index 00000000..815772fa --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-page.component.ts @@ -0,0 +1,179 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {AfterViewInit, Component, HostListener, Input, OnInit, ViewChild} from '@angular/core'; +import {Location} from '@angular/common'; +import {ActivatedRoute, Router} from '@angular/router'; +import {IonRouterOutlet} from '@ionic/angular'; +import {SharedAxisChoreographer} from '../../../animation/animation-choreographer'; +import {materialSharedAxisX} from '../../../animation/material-motion'; +import {ScheduleResponsiveBreakpoint} from './schema/schema'; +import {CalendarService} from '../../calendar/calendar.service'; +import moment from 'moment'; + +/** + * This needs to be sorted by break point low -> high + * + * Last entry must have `until: Infinity` + */ +const responsiveConfig: ScheduleResponsiveBreakpoint[] = [ + { + until: 768, + days: 3, + startOf: 'day', + }, + { + until: 1700, + days: 3, + startOf: 'day', + }, + { + until: Number.POSITIVE_INFINITY, + days: 7, + startOf: 'week', + }, +]; + +/** + * Component that displays the schedule + */ +@Component({ + selector: 'stapps-schedule-page', + templateUrl: 'schedule-page.html', + styleUrls: ['schedule-page.scss'], + animations: [materialSharedAxisX], +}) +export class SchedulePageComponent implements OnInit, AfterViewInit { + /** + * Current width of the window + */ + private currentWindowWidth: number = window.innerWidth; + + /** + * Actual Segment Tab + */ + actualSegmentValue?: string | null; + + /** + * Trigger event to go to today in calendar component + */ + + /** + * Layout + */ + layout: ScheduleResponsiveBreakpoint = SchedulePageComponent.getDaysToDisplay(this.currentWindowWidth); + + @ViewChild('segment') segmentView!: HTMLIonSegmentElement; + + /** + * Show the navigation drawer + */ + @Input() showDrawer = true; + + /** + * Search value from search bar + */ + queryText: string; + + /** + * Choreographer for the tab switching + */ + tabChoreographer: SharedAxisChoreographer; + + isModalOpen = false; + + /** + * Amount of days that should be shown according to current display width + */ + static getDaysToDisplay(width: number): ScheduleResponsiveBreakpoint { + // the search could be optimized, but probably would have little + // actual effect with five entries. + // we can be sure we get an hit when the last value.until is infinity + // (unless someone has a display that reaches across the universe) + return ( + responsiveConfig.find(value => width < value.until) ?? responsiveConfig[responsiveConfig.length - 1] + ); + } + + constructor( + private readonly activatedRoute: ActivatedRoute, + private calendarService: CalendarService, + readonly routerOutlet: IonRouterOutlet, + private router: Router, + private location: Location, + ) {} + + ngOnInit() { + this.onInit(); + } + + /** + * ngOnInit is not reliably called after first navigation to app/schedule. This leads to URL and segmentView being out of sync. + * ionViewWillEnter is called on second, third, ... navigation to app/schedule + */ + ionViewWillEnter() { + this.onInit(); + this.segmentView.value = this.tabChoreographer.currentValue; + } + + ngAfterViewInit() { + this.segmentView.value = this.tabChoreographer.currentValue; + } + + onInit() { + this.tabChoreographer = new SharedAxisChoreographer(this.activatedRoute.snapshot.paramMap.get('mode'), [ + 'calendar', + 'recurring', + 'single', + ]); + } + + /** + * Resize callback + * + * Note: this may not fire when the browser transfers from full screen to windowed + * (Firefox & Chrome tested) + */ + @HostListener('window:resize', ['$event']) + onResize(_: UIEvent) { + const current = SchedulePageComponent.getDaysToDisplay(this.currentWindowWidth); + const next = SchedulePageComponent.getDaysToDisplay(window.innerWidth); + this.currentWindowWidth = window.innerWidth; + + if (current.days === next.days) { + this.layout = next; + } + } + + /** + * When the segment changes + */ + onSegmentChange() { + const url = this.router.createUrlTree([[], 'schedule', this.segmentView.value]).toString(); + this.location.go(url); + this.tabChoreographer.changeViewForState(this.segmentView.value); + } + + onTodayClick() { + this.calendarService.emitGoToDate(moment().startOf('day')); + } + + onFABClick() { + this.isModalOpen = true; + } + + onModalDismiss() { + this.isModalOpen = false; + } +} diff --git a/frontend/app/src/app/modules/schedule/page/schedule-page.html b/frontend/app/src/app/modules/schedule/page/schedule-page.html new file mode 100644 index 00000000..95f0e267 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-page.html @@ -0,0 +1,77 @@ + + + + + + + + {{ + 'schedule.calendar' | translate | titlecase + }} + {{ + 'schedule.recurring' | translate | titlecase + }} + {{ + 'schedule.single' | translate | titlecase + }} + + + + + + + + + + {{ 'schedule.calendar' | translate }} + + + + {{ 'schedule.recurring' | translate }} + + + + {{ 'schedule.single' | translate }} + + + + + + + +
+ + + + +
+ + + + + + + + + + + + +
diff --git a/frontend/app/src/app/modules/schedule/page/schedule-page.scss b/frontend/app/src/app/modules/schedule/page/schedule-page.scss new file mode 100644 index 00000000..998918dc --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-page.scss @@ -0,0 +1,59 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-header { + ion-toolbar { + ion-back-button { + --padding-start: 0; + --padding-end: var(--spacing-lg); + } + + &.tabs-toolbar { + --min-height: 44px; + } + } +} + +ion-segment-button[aria-selected='true'] ion-icon ::ng-deep stapps-icon { + --fill: 1; +} + +ion-content { + --background: var(--ion-color-light); +} + +div { + height: 100%; +} + +.content-container { + display: grid; +} + +.content { + grid-column: 1; + grid-row: 1; +} + +ion-segment-button { + max-width: 100%; + text-transform: none; +} + +ion-toolbar.in-toolbar { + &:last-of-type { + padding: 0 !important; + } +} diff --git a/frontend/app/src/app/modules/schedule/page/schedule-single-events.component.ts b/frontend/app/src/app/modules/schedule/page/schedule-single-events.component.ts new file mode 100644 index 00000000..01d3d42a --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-single-events.component.ts @@ -0,0 +1,143 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input, OnDestroy, OnInit} from '@angular/core'; +import {SCDateSeries, SCUuid} from '@openstapps/core'; +import moment from 'moment'; +import {Subscription} from 'rxjs'; +import {materialFade} from '../../../animation/material-motion'; +import {ScheduleProvider} from '../../calendar/schedule.provider'; +import {ScheduleEvent} from './schema/schema'; +import {groupBy} from '../../../_helpers/collections/group-by'; +import {omit} from '../../../_helpers/collections/omit'; +import {stringSortBy} from '../../../_helpers/collections/string-sort'; + +/** + * A single event + */ +export interface ScheduleSingleEvent { + /** + * Day the event is on + */ + day: string; + + /** + * Event the date is referring to + */ + event: ScheduleEvent; +} + +/** + * Component that displays single events one after each other + */ +@Component({ + selector: 'stapps-single-events', + templateUrl: 'schedule-single-events.html', + styleUrls: ['schedule-single-events.scss'], + animations: [materialFade], +}) +export class ScheduleSingleEventsComponent implements OnInit, OnDestroy { + /** + * UUID subscription + */ + private _uuidSubscription: Subscription; + + /** + * The events to display + */ + private uuids: SCUuid[]; + + /** + * Events that are displayed + */ + events: Promise; + + /** + * Scale of the view + */ + @Input() scale = 60; + + /** + * Sorts dates to a list of days with events on each + */ + static groupDateSeriesToDays(dateSeries: SCDateSeries[]): ScheduleSingleEvent[][] { + return Object.entries( + groupBy( + dateSeries + .flatMap(event => + event.dates.map(date => ({ + dateUnix: moment(date).unix(), + day: moment(date).startOf('day').toISOString(), + event: { + dateSeries: event, + time: { + start: + moment(date).hour() + + moment(date) + // tslint:disable-next-line:no-magic-numbers + .minute() / + 60, + startAsString: moment(date).format('LT'), + duration: event.duration, + endAsString: moment(date).add(event.duration).format('LT'), + }, + }, + })), + ) + .sort((a, b) => a.dateUnix - b.dateUnix) + .map(event => omit(event, 'dateUnix')), + it => it.day, + ), + ) + .sort(stringSortBy(([key]) => key)) + .map(([_, value]) => value); + } + + constructor(protected readonly scheduleProvider: ScheduleProvider) {} + + /** + * Fetch date series items + */ + async fetchDateSeries(): Promise { + // TODO: only single events + const dateSeries = await this.scheduleProvider.getDateSeries( + this.uuids, + undefined /*TODO*/, + moment(moment.now()).startOf('week').toISOString(), + ); + + // TODO: replace with filter + const test = ScheduleSingleEventsComponent.groupDateSeriesToDays( + dateSeries.dates.filter(it => !it.repeatFrequency), + ); + return test; + } + + /** + * OnDestroy + */ + ngOnDestroy(): void { + this._uuidSubscription.unsubscribe(); + } + + /** + * Initialize + */ + ngOnInit() { + this._uuidSubscription = this.scheduleProvider.uuids$.subscribe(async result => { + this.uuids = result; + this.events = this.fetchDateSeries(); + }); + } +} diff --git a/frontend/app/src/app/modules/schedule/page/schedule-single-events.html b/frontend/app/src/app/modules/schedule/page/schedule-single-events.html new file mode 100644 index 00000000..c6b216ea --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-single-events.html @@ -0,0 +1,41 @@ + + + + + + + {{ day[0].day | amDateFormat: 'LL' }} + + +
+ + {{ event.event.time.startAsString }} + + + {{ event.event.time.endAsString }} +
+ + +
+
+
+
diff --git a/frontend/app/src/app/modules/schedule/page/schedule-single-events.scss b/frontend/app/src/app/modules/schedule/page/schedule-single-events.scss new file mode 100644 index 00000000..4172f74c --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-single-events.scss @@ -0,0 +1,35 @@ +:host { + ion-content { + height: 100%; + } + + .hour-wrapper { + display: flex; + flex-direction: column; + align-items: center; + margin-right: var(--spacing-md); + + .hour-label { + width: fit-content; + display: inline-block; + text-align: center; + } + .hour-line { + width: 1px; + height: 20px; + border-left: 1px solid var(--ion-color-primary); + margin: var(--spacing-xs) 0; + } + } + + .day-label { + padding: 16px; + font-size: large; + font-weight: bold; + } + + .event-card { + width: 100%; + max-width: 600px; + } +} diff --git a/frontend/app/src/app/modules/schedule/page/schedule-single-events.spec.ts b/frontend/app/src/app/modules/schedule/page/schedule-single-events.spec.ts new file mode 100644 index 00000000..05bd42e2 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-single-events.spec.ts @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {SCDateSeries} from '@openstapps/core'; +import {ScheduleSingleEventsComponent} from './schedule-single-events.component'; +import moment from 'moment'; + +describe('ScheduleSingleEvents', () => { + it('should group date series to days', () => { + const events: Partial[] = [ + { + dates: ['2021-12-24T10:00Z', '2021-12-24T12:00Z'], + duration: 'A', + }, + { + dates: ['2021-12-20T10:00Z'], + duration: 'B', + }, + { + dates: ['2021-12-24T10:15Z'], + duration: 'C', + }, + ]; + + const grouped = ScheduleSingleEventsComponent.groupDateSeriesToDays(events as SCDateSeries[]); + const seriesToDate = (series: Partial, index: number) => { + const time = moment(series.dates?.[index]); + + return { + day: time.clone().startOf('day').toISOString(), + event: { + dateSeries: series as SCDateSeries, + time: { + start: time.hour() + time.minute() / 60, + startAsString: moment(time).format('LT'), + duration: series.duration as string, + endAsString: moment(time).add(series.duration?.[index]).format('LT'), + }, + }, + }; + }; + + expect(grouped).toEqual([ + [seriesToDate(events[1], 0)], + [seriesToDate(events[0], 0), seriesToDate(events[2], 0), seriesToDate(events[0], 1)], + ]); + }); +}); diff --git a/frontend/app/src/app/modules/schedule/page/schedule-view.component.ts b/frontend/app/src/app/modules/schedule/page/schedule-view.component.ts new file mode 100644 index 00000000..10729688 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-view.component.ts @@ -0,0 +1,179 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {AfterViewInit, Component, Input, OnDestroy, OnInit, ViewChild} from '@angular/core'; +import {ActivatedRoute} from '@angular/router'; +import moment, {Moment} from 'moment'; +import {materialFade, materialManualFade, materialSharedAxisX} from '../../../animation/material-motion'; +import {ScheduleProvider} from '../../calendar/schedule.provider'; +import {SCISO8601Date, SCUuid} from '@openstapps/core'; +import {ScheduleEvent, ScheduleResponsiveBreakpoint} from './schema/schema'; +import {CalendarService} from '../../calendar/calendar.service'; +import {CalendarComponent} from './components/calendar.component'; +import {IonContent, IonDatetime} from '@ionic/angular'; +import {SwiperComponent} from 'swiper/angular'; + +/** + * Component that displays the schedule + */ +@Component({ + selector: 'stapps-schedule-view', + templateUrl: 'schedule-view.html', + styleUrls: ['schedule-view.scss', './components/calendar-component.scss'], + animations: [materialFade, materialSharedAxisX, materialManualFade], +}) +export class ScheduleViewComponent + extends CalendarComponent + implements OnInit, AfterViewInit, OnDestroy, AfterViewInit +{ + @ViewChild('mainSwiper') mainSwiper: SwiperComponent; + + @ViewChild('headerSwiper') headerSwiper: SwiperComponent; + + @ViewChild('content') content: IonContent; + + /** + * The day that the schedule started out on + */ + baselineDate: Moment; + + /** + * Hours for grid + */ + readonly hours: number[]; + + /** + * Range of hours to display + */ + @Input() readonly hoursRange = { + from: 5, + to: 22, + }; + + /** + * Layout of the schedule + */ + @Input() layout: ScheduleResponsiveBreakpoint; + + schedule: Record> = {}; + + /** + * unix -> (uid -> event) + */ + @Input() testSchedule: Record> = {}; + + /** + * Route Fragment + */ + // @Override + routeFragment = 'schedule/recurring'; + + // start at fist weekday depending on locale + weekDates = Array.from({length: 7}).map( + // eslint-disable-next-line unicorn/consistent-function-scoping + (_, i) => moment().startOf('week').add(i, 'days'), + ); + + constructor( + activatedRoute: ActivatedRoute, + calendarService: CalendarService, + scheduleProvider: ScheduleProvider, + ) { + super(activatedRoute, calendarService, scheduleProvider); + const hoursAmount = this.hoursRange.to - this.hoursRange.from + 1; + this.hours = [...Array.from({length: hoursAmount}).keys()]; + } + + /** + * Initialize + */ + ngOnInit() { + super.onInit(); + if (this.calendarServiceSubscription) { + this.calendarServiceSubscription.unsubscribe(); + } + this.calendarServiceSubscription = this.calendarService.goToDateClicked.subscribe(() => { + this.slideToToday(); + }); + } + + ngAfterViewInit() { + this.slideToToday(); + } + + /** + * OnDestroy + */ + ngOnDestroy(): void { + super.onDestroy(); + } + + /** + * Slide today into view. + */ + slideToToday() { + const todayIndex = Number(moment().startOf('week').format('d')) + 1; + this.mainSwiper?.swiperRef.slideTo(todayIndex); + this.setDateRange(todayIndex); + + this.scrollCursorIntoView(this.content); + } + + /** + * Load events + */ + // @Override + async loadEvents(): Promise { + const dateSeries = await this.scheduleProvider.getDateSeries( + this.uuids, + ['P1W', 'P2W', 'P3W', 'P4W'], + moment(moment.now()).startOf('week').toISOString(), + ); + + this.testSchedule = {}; + + for (const series of dateSeries.dates) { + const weekDays = Object.keys( + series.dates.reduce((accumulator, date) => { + accumulator[moment(date).weekday()] = true; + return accumulator; + }, {} as Record), + ); + + for (const day of weekDays) { + // fall back to default + (this.testSchedule[day] ?? (this.testSchedule[day] = {}))[series.uid] = { + dateSeries: series, + time: { + start: moment(series.dates[0]).hours(), + duration: series.duration, + }, + }; + } + } + + return this.todaySlideIndex; + } + + presentScheduleDatePopover(index: number, popoverDateTime: IonDatetime) { + const nextIndex = + moment(popoverDateTime.value).diff(this.baselineDate, 'days') - + this.headerSwiper.swiperRef.realIndex - + index; + + this.mainSwiper.swiperRef.slideTo(nextIndex); + this.setDateRange(nextIndex); + popoverDateTime.confirm(true); + } +} diff --git a/frontend/app/src/app/modules/schedule/page/schedule-view.html b/frontend/app/src/app/modules/schedule/page/schedule-view.html new file mode 100644 index 00000000..fda7b098 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-view.html @@ -0,0 +1,81 @@ + +
+ + + + + + + + +
+ + {{ dateRange.startDate }} - {{ dateRange.endDate }} + + + + + + + + +
+
+
+
+ + +
+
+ +
+ {{ i + hoursRange.from }} +
+
+
+ + + + + + +
+
+
diff --git a/frontend/app/src/app/modules/schedule/page/schedule-view.scss b/frontend/app/src/app/modules/schedule/page/schedule-view.scss new file mode 100644 index 00000000..ee486650 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schedule-view.scss @@ -0,0 +1,20 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.swiper, +.swiper-wrapper, +.swiper-slide { + overflow: unset; +} diff --git a/frontend/app/src/app/modules/schedule/page/schema/schema.ts b/frontend/app/src/app/modules/schedule/page/schema/schema.ts new file mode 100644 index 00000000..faafb114 --- /dev/null +++ b/frontend/app/src/app/modules/schedule/page/schema/schema.ts @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {SCDateSeries, SCISO8601Duration} from '@openstapps/core'; +import {unitOfTime} from 'moment'; + +interface DateRange { + duration: SCISO8601Duration; + start: number; + startAsString?: string; + endAsString?: string; +} + +export interface Range { + from: T; + to: T; +} + +/** + * Minimal interface to provide information about a custom event + */ +export interface ScheduleEvent { + /** + * UUIDs of things related to the event + */ + dateSeries: SCDateSeries; + + /** + * How long the event goes + */ + time: DateRange; +} + +/** + * Range of hours + */ +export interface HoursRange { + /** + * Start hour + */ + from: number; + + /** + * End hour + */ + to: number; +} + +export interface ScheduleResponsiveBreakpoint { + /** + * Number of days to display + */ + days: number; + + /** + * When the first day should start + */ + startOf: unitOfTime.StartOf; + + /** + * Width until next breakpoint is hit + */ + until: number; +} diff --git a/frontend/app/src/app/modules/schedule/schedule.module.ts b/frontend/app/src/app/modules/schedule/schedule.module.ts new file mode 100644 index 00000000..46865bbc --- /dev/null +++ b/frontend/app/src/app/modules/schedule/schedule.module.ts @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {RouterModule, Routes} from '@angular/router'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {ScheduleCardComponent} from './page/grid/schedule-card.component'; + +import {DateFormatPipe, MomentModule} from 'ngx-moment'; +import {UtilModule} from '../../util/util.module'; +import {DataModule} from '../data/data.module'; +import {DataProvider} from '../data/data.provider'; +import {CalendarViewComponent} from './page/calendar-view.component'; +import {ScheduleCursorComponent} from './page/grid/schedule-cursor.component'; +import {ModalEventCreatorComponent} from './page/modal/modal-event-creator.component'; +import {SchedulePageComponent} from './page/schedule-page.component'; +import {ScheduleSingleEventsComponent} from './page/schedule-single-events.component'; +import {ScheduleViewComponent} from './page/schedule-view.component'; +import {ScheduleProvider} from '../calendar/schedule.provider'; +import {SwiperModule} from 'swiper/angular'; +import {ScheduleDayComponent} from './page/grid/schedule-day.component'; +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {InfiniteSwiperComponent} from './page/grid/infinite-swiper.component'; +import {CalendarComponent} from './page/components/calendar.component'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +const settingsRoutes: Routes = [ + {path: 'schedule', redirectTo: 'schedule/calendar/now'}, + {path: 'schedule/calendar', redirectTo: 'schedule/calendar/now'}, + {path: 'schedule/recurring', redirectTo: 'schedule/recurring/now'}, + {path: 'schedule/single', redirectTo: 'schedule/single/now'}, + // calendar | recurring | single + {path: 'schedule/:mode/:date', component: SchedulePageComponent}, +]; + +/** + * Schedule Module + */ +@NgModule({ + declarations: [ + CalendarComponent, + CalendarViewComponent, + ModalEventCreatorComponent, + ScheduleCardComponent, + ScheduleCursorComponent, + SchedulePageComponent, + ScheduleSingleEventsComponent, + ScheduleDayComponent, + ScheduleViewComponent, + InfiniteSwiperComponent, + ], + imports: [ + CommonModule, + DataModule, + FormsModule, + IonicModule.forRoot(), + IonIconModule, + MomentModule, + RouterModule.forChild(settingsRoutes), + SwiperModule, + TranslateModule.forChild(), + UtilModule, + ThingTranslateModule, + ], + providers: [ScheduleProvider, DataProvider, DateFormatPipe], +}) +export class ScheduleModule {} diff --git a/frontend/app/src/app/modules/settings/item/settings-item.component.ts b/frontend/app/src/app/modules/settings/item/settings-item.component.ts new file mode 100644 index 00000000..bd5ae2ac --- /dev/null +++ b/frontend/app/src/app/modules/settings/item/settings-item.component.ts @@ -0,0 +1,114 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Component, Input} from '@angular/core'; +import {AlertController} from '@ionic/angular'; +import {LangChangeEvent, TranslateService} from '@ngx-translate/core'; +import {SCLanguageCode, SCSetting, SCSettingValue, SCSettingValues} from '@openstapps/core'; +import {SettingsProvider} from '../settings.provider'; + +/** + * Setting item component + */ +@Component({ + selector: 'stapps-settings-item', + templateUrl: 'settings-item.html', + styleUrls: ['settings-item.scss'], +}) +export class SettingsItemComponent { + /** + * If set the setting will be shown as compact view + */ + @Input() compactView = false; + + /** + * Flag for workaround for selected 'select option' not updating translation + */ + isVisible = true; + + /** + * The setting to handle + */ + @Input() setting: SCSetting; + + /** + * + * @param alertCtrl AlertController + * @param translateService TranslateService + * @param settingsProvider SettingProvider + */ + constructor( + private readonly alertCtrl: AlertController, + private readonly translateService: TranslateService, + private readonly settingsProvider: SettingsProvider, + ) { + translateService.onLangChange.subscribe((_event: LangChangeEvent) => { + this.isVisible = false; + // TODO: Issue #53 check workaround for selected 'select option' not updating translation + setTimeout(() => (this.isVisible = true)); + }); + } + + /** + * Shows alert with given title and message and a 'ok' button + * + * @param title Title of the alert + * @param message Message of the alert + */ + async presentAlert(title: string, message: string) { + const alert = await this.alertCtrl.create({ + buttons: ['OK'], + header: title, + message: message, + }); + await alert.present(); + } + + /** + * Handles value changes of the setting + */ + async settingChanged(): Promise { + if ( + typeof this.setting.value !== 'undefined' && + SettingsProvider.validateValue(this.setting, this.setting.value) + ) { + // handle general settings, with special actions + switch (this.setting.name) { + case 'language': + this.translateService.use(this.setting.value as SCLanguageCode); + break; + default: + } + await this.settingsProvider.setSettingValue( + this.setting.categories[0], + this.setting.name, + this.setting.value, + ); + } else { + // reset setting + this.setting.value = (await this.settingsProvider.getValue( + this.setting.categories[0], + this.setting.name, + )) as SCSettingValue | SCSettingValues; + } + } + + /** + * Mapping of typeOf for Html usage + */ + // eslint-disable-next-line class-methods-use-this + typeOf(value: unknown) { + return typeof value; + } +} diff --git a/frontend/app/src/app/modules/settings/item/settings-item.html b/frontend/app/src/app/modules/settings/item/settings-item.html new file mode 100644 index 00000000..0c0532e9 --- /dev/null +++ b/frontend/app/src/app/modules/settings/item/settings-item.html @@ -0,0 +1,102 @@ + + + + + + {{ vals.name }} + + + + + {{ 'description' | thingTranslate: setting | titlecase }} + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ {{ ('values' | thingTranslate: setting)[i] | titlecase }} +
+
{{ val }}
+
+
+
+ + + + + +
+ {{ ('values' | thingTranslate: setting)[i] | titlecase }} +
+
{{ val }}
+
+
+
+
+
+
diff --git a/frontend/app/src/app/modules/settings/item/settings-item.scss b/frontend/app/src/app/modules/settings/item/settings-item.scss new file mode 100644 index 00000000..bc381711 --- /dev/null +++ b/frontend/app/src/app/modules/settings/item/settings-item.scss @@ -0,0 +1,14 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ diff --git a/frontend/app/src/app/modules/settings/page/calendar-sync-settings-keys.ts b/frontend/app/src/app/modules/settings/page/calendar-sync-settings-keys.ts new file mode 100644 index 00000000..d558091b --- /dev/null +++ b/frontend/app/src/app/modules/settings/page/calendar-sync-settings-keys.ts @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {StorageProvider} from '../../storage/storage.provider'; + +export const CALENDAR_SYNC_SETTINGS_KEY = 'calendarSettings'; +export const CALENDAR_SYNC_ENABLED_KEY = 'sync'; +export const CALENDAR_NOTIFICATIONS_ENABLED_KEY = 'notifications'; +export type CALENDAR_SYNC_KEYS = typeof CALENDAR_SYNC_ENABLED_KEY | typeof CALENDAR_NOTIFICATIONS_ENABLED_KEY; + +/** + * + */ +export async function getCalendarSetting( + storageProvider: StorageProvider, + key: CALENDAR_SYNC_KEYS, + defaultValue = false, +): Promise { + try { + return await storageProvider.get(calendarSettingStorageKey(key)); + } catch { + return defaultValue; + } +} + +/** + * + */ +export function calendarSettingStorageKey(key: string): string { + return `${CALENDAR_SYNC_SETTINGS_KEY}.${key}`; +} diff --git a/frontend/app/src/app/modules/settings/page/calendar-sync-settings.component.ts b/frontend/app/src/app/modules/settings/page/calendar-sync-settings.component.ts new file mode 100644 index 00000000..ed7d4454 --- /dev/null +++ b/frontend/app/src/app/modules/settings/page/calendar-sync-settings.component.ts @@ -0,0 +1,175 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, OnInit} from '@angular/core'; +import {AddEventReviewModalComponent} from '../../calendar/add-event-review-modal.component'; +import {ModalController} from '@ionic/angular'; +import {ScheduleProvider} from '../../calendar/schedule.provider'; +import {Directory, Encoding, Filesystem} from '@capacitor/filesystem'; +import {Share} from '@capacitor/share'; +import {Device} from '@capacitor/device'; +import {Dialog} from '@capacitor/dialog'; +import {SCUuid} from '@openstapps/core'; +import {TranslateService} from '@ngx-translate/core'; +import {StorageProvider} from '../../storage/storage.provider'; +import {ScheduleSyncService} from '../../background/schedule/schedule-sync.service'; +import {CalendarService} from '../../calendar/calendar.service'; +import {getNativeCalendarExport} from '../../calendar/ical/ical'; +import {ThingTranslateService} from '../../../translation/thing-translate.service'; +import { + CALENDAR_NOTIFICATIONS_ENABLED_KEY, + CALENDAR_SYNC_ENABLED_KEY, + CALENDAR_SYNC_KEYS, + calendarSettingStorageKey, + getCalendarSetting, +} from './calendar-sync-settings-keys'; + +@Component({ + selector: 'calendar-sync-settings', + templateUrl: 'calendar-sync-settings.html', + styleUrls: ['calendar-sync-settings.scss'], +}) +export class CalendarSyncSettingsComponent implements OnInit { + isWeb = true; + + syncEnabled = false; + + notificationsEnabled = false; + + constructor( + readonly modalController: ModalController, + readonly scheduleProvider: ScheduleProvider, + readonly translator: TranslateService, + readonly thingTranslator: ThingTranslateService, + readonly storageProvider: StorageProvider, + readonly scheduleSyncService: ScheduleSyncService, + readonly calendarService: CalendarService, + ) {} + + ngOnInit() { + Device.getInfo().then(it => { + this.isWeb = it.platform === 'web'; + }); + + this.getSetting(CALENDAR_SYNC_ENABLED_KEY).then(it => (this.syncEnabled = it)); + this.getSetting(CALENDAR_NOTIFICATIONS_ENABLED_KEY).then(it => (this.notificationsEnabled = it)); + } + + async getSetting(key: CALENDAR_SYNC_KEYS, defaultValue = false): Promise { + return getCalendarSetting(this.storageProvider, key, defaultValue); + } + + async syncCalendar(sync: boolean) { + this.syncEnabled = sync; + + if (sync) { + const uuids = this.scheduleProvider.partialEvents$.value.map(it => it.uid); + const dateSeries = (await this.scheduleProvider.getDateSeries(uuids)).dates; + + await this.calendarService.syncEvents( + getNativeCalendarExport(dateSeries, this.thingTranslator.translator), + ); + } else { + await this.calendarService.purge(); + } + } + + async setSetting(settings: Partial>) { + await Promise.all( + Object.entries(settings).map(([key, setting]) => + this.storageProvider.put(calendarSettingStorageKey(key), setting), + ), + ); + + return this.scheduleSyncService.enable(); + } + + async export() { + const uuids = this.scheduleProvider.partialEvents$.value.map(it => it.uid); + const dateSeries = (await this.scheduleProvider.getDateSeries(uuids)).dates; + + const modal = await this.modalController.create({ + component: AddEventReviewModalComponent, + canDismiss: true, + cssClass: 'add-modal', + componentProps: { + dismissAction: () => { + modal.dismiss(); + }, + dateSeries: dateSeries, + }, + }); + + await modal.present(); + await modal.onWillDismiss(); + } + + async restore(event: Event) { + // @ts-expect-error files do actually exist + const file = event.target?.files[0] as File; + const uuids = JSON.parse(await file.text()) as SCUuid[] | unknown; + if (!Array.isArray(uuids) || uuids.some(it => typeof it !== 'string')) { + return Dialog.alert({ + title: this.translator.instant('settings.calendar.export.dialogs.restore.rejectFile.title'), + message: this.translator.instant('settings.calendar.export.dialogs.restore.rejectFile.message'), + }); + } + const dateSeries = await this.scheduleProvider.restore(uuids); + return dateSeries + ? Dialog.confirm({ + title: this.translator.instant('settings.calendar.export.dialogs.restore.success.title'), + message: this.translator.instant('settings.calendar.export.dialogs.restore.success.message'), + }) + : Dialog.alert({ + title: this.translator.instant('settings.calendar.export.dialogs.restore.error.title'), + message: this.translator.instant('settings.calendar.export.dialogs.restore.error.message'), + }); + } + + translateWithDefault(key: string, defaultValue: string) { + const out = this.translator.instant(key); + return out === key ? defaultValue : out; + } + + async backup() { + const uuids = JSON.stringify(this.scheduleProvider.partialEvents$.value.map(it => it.uid)); + + const fileName = `${this.translator.instant('settings.calendar.export.fileName')}.json`; + const info = await Device.getInfo(); + if (info.platform === 'web') { + const blob = new Blob([uuids], {type: 'application/json'}); + const url = window.URL.createObjectURL(blob); + const a = document.createElement('a'); + a.href = url; + a.download = fileName; + a.click(); + window.URL.revokeObjectURL(url); + } else { + const result = await Filesystem.writeFile({ + path: fileName, + data: uuids, + encoding: Encoding.UTF8, + directory: Directory.Cache, + }); + + await Share.share({ + title: this.translator.instant('settings.calendar.export.dialogs.backup.save.title'), + text: this.translator.instant('settings.calendar.export.dialogs.backup.save.message'), + url: result.uri, + dialogTitle: this.translator.instant('settings.calendar.export.dialogs.backup.save.title'), + }); + } + } +} diff --git a/frontend/app/src/app/modules/settings/page/calendar-sync-settings.html b/frontend/app/src/app/modules/settings/page/calendar-sync-settings.html new file mode 100644 index 00000000..1ef5b2a0 --- /dev/null +++ b/frontend/app/src/app/modules/settings/page/calendar-sync-settings.html @@ -0,0 +1,107 @@ + + + + + {{ 'settings.calendar.title' | translate }} + + + + + + + {{ 'settings.calendar.sync.title' | translate }} + + + + + {{ 'settings.calendar.sync.syncWithCalendar' | translate }} + + + + + Sync Now + + + + + {{ 'settings.calendar.sync.unavailableWeb' | translate }} + + + + + + {{ 'settings.calendar.export.title' | translate }} + + + + {{ 'settings.calendar.export.exportEvents' | translate }} + + + + + + {{ 'settings.calendar.export.backup' | translate }} + + + + {{ 'settings.calendar.export.restore' | translate }} + + + + + + + + + diff --git a/frontend/app/src/app/modules/settings/page/calendar-sync-settings.scss b/frontend/app/src/app/modules/settings/page/calendar-sync-settings.scss new file mode 100644 index 00000000..e69de29b diff --git a/frontend/app/src/app/modules/settings/page/settings-page.component.ts b/frontend/app/src/app/modules/settings/page/settings-page.component.ts new file mode 100644 index 00000000..4745784e --- /dev/null +++ b/frontend/app/src/app/modules/settings/page/settings-page.component.ts @@ -0,0 +1,158 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {ChangeDetectorRef, Component, OnInit} from '@angular/core'; +import {AlertController, ToastController} from '@ionic/angular'; +import {TranslateService} from '@ngx-translate/core'; +import {SCSettingMeta} from '@openstapps/core'; +import {SettingsCache, SettingsProvider} from '../settings.provider'; + +/** + * Settings page component + */ +@Component({ + selector: 'stapps-settings-page', + templateUrl: 'settings-page.html', + styleUrls: ['settings-page.scss'], +}) +export class SettingsPageComponent implements OnInit { + /** + * Order of the categories + */ + categoriesOrder: string[]; + + /** + * Meta information about settings + */ + meta = SCSettingMeta; + + /** + * Mapping of Object.keys for Html usage + */ + objectKeys = Object.keys; + + /** + * Container to cache settings from provider + */ + settingsCache: SettingsCache; + + /** + * + * @param alertController AlertController + * @param settingsProvider SettingsProvider + * @param toastController ToastController + * @param translateService TranslateService + * @param changeDetectorRef ChangeDetectorRef + */ + constructor( + private readonly alertController: AlertController, + private readonly settingsProvider: SettingsProvider, + private readonly toastController: ToastController, + private readonly translateService: TranslateService, + private readonly changeDetectorRef: ChangeDetectorRef, + ) { + this.settingsCache = {}; + } + + /** + * Presents a Toast with message for settings successful reset + */ + private async presentSettingsResetToast() { + const toast = await this.toastController.create({ + cssClass: 'ion-text-center', + duration: 2000, + message: this.translateService.instant('settings.resetToast.message'), + }); + + return toast.present(); + } + + /** + * Loads cache of settings from SettingProvider + */ + async loadSettings(): Promise { + this.settingsCache = await this.settingsProvider.getCache(); + // categoriesOrder triggers updating the View, because it is used in the ngFor loop + this.categoriesOrder = this.settingsProvider.getCategoriesOrder(); + this.changeDetectorRef.detectChanges(); + } + + /** + * Component initialize method + */ + async ngOnInit() { + await this.loadSettings(); + } + + /** + * Presents an alert to the user to reset settings to default values + */ + async presentResetAlert() { + const cancelText = await this.translateService.get('settings.resetAlert.buttonCancel').toPromise(); + const yesText = await this.translateService.get('settings.resetAlert.buttonYes').toPromise(); + const title = await this.translateService.get('settings.resetAlert.title').toPromise(); + const message = await this.translateService.get('settings.resetAlert.message').toPromise(); + + const alert = await this.alertController.create({ + buttons: [ + { + role: 'cancel', + text: cancelText, + }, + { + handler: async () => { + await this.resetSettings(); + }, + text: yesText, + }, + ], + header: title, + message: message, + }); + await alert.present(); + } + + /** + * Resets all settings to default values + */ + async resetSettings() { + await this.settingsProvider.resetDefault(); + await this.loadSettings(); + await this.presentSettingsResetToast(); + } + + /** + * Shows alert to reset settings + */ + async showResetAlert() { + const alert = await this.alertController.create({ + buttons: [ + { + role: 'cancel', + text: this.translateService.instant('settings.resetAlert.buttonCancel'), + }, + { + handler: async () => { + await this.resetSettings(); + }, + text: this.translateService.instant('settings.resetAlert.buttonYes'), + }, + ], + header: this.translateService.instant('settings.resetAlert.title'), + message: this.translateService.instant('settings.resetAlert.message'), + }); + + await alert.present(); + } +} diff --git a/frontend/app/src/app/modules/settings/page/settings-page.html b/frontend/app/src/app/modules/settings/page/settings-page.html new file mode 100644 index 00000000..cd013bf9 --- /dev/null +++ b/frontend/app/src/app/modules/settings/page/settings-page.html @@ -0,0 +1,59 @@ + + + + + + + + {{ 'settings.title' | translate | titlecase }} + + + + +
+
+ + + + + + + + + + + {{ 'settings.resetSettings' | translate }} + + +
+
+
diff --git a/frontend/app/src/app/modules/settings/page/settings-page.scss b/frontend/app/src/app/modules/settings/page/settings-page.scss new file mode 100644 index 00000000..bb51ff33 --- /dev/null +++ b/frontend/app/src/app/modules/settings/page/settings-page.scss @@ -0,0 +1,73 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@import 'src/theme/util/_mixins.scss'; + +:host ::ng-deep { + ion-card { + margin: 0; + box-shadow: none; + ion-card-content { + h1 { + margin: 0; + } + padding-bottom: 8px; + } + ion-card-header { + color: var(--ion-color-dark); + padding-top: 8px; + padding-bottom: 4px; + font-weight: bold; + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } + } + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } + + .settings-content { + margin: var(--spacing-md); + display: flex; + flex-direction: column; + gap: var(--spacing-sm); + background: var(--ion-color-light); + @include border-radius-in-parallax(var(--border-radius-default)); + + & > * { + ion-card-subtitle { + font-size: var(--font-size-lg); + color: var(--ion-color-light-contrast); + } + + display: block; + @include border-radius-in-parallax(var(--border-radius-default)); + overflow: hidden; + position: relative; + background-color: var(--ion-color-primary-contrast); + margin: 0; + + & > ion-thumbnail { + background: var(--ion-color-primary); + } + } + } +} diff --git a/frontend/app/src/app/modules/settings/setting-translate.pipe.ts b/frontend/app/src/app/modules/settings/setting-translate.pipe.ts new file mode 100644 index 00000000..8afcc234 --- /dev/null +++ b/frontend/app/src/app/modules/settings/setting-translate.pipe.ts @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Pipe, PipeTransform} from '@angular/core'; +import {TranslateService} from '@ngx-translate/core'; +import {SCSetting} from '@openstapps/core'; +import {ThingTranslatePipe} from '../../translation/thing-translate.pipe'; +import {ThingTranslateService} from '../../translation/thing-translate.service'; + +/** + * Translates a setting value (into the display value in current language) + */ +@Pipe({ + name: 'settingValueTranslate', +}) +export class SettingTranslatePipe implements PipeTransform { + constructor( + private readonly translate: TranslateService, + private readonly thingTranslate: ThingTranslateService, + ) {} + + transform(setting: SCSetting) { + const thingTranslatePipe = new ThingTranslatePipe(this.translate, this.thingTranslate); + const translatedSettingValues = thingTranslatePipe.transform('values', setting); + + return translatedSettingValues + ? translatedSettingValues[setting.values?.indexOf(setting.value as string) as number] + : undefined; + } +} diff --git a/frontend/app/src/app/modules/settings/settings.module.ts b/frontend/app/src/app/modules/settings/settings.module.ts new file mode 100644 index 00000000..911f4978 --- /dev/null +++ b/frontend/app/src/app/modules/settings/settings.module.ts @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {RouterModule, Routes} from '@angular/router'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; + +import {ThingTranslateModule} from '../../translation/thing-translate.module'; +import {ConfigProvider} from '../config/config.provider'; +import {SettingsItemComponent} from './item/settings-item.component'; +import {SettingsPageComponent} from './page/settings-page.component'; +import {SettingTranslatePipe} from './setting-translate.pipe'; +import {SettingsProvider} from './settings.provider'; +import {CalendarSyncSettingsComponent} from './page/calendar-sync-settings.component'; +import {ScheduleProvider} from '../calendar/schedule.provider'; +import {ThingTranslatePipe} from '../../translation/thing-translate.pipe'; +import {ScheduleSyncService} from '../background/schedule/schedule-sync.service'; +import {CalendarService} from '../calendar/calendar.service'; +import {CalendarModule} from '../calendar/calendar.module'; +import {BackgroundModule} from '../background/background.module'; +import {UtilModule} from '../../util/util.module'; +import {IonIconModule} from '../../util/ion-icon/ion-icon.module'; + +const settingsRoutes: Routes = [{path: 'settings', component: SettingsPageComponent}]; + +/** + * Settings Module + */ +@NgModule({ + declarations: [ + SettingsPageComponent, + SettingsItemComponent, + SettingTranslatePipe, + CalendarSyncSettingsComponent, + ], + exports: [SettingsItemComponent, SettingTranslatePipe], + imports: [ + CommonModule, + FormsModule, + CalendarModule, + IonIconModule, + BackgroundModule, + IonicModule.forRoot(), + TranslateModule.forChild(), + ThingTranslateModule.forChild(), + RouterModule.forChild(settingsRoutes), + UtilModule, + ], + providers: [ + ScheduleSyncService, + ConfigProvider, + SettingsProvider, + CalendarService, + ScheduleProvider, + ThingTranslatePipe, + ], +}) +export class SettingsModule {} diff --git a/frontend/app/src/app/modules/settings/settings.provider.spec.ts b/frontend/app/src/app/modules/settings/settings.provider.spec.ts new file mode 100644 index 00000000..14b969c8 --- /dev/null +++ b/frontend/app/src/app/modules/settings/settings.provider.spec.ts @@ -0,0 +1,408 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +/* eslint-disable unicorn/no-useless-undefined, @typescript-eslint/no-non-null-assertion */ +import {TestBed} from '@angular/core/testing'; +import {SCSetting, SCThingOriginType, SCThingType, SCSettingInputType} from '@openstapps/core'; +import {ConfigProvider} from '../config/config.provider'; +import {StorageProvider} from '../storage/storage.provider'; +import {SettingsProvider, SettingValuesContainer, STORAGE_KEY_SETTING_VALUES} from './settings.provider'; +import {ScheduleSyncService} from '../background/schedule/schedule-sync.service'; + +describe('SettingsProvider', () => { + let configProviderSpy: jasmine.SpyObj; + let settingsProvider: SettingsProvider; + let storageProviderSpy: jasmine.SpyObj; + let scheduleSyncServiceSpy: jasmine.SpyObj; + + beforeEach(async () => { + storageProviderSpy = jasmine.createSpyObj('StorageProvider', ['init', 'get', 'has', 'put']); + configProviderSpy = jasmine.createSpyObj('ConfigProvider', ['getValue']); + scheduleSyncServiceSpy = jasmine.createSpyObj('ScheduleSyncService', [ + 'getDifferences', + 'postDifferencesNotification', + ]); + + TestBed.configureTestingModule({ + imports: [], + providers: [ + SettingsProvider, + { + provide: StorageProvider, + useValue: storageProviderSpy, + }, + { + provide: ConfigProvider, + useValue: configProviderSpy, + }, + { + provide: ScheduleSyncService, + useValue: scheduleSyncServiceSpy, + }, + ], + }); + // set settings returned from config + configProviderSpy.getValue.and.returnValue(CONFIG_SETTINGS_MOCK); + settingsProvider = TestBed.inject(SettingsProvider); + storageProviderSpy.has.and.returnValue(Promise.resolve(false)); + }); + + it('should provide and get setting', async () => { + await settingsProvider.provideSetting(JSON.parse(JSON.stringify(CONFIG_SETTINGS_MOCK[0]))); + const setting: SCSetting = await settingsProvider.getSetting( + CONFIG_SETTINGS_MOCK[0].categories[0], + CONFIG_SETTINGS_MOCK[0].name, + ); + expect(setting.value).toBeDefined(); + }); + + it('should provide and get settings value', async () => { + await settingsProvider.provideSetting(JSON.parse(JSON.stringify(CONFIG_SETTINGS_MOCK[0]))); + const value = await settingsProvider.getValue( + CONFIG_SETTINGS_MOCK[0].categories[0], + CONFIG_SETTINGS_MOCK[0].name, + ); + expect(value).toEqual(CONFIG_SETTINGS_MOCK[0].defaultValue); + }); + + it('should get persisted setting value', async () => { + // set return values of storage + storageProviderSpy.has.and.returnValue(Promise.resolve(true)); + storageProviderSpy.get.and.returnValue(Promise.resolve(SETTING_VALUES_MOCK)); + + const value = await settingsProvider.getValue( + CONFIG_SETTINGS_MOCK[3].categories[0], + CONFIG_SETTINGS_MOCK[3].name, + ); + expect(value).toEqual(SETTING_VALUES_MOCK.profile.group as string); + }); + + it('should set default setting value if no persisted value exist', async () => { + // set return values of spy objects + storageProviderSpy.has.and.returnValue(Promise.resolve(true)); + storageProviderSpy.get.and.returnValue(Promise.resolve([])); + const value = await settingsProvider.getValue( + CONFIG_SETTINGS_MOCK[3].categories[0], + CONFIG_SETTINGS_MOCK[3].name, + ); + expect(value).toEqual(CONFIG_SETTINGS_MOCK[3].defaultValue); + }); + + it('should keep persisted setting values from settings that are not contained in loaded config', async () => { + const settings = [CONFIG_SETTINGS_MOCK[4], CONFIG_SETTINGS_MOCK[5]]; + configProviderSpy.getValue.and.returnValue(settings); + storageProviderSpy.has.and.returnValue(Promise.resolve(true)); + storageProviderSpy.get.and.returnValue(Promise.resolve(SETTING_VALUES_MOCK)); + await settingsProvider.init(); + expect(storageProviderSpy.put).toHaveBeenCalledWith(STORAGE_KEY_SETTING_VALUES, SETTING_VALUES_MOCK); + }); + + it('should set value of a provided setting', async () => { + await settingsProvider.provideSetting(JSON.parse(JSON.stringify(CONFIG_SETTINGS_MOCK[1]))); + await settingsProvider.setSettingValue( + CONFIG_SETTINGS_MOCK[1].categories[0], + CONFIG_SETTINGS_MOCK[1].name, + 'updated', + ); + const value = await settingsProvider.getValue( + CONFIG_SETTINGS_MOCK[1].categories[0], + CONFIG_SETTINGS_MOCK[1].name, + ); + expect(value).toEqual('updated'); + }); + + it('should return copy of settingsCache', async () => { + const category = CONFIG_SETTINGS_MOCK[0].categories[0]; + const name = CONFIG_SETTINGS_MOCK[0].name; + await settingsProvider.provideSetting(JSON.parse(JSON.stringify(CONFIG_SETTINGS_MOCK[0]))); + const settings = await settingsProvider.getCache(); + settings[category].settings[name].value = 'testValue'; + // cached setting value should still be defaultValue + expect(await settingsProvider.getValue(category, name)).toEqual(CONFIG_SETTINGS_MOCK[0].defaultValue); + }); + + it('should call storage put on setSettingValue', async () => { + await settingsProvider.provideSetting(JSON.parse(JSON.stringify(CONFIG_SETTINGS_MOCK[0]))); + await settingsProvider.setSettingValue( + CONFIG_SETTINGS_MOCK[0].categories[0], + CONFIG_SETTINGS_MOCK[0].name, + '', + ); + expect(storageProviderSpy.put).toHaveBeenCalled(); + }); + + it('should clear settings', async () => { + await settingsProvider.reset(); + expect(storageProviderSpy.put).toHaveBeenCalledWith(STORAGE_KEY_SETTING_VALUES, {}); + }); + + it('should reset settings', async () => { + const category = CONFIG_SETTINGS_MOCK[0].categories[0]; + const name = CONFIG_SETTINGS_MOCK[0].name; + await settingsProvider.provideSetting(JSON.parse(JSON.stringify(CONFIG_SETTINGS_MOCK[0]))); + await settingsProvider.setSettingValue(category, name, 'guest'); + await settingsProvider.resetDefault(); + const value = await settingsProvider.getValue( + CONFIG_SETTINGS_MOCK[0].categories[0], + CONFIG_SETTINGS_MOCK[0].name, + ); + expect(value).toEqual(CONFIG_SETTINGS_MOCK[0].defaultValue); + }); + + it('should validate wrong values for inputType text', async () => { + await testValue(CONFIG_SETTINGS_MOCK[0], 123_456_789); + await testValue(CONFIG_SETTINGS_MOCK[0], false); + await testValue(CONFIG_SETTINGS_MOCK[0], []); + }); + + it('should validate wrong values for inputType password', async () => { + await testValue(CONFIG_SETTINGS_MOCK[0], 123_456_789); + await testValue(CONFIG_SETTINGS_MOCK[0], false); + await testValue(CONFIG_SETTINGS_MOCK[0], []); + }); + + it('should validate wrong values for inputType number', async () => { + await testValue(CONFIG_SETTINGS_MOCK[2], ''); + await testValue(CONFIG_SETTINGS_MOCK[2], false); + await testValue(CONFIG_SETTINGS_MOCK[2], []); + }); + + it('should validate wrong values for inputType singleChoice text', async () => { + await testValue(CONFIG_SETTINGS_MOCK[3], ''); + await testValue(CONFIG_SETTINGS_MOCK[3], 123_456); + await testValue(CONFIG_SETTINGS_MOCK[3], false); + await testValue(CONFIG_SETTINGS_MOCK[3], []); + }); + + it('should validate wrong values for inputType singleChoice boolean', async () => { + await testValue(CONFIG_SETTINGS_MOCK[5], ''); + await testValue(CONFIG_SETTINGS_MOCK[5], 123_456); + await testValue(CONFIG_SETTINGS_MOCK[5], []); + }); + + it('should validate wrong values for inputType multipleChoice', async () => { + await testValue(CONFIG_SETTINGS_MOCK[6], ''); + await testValue(CONFIG_SETTINGS_MOCK[6], 123_456); + await testValue(CONFIG_SETTINGS_MOCK[6], false); + await testValue(CONFIG_SETTINGS_MOCK[6], [1, 9]); + }); + + /** + * TODO + */ + async function testValue(setting: SCSetting, value: unknown) { + let error: Error | undefined = undefined; + await settingsProvider.provideSetting(JSON.parse(JSON.stringify(setting))); + try { + await settingsProvider.setSettingValue(setting.categories[0], setting.name, value as never); + } catch (error_) { + error = error_ as Error; + } + + expect(error).toBeDefined(); + expect(error!.message).toMatch(/is not valid/); + } + + const CONFIG_SETTINGS_MOCK: SCSetting[] = [ + { + categories: ['credentials'], + defaultValue: '', + inputType: SCSettingInputType.Text, + name: 'username', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + name: 'Benutzername', + }, + en: { + name: 'Username', + }, + }, + type: SCThingType.Setting, + uid: '', + }, + { + categories: ['credentials'], + description: '', + defaultValue: '', + inputType: SCSettingInputType.Password, + name: 'password', + order: 1, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + name: 'Passwort', + }, + en: { + name: 'Password', + }, + }, + type: SCThingType.Setting, + uid: '', + }, + { + categories: ['profile'], + defaultValue: 0, + description: '', + inputType: SCSettingInputType.Number, + name: 'age', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + name: 'Alter', + }, + en: { + name: 'Age', + }, + }, + type: SCThingType.Setting, + uid: '', + }, + { + categories: ['profile'], + description: '', + defaultValue: 'student', + inputType: SCSettingInputType.SingleChoice, + name: 'group', + order: 1, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + description: + 'Mit welcher Benutzergruppe soll die App verwendet werden?' + + ' Die Einstellung wird beispielsweise für die Vorauswahl der Preiskategorie der Mensa verwendet.', + name: 'Gruppe', + }, + en: { + description: + 'The user group the app is going to be used.' + + 'This settings for example is getting used for the predefined price category of mensa meals.', + name: 'Group', + }, + }, + type: SCThingType.Setting, + uid: '', + values: ['student', 'employee', 'guest'], + }, + { + categories: ['profile'], + description: '', + defaultValue: 'en', + inputType: SCSettingInputType.SingleChoice, + name: 'language', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + description: 'Die Sprache in der die App angezeigt werden soll', + name: 'Sprache', + }, + en: { + description: 'The language this app is going to use', + name: 'Language', + }, + }, + type: SCThingType.Setting, + uid: '', + values: ['en', 'de'], + }, + { + categories: ['privacy'], + description: '', + defaultValue: false, + inputType: SCSettingInputType.SingleChoice, + name: 'foo', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + description: 'Foo Beschreibung', + name: 'Foo', + }, + en: { + description: 'Foo Description', + name: 'Foo', + }, + }, + type: SCThingType.Setting, + uid: '', + values: [true, false], + }, + { + categories: ['others'], + defaultValue: [], + description: '', + inputType: SCSettingInputType.MultipleChoice, + name: 'numbers', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'Dummy', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + description: 'Test für multiple select Feld', + name: 'Nummern', + }, + en: { + description: 'Test for multiple select field', + name: 'Numbers', + }, + }, + type: SCThingType.Setting, + uid: '', + values: [1, 2, 3, 4, 5, 6, 7, 8], + }, + ]; +}); + +const SETTING_VALUES_MOCK: SettingValuesContainer = { + foo: { + bar: 'foo-bar', + }, + privacy: { + foo: true, + }, + profile: { + group: 'employee', + language: 'de', + }, +}; diff --git a/frontend/app/src/app/modules/settings/settings.provider.ts b/frontend/app/src/app/modules/settings/settings.provider.ts new file mode 100644 index 00000000..a36f0eda --- /dev/null +++ b/frontend/app/src/app/modules/settings/settings.provider.ts @@ -0,0 +1,465 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {SCSetting, SCSettingValue, SCSettingValues} from '@openstapps/core'; +import deepMerge from 'deepmerge'; +import {Subject} from 'rxjs'; +import {ConfigProvider} from '../config/config.provider'; +import {StorageProvider} from '../storage/storage.provider'; + +export const STORAGE_KEY_SETTINGS = 'settings'; +export const STORAGE_KEY_SETTINGS_SEPARATOR = '.'; +export const STORAGE_KEY_SETTING_VALUES = `${STORAGE_KEY_SETTINGS}${STORAGE_KEY_SETTINGS_SEPARATOR}values`; + +/** + * Category structure of settings cache + */ +export interface CategoryWithSettings { + /** + * Category name + */ + category: string; + /** + * Settings that belong in this category + */ + settings: {[key: string]: SCSetting}; +} + +/** + * Structure of SettingsCache + */ +export interface SettingsCache { + [key: string]: CategoryWithSettings; +} + +/** + * Structure with categories and its setting valueContainers for persistence + */ +export interface SettingValuesContainer { + [key: string]: SettingValueContainer; +} + +/** + * Structure of a setting and its value + */ +export interface SettingValueContainer { + [key: string]: SCSettingValue | SCSettingValue[] | undefined; +} + +/** + * Structure of the settings events + */ +export interface SettingsAction { + /** + * Data related to the action + */ + payload?: { + /** + * Setting category + */ + category: string; + /** + * Setting name + */ + name: string; + /** + * Setting value + */ + value: SCSettingValue | SCSettingValues; + }; + + /** + * Type of the settings action + */ + type: string; +} + +/** + * Provider for app settings + */ +@Injectable() +export class SettingsProvider { + /** + * Source of settings actions + */ + private settingsActionSource = new Subject(); + + private needsInit = true; + + /** + * Order of the setting categories + */ + categoriesOrder: string[]; + + /** + * Settings actions observable + */ + settingsActionChanged$ = this.settingsActionSource.asObservable(); + + /** + * Cache for the imported settings + */ + settingsCache: SettingsCache; + + /** + * Return true if all given values are valid to possible values in given settingInput + * + * @param possibleValues Possible values + * @param enteredValues Entered value + */ + public static checkMultipleChoiceValue( + possibleValues: SCSettingValues | undefined, + enteredValues: SCSettingValues, + ): boolean { + if (typeof possibleValues === 'undefined') { + return false; + } + + for (const value of enteredValues) { + if (!possibleValues.includes(value)) { + return false; + } + } + + return true; + } + + /** + * Returns true if given value is valid to possible values in given settingInput + * + * @param possibleValues Possible values + * @param enteredValue Entered value + */ + public static checkSingleChoiceValue( + possibleValues: SCSettingValues | undefined, + enteredValue: SCSettingValue, + ): boolean { + if (typeof possibleValues === 'undefined') { + return false; + } + + return ( + possibleValues !== undefined && Array.isArray(possibleValues) && possibleValues.includes(enteredValue) + ); + } + + /** + * Validates value for given settings inputType. Returns true if value is valid. + * + * @param setting setting to check value against + * @param value value to validate + */ + public static validateValue(setting: SCSetting, value: SCSettingValue | SCSettingValues): boolean { + let isValueValid = false; + switch (setting.inputType) { + case 'number': + if (typeof value === 'number') { + isValueValid = true; + } + break; + case 'multiple choice': + isValueValid = !Array.isArray(value) + ? false + : SettingsProvider.checkMultipleChoiceValue(setting.values, value); + break; + case 'password': + case 'text': + if (typeof value === 'string') { + isValueValid = true; + } + break; + case 'single choice': + isValueValid = Array.isArray(value) + ? false + : SettingsProvider.checkSingleChoiceValue(setting.values, value); + break; + default: + } + + return isValueValid; + } + + /** + * + * @param storage TODO + * @param configProvider TODO + */ + constructor(private readonly storage: StorageProvider, private readonly configProvider: ConfigProvider) { + this.categoriesOrder = []; + this.settingsCache = {}; + } + + /** + * Add an Setting to the Cache if not exist and set undefined value to defaultValue + * + * @param setting Setting with categories, defaultValue, name, input type and valid values + */ + private addSetting(setting: SCSetting): void { + if (!this.categoryExists(setting.categories[0])) { + this.provideCategory(setting.categories[0]); + } + if (!this.settingExists(setting.categories[0], setting.name)) { + if (setting.value === undefined) { + setting.value = setting.defaultValue; + } + this.settingsCache[setting.categories[0]].settings[setting.name] = setting; + } + } + + /** + * Returns all setting values from settingsCache in a SettingsValueContainer + */ + private getSettingValuesFromCache(): SettingValuesContainer { + const settingValuesContainer: SettingValuesContainer = {}; + // iterate through keys of categories + for (const categoryKey of Object.keys(this.settingsCache)) { + // iterate through keys of settingValueContainer + for (const settingKey of Object.keys(this.settingsCache[categoryKey].settings)) { + if (typeof settingValuesContainer[categoryKey] === 'undefined') { + settingValuesContainer[categoryKey] = {}; + } + settingValuesContainer[categoryKey][settingKey] = + this.settingsCache[categoryKey].settings[settingKey].value; + } + } + + return settingValuesContainer; + } + + /** + * Add category if not exists + * + * @param category the category to provide + */ + private provideCategory(category: string): void { + if (!this.categoryExists(category)) { + if (!this.categoriesOrder.includes(category)) { + this.categoriesOrder.push(category); + } + this.settingsCache[category] = { + category: category, + settings: {}, + }; + } + } + + /** + * Returns true if category exists + * + * @param category Category key name + */ + public categoryExists(category: string): boolean { + return this.settingsCache[category] !== undefined; + } + + /** + * Returns copy of cached settings + */ + public async getCache(): Promise { + await this.init(); + + return JSON.parse(JSON.stringify(this.settingsCache)); + } + + /** + * Returns an array with the order of categories + */ + public getCategoriesOrder(): string[] { + return this.categoriesOrder; + } + + /** + * Returns copy of a setting if exist + * + * @param category the category of requested setting + * @param name the name of requested setting + * @throws Exception if setting is not provided + */ + public async getSetting(category: string, name: string): Promise { + await this.init(); + if (this.settingExists(category, name)) { + // return a copy of the settings + return JSON.parse(JSON.stringify(this.settingsCache[category].settings[name])); + } + throw new Error(`Setting "${name}" not provided`); + } + + /** + * Returns copy of a settings value if exist + * + * @param category the category of requested setting + * @param name the name of requested setting + * @throws Exception if setting is not provided + */ + public async getValue(category: string, name: string): Promise { + await this.init(); + if (this.settingExists(category, name)) { + // return a copy of the settings value + return JSON.parse(JSON.stringify(this.settingsCache[category].settings[name].value)); + } + throw new Error(`Setting "${name}" not provided`); + } + + /** + * Initializes settings from config and stored values if exist + */ + public async init(): Promise { + if (!this.needsInit) return; + this.needsInit = false; + + try { + const settings: SCSetting[] = this.configProvider.getValue('settings') as SCSetting[]; + for (const setting of settings) this.addSetting(setting); + + for (const category of Object.keys(this.settingsCache)) { + if (!this.categoriesOrder.includes(category)) { + this.categoriesOrder.push(category); + } + } + } catch { + this.settingsCache = {}; + } + + if (await this.storage.has(STORAGE_KEY_SETTING_VALUES)) { + // get setting values from StorageProvider into settingsCache + const valuesContainer: SettingValuesContainer = await this.storage.get( + STORAGE_KEY_SETTING_VALUES, + ); + // iterate through keys of categories + for (const categoryKey of Object.keys(this.settingsCache)) { + // iterate through setting keys of category + for (const settingKey of Object.keys(this.settingsCache[categoryKey].settings)) { + // if saved setting value exists set it, otherwise set to default value + if ( + typeof valuesContainer[categoryKey] !== 'undefined' && + typeof valuesContainer[categoryKey][settingKey] !== 'undefined' + ) { + this.settingsCache[categoryKey].settings[settingKey].value = + valuesContainer[categoryKey][settingKey]; + } else { + this.settingsCache[categoryKey].settings[settingKey].value = + this.settingsCache[categoryKey].settings[settingKey].defaultValue; + } + } + } + await this.saveSettingValues(); + } + } + + /** + * Adds given setting and its category if not exist + * + * @param setting the setting to add + */ + public provideSetting(setting: SCSetting): void { + this.addSetting(setting); + } + + /** + * Deletes saved values and reinitialising the settings + */ + public async reset(): Promise { + await this.storage.put(STORAGE_KEY_SETTING_VALUES, {}); + this.needsInit = true; + await this.init(); + } + + /** + * Sets values of all settings to defaultValue + */ + async resetDefault(): Promise { + for (const catKey of Object.keys(this.settingsCache)) { + for (const settingKey of Object.keys(this.settingsCache[catKey].settings)) { + const settingInput = this.settingsCache[catKey].settings[settingKey]; + settingInput.value = settingInput.defaultValue; + } + } + await this.saveSettingValues(); + } + + /** + * Saves cached settings in app storage + */ + public async saveSettingValues(): Promise { + if (await this.storage.has(STORAGE_KEY_SETTING_VALUES)) { + const savedSettingsValues: SettingValuesContainer = await this.storage.get( + STORAGE_KEY_SETTING_VALUES, + ); + const cacheSettingsValues = this.getSettingValuesFromCache(); + const mergedSettingValues = deepMerge(savedSettingsValues, cacheSettingsValues); + await this.storage.put(STORAGE_KEY_SETTING_VALUES, mergedSettingValues); + } else { + await this.storage.put( + STORAGE_KEY_SETTING_VALUES, + this.getSettingValuesFromCache(), + ); + } + } + + /** + * Sets the order the given categories show up in the settings page + * + * @param categoryNames the order of the categories + */ + public setCategoriesOrder(categoryNames: string[]) { + this.categoriesOrder = categoryNames; + } + + /** + * Sets a valid value of a setting and persists changes in storage. Also the changes get published bey Events + * + * @param category Category key name + * @param name Setting key name + * @param value Value to be set + * @throws Exception if setting is not provided or value not valid to the settings inputType + */ + public async setSettingValue( + category: string, + name: string, + value: SCSettingValue | SCSettingValues, + ): Promise { + await this.init(); + if (this.settingExists(category, name)) { + const setting: SCSetting = this.settingsCache[category].settings[name]; + const isValueValid = SettingsProvider.validateValue(setting, value); + if (isValueValid) { + // set and persist new value + this.settingsCache[category].settings[name].value = value; + await this.saveSettingValues(); + // publish setting changes + this.settingsActionSource.next({ + type: 'stapps.settings.changed', + payload: {category, name, value}, + }); + } else { + throw new Error(`Value "${value}" of type ${typeof value} + is not valid for "${setting.inputType}" of "${category}.${name}". + Ommiting change`); + } + } else { + throw new Error(`Setting "${name}" doesn't exisits within "${category}"`); + } + } + + /** + * Returns true if setting in category exists + * + * @param category Category key name + * @param setting Setting key name + */ + public settingExists(category: string, setting: string): boolean { + return this.categoryExists(category) && this.settingsCache[category].settings[setting] !== undefined; + } +} diff --git a/frontend/app/src/app/modules/storage/capacitor-secure-storage.ts b/frontend/app/src/app/modules/storage/capacitor-secure-storage.ts new file mode 100644 index 00000000..8db8a3dd --- /dev/null +++ b/frontend/app/src/app/modules/storage/capacitor-secure-storage.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {CapacitorSecureStorage} from 'ionic-appauth/lib/capacitor'; + +/* + * Removes an item from storage before entering the new one to avoid issues + * after iOS upgrade (iOS 16) + */ +export class SafeCapacitorSecureStorage extends CapacitorSecureStorage { + async setItem(name: string, value: string): Promise { + if (!Storage) throw new Error('Capacitor Storage Is Undefined!'); + + try { + await super.removeItem(name); + } catch {} + return super.setItem(name, value); + } +} diff --git a/frontend/app/src/app/modules/storage/storage.module.ts b/frontend/app/src/app/modules/storage/storage.module.ts new file mode 100644 index 00000000..f2be12c0 --- /dev/null +++ b/frontend/app/src/app/modules/storage/storage.module.ts @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2018, 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {IonicStorageModule} from '@ionic/storage-angular'; +import {StorageProvider} from './storage.provider'; + +/** + * Angular storage provider module + */ +@NgModule({ + imports: [IonicStorageModule.forRoot()], + providers: [StorageProvider], +}) +export class StorageModule {} diff --git a/frontend/app/src/app/modules/storage/storage.provider.spec.ts b/frontend/app/src/app/modules/storage/storage.provider.spec.ts new file mode 100644 index 00000000..6e916203 --- /dev/null +++ b/frontend/app/src/app/modules/storage/storage.provider.spec.ts @@ -0,0 +1,207 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +/* eslint-disable @typescript-eslint/no-explicit-any */ +import {TestBed} from '@angular/core/testing'; +import {Storage} from '@ionic/storage-angular'; +import {StorageModule} from './storage.module'; +import {StorageProvider} from './storage.provider'; + +describe('StorageProvider', () => { + let storageProvider: StorageProvider; + let storage: Storage; + let sampleEntries: Map; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [StorageModule], + providers: [StorageProvider], + }); + storageProvider = TestBed.inject(StorageProvider); + storage = TestBed.inject(Storage); + + sampleEntries = new Map([ + ['foo', 'Bar'], + ['bar', {foo: 'BarFoo'} as any], + ['foo.bar', 123], + ]); + + spyOn(storage, 'forEach').and.callFake(function_ => { + let i = 0; + for (const key of sampleEntries.keys()) { + function_(sampleEntries.get(key), key, i); + i++; + } + return (async () => { + /* just return a promise */ + })(); + }); + }); + + it('should call ready method of storage on init', async () => { + // @ts-expect-error no need to return storage for this case + spyOn(storage, 'create').and.callFake(() => Promise.resolve()); + await storageProvider.init(); + + expect(storage.create).toHaveBeenCalled(); + }); + + it('should call set method of storage to put a value', async () => { + spyOn(storage, 'set').and.callFake(() => Promise.resolve()); + await storageProvider.put('some-uid', {some: 'thing'}); + + expect(storage.set).toHaveBeenCalledWith('some-uid', {some: 'thing'}); + }); + + it('should call get method of storage to get a value', async () => { + spyOn(storage, 'get').and.callFake(() => Promise.resolve()); + try { + await storageProvider.get('some-uid'); + } catch { + // if not caught, causes issues and tests fail + } + + expect(storage.get).toHaveBeenCalledWith('some-uid'); + }); + + it('should properly put and get a value', async () => { + const fakeStorageSystem = new Map(); + + spyOn(storage, 'set').and.callFake((id, value) => { + return (async () => fakeStorageSystem.set(id, value))(); + }); + spyOn(storage, 'get').and.callFake(id => { + return (async () => fakeStorageSystem.get(id))(); + }); + + await storageProvider.init(); + await storageProvider.put('some-uid', {some: 'thing'}); + const result = await storageProvider.get('some-uid'); + + expect(result).toEqual({some: 'thing'}); + }); + + it('should throw an error when value is null', async () => { + // eslint-disable-next-line unicorn/error-message + let error: Error = new Error(); + // eslint-disable-next-line unicorn/no-null + spyOn(storage, 'get').and.returnValue((async () => null)()); + try { + await storageProvider.get('something-else'); + } catch (error_) { + error = error_ as Error; + } + expect(error).toEqual(new Error('Value not found.')); + }); + + it('should put multiple values into the storage', async () => { + // @ts-expect-error no need to return anything for this case + spyOn(storageProvider, 'put').and.callFake(() => Promise.resolve()); + await storageProvider.putMultiple(sampleEntries); + + expect(storageProvider.put).toHaveBeenCalledTimes(sampleEntries.size); + + for (const key of sampleEntries.keys()) { + expect(storageProvider.put).toHaveBeenCalledWith(key, sampleEntries.get(key)); + } + }); + + it('should get multiple values from the storage', async () => { + spyOn(storageProvider, 'get').and.callFake(id => { + return (async () => sampleEntries.get(id))(); + }); + const entries = await storageProvider.getMultiple(['foo', 'bar']); + + expect(storageProvider.get).toHaveBeenCalledTimes(2); + expect(storageProvider.get).toHaveBeenCalledWith('foo'); + expect(storageProvider.get).toHaveBeenCalledWith('bar'); + + expect([...entries.values()]).toEqual(['Bar', {foo: 'BarFoo'}]); + expect([...entries.keys()]).toEqual(['foo', 'bar']); + }); + + it('should get all values from the storage', async () => { + const allValuesMap = await storageProvider.getAll(); + + for (const key of sampleEntries.keys()) { + expect(allValuesMap.get(key)).toEqual(sampleEntries.get(key)); + } + }); + + it('should delete one or more entries from the storage', async () => { + const storageRemoveSpy = spyOn(storage, 'remove').and.callFake(() => Promise.resolve()); + + await storageProvider.delete('bar'); + expect(storage.remove).toHaveBeenCalledTimes(1); + + storageRemoveSpy.calls.reset(); + + await storageProvider.delete('foo', 'foo.bar'); + expect(storage.remove).toHaveBeenCalledTimes(2); + }); + + it('should delete all entries in the storage', async () => { + spyOn(storage, 'clear').and.callFake(() => Promise.resolve()); + + await storageProvider.deleteAll(); + expect(storage.clear).toHaveBeenCalled(); + }); + + it('should provide information if storage is empty', async () => { + let n: number; + spyOn(storage, 'length').and.callFake(async () => n); + + n = 0; + + const testEmpty = await storageProvider.isEmpty(); + + expect(testEmpty).toBeTruthy(); + + n = 1; + expect(await storageProvider.isEmpty()).toBeFalsy(); + + expect(storage.length).toHaveBeenCalledTimes(2); + }); + + it('should provide number of entries', async () => { + const n = 5; + spyOn(storage, 'length').and.callFake(async () => n); + + expect(await storageProvider.length()).toBe(n); + }); + + it('should provide information if storage contains a specific entry (key)', async () => { + spyOn(storage, 'keys').and.returnValue((async () => [...sampleEntries.keys()])()); + + expect(await storageProvider.has('foo')).toBeTruthy(); + expect(await storageProvider.has('something-else')).toBeFalsy(); + }); + + it('should allow search by regex', async () => { + const found: Map = await storageProvider.search(/bar/); + + expect([...found.keys()].sort()).toEqual(['bar', 'foo.bar']); + expect([...found.values()]).toEqual([{foo: 'BarFoo'}, 123]); + }); + + it('should allow search by string', async () => { + spyOn(storage, 'get').and.callFake(id => { + return (async () => sampleEntries.get(id))(); + }); + const found: Map = await storageProvider.search('foo.ba'); + + expect([...found.keys()]).toEqual(['foo.bar']); + expect([...found.values()]).toEqual([123]); + }); +}); diff --git a/frontend/app/src/app/modules/storage/storage.provider.ts b/frontend/app/src/app/modules/storage/storage.provider.ts new file mode 100644 index 00000000..7b1bfe4a --- /dev/null +++ b/frontend/app/src/app/modules/storage/storage.provider.ts @@ -0,0 +1,176 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable} from '@angular/core'; +import {Storage} from '@ionic/storage-angular'; + +/** + * Provides interaction with the (ionic) storage on the device (in the browser) + */ +@Injectable() +export class StorageProvider { + /** + * @param storage TODO + */ + constructor(private readonly storage: Storage) {} + + /** + * Deletes storage entries using keys used to save them + * + * @param keys Unique identifiers of the resources for deletion + */ + async delete(...keys: string[]): Promise { + keys.map(async key => { + await this.storage.remove(key); + }); + } + + /** + * Deletes all the entries in the storage (empty the storage) + */ + async deleteAll(): Promise { + return this.storage.clear(); + } + + /** + * Gets a value from the storage using the provided key + * + * @param key Unique identifier of the wanted resource in storage + */ + async get(key: string): Promise { + const entry = await this.storage.get(key); + if (!entry) { + throw new Error('Value not found.'); + } + + return entry; + } + + /* eslint-disable @typescript-eslint/no-explicit-any */ + /** + * Retrieves all the storage entries + */ + async getAll(): Promise> { + const map: Map = new Map(); + // eslint-disable-next-line unicorn/no-array-for-each + await this.storage.forEach((value, key) => { + map.set(key, value); + }); + + return map; + } + + /** + * Retrieves multiple entries from the storage using their keys + * + * @param keys Unique identifiers of wanted resources from the storage + */ + async getMultiple(keys: string[]): Promise> { + const gets: Array> = []; + const map = new Map(); + const getToMap = async (key: string) => { + map.set(key, await this.get(key)); + }; + keys.map(key => { + gets.push(getToMap(key)); + }); + await Promise.all(gets); + + return map; + } + + /** + * Provides information if storage has an entry with the given key + * + * @param key Unique identifier of the resource in storage + */ + async has(key: string): Promise { + return (await this.storage.keys()).includes(key); + } + + /** + * Initializes the storage (waits until it's ready) + */ + async init(): Promise { + await this.storage.create(); + } + + /** + * Provides information if storage is empty or not + */ + async isEmpty(): Promise { + return (await this.storage.length()) === 0; + } + + /** + * Provides a number of entries in the storage (number of keys) + */ + async length(): Promise { + return this.storage.length(); + } + + /** + * Puts a value of type T into the storage using provided key + * + * @param key Unique identifier + * @param value Resource to store under the key + */ + async put(key: string, value: T): Promise { + return this.storage.set(key, value); + } + + /** + * Saves multiple entries into the storage + * + * @param entries Resources to be put into the storage + */ + async putMultiple(entries: Map): Promise> { + const puts: Array> = []; + for (const [key, value] of entries.entries()) { + puts.push(this.put(key, value)); + } + await Promise.all(puts); + + return entries; + } + + /** + * Gets values from the storage using the provided pattern + * + * @param pattern Regular expression or text to test existing storage keys with + */ + async search(pattern: RegExp | string): Promise> { + const map: Map = new Map(); + const check = (input: RegExp | string) => { + if (input instanceof RegExp) { + return (p: any, k: string): boolean => { + return p.test(k); + }; + } + + return (p: any, k: string): boolean => { + return k.includes(p); + }; + }; + const checkIt = check(pattern); + // eslint-disable-next-line unicorn/no-array-for-each + await this.storage.forEach((value, key) => { + if (checkIt(pattern, key)) { + map.set(key, value); + } + }); + + return map; + } +} diff --git a/frontend/app/src/app/translation/common-string-pipes.ts b/frontend/app/src/app/translation/common-string-pipes.ts new file mode 100644 index 00000000..1a6d3ca4 --- /dev/null +++ b/frontend/app/src/app/translation/common-string-pipes.ts @@ -0,0 +1,553 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable, OnDestroy, Pipe, PipeTransform} from '@angular/core'; +import {LangChangeEvent, TranslateService} from '@ngx-translate/core'; +import moment from 'moment'; +import {Subscription} from 'rxjs'; +import {logger} from '../_helpers/ts-logger'; +import opening_hours from 'opening_hours'; + +@Injectable() +@Pipe({ + name: 'join', + pure: true, +}) +export class ArrayJoinPipe implements PipeTransform { + value = ''; + + transform(anArray: unknown[] | unknown, separator: string | unknown): string { + if (typeof separator !== 'string' || separator.length <= 0) { + return this.value; + } + + if (!Array.isArray(anArray)) { + throw new SyntaxError(`Wrong parameter in ArrayJoinPipe. Expected a valid Array, received: ${anArray}`); + } + + this.value = anArray.join(separator); + + return this.value; + } +} + +@Injectable() +@Pipe({ + name: 'entries', + pure: true, +}) +export class EntriesPipe implements PipeTransform { + transform(value: Record): T[] { + return Object.values(value); + } +} + +@Injectable() +@Pipe({ + name: 'toUnix', + pure: true, +}) +export class ToUnixPipe implements PipeTransform { + transform(value: string | number | Date | null | undefined): number { + return (value instanceof Date ? value : new Date(value ?? 0)).valueOf(); + } +} + +@Injectable() +@Pipe({ + name: 'sentencecase', + pure: true, +}) +export class SentenceCasePipe implements PipeTransform { + value = ''; + + transform(aString: string | unknown): string { + if (typeof aString !== 'string') { + throw new SyntaxError( + `Wrong parameter in StringSplitPipe. Expected a valid String, received: ${aString}`, + ); + } + + this.value = aString.slice(0, 1).toUpperCase() + aString.slice(1); + + return this.value; + } +} + +@Injectable() +@Pipe({ + name: 'split', + pure: true, +}) +export class StringSplitPipe implements PipeTransform { + value = new Array(); + + transform(aString: string | unknown, splitter: string | unknown): unknown[] { + if (typeof splitter !== 'string' || splitter.length <= 0) { + return this.value as never; + } + + if (typeof aString !== 'string') { + throw new SyntaxError( + `Wrong parameter in StringSplitPipe. Expected a valid String, received: ${aString}`, + ); + } + + this.value = aString.split(splitter); + + return this.value as never; + } +} + +@Injectable() +@Pipe({ + name: 'openingHours', + pure: true, +}) +export class OpeningHoursPipe implements PipeTransform, OnDestroy { + locale: string; + + onLangChange?: Subscription; + + value: string[] = []; + + constructor(private readonly translate: TranslateService) { + this.locale = translate.currentLang; + } + + private _dispose(): void { + if (this.onLangChange?.closed === false) { + this.onLangChange?.unsubscribe(); + } + } + + ngOnDestroy(): void { + this._dispose(); + } + + transform(aString: string | unknown): string[] { + this.updateValue(aString); + this._dispose(); + if (this.onLangChange?.closed === true) { + this.onLangChange = this.translate.onLangChange.subscribe((event: LangChangeEvent) => { + this.locale = event.lang; + this.updateValue(aString); + }); + } + + return this.value; + } + + updateValue(aString: string | unknown) { + if (typeof aString !== 'string') { + logger.warn(`openingHours pipe unable to parse input: ${aString}`); + + return; + } + let openingHours; + + try { + openingHours = new opening_hours(aString, { + address: { + country_code: 'de', + state: 'Hessen', + }, + lon: 8.667_97, + lat: 50.129_16, + }); + } catch (error) { + logger.warn(error); + this.value = []; + + return; + } + + const isOpen: boolean = openingHours.getState(); + const isUnknown: boolean = openingHours.getUnknown(); + + const nextChange = openingHours.getNextChange(); + const nextChangeIsOpen: boolean = openingHours.getState(nextChange); + const nextChangeUnknown: boolean = openingHours.getUnknown(nextChange); + const nextChangeIsToday: boolean = moment().isSame(nextChange, 'day'); + + let stateKey = isOpen ? 'common.openingHours.state_open' : 'common.openingHours.state_closed'; + + stateKey = isUnknown ? 'common.openingHours.state_maybe' : stateKey; + + this.value = [isOpen ? 'success' : 'danger', `${this.translate.instant(stateKey)}`]; + + if (isUnknown) { + const comment = openingHours.getComment(); + this.value = ['light', `${this.translate.instant(stateKey)}`]; + if (typeof comment === 'string') { + this.value.push(comment); + } + return; + } + + if (nextChangeUnknown) { + return; + } + + let nextChangeKey: string | undefined; + + let formattedCalender = moment(nextChange).calendar(); + + if (moment(nextChange).isBefore(moment().add(1, 'hours'))) { + this.value[0] = 'warning'; + nextChangeKey = nextChangeIsOpen + ? 'common.openingHours.opening_soon_warning' + : 'common.openingHours.closing_soon_warning'; + this.value.push( + `${this.translate.instant(nextChangeKey, { + time: new Intl.DateTimeFormat(this.locale, { + timeStyle: 'short', + }).format(nextChange), + })}`, + ); + return; + } + + if (nextChangeIsToday) { + nextChangeKey = nextChangeIsOpen + ? 'common.openingHours.opening_today' + : 'common.openingHours.closing_today'; + this.value.push( + `${this.translate.instant(nextChangeKey, { + time: new Intl.DateTimeFormat(this.locale, { + timeStyle: 'short', + }).format(nextChange), + })}`, + ); + return; + } + + nextChangeKey = nextChangeIsOpen ? 'common.openingHours.opening' : 'common.openingHours.closing'; + formattedCalender = formattedCalender.slice(0, 1).toUpperCase() + formattedCalender.slice(1); + this.value.push( + `${this.translate.instant(nextChangeKey, { + relativeDateTime: formattedCalender, + })}`, + ); + return; + } +} + +@Injectable() +@Pipe({ + name: 'durationLocalized', + pure: true, +}) +export class DurationLocalizedPipe implements PipeTransform, OnDestroy { + locale: string; + + onLangChange?: Subscription; + + value: string; + + frequencyPrefixes: {[iso6391Code: string]: string} = { + de: 'alle', + en: 'every', + es: 'cada', + pt: 'a cada', + fr: 'tous les', + cn: '每', + ru: 'kаждые', + }; + + constructor(private readonly translate: TranslateService) { + this.locale = translate.currentLang; + } + + private _dispose(): void { + if (this.onLangChange?.closed === false) { + this.onLangChange?.unsubscribe(); + } + } + + ngOnDestroy(): void { + this._dispose(); + } + + /** + * @param value An ISO 8601 duration string + * @param isFrequency Boolean indicating if this duration is to be interpreted as repeat frequency + */ + transform(value: string | unknown, isFrequency = false): string { + this.updateValue(value, isFrequency); + this._dispose(); + if (this.onLangChange?.closed === true) { + this.onLangChange = this.translate.onLangChange.subscribe((event: LangChangeEvent) => { + this.locale = event.lang; + this.updateValue(value, isFrequency); + }); + } + + return this.value; + } + + updateValue(value: string | unknown, isFrequency = false): void { + if (typeof value !== 'string') { + logger.warn(`durationLocalized pipe unable to parse input: ${value}`); + + return; + } + + if (isFrequency) { + const fequencyPrefix = Object.keys(this.frequencyPrefixes).filter(element => + this.locale.includes(element), + ); + this.value = [ + fequencyPrefix.length > 0 ? this.frequencyPrefixes[fequencyPrefix[0]] : this.frequencyPrefixes.en, + moment.duration(value).humanize(), + ].join(' '); + } else { + this.value = moment.duration(value).humanize(); + } + } +} + +@Injectable() +@Pipe({ + name: 'metersLocalized', + pure: false, +}) +export class MetersLocalizedPipe implements PipeTransform, OnDestroy { + locale: string; + + onLangChange?: Subscription; + + value = ''; + + constructor(private readonly translate: TranslateService) { + this.locale = translate.currentLang; + } + + private _dispose(): void { + if (this.onLangChange?.closed === false) { + this.onLangChange?.unsubscribe(); + } + } + + ngOnDestroy(): void { + this._dispose(); + } + + transform(value: string | number | unknown): string { + this.updateValue(value); + this._dispose(); + if (this.onLangChange?.closed === true) { + this.onLangChange = this.translate.onLangChange.subscribe((event: LangChangeEvent) => { + this.locale = event.lang; + this.updateValue(value); + }); + } + + return this.value; + } + + updateValue(value: string | number | unknown) { + if (typeof value !== 'string' && typeof value !== 'number') { + logger.warn(`metersLocalized pipe unable to parse input: ${value}`); + + return; + } + const imperialLocale = ['US', 'UK', 'LR', 'MM'].some(term => this.locale.includes(term)); + const meters = typeof value === 'string' ? Number.parseFloat(value) : (value as number); + + if (imperialLocale) { + const yards = meters * 1.0936; + const options = { + style: 'unit', + unit: yards >= 1760 ? 'mile' : 'yard', + maximumFractionDigits: yards >= 1760 ? 1 : 0, + } as unknown as Intl.NumberFormatOptions; + this.value = new Intl.NumberFormat(this.locale, options).format(yards >= 1760 ? yards / 1760 : yards); + } else { + const options = { + style: 'unit', + unit: meters >= 1000 ? 'kilometer' : 'meter', + maximumFractionDigits: meters >= 1000 ? 1 : 0, + } as unknown as Intl.NumberFormatOptions; + this.value = new Intl.NumberFormat(this.locale, options).format( + meters >= 1000 ? meters / 1000 : meters, + ); + } + } +} + +@Injectable() +@Pipe({ + name: 'isNaN', + pure: true, +}) +export class IsNaNPipe implements PipeTransform { + transform(value: unknown): boolean { + return Number.isNaN(value); + } +} + +@Injectable() +@Pipe({ + name: 'isNumeric', + pure: true, +}) +export class IsNumericPipe implements PipeTransform { + transform(value: unknown): boolean { + return !Number.isNaN( + typeof value === 'number' ? value : typeof value === 'string' ? Number.parseFloat(value) : Number.NaN, + ); + } +} + +@Injectable() +@Pipe({ + name: 'numberLocalized', + pure: true, +}) +export class NumberLocalizedPipe implements PipeTransform, OnDestroy { + locale: string; + + onLangChange?: Subscription; + + value: string; + + constructor(private readonly translate: TranslateService) { + this.locale = translate.currentLang; + } + + private _dispose(): void { + if (this.onLangChange?.closed === false) { + this.onLangChange?.unsubscribe(); + } + } + + ngOnDestroy(): void { + this._dispose(); + } + + /** + * @param value The number to be formatted + * @param formatOptions Formatting options to include. + * As specified by Intl.NumberFormatOptions as comma seperated key:value pairs. + */ + transform(value: string | number | unknown, formatOptions?: string): string { + this.updateValue(value, formatOptions); + this._dispose(); + if (this.onLangChange?.closed === true) { + this.onLangChange = this.translate.onLangChange.subscribe((event: LangChangeEvent) => { + this.locale = event.lang; + this.updateValue(value, formatOptions); + }); + } + + return this.value; + } + + updateValue(value: string | number | unknown, formatOptions?: string): void { + if (typeof value !== 'string' && typeof value !== 'number') { + logger.warn(`numberLocalized pipe unable to parse input: ${value}`); + + return; + } + const options = formatOptions + ?.split(',') + .map(element => element.split(':')) + .reduce( + (accumulator, [key, value_]) => ({ + ...accumulator, + [key.trim()]: value_.trim(), + }), + {}, + ) as Intl.NumberFormatOptions; + const float = typeof value === 'string' ? Number.parseFloat(value) : (value as number); + this.value = new Intl.NumberFormat(this.locale, options).format(float); + } +} + +@Injectable() +@Pipe({ + name: 'dateFormat', + pure: true, +}) +export class DateLocalizedFormatPipe implements PipeTransform, OnDestroy { + locale: string; + + onLangChange?: Subscription; + + value: string; + + constructor(private readonly translate: TranslateService) { + this.locale = translate.currentLang; + } + + private _dispose(): void { + if (this.onLangChange?.closed === false) { + this.onLangChange?.unsubscribe(); + } + } + + ngOnDestroy(): void { + this._dispose(); + } + + /** + * @param value The date to be formatted + * @param formatOptions Dateformat options to include. + * As specified by Intl.DateTimeFormatOptions as comma seperated key:value pairs + * Default is year,month,day,hour and minute in numeric representation e.g. (en-US) "8/6/2021, 10:35" + */ + transform(value: string | unknown, formatOptions?: string): string { + this.updateValue(value, formatOptions); + this._dispose(); + if (this.onLangChange?.closed === true) { + this.onLangChange = this.translate.onLangChange.subscribe((event: LangChangeEvent) => { + this.locale = event.lang; + this.updateValue(value, formatOptions); + }); + } + + return this.value; + } + + updateValue(value: string | Date | unknown, formatOptions?: string): void { + if (typeof value !== 'string' && Object.prototype.toString.call(value) !== '[object Date]') { + logger.warn(`dateFormat pipe unable to parse input: ${value}`); + + return; + } + const options = formatOptions + ?.split(',') + .map(element => element.split(':')) + .reduce( + (accumulator, [key, value_]) => ({ + ...accumulator, + [key.trim()]: value_.trim(), + }), + {}, + ) as Intl.DateTimeFormatOptions; + const date = typeof value === 'string' ? Date.parse(value) : (value as Date); + this.value = new Intl.DateTimeFormat( + this.locale, + options ?? { + day: 'numeric', + month: 'numeric', + year: 'numeric', + hour: 'numeric', + minute: 'numeric', + }, + ).format(date); + } +} diff --git a/frontend/app/src/app/translation/i18n.spec.ts b/frontend/app/src/app/translation/i18n.spec.ts new file mode 100644 index 00000000..5d960853 --- /dev/null +++ b/frontend/app/src/app/translation/i18n.spec.ts @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/* eslint-disable @typescript-eslint/no-explicit-any,jsdoc/require-jsdoc,@typescript-eslint/no-non-null-assertion */ +import english from '../../assets/i18n/en.json'; +import german from '../../assets/i18n/de.json'; + +const exceptions = new Set([ + 'login', + 'ok', + 'protein', + 'feedback', + 'name', + 'status', + 'issn', + 'ejournal', + 'backup', + 'export', + 'dashboard', + 'home', + 'email', + 'logins', +]); + +const languages = [ + ['english', english], + ['german', german], +] as [string, any][]; + +describe('i18n', function () { + for (const [name, language] of languages) { + const [targetName, target] = languages.find(([target]) => target !== name)!; + + describe(`${name} (compare to ${targetName})`, function () { + it('should have translations for all languages', function () { + traverseCompare(target, language, (a, b, path) => { + expect(typeof b).toBe(typeof a, `Missing translation for ${path.join('.')}`); + }); + }); + + it('should have unique translations for each language', function () { + traverseCompare(target, language, (a, b, path) => { + if (!exceptions.has(a.toLowerCase())) { + expect(b).not.toBe( + a, + `Do not copy translations (${path.join( + '.', + )}). If this is a mistake, add an exception in 'src/app/translation/i18n.spec.ts'`, + ); + } + }); + }); + }); + } +}); + +function traverseCompare( + a: any, + b: any, + compare: (a: any, b: any, path: string[]) => void, + path: string[] = [], +) { + for (const key of Object.keys(a)) { + if (typeof a[key] === 'object') { + traverseCompare(a[key], b[key], compare, [...path, key]); + } else { + compare(a[key], b[key], [...path, key]); + } + } +} diff --git a/frontend/app/src/app/translation/property-name-translate.pipe.ts b/frontend/app/src/app/translation/property-name-translate.pipe.ts new file mode 100644 index 00000000..4b30b33e --- /dev/null +++ b/frontend/app/src/app/translation/property-name-translate.pipe.ts @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable, OnDestroy, Pipe, PipeTransform} from '@angular/core'; +import {Subscription} from 'rxjs'; +import {TranslateService} from '@ngx-translate/core'; +import {ThingTranslateService} from './thing-translate.service'; +import {isThing, SCThings, SCThingType} from '@openstapps/core'; + +@Injectable() +@Pipe({ + name: 'propertyNameTranslate', + pure: false, // required to update the value when the promise is resolved +}) +export class PropertyNameTranslatePipe implements PipeTransform, OnDestroy { + value: unknown; + + lastKey?: string; + + lastType: string; + + onLangChange: Subscription; + + constructor( + private readonly translate: TranslateService, + private readonly thingTranslate: ThingTranslateService, + ) {} + + updateValue(key: string, type: string): void { + this.value = this.thingTranslate.getPropertyName(type as SCThingType, key); + } + + transform(query: unknown, thingOrType: SCThings | string | unknown): unknown { + if (typeof query !== 'string' || query.length <= 0) { + return query; + } + + if (!isThing(thingOrType) && typeof thingOrType !== 'string') { + throw new SyntaxError( + `Wrong parameter in ThingTranslatePipe. Expected a valid SCThing or String, received: ${thingOrType}`, + ); + } + + // store the params, in case they change + this.lastKey = query; + this.lastType = typeof thingOrType === 'string' ? thingOrType : thingOrType.type; + + this.updateValue(query, this.lastType); + + // if there is a subscription to onLangChange, clean it + this._dispose(); + + if (this.onLangChange?.closed ?? true) { + this.onLangChange = this.translate.onLangChange.subscribe(() => { + if (typeof this.lastKey === 'string') { + this.lastKey = undefined; // we want to make sure it doesn't return the same value until it's been updated + this.updateValue(query, this.lastType); + } + }); + } + + return this.value; + } + + /** + * Clean any existing subscription to change events + */ + private _dispose(): void { + if (this.onLangChange?.closed) { + this.onLangChange?.unsubscribe(); + } + } + + ngOnDestroy(): void { + this._dispose(); + } +} diff --git a/frontend/app/src/app/translation/thing-translate.module.ts b/frontend/app/src/app/translation/thing-translate.module.ts new file mode 100644 index 00000000..707c75e1 --- /dev/null +++ b/frontend/app/src/app/translation/thing-translate.module.ts @@ -0,0 +1,112 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {ModuleWithProviders, NgModule, Provider} from '@angular/core'; +import { + ArrayJoinPipe, + DateLocalizedFormatPipe, + DurationLocalizedPipe, + EntriesPipe, + IsNaNPipe, + IsNumericPipe, + MetersLocalizedPipe, + NumberLocalizedPipe, + OpeningHoursPipe, + SentenceCasePipe, + StringSplitPipe, + ToUnixPipe, +} from './common-string-pipes'; +import {ThingTranslateDefaultParser, ThingTranslateParser} from './thing-translate.parser'; +import {ThingTranslatePipe} from './thing-translate.pipe'; +import {ThingTranslateService} from './thing-translate.service'; +import {IonIconModule} from '../util/ion-icon/ion-icon.module'; +import {TranslateSimplePipe} from './translate-simple.pipe'; +import {PropertyNameTranslatePipe} from './property-name-translate.pipe'; + +export interface ThingTranslateModuleConfig { + parser?: Provider; +} + +@NgModule({ + imports: [IonIconModule], + declarations: [ + ArrayJoinPipe, + DurationLocalizedPipe, + NumberLocalizedPipe, + MetersLocalizedPipe, + StringSplitPipe, + PropertyNameTranslatePipe, + ThingTranslatePipe, + TranslateSimplePipe, + DateLocalizedFormatPipe, + OpeningHoursPipe, + SentenceCasePipe, + ToUnixPipe, + EntriesPipe, + IsNaNPipe, + IsNumericPipe, + ], + exports: [ + IonIconModule, + ArrayJoinPipe, + DurationLocalizedPipe, + NumberLocalizedPipe, + MetersLocalizedPipe, + StringSplitPipe, + PropertyNameTranslatePipe, + ThingTranslatePipe, + TranslateSimplePipe, + DateLocalizedFormatPipe, + OpeningHoursPipe, + SentenceCasePipe, + ToUnixPipe, + EntriesPipe, + IsNaNPipe, + IsNumericPipe, + ], +}) +export class ThingTranslateModule { + /** + * Use this method in your other (non root) modules to import the directive/pipe + */ + static forChild(config: ThingTranslateModuleConfig = {}): ModuleWithProviders { + return { + ngModule: ThingTranslateModule, + providers: [ + config.parser ?? { + provide: ThingTranslateParser, + useClass: ThingTranslateDefaultParser, + }, + ThingTranslateService, + ], + }; + } + + /** + * Use this method in your root module to provide the TranslatorService + */ + static forRoot(config: ThingTranslateModuleConfig = {}): ModuleWithProviders { + return { + ngModule: ThingTranslateModule, + providers: [ + config.parser ?? { + provide: ThingTranslateParser, + useClass: ThingTranslateDefaultParser, + }, + ThingTranslateService, + ], + }; + } +} diff --git a/frontend/app/src/app/translation/thing-translate.parser.ts b/frontend/app/src/app/translation/thing-translate.parser.ts new file mode 100644 index 00000000..6c4d4842 --- /dev/null +++ b/frontend/app/src/app/translation/thing-translate.parser.ts @@ -0,0 +1,60 @@ +/* eslint-disable @typescript-eslint/ban-types */ +/* + * Copyright (C) 2020-2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; + +/* eslint-disable @typescript-eslint/member-ordering, class-methods-use-this */ + +export abstract class ThingTranslateParser { + /** + * Gets a value from an object given a keyPath + * parser.getValueFromKeyPath(anObject, 'property.subarray[42].etc'); + */ + abstract getValueFromKeyPath(instance: object, keyPath: string): unknown; +} + +@Injectable() +export class ThingTranslateDefaultParser extends ThingTranslateParser { + getValueFromKeyPath(instance: object, keyPath: string): unknown { + // keyPath = aproperty[0].anotherproperty["arrayproperty"][42].finalproperty + let path = keyPath.replace(/["']'"/gim, '.'); + // path = aproperty[0].anotherproperty[.arrayproperty.][42].finalproperty + path = path.replace(/[\[\]]/gim, '.'); + // path = aproperty.0..anotherproperty..arrayproperty...42..finalproperty + // TODO + // eslint-disable-next-line @typescript-eslint/no-unused-vars + path = path.replace(/\.{2,}/gim, '.'); + // path = aproperty.0.anotherproperty.arrayproperty.42.finalproperty + + const keyPathChain = keyPath.split('.'); + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + let property = instance as any; + + for (const key of keyPathChain) { + property = property[key] ?? undefined; + } + + return property; + } +} + +/** + * TODO + */ +export function isDefined(value?: T | null): value is T { + return typeof value !== 'undefined' && value !== null; +} diff --git a/frontend/app/src/app/translation/thing-translate.pipe.ts b/frontend/app/src/app/translation/thing-translate.pipe.ts new file mode 100644 index 00000000..d161f0ce --- /dev/null +++ b/frontend/app/src/app/translation/thing-translate.pipe.ts @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable, OnDestroy, Pipe, PipeTransform} from '@angular/core'; +import {TranslateService} from '@ngx-translate/core'; +import {isThing, SCThings, SCThingWithoutReferences} from '@openstapps/core'; +import {Subscription} from 'rxjs'; +import {ThingTranslateService} from './thing-translate.service'; + +@Injectable() +@Pipe({ + name: 'thingTranslate', + pure: false, // required to update the value when the promise is resolved +}) +export class ThingTranslatePipe implements PipeTransform, OnDestroy { + value: unknown; + + lastKey?: string; + + lastThing: SCThingWithoutReferences; + + onLangChange: Subscription; + + constructor( + private readonly translate: TranslateService, + // private readonly _ref: ChangeDetectorRef, + private readonly thingTranslate: ThingTranslateService, + ) {} + + updateValue(key: string, thing: SCThingWithoutReferences): void { + this.value = this.thingTranslate.get(thing as SCThings, key); + } + + transform( + query: P, + thing: T, + ): P extends keyof T ? T[P] : P | unknown { + if (typeof query !== 'string' || query.length <= 0) { + return query as never; + } + + if (!isThing(thing)) { + throw new SyntaxError( + `Wrong parameter in ThingTranslatePipe. Expected a valid SCThing, received: ${thing}`, + ); + } + + // store the params, in case they change + this.lastKey = query; + this.lastThing = thing; + + this.updateValue(query, thing); + + // if there is a subscription to onLangChange, clean it + this._dispose(); + + if (this.onLangChange?.closed ?? true) { + this.onLangChange = this.translate.onLangChange.subscribe(() => { + if (typeof this.lastKey === 'string') { + this.lastKey = undefined; // we want to make sure it doesn't return the same value until it's been updated + this.updateValue(query, thing); + } + }); + } + + return this.value as never; + } + + /** + * Clean any existing subscription to change events + */ + private _dispose(): void { + if (this.onLangChange?.closed) { + this.onLangChange?.unsubscribe(); + } + } + + ngOnDestroy(): void { + this._dispose(); + } +} diff --git a/frontend/app/src/app/translation/thing-translate.service.ts b/frontend/app/src/app/translation/thing-translate.service.ts new file mode 100644 index 00000000..f17a0826 --- /dev/null +++ b/frontend/app/src/app/translation/thing-translate.service.ts @@ -0,0 +1,115 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable, OnDestroy} from '@angular/core'; +import {LangChangeEvent, TranslateService} from '@ngx-translate/core'; +import { + SCLanguage, + SCLanguageCode, + SCThings, + SCThingTranslator, + SCThingType, + SCTranslations, +} from '@openstapps/core'; +import moment from 'moment'; +import {Subscription} from 'rxjs'; +import {isDefined, ThingTranslateParser} from './thing-translate.parser'; + +// export const DEFAULT_LANGUAGE = new InjectionToken('DEFAULT_LANGUAGE'); + +/* eslint-disable @typescript-eslint/member-ordering, class-methods-use-this, newline-per-chained-call, */ + +@Injectable({ + providedIn: 'root', +}) +export class ThingTranslateService implements OnDestroy { + onLangChange: Subscription; + + translator: SCThingTranslator; + + /** + * + * @param translateService Instance of Angular TranslateService + * @param parser An instance of the parser currently used + */ + constructor(private readonly translateService: TranslateService, public parser: ThingTranslateParser) { + this.translator = new SCThingTranslator( + (translateService.currentLang ?? translateService.defaultLang) as SCLanguageCode, + ); + /** set the default language from configuration */ + this.onLangChange = this.translateService.onLangChange.subscribe((event: LangChangeEvent) => { + this.translator.language = event.lang as keyof SCTranslations; + moment.locale(event.lang); + }); + } + + /** + * Returns the parsed result of the translations + */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/ban-types + getParsedResult(target: object, key: string): any { + return this.parser.getValueFromKeyPath(target, key); + } + + /** + * Gets the translated value of a key (or an array of keys) + * + * @param thing SCThing to get + * @param keyPath Path to the key + * @returns the translated key, or an object of translated keys + */ + public get( + thing: SCThings, + keyPath: string | string[], + // eslint-disable-next-line @typescript-eslint/ban-types + ): string | number | boolean | object { + if (!isDefined(keyPath) || keyPath.length === 0) { + throw new Error(`Parameter "keyPath" required`); + } + if (Array.isArray(keyPath)) { + return this.getParsedResult(this.translator.translate(thing), keyPath.join('.')); + } + + return this.getParsedResult(this.translator.translate(thing), keyPath); + } + + /** + * Gets the translated value of a key (or an array of keys) + * + * @param type Type of the property + * @param keyPath Path to the key + * @returns the translated key, or an object of translated keys + */ + public getPropertyName(type: SCThingType, keyPath: string | string[]): string { + const translatedPropertyNames = this.translator.translatedPropertyNames(type); + if (!isDefined(translatedPropertyNames)) { + throw new Error(`Parameter "type" is an invalid SCThingType`); + } + if (!isDefined(keyPath) || keyPath.length === 0) { + throw new Error(`Parameter "keyPath" required`); + } + if (Array.isArray(keyPath)) { + return this.getParsedResult(translatedPropertyNames, keyPath.join('.')); + } + + return this.getParsedResult(translatedPropertyNames, keyPath); + } + + ngOnDestroy() { + if (!this.onLangChange.closed) { + this.onLangChange.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/translation/translate-simple.pipe.ts b/frontend/app/src/app/translation/translate-simple.pipe.ts new file mode 100644 index 00000000..0108a415 --- /dev/null +++ b/frontend/app/src/app/translation/translate-simple.pipe.ts @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Injectable, OnDestroy, Pipe, PipeTransform} from '@angular/core'; +import {TranslateService} from '@ngx-translate/core'; +import {get} from '../_helpers/collections/get'; +import {Subscription} from 'rxjs'; + +@Injectable() +@Pipe({ + name: 'translateSimple', + pure: false, +}) +export class TranslateSimplePipe implements PipeTransform, OnDestroy { + value: unknown; + + query: unknown; + + thing: unknown; + + onLangChange: Subscription; + + constructor(private readonly translate: TranslateService) {} + + // eslint-disable-next-line @typescript-eslint/ban-types + private updateValue() { + try { + this.value = + get( + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this.thing as any).translations[this.translate.currentLang] ?? this.thing, + this.query as string, + ) ?? this.thing; + } catch (error) { + console.warn(`${this.query}: ${error}`); + this.value = this.thing; + } + } + + transform( + query: P, + thing: T, + ): P extends keyof T ? T[P] : P | unknown { + // store the params, in case they change + this.query = query; + this.thing = thing; + + this.updateValue(); + + this.onLangChange ??= this.translate.onLangChange.subscribe(() => { + this.updateValue(); + }); + + return this.value as never; + } + + ngOnDestroy(): void { + this.onLangChange?.unsubscribe(); + } +} diff --git a/frontend/app/src/app/util/array-last.pipe.ts b/frontend/app/src/app/util/array-last.pipe.ts new file mode 100644 index 00000000..600f1762 --- /dev/null +++ b/frontend/app/src/app/util/array-last.pipe.ts @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable, Pipe, PipeTransform} from '@angular/core'; + +/** + * Get the last value of an array + */ +@Injectable() +@Pipe({ + name: 'last', + pure: true, +}) +export class ArrayLastPipe implements PipeTransform { + /** + * Transform + */ + // tslint:disable-next-line:prefer-function-over-method + transform(value: T[]): T | undefined { + return value[value.length - 1]; + } +} diff --git a/frontend/app/src/app/util/browser.factory.ts b/frontend/app/src/app/util/browser.factory.ts new file mode 100644 index 00000000..799668ec --- /dev/null +++ b/frontend/app/src/app/util/browser.factory.ts @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Platform} from '@ionic/angular'; +import {Browser as BrowserPlugin} from '@capacitor/browser'; + +export abstract class SimpleBrowser { + abstract open(url: string): Promise | void; +} + +class CapacitorBrowser { + open(url: string) { + return BrowserPlugin.open({url}); + } +} + +class WebBrowser { + open(url: string) { + window.open(url, '_blank'); + } +} + +export const browserFactory = (platform: Platform) => { + return platform.is('capacitor') ? new CapacitorBrowser() : new WebBrowser(); +}; diff --git a/frontend/app/src/app/util/date-from-index.pipe.ts b/frontend/app/src/app/util/date-from-index.pipe.ts new file mode 100644 index 00000000..7cd58f22 --- /dev/null +++ b/frontend/app/src/app/util/date-from-index.pipe.ts @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Pipe, PipeTransform} from '@angular/core'; +import {Moment} from 'moment'; + +@Pipe({ + name: 'dateFromIndex', + pure: true, +}) +export class DateFromIndexPipe implements PipeTransform { + transform(index: number, baseline: Moment): Moment { + return baseline.clone().add(index, 'days'); + } +} diff --git a/frontend/app/src/app/util/date-is-today.pipe.ts b/frontend/app/src/app/util/date-is-today.pipe.ts new file mode 100644 index 00000000..b2457f6b --- /dev/null +++ b/frontend/app/src/app/util/date-is-today.pipe.ts @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable, Pipe, PipeTransform} from '@angular/core'; +import moment, {Moment, unitOfTime} from 'moment'; + +/** + * Get the last value of an array + */ +@Injectable() +@Pipe({ + name: 'dateIsThis', + pure: false, // pure pipe can break in some change detection scenarios, + // specifically, on the calendar view it causes it to stay true even when you navigate +}) +export class DateIsThisPipe implements PipeTransform { + /** + * Transform + */ + // tslint:disable-next-line:prefer-function-over-method + transform(value: Moment | string | number, granularity: unitOfTime.StartOf): boolean { + return ( + typeof value === 'string' ? moment(value) : typeof value === 'number' ? moment.unix(value) : value + ).isSame(moment(moment.now()), granularity); + } +} diff --git a/frontend/app/src/app/util/daytime-key.pipe.ts b/frontend/app/src/app/util/daytime-key.pipe.ts new file mode 100644 index 00000000..5aa8f6e6 --- /dev/null +++ b/frontend/app/src/app/util/daytime-key.pipe.ts @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable, Pipe, PipeTransform} from '@angular/core'; +import moment from 'moment'; + +/** + * Return the extended translation key by the current daytime key + */ +@Injectable() +@Pipe({ + name: 'daytimeKey', +}) +export class DaytimeKeyPipe implements PipeTransform { + /** + * Transform + */ + transform(translationKey: string): string { + const hour = Number.parseInt(moment().format('HH'), 10); + let key = ''; + if (hour >= 5 && hour <= 10) { + key = 'morning'; + } else if (hour >= 11 && hour <= 18) { + key = 'day'; + } else if (hour >= 19 && hour <= 23) { + key = 'evening'; + } else { + key = 'night'; + } + + return `${translationKey}_${key}`; + } +} diff --git a/frontend/app/src/app/util/edit-modal.component.ts b/frontend/app/src/app/util/edit-modal.component.ts new file mode 100644 index 00000000..4775dc96 --- /dev/null +++ b/frontend/app/src/app/util/edit-modal.component.ts @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, ContentChild, EventEmitter, Input, Output, TemplateRef, ViewChild} from '@angular/core'; +import { + ActionSheetController, + AlertController, + Config, + IonModal, + IonRouterOutlet, + ModalController, +} from '@ionic/angular'; +import {pendingChangesActionSheet, PendingChangesRole} from './pending-changes-action-sheet'; +import {TranslatePipe} from '@ngx-translate/core'; + +@Component({ + selector: 'stapps-edit-modal', + templateUrl: 'edit-modal.html', +}) +export class EditModalComponent { + @ContentChild(TemplateRef) content: TemplateRef; + + @ViewChild('modal') modal: IonModal; + + @Input() pendingChanges = false; + + @Output() save = new EventEmitter(); + + constructor( + readonly modalController: ModalController, + readonly routerOutlet: IonRouterOutlet, + readonly alertController: AlertController, + readonly actionSheetController: ActionSheetController, + readonly translatePipe: TranslatePipe, + readonly config: Config, + ) {} + + present() { + this.modal.present(); + this.pendingChanges = false; + } + + dismiss(skipChanges = false) { + this.pendingChanges = skipChanges ? false : this.pendingChanges; + setTimeout(() => this.modal.dismiss()); + } + + canDismissModal = async () => { + const alert = + this.config.get('mode') === 'ios' + ? await this.actionSheetController.create(pendingChangesActionSheet(this.translatePipe)) + : await this.alertController.create(pendingChangesActionSheet(this.translatePipe, false)); + alert.present().then(); + + const {role} = await alert.onWillDismiss(); + if (role === PendingChangesRole.SAVE) { + this.save.emit(); + } + + return role !== 'backdrop' && role !== PendingChangesRole.CANCEL; + }; +} diff --git a/frontend/app/src/app/util/edit-modal.html b/frontend/app/src/app/util/edit-modal.html new file mode 100644 index 00000000..412b2972 --- /dev/null +++ b/frontend/app/src/app/util/edit-modal.html @@ -0,0 +1,33 @@ + + + + + + + {{ 'modal.TITLE_EDIT' | translate }} + + {{ + 'modal.DISMISS_CONFIRM' | translate + }} + + + {{ 'modal.DISMISS_CANCEL' | translate }} + + + + + + diff --git a/frontend/app/src/app/util/element-size-change.directive.ts b/frontend/app/src/app/util/element-size-change.directive.ts new file mode 100644 index 00000000..8f839b7f --- /dev/null +++ b/frontend/app/src/app/util/element-size-change.directive.ts @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Directive, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core'; + +@Directive({ + selector: '[elementSizeChange]', +}) +export class ElementSizeChangeDirective implements OnInit, OnDestroy { + @Output() + elementSizeChange = new EventEmitter(); + + @Input() elementSizeChangeDebounce?: number; + + debounceStamp = 0; + + private resizeObserver: ResizeObserver; + + constructor(private elementRef: ElementRef) {} + + ngOnInit() { + this.resizeObserver = new ResizeObserver(elements => { + const stamp = Date.now(); + if ( + !elements[0] || + (this.elementSizeChangeDebounce && stamp - this.debounceStamp < this.elementSizeChangeDebounce) + ) + return; + this.debounceStamp = stamp; + this.elementSizeChange.emit(elements[0]); + }); + this.resizeObserver.observe(this.elementRef.nativeElement); + } + + ngOnDestroy() { + this.resizeObserver.disconnect(); + } +} diff --git a/frontend/app/src/app/util/internet-connection.service.ts b/frontend/app/src/app/util/internet-connection.service.ts new file mode 100644 index 00000000..b07f08c6 --- /dev/null +++ b/frontend/app/src/app/util/internet-connection.service.ts @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {fromEvent, merge, ObservableInput, of, race, RetryConfig, share, Subject, takeUntil} from 'rxjs'; +import {Injectable} from '@angular/core'; +import {filter, map, startWith, take, tap} from 'rxjs/operators'; +import {NGXLogger} from 'ngx-logger'; +import {Router} from '@angular/router'; + +@Injectable({ + providedIn: 'root', +}) +export class InternetConnectionService { + private readonly manualRetry$ = new Subject(); + + private readonly abortRetry$ = new Subject(); + + /** + * Emits whenever the browser goes online or offline. + */ + readonly offline$ = window + ? merge( + fromEvent(window, 'online').pipe(map(() => false)), + fromEvent(window, 'offline').pipe(map(() => true)), + ).pipe(startWith(!window.navigator.onLine), share()) + : of(true); + + /** + * Emits whenever http requests should be retried + * + * Also keeps track of when a retry is needed, automatically + * registering itself. + */ + readonly retryConfig: RetryConfig = { + delay: this.doRetry.bind(this), + }; + + private doRetry(error: unknown, retryCount: number): ObservableInput { + return race( + this.offline$.pipe( + tap(it => console.log(it)), + filter(it => !it), + take(1), + ), + this.manualRetry$, + ).pipe( + tap({ + subscribe: () => { + this.errors.add(error); + if (this.errors.size > 0) { + this.error$.next(true); + } + }, + next: () => { + this.logger.error(`${retryCount}x`, error); + }, + unsubscribe: () => { + this.errors.delete(error); + if (this.errors.size === 0) { + this.error$.next(false); + } + }, + }), + takeUntil( + merge( + this.abortRetry$.pipe(tap(() => this.logger.warn('HTTP Request retry aborted manually'))), + this.router.events.pipe(tap(() => this.logger.warn('HTTP Request retry aborted by routing'))), + ), + ), + ); + } + + /** + * Emits when there are errors + */ + readonly error$ = new Subject(); + + private readonly errors = new Set(); + + constructor(private readonly logger: NGXLogger, private readonly router: Router) {} + + /** + * Retry all failed http requests + */ + retry() { + this.manualRetry$.next(); + } + + /** + * Abandon all failed http requests + */ + dismissError() { + this.abortRetry$.next(); + } +} diff --git a/frontend/app/src/app/util/ion-icon/icon-match.spec.ts b/frontend/app/src/app/util/ion-icon/icon-match.spec.ts new file mode 100644 index 00000000..088d0676 --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/icon-match.spec.ts @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +/* eslint-disable unicorn/no-null */ + +import {matchPropertyContent, matchTagProperties} from './icon-match'; + +describe('matchTagProperties', function () { + const regex = matchTagProperties('test'); + + it('should match html tag content', function () { + expect(''.match(regex)).toEqual([' content']); + }); + + it('should match all tags', function () { + expect(' '.match(regex)).toEqual([' content1', ' content2']); + }); + + it('should not match wrong tags', function () { + expect(''.match(regex)).toEqual(null); + }); + + it('should accept valid html whitespaces', function () { + expect( + ` + + + `.match(regex), + ).toEqual(['\n content\n ']); + }); +}); + +describe('matchPropertyContent', function () { + const regex = matchPropertyContent(['test1', 'test2']); + + it('should match bare literals', function () { + expect(`test1="content" test2="content1"`.match(regex)).toEqual(['content', 'content1']); + }); + + it('should match angular literals', function () { + expect(`[test1]="'content'" [test2]="'content1'"`.match(regex)).toEqual(['content', 'content1']); + }); + + it('should not match wrong literals', function () { + expect(`no="content" [no]="'content'"`.match(regex)).toEqual(null); + }); +}); diff --git a/frontend/app/src/app/util/ion-icon/icon-match.ts b/frontend/app/src/app/util/ion-icon/icon-match.ts new file mode 100644 index 00000000..be9d985c --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/icon-match.ts @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * + */ +export function matchTagProperties(tag: string) { + return new RegExp(`(?<=<${tag})[\\s\\S]*?(?=>\\s*<\\/${tag}\\s*>)`, 'g'); +} + +/** + * + */ +export function matchPropertyContent(properties: string[]) { + const names = properties.join('|'); + + return new RegExp(`((?<=(${names})=")[\\w-]+(?="))|((?<=\\[(${names})]="')[\\w-]+(?='"))`, 'g'); +} diff --git a/frontend/app/src/app/util/ion-icon/icon.component.ts b/frontend/app/src/app/util/ion-icon/icon.component.ts new file mode 100644 index 00000000..4c5a1747 --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/icon.component.ts @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, HostBinding, Input} from '@angular/core'; + +@Component({ + selector: 'stapps-icon', + templateUrl: 'icon.html', + styleUrls: ['icon.scss'], +}) +export class IconComponent { + @HostBinding('style.--size') + @Input() + size?: number; + + @HostBinding('style.--weight') + @Input() + weight?: number; + + @HostBinding('style.--grade') + @Input() + grade?: number; + + @Input() + fill: boolean; + + @HostBinding('innerHtml') + @Input() + name: string; + + @HostBinding('style.--fill') get fillStyle(): number | undefined { + return this.fill ? 1 : undefined; + } + + @HostBinding('class.material-symbols-rounded') hostClass = true; +} diff --git a/frontend/app/src/app/util/ion-icon/icon.html b/frontend/app/src/app/util/ion-icon/icon.html new file mode 100644 index 00000000..ee5b0d8d --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/icon.html @@ -0,0 +1,15 @@ + + diff --git a/frontend/app/src/app/util/ion-icon/icon.scss b/frontend/app/src/app/util/ion-icon/icon.scss new file mode 100644 index 00000000..ae362086 --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/icon.scss @@ -0,0 +1,26 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host { + font-variation-settings: 'wght' var(--weight), 'GRAD' var(--grade), 'FILL' var(--fill); + + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + font-size: inherit; + transition: all 0.2s ease-in-out; +} diff --git a/frontend/app/src/app/util/ion-icon/icon.ts b/frontend/app/src/app/util/ion-icon/icon.ts new file mode 100644 index 00000000..d083989e --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/icon.ts @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * A noop function to aid parsing icon names + */ +export function SCIcon(strings: TemplateStringsArray, ..._keys: string[]): string { + return strings.join(''); +} diff --git a/frontend/app/src/app/util/ion-icon/ion-back-button.directive.ts b/frontend/app/src/app/util/ion-icon/ion-back-button.directive.ts new file mode 100644 index 00000000..dd9df2bc --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/ion-back-button.directive.ts @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Directive, ElementRef, Host, Optional, Self, ViewContainerRef} from '@angular/core'; +import {SCIcon} from './icon'; +import {IconReplacer} from './replace-util'; +import {TranslateService} from '@ngx-translate/core'; +import {Subscription} from 'rxjs'; +import {IonBackButton} from '@ionic/angular'; +import {TitleCasePipe} from '@angular/common'; + +@Directive({ + selector: 'ion-back-button', +}) +export class IonBackButtonDirective extends IconReplacer { + private subscriptions: Subscription[] = []; + + constructor( + element: ElementRef, + viewContainerRef: ViewContainerRef, + @Host() @Self() @Optional() private ionBackButton: IonBackButton, + private translateService: TranslateService, + private titleCasePipe: TitleCasePipe, + ) { + super(element, viewContainerRef, 'shadow'); + } + + replace() { + this.replaceIcon(this.host.querySelector('.button-inner'), { + md: SCIcon`arrow_back`, + ios: SCIcon`arrow_back_ios`, + size: 24, + }); + } + + init() { + this.subscriptions.push( + this.translateService.stream('back').subscribe((value: string) => { + this.ionBackButton.text = this.titleCasePipe.transform(value); + }), + ); + } + + destroy() { + for (const subscription of this.subscriptions) { + subscription.unsubscribe(); + } + } +} diff --git a/frontend/app/src/app/util/ion-icon/ion-breadcrumb.directive.ts b/frontend/app/src/app/util/ion-icon/ion-breadcrumb.directive.ts new file mode 100644 index 00000000..e9139ae1 --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/ion-breadcrumb.directive.ts @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Directive, ElementRef, ViewContainerRef} from '@angular/core'; +import {SCIcon} from './icon'; +import {IconReplacer} from './replace-util'; + +@Directive({ + selector: 'ion-breadcrumb', +}) +export class IonBreadcrumbDirective extends IconReplacer { + constructor(element: ElementRef, viewContainerRef: ViewContainerRef) { + super(element, viewContainerRef, 'shadow'); + } + + replace() { + this.replaceIcon( + this.host.querySelector('span[part="separator"]'), + { + name: SCIcon`arrow_forward_ios`, + size: 16, + style: `color: var(--ion-color-tint);`, + }, + '-separator', + ); + this.replaceIcon( + this.host.querySelector('button[part="collapsed-indicator"]'), + { + name: SCIcon`more_horiz`, + size: 24, + }, + '-collapsed', + ); + } +} diff --git a/frontend/app/src/app/util/ion-icon/ion-icon.directive.ts b/frontend/app/src/app/util/ion-icon/ion-icon.directive.ts new file mode 100644 index 00000000..66279caf --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/ion-icon.directive.ts @@ -0,0 +1,132 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import { + ComponentRef, + Directive, + ElementRef, + Host, + Input, + OnChanges, + OnDestroy, + OnInit, + Optional, + Self, + ViewContainerRef, +} from '@angular/core'; +import {IconComponent} from './icon.component'; +import {IonIcon} from '@ionic/angular'; + +// eslint-disable-next-line @typescript-eslint/no-empty-function +const noop = () => {}; +const noopProperty = { + set: noop, + get: noop, +}; + +@Directive({ + selector: 'ion-icon', +}) +export class IonIconDirective implements OnInit, OnDestroy, OnChanges { + @Input() name: string; + + @Input() md: string; + + @Input() ios: string; + + @Input() fill = false; + + @Input() weight: number; + + @Input() size: number; + + @Input() grade: number; + + @Input() style: string; + + private mutationObserver: MutationObserver; + + iconComponent?: ComponentRef; + + private static get mode(): 'md' | 'ios' { + return document.querySelector(':root')?.getAttribute('mode') as 'md' | 'ios'; + } + + constructor( + private element: ElementRef, + private viewContainerRef: ViewContainerRef, + @Host() @Self() @Optional() private ionIcon: IonIcon, + ) {} + + ngOnInit() { + this.iconComponent = this.viewContainerRef.createComponent(IconComponent, {}); + + this.element.nativeElement.insertBefore( + this.iconComponent.location.nativeElement, + this.element.nativeElement.firstChild, + ); + + this.mutationObserver = new MutationObserver(() => { + const inner = this.element.nativeElement.shadowRoot.querySelector('.icon-inner'); + if (!inner) return; + + inner.insertBefore(document.createElement('slot'), inner.firstChild); + }); + this.mutationObserver.observe(this.element.nativeElement.shadowRoot, { + childList: true, + }); + + this.ngOnChanges(); + // this will effectively completely disable the ion-icon component + for (const name of ['src', 'name', 'icon', 'md', 'ios']) { + this.disableProperty(name); + } + } + + ngOnDestroy() { + this.mutationObserver.disconnect(); + } + + ngOnChanges() { + if (!this.iconComponent) return; + for (const key of ['name', 'weight', 'fill', 'size', 'grade'] as Array< + keyof IconComponent & keyof IonIconDirective + >) { + // @ts-expect-error type mismatch + this.iconComponent.instance[key] = this[key]; + } + + for (const mode of ['md', 'ios'] as Array<'md' | 'ios'>) { + if (this[mode] && IonIconDirective.mode === mode) { + this.iconComponent.instance.name = this[mode]; + } + } + + if (this.size) { + this.element.nativeElement.style.cssText = `font-size: ${this.size}px;`; + } + if (this.style) { + this.element.nativeElement.style.cssText += this.style; + } + } + + disableProperty(name: string) { + Object.defineProperty( + Object.getPrototypeOf((this.ionIcon as unknown as {el: HTMLElement}).el), + name, + noopProperty, + ); + } +} diff --git a/frontend/app/src/app/util/ion-icon/ion-icon.module.ts b/frontend/app/src/app/util/ion-icon/ion-icon.module.ts new file mode 100644 index 00000000..b5395c38 --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/ion-icon.module.ts @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {NgModule} from '@angular/core'; +import {IconComponent} from './icon.component'; +import {IonIconDirective} from './ion-icon.directive'; +import {IonBackButtonDirective} from './ion-back-button.directive'; +import {IonSearchbarDirective} from './ion-searchbar.directive'; +import {IonBreadcrumbDirective} from './ion-breadcrumb.directive'; +import {IonReorderDirective} from './ion-reorder.directive'; +import {TranslateModule, TranslateService} from '@ngx-translate/core'; +import {CommonModule, TitleCasePipe} from '@angular/common'; + +@NgModule({ + imports: [TranslateModule, CommonModule], + declarations: [ + IconComponent, + IonIconDirective, + IonBackButtonDirective, + IonSearchbarDirective, + IonBreadcrumbDirective, + IonReorderDirective, + ], + exports: [ + IonIconDirective, + IonReorderDirective, + IonBackButtonDirective, + IonSearchbarDirective, + IonBreadcrumbDirective, + ], + providers: [TranslateService, TitleCasePipe], +}) +export class IonIconModule {} diff --git a/frontend/app/src/app/util/ion-icon/ion-reorder.directive.ts b/frontend/app/src/app/util/ion-icon/ion-reorder.directive.ts new file mode 100644 index 00000000..bbac84b9 --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/ion-reorder.directive.ts @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Directive, ElementRef, ViewContainerRef} from '@angular/core'; +import {SCIcon} from './icon'; +import {IconReplacer} from './replace-util'; + +@Directive({ + selector: 'ion-reorder', +}) +export class IonReorderDirective extends IconReplacer { + constructor(element: ElementRef, viewContainerRef: ViewContainerRef) { + super(element, viewContainerRef, 'shadow'); + } + + replace() { + this.replaceIcon(this.host, { + name: SCIcon`reorder`, + size: 24, + }); + } +} diff --git a/frontend/app/src/app/util/ion-icon/ion-searchbar.directive.ts b/frontend/app/src/app/util/ion-icon/ion-searchbar.directive.ts new file mode 100644 index 00000000..d9f6d324 --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/ion-searchbar.directive.ts @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {Directive, ElementRef, ViewContainerRef} from '@angular/core'; +import {SCIcon} from './icon'; +import {IconReplacer} from './replace-util'; + +@Directive({ + selector: 'ion-searchbar', +}) +export class IonSearchbarDirective extends IconReplacer { + constructor(element: ElementRef, viewContainerRef: ViewContainerRef) { + super(element, viewContainerRef, 'light'); + } + + replace() { + this.replaceIcon(this.host.querySelector('.searchbar-input-container'), { + name: SCIcon`search`, + size: 24, + }); + this.replaceIcon(this.host.querySelector('.searchbar-clear-button'), { + name: SCIcon`close`, + size: 24, + }); + } +} diff --git a/frontend/app/src/app/util/ion-icon/replace-util.ts b/frontend/app/src/app/util/ion-icon/replace-util.ts new file mode 100644 index 00000000..383b220b --- /dev/null +++ b/frontend/app/src/app/util/ion-icon/replace-util.ts @@ -0,0 +1,151 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {ComponentRef, Directive, ElementRef, OnDestroy, OnInit, ViewContainerRef} from '@angular/core'; +import {IonIcon} from '@ionic/angular'; +import {IonIconDirective} from './ion-icon.directive'; + +export type IconData = Omit< + Partial, + 'ngOnChanges' | 'ngOnInit' | 'viewContainerRef' | 'ngOnDestroy' | 'element' | 'ionIcon' | 'disableProperty' +>; + +/** + * A utility class to replace ion-icons in other ionic components. + */ +@Directive() +export abstract class IconReplacer implements OnInit, OnDestroy { + private mutationObserver: MutationObserver; + + protected slotName = 'sc-icon'; + + protected maxAttempts = 10; + + protected retryAfterMs = 10; + + /** + * The host element + * + * This will be either element.nativeElement.shadowRoot or element.nativeElement + * depending on the iconDomLocation + */ + protected get host() { + return this.iconDomLocation === 'shadow' + ? this.element.nativeElement.shadowRoot + : this.element.nativeElement; + } + + /** + * @param element The host element + * @param viewContainerRef The view container ref + * @param iconDomLocation If the icon is placed inside the shadow dom or not + * @protected + */ + protected constructor( + private readonly element: ElementRef, + private readonly viewContainerRef: ViewContainerRef, + private readonly iconDomLocation: 'shadow' | 'light', + ) {} + + /** + * Replace the icons here + */ + abstract replace(): void; + + /** + * If any additional work needs to be done, this + * is called during ngOnInit + */ + init() { + // noop + } + + /** + * If you need to do cleanup, this method is called during ngOnDestroy + */ + destroy() { + // noop + } + + ngOnInit() { + this.init(); + + if (!this.host) { + let tries = 0; + console.warn('IconReplacer: host not found, trying again'); + const interval = setInterval(() => { + if (tries > this.maxAttempts) { + clearInterval(interval); + throw new Error('IconReplacer: host not found'); + } + if (this.host) { + clearInterval(interval); + this.replace(); + } + tries++; + }, this.retryAfterMs); + } else { + this.attachObserver(); + } + } + + private attachObserver() { + this.mutationObserver = new MutationObserver(() => this.replace()); + this.mutationObserver.observe(this.host, { + childList: true, + }); + } + + replaceIcon(parent: HTMLElement | null, iconData: IconData, slotName = '') { + if (!parent) return; + + const icon = parent.querySelector('ion-icon'); + if (!icon) return; + + const scIcon = this.createIcon(iconData); + // @ts-expect-error can be spread + scIcon.location.nativeElement.classList.add(...icon.classList); + + if (this.iconDomLocation === 'shadow') { + // shadow dom needs to utilize slotting, to put it outside + // the shadow dom, otherwise it won't receive any css data + const slot = document.createElement('slot'); + slot.name = this.slotName + slotName; + icon.replaceWith(slot); + + scIcon.location.nativeElement.slot = this.slotName + slotName; + this.element.nativeElement.append(scIcon.location.nativeElement); + } else { + icon.replaceWith(scIcon.location.nativeElement); + } + } + + private createIcon(iconData: IconData): ComponentRef { + const ionIcon = this.viewContainerRef.createComponent(IonIcon, {}); + const iconDirective = new IonIconDirective(ionIcon.location, this.viewContainerRef, ionIcon.instance); + for (const key in iconData) { + // @ts-expect-error type mismatch + iconDirective[key] = iconData[key]; + } + iconDirective.ngOnInit(); + + return ionIcon; + } + + ngOnDestroy() { + this.mutationObserver?.disconnect(); + this.destroy(); + } +} diff --git a/frontend/app/src/app/util/lazy.pipe.ts b/frontend/app/src/app/util/lazy.pipe.ts new file mode 100644 index 00000000..23079153 --- /dev/null +++ b/frontend/app/src/app/util/lazy.pipe.ts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Observable} from 'rxjs'; +import {Pipe, PipeTransform} from '@angular/core'; +import {SCSaveableThing, SCThings, SCUuid} from '@openstapps/core'; +import {DataProvider, DataScope} from '../modules/data/data.provider'; +import {get} from '../_helpers/collections/get'; + +@Pipe({ + name: 'lazyThing', + pure: true, +}) +export class LazyPipe implements PipeTransform { + constructor(private readonly dataProvider: DataProvider) {} + + transform( + uid: SCUuid, + path?: keyof SCThings | string, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + ): Observable | any { + return new Observable(subscriber => { + this.dataProvider.get(uid, DataScope.Remote).then(it => { + subscriber.next(path ? get(it, path) : it); + subscriber.complete(); + }); + }); + } +} diff --git a/frontend/app/src/app/util/next-date-in-list.pipe.ts b/frontend/app/src/app/util/next-date-in-list.pipe.ts new file mode 100644 index 00000000..17efc92b --- /dev/null +++ b/frontend/app/src/app/util/next-date-in-list.pipe.ts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable, Pipe, PipeTransform} from '@angular/core'; +import moment from 'moment'; + +/** + * Get the last value of an array + */ +@Injectable() +@Pipe({ + name: 'nextDateInList', + pure: false, // pure pipe can break in some change detection scenarios, + // specifically, on the calendar view it causes it to stay true even when you navigate +}) +export class NextDateInListPipe implements PipeTransform { + /** + * Transform + */ + // tslint:disable-next-line:prefer-function-over-method + transform(dates: string[]): string { + const nextDate = dates + .sort((a, b) => moment(a).unix() - moment(b).unix()) + .find(date => { + return moment(date).unix() > moment().unix(); + }); + return nextDate || ''; + } +} diff --git a/frontend/app/src/app/util/nullish-coalecing.pipe.ts b/frontend/app/src/app/util/nullish-coalecing.pipe.ts new file mode 100644 index 00000000..064ae803 --- /dev/null +++ b/frontend/app/src/app/util/nullish-coalecing.pipe.ts @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2021 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable, Pipe, PipeTransform} from '@angular/core'; + +/** + * Get the last value of an array + */ +@Injectable() +@Pipe({ + name: 'nullishCoalesce', + pure: true, +}) +export class NullishCoalescingPipe implements PipeTransform { + /** + * Transform + */ + // tslint:disable-next-line:prefer-function-over-method + transform(value: T, fallback: G): T | G { + return value ?? fallback; + } +} diff --git a/frontend/app/src/app/util/opening-hours.component.ts b/frontend/app/src/app/util/opening-hours.component.ts new file mode 100644 index 00000000..08422463 --- /dev/null +++ b/frontend/app/src/app/util/opening-hours.component.ts @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, ContentChild, Input, OnDestroy, OnInit, TemplateRef} from '@angular/core'; +import opening_hours from 'opening_hours'; + +@Component({ + selector: 'stapps-opening-hours', + templateUrl: 'opening-hours.html', +}) +export class OpeningHoursComponent implements OnDestroy, OnInit { + @ContentChild(TemplateRef) content: TemplateRef; + + @Input() openingHours?: string; + + @Input() colorize = true; + + @Input() showNextChange = true; + + timer: NodeJS.Timeout; + + updateTimer() { + if (typeof this.openingHours !== 'string') { + return; + } + clearTimeout(this.timer); + + const ohObject = new opening_hours(this.openingHours, { + address: { + country_code: 'de', + state: 'Hessen', + }, + lon: 8.667_97, + lat: 50.129_16, + }); + + const millisecondsRemaining = + // eslint-disable-next-line unicorn/prefer-date-now + (ohObject.getNextChange()?.getTime() ?? 0) - new Date().getTime() + 1000; + + if (millisecondsRemaining > 1_209_600_000) { + // setTimeout has upper bound of 0x7FFFFFFF + // ignore everything over a week + return; + } + + if (millisecondsRemaining > 0) { + this.timer = setTimeout(() => { + // pseudo update value to tigger openingHours pipe + this.openingHours = `${this.openingHours}`; + this.updateTimer(); + }, millisecondsRemaining); + } + } + + ngOnInit() { + this.updateTimer(); + } + + ngOnDestroy() { + clearTimeout(this.timer); + } +} diff --git a/frontend/app/src/app/util/opening-hours.html b/frontend/app/src/app/util/opening-hours.html new file mode 100644 index 00000000..29d7af42 --- /dev/null +++ b/frontend/app/src/app/util/opening-hours.html @@ -0,0 +1,34 @@ + + + +
+ + + {{ openingHours | openingHours | slice: 1:2 }} + + + + {{ openingHours | openingHours | slice: 1:2 }} + + + {{ openingHours | openingHours | slice: 2:3 }} + +
+
diff --git a/frontend/app/src/app/util/pending-changes-action-sheet.ts b/frontend/app/src/app/util/pending-changes-action-sheet.ts new file mode 100644 index 00000000..37cbce5a --- /dev/null +++ b/frontend/app/src/app/util/pending-changes-action-sheet.ts @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {TranslatePipe} from '@ngx-translate/core'; +import {ActionSheetOptions, AlertOptions} from '@ionic/angular'; + +export enum PendingChangesRole { + SAVE = 'save', + DISCARD = 'discard', + CANCEL = 'cancel', +} + +/** + * + */ +export function pendingChangesActionSheet( + translatePipe: TranslatePipe, + includeSaveOption = true, +): ActionSheetOptions & AlertOptions { + return { + header: translatePipe.transform('modal.dismiss_warn_pending_changes.TITLE'), + buttons: [ + ...(includeSaveOption + ? [ + { + text: translatePipe.transform('modal.dismiss_warn_pending_changes.SAVE'), + role: PendingChangesRole.SAVE, + }, + ] + : []), + { + text: translatePipe.transform('modal.dismiss_warn_pending_changes.CANCEL'), + role: PendingChangesRole.CANCEL, + }, + { + text: translatePipe.transform('modal.dismiss_warn_pending_changes.DISCARD'), + role: PendingChangesRole.DISCARD, + }, + ], + }; +} diff --git a/frontend/app/src/app/util/routing-stack.service.ts b/frontend/app/src/app/util/routing-stack.service.ts new file mode 100644 index 00000000..cbd3c1be --- /dev/null +++ b/frontend/app/src/app/util/routing-stack.service.ts @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Injectable} from '@angular/core'; +import {NavigationEnd, Router} from '@angular/router'; +import {SCSaveableThing, SCThings} from '@openstapps/core'; +import {DataProvider, DataScope} from '../modules/data/data.provider'; + +@Injectable({ + providedIn: 'root', +}) +export class RoutingStackService { + currentRoute: string; + + currentDataDetail?: Promise; + + lastRoute: string; + + lastDataDetail?: Promise; + + constructor(private router: Router, private dataProvider: DataProvider) { + this.router.events.subscribe(event => { + if (event instanceof NavigationEnd) { + this.lastRoute = this.currentRoute; + this.currentRoute = event.urlAfterRedirects; + + const uid = this.currentRoute.match(/^\/data-detail\/([\w-]+)$/)?.[1]; + this.lastDataDetail = this.currentDataDetail; + this.currentDataDetail = uid ? this.dataProvider.get(uid, DataScope.Remote) : undefined; + } + }); + } +} diff --git a/frontend/app/src/app/util/searchbar-autofocus.directive.ts b/frontend/app/src/app/util/searchbar-autofocus.directive.ts new file mode 100644 index 00000000..f896948f --- /dev/null +++ b/frontend/app/src/app/util/searchbar-autofocus.directive.ts @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {AfterViewInit, Directive, ElementRef} from '@angular/core'; +import {IonSearchbar} from '@ionic/angular'; + +@Directive({ + selector: 'ion-searchbar[autofocus]', +}) +export class SearchbarAutofocusDirective implements AfterViewInit { + constructor(private element: ElementRef) {} + + ngAfterViewInit() { + const label = `focus`; + console.time(label); + const interval = setInterval(() => { + const searchbar = this.element.nativeElement as IonSearchbar; + searchbar.setFocus(); + }); + const onFocus = () => { + console.timeEnd(label); + clearInterval(interval); + this.element.nativeElement.removeEventListener('ionFocus', onFocus); + }; + this.element.nativeElement.addEventListener('ionFocus', onFocus); + } +} diff --git a/frontend/app/src/app/util/section.component.html b/frontend/app/src/app/util/section.component.html new file mode 100644 index 00000000..469f032b --- /dev/null +++ b/frontend/app/src/app/util/section.component.html @@ -0,0 +1,51 @@ + + + + + + + + + + {{ title }} + + + + + + + + + + + + + + + + + +
+ +
+
+
+ + + + + +
diff --git a/frontend/app/src/app/util/section.component.scss b/frontend/app/src/app/util/section.component.scss new file mode 100644 index 00000000..7d31943e --- /dev/null +++ b/frontend/app/src/app/util/section.component.scss @@ -0,0 +1,67 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@import 'src/theme/util/mixins'; + +a { + display: contents; + color: unset; + text-decoration: unset; +} + +ion-grid { + width: 100%; +} + +ion-label { + font-family: var(--headline-font-family); + font-weight: var(--font-weight-bold); + + &:only-child { + height: 100%; + display: flex; + align-items: center; + } +} + +ion-grid { + padding: 0; +} + +ion-col { + padding: 0; +} + +:host ::ng-deep ion-button::part(native) { + padding-inline: var(--spacing-xs); +} + +@media (hover: none) { + .swiper-button { + display: none; + } +} + +:host { + display: block; + padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm); + --swiper-scroll-padding: var(--spacing-md); + --swiper-gap: var(--spacing-sm); + + @include ion-md-up { + padding: var(--spacing-lg) var(--spacing-xxl) var(--spacing-sm); + --swiper-scroll-padding: var(--spacing-xxl); + } +} diff --git a/frontend/app/src/app/util/section.component.ts b/frontend/app/src/app/util/section.component.ts new file mode 100644 index 00000000..b0504acc --- /dev/null +++ b/frontend/app/src/app/util/section.component.ts @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {AfterContentInit, Component, Input, OnDestroy, ViewContainerRef} from '@angular/core'; +import {SCThings} from '@openstapps/core'; + +/** + * Shows a horizontal list of action chips + */ +@Component({ + selector: 'stapps-section', + templateUrl: 'section.component.html', + styleUrls: ['section.component.scss'], +}) +export class SectionComponent implements AfterContentInit, OnDestroy { + @Input() title = ''; + + @Input() item?: SCThings; + + mutationObserver: MutationObserver; + + swiper?: HTMLElement; + + constructor(readonly viewContainerRef: ViewContainerRef) {} + + ngAfterContentInit() { + this.mutationObserver = new MutationObserver(() => { + const simpleSwiper = this.viewContainerRef.element.nativeElement.querySelector('simple-swiper'); + if (!simpleSwiper) return; + + this.swiper = simpleSwiper; + }); + this.mutationObserver.observe(this.viewContainerRef.element.nativeElement, { + childList: true, + subtree: true, + }); + } + + slideNext() { + if (this.swiper) { + this.swiper.scrollBy({ + left: this.swiper.offsetWidth, + behavior: 'smooth', + }); + } + } + + slidePrev() { + if (this.swiper) { + this.swiper.scrollBy({ + left: -this.swiper.offsetWidth, + behavior: 'smooth', + }); + } + } + + ngOnDestroy() { + this.mutationObserver.disconnect(); + } +} diff --git a/frontend/app/src/app/util/simple-swiper.component.ts b/frontend/app/src/app/util/simple-swiper.component.ts new file mode 100644 index 00000000..640cc1d5 --- /dev/null +++ b/frontend/app/src/app/util/simple-swiper.component.ts @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +import {Component, ContentChildren, ElementRef, ViewContainerRef} from '@angular/core'; + +@Component({ + selector: 'simple-swiper', + templateUrl: 'simple-swiper.html', + styleUrls: ['simple-swiper.scss'], +}) +export class SimpleSwiperComponent { + constructor(readonly viewContainerRef: ViewContainerRef) {} + + @ContentChildren('*') children: ElementRef; +} diff --git a/frontend/app/src/app/util/simple-swiper.html b/frontend/app/src/app/util/simple-swiper.html new file mode 100644 index 00000000..cc9f86ff --- /dev/null +++ b/frontend/app/src/app/util/simple-swiper.html @@ -0,0 +1,15 @@ + + diff --git a/frontend/app/src/app/util/simple-swiper.scss b/frontend/app/src/app/util/simple-swiper.scss new file mode 100644 index 00000000..1768aba4 --- /dev/null +++ b/frontend/app/src/app/util/simple-swiper.scss @@ -0,0 +1,54 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +:host { + position: relative; + display: grid; + grid-auto-flow: column; + + justify-content: start; + + scroll-snap-type: x mandatory; + overflow-x: auto; + overflow-y: hidden; + contain: layout; + + margin-inline: calc(-1 * var(--swiper-scroll-padding)); + + gap: var(--swiper-gap, 0); + + &::ng-deep > *:not(ion-button) { + contain: layout; + scroll-snap-align: start; + scroll-margin-inline: var(--swiper-scroll-padding, 0); + width: var(--swiper-slide-width); + + &:first-child { + padding-inline-start: var(--swiper-scroll-padding); + width: calc(var(--swiper-slide-width) + var(--swiper-scroll-padding)); + } + + &:last-child { + scroll-snap-align: end; + padding-inline-end: var(--swiper-scroll-padding); + width: calc(var(--swiper-slide-width) + var(--swiper-scroll-padding)); + } + } + + &::-webkit-scrollbar { + display: none; + } + scrollbar-width: none; +} diff --git a/frontend/app/src/app/util/util.module.ts b/frontend/app/src/app/util/util.module.ts new file mode 100644 index 00000000..c003e269 --- /dev/null +++ b/frontend/app/src/app/util/util.module.ts @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {NgModule} from '@angular/core'; +import {ArrayLastPipe} from './array-last.pipe'; +import {DateIsThisPipe} from './date-is-today.pipe'; +import {NullishCoalescingPipe} from './nullish-coalecing.pipe'; +import {DateFromIndexPipe} from './date-from-index.pipe'; +import {DaytimeKeyPipe} from './daytime-key.pipe'; +import {LazyPipe} from './lazy.pipe'; +import {NextDateInListPipe} from './next-date-in-list.pipe'; +import {EditModalComponent} from './edit-modal.component'; +import {BrowserModule} from '@angular/platform-browser'; +import {IonicModule} from '@ionic/angular'; +import {TranslateModule} from '@ngx-translate/core'; +import {ElementSizeChangeDirective} from './element-size-change.directive'; +import {OpeningHoursComponent} from './opening-hours.component'; +import {ThingTranslateModule} from '../translation/thing-translate.module'; +import {SimpleSwiperComponent} from './simple-swiper.component'; +import {SearchbarAutofocusDirective} from './searchbar-autofocus.directive'; +import {SectionComponent} from './section.component'; + +@NgModule({ + imports: [BrowserModule, IonicModule, TranslateModule, ThingTranslateModule.forChild()], + declarations: [ + ElementSizeChangeDirective, + ArrayLastPipe, + DateIsThisPipe, + NullishCoalescingPipe, + LazyPipe, + SectionComponent, + DateFromIndexPipe, + DaytimeKeyPipe, + NextDateInListPipe, + EditModalComponent, + OpeningHoursComponent, + SimpleSwiperComponent, + SearchbarAutofocusDirective, + ], + exports: [ + ElementSizeChangeDirective, + ArrayLastPipe, + DateIsThisPipe, + NullishCoalescingPipe, + LazyPipe, + DateFromIndexPipe, + DaytimeKeyPipe, + SectionComponent, + NextDateInListPipe, + EditModalComponent, + OpeningHoursComponent, + SimpleSwiperComponent, + SearchbarAutofocusDirective, + ], +}) +export class UtilModule {} diff --git a/frontend/app/src/assets/about/CHANGELOG.md b/frontend/app/src/assets/about/CHANGELOG.md new file mode 100644 index 00000000..74dd33b2 --- /dev/null +++ b/frontend/app/src/assets/about/CHANGELOG.md @@ -0,0 +1,3 @@ +# [2.0.0](https://gitlab.com/openstapps/app/compare/v0.0.1...v2.0.0) (2023-01-11) + +### Inital release diff --git a/frontend/app/src/assets/about/licenses.json b/frontend/app/src/assets/about/licenses.json new file mode 100644 index 00000000..0a72a29a --- /dev/null +++ b/frontend/app/src/assets/about/licenses.json @@ -0,0 +1,427 @@ +[ + { + "licenseText": "Angular\n=======\n\nThe sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.\n\nUsage information and reference details can be found in [Angular documentation](https://angular.io/docs).\n\nLicense: MIT\n", + "name": "@angular/animations@13.3.10", + "licenses": "MIT", + "repository": "https://github.com/angular/angular", + "publisher": "angular" + }, + { + "licenseText": "The MIT License\n\nCopyright (c) 2022 Google LLC.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "name": "@angular/cdk@13.3.8", + "licenses": "MIT", + "repository": "https://github.com/angular/components" + }, + { + "licenseText": "Angular\n=======\n\nThe sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.\n\nUsage information and reference details can be found in [Angular documentation](https://angular.io/docs).\n\nLicense: MIT\n", + "name": "@angular/common@13.3.10", + "licenses": "MIT", + "repository": "https://github.com/angular/angular", + "publisher": "angular" + }, + { + "licenseText": "Angular\n=======\n\nThe sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.\n\nUsage information and reference details can be found in [Angular documentation](https://angular.io/docs).\n\nLicense: MIT\n", + "name": "@angular/core@13.3.10", + "licenses": "MIT", + "repository": "https://github.com/angular/angular", + "publisher": "angular" + }, + { + "licenseText": "Angular\n=======\n\nThe sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.\n\nUsage information and reference details can be found in [Angular documentation](https://angular.io/docs).\n\nLicense: MIT\n", + "name": "@angular/forms@13.3.10", + "licenses": "MIT", + "repository": "https://github.com/angular/angular", + "publisher": "angular" + }, + { + "licenseText": "Angular\n=======\n\nThe sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.\n\nUsage information and reference details can be found in [Angular documentation](https://angular.io/docs).\n\nLicense: MIT\n", + "name": "@angular/platform-browser-dynamic@13.3.10", + "licenses": "MIT", + "repository": "https://github.com/angular/angular", + "publisher": "angular" + }, + { + "licenseText": "Angular\n=======\n\nThe sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.\n\nUsage information and reference details can be found in [Angular documentation](https://angular.io/docs).\n\nLicense: MIT\n", + "name": "@angular/platform-browser@13.3.10", + "licenses": "MIT", + "repository": "https://github.com/angular/angular", + "publisher": "angular" + }, + { + "licenseText": "Angular\n=======\n\nThe sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.\n\nUsage information and reference details can be found in [Angular documentation](https://angular.io/docs).\n\nLicense: MIT\n", + "name": "@angular/router@13.3.10", + "licenses": "MIT", + "repository": "https://github.com/angular/angular", + "publisher": "angular" + }, + { + "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2007-2022 Asymmetrik Ltd, a BlueHalo Company\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n", + "name": "@asymmetrik/ngx-leaflet-markercluster@13.0.1", + "licenses": "MIT", + "repository": "https://github.com/Asymmetrik/ngx-leaflet", + "publisher": "Asymmetrik, Ltd." + }, + { + "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2007-2022 Asymmetrik Ltd, a BlueHalo Company\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n", + "name": "@asymmetrik/ngx-leaflet@13.0.2", + "licenses": "MIT", + "repository": "https://github.com/Asymmetrik/ngx-leaflet", + "publisher": "Asymmetrik, Ltd." + }, + { + "name": "@awesome-cordova-plugins/calendar@5.43.0", + "licenses": "MIT", + "repository": "https://github.com/danielsogl/awesome-cordova-plugins", + "publisher": "ionic" + }, + { + "name": "@awesome-cordova-plugins/core@5.43.0", + "licenses": "MIT", + "repository": "https://github.com/danielsogl/awesome-cordova-plugins", + "publisher": "ionic" + }, + { + "licenseText": "MIT License\n\nCopyright (c) 2020 Drifty Co.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", + "name": "@capacitor-community/http@1.4.1", + "licenses": "MIT", + "repository": "https://github.com/capacitor-community/http", + "publisher": "Max Lynch", + "email": "max@ionic.io" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/app@1.1.1", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", + "name": "@capacitor/browser@1.0.7", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2017-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/core@3.5.1", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor", + "publisher": "Ionic Team", + "email": "hi@ionic.io", + "url": "https://ionic.io" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/device@1.1.2", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", + "name": "@capacitor/dialog@1.0.7", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/filesystem@1.1.0", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/geolocation@1.3.1", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/haptics@1.1.4", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/keyboard@1.2.2", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/local-notifications@1.1.0", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/network@1.0.7", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", + "name": "@capacitor/share@1.1.2", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/splash-screen@1.2.2", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/status-bar@1.0.8", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "licenseText": "Copyright 2020-present Ionic\nhttps://ionic.io\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "@capacitor/storage@1.2.5", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/capacitor-plugins", + "publisher": "Ionic", + "email": "hi@ionicframework.com" + }, + { + "name": "@ionic-native/core@5.36.0", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/ionic-native", + "publisher": "ionic" + }, + { + "licenseText": "\n Improve this doc\n\n\n# File Opener\n\n```\n$ ionic cordova plugin add cordova-plugin-file-opener2\n$ npm install @ionic-native/file-opener\n```\n\n## [Usage Documentation](https://ionicframework.com/docs/native/file-opener/)\n\nPlugin Repo: [https://github.com/pwlin/cordova-plugin-file-opener2](https://github.com/pwlin/cordova-plugin-file-opener2)\n\nThis plugin will open a file on your device file system with its default application.\n\n## Supported platforms\n\n- Android\n - iOS\n - Windows\n - Windows Phone 8\n \n\n\n", + "name": "@ionic-native/file-opener@5.36.0", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/ionic-native", + "publisher": "ionic" + }, + { + "licenseText": "# @ionic/angular\n\nIonic Angular specific building blocks on top of [@ionic/core](https://www.npmjs.com/package/@ionic/core) components.\n\n\n## Related\n\n* [Ionic Core Components](https://www.npmjs.com/package/@ionic/core)\n* [Ionic Documentation](https://ionicframework.com/docs/)\n* [Ionic Forum](https://forum.ionicframework.com/)\n* [Ionicons](http://ionicons.com/)\n* [Stencil](https://stenciljs.com/)\n* [Stencil Worldwide Slack](https://stencil-worldwide.herokuapp.com/)\n* [Capacitor](https://capacitor.ionicframework.com/)\n\n\n## License\n\n* [MIT](https://raw.githubusercontent.com/ionic-team/ionic/main/LICENSE)\n\n## Testing ng-add in ionic\n\n1. Pull the latest from `main`\n2. Build ionic/angular: `npm run build`\n3. Run `npm link` from `ionic/angular/dist` directory\n4. Create a blank angular project\n\n```\nng new add-test\n// Say yes to including the router, we need it\ncd add-test\n```\n\n5. To run schematics locally, we need the schematics-cli (once published, this will not be needed)\n\n```\nnpm install @angular-devkit/schematics-cli\n```\n\n6. Link `@ionic/angular`\n\n```\nnpm link @ionic/angular\n```\n\n\n7. Run the local copy of the ng-add schematic\n\n```\n$ npx schematics @ionic/angular:ng-add\n```\n\n\nYou'll now be able to add ionic components to a vanilla Angular app setup.\n", + "name": "@ionic/angular@6.1.7", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/ionic" + }, + { + "name": "@ionic/storage-angular@3.0.6", + "licenses": "MIT", + "repository": "https://github.com/ionic-team/ionic-storage" + }, + { + "name": "@ngx-translate/core@14.0.0", + "licenses": "MIT", + "repository": "https://github.com/ngx-translate/core", + "publisher": "Olivier Combe" + }, + { + "name": "@ngx-translate/http-loader@7.0.0", + "licenses": "MIT", + "repository": "https://github.com/ngx-translate/core", + "publisher": "Olivier Combe" + }, + { + "licenseText": "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright © 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\"This License\" refers to version 3 of the GNU General Public License.\n\n\"Copyright\" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n\"The Program\" refers to any copyrightable work licensed under this License. Each licensee is addressed as \"you\". \"Licensees\" and \"recipients\" may be individuals or organizations.\n\nTo \"modify\" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \"modified version\" of the earlier work or a work \"based on\" the earlier work.\n\nA \"covered work\" means either the unmodified Program or a work based on the Program.\n\nTo \"propagate\" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo \"convey\" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \"Appropriate Legal Notices\" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe \"source code\" for a work means the preferred form of the work for making modifications to it. \"Object code\" means any non-source form of a work.\nA \"Standard Interface\" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe \"System Libraries\" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \"Major Component\", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe \"Corresponding Source\" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\na) The work must carry prominent notices stating that you modified it, and giving a relevant date.\nb) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \"keep intact all notices\".\nc) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\nd) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \"aggregate\" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\na) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\nb) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\nc) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\nd) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\ne) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA \"User Product\" is either (1) a \"consumer product\", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \"normally used\" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n\"Installation Information\" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n\"Additional permissions\" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\na) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\nb) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\nc) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\nd) Limiting the use for publicity purposes of names of licensors or authors of the material; or\ne) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\nf) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\nAll other non-permissive additional terms are considered \"further restrictions\" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\nAn \"entity transaction\" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA \"contributor\" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \"contributor version\".\nA contributor's \"essential patent claims\" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \"control\" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a \"patent license\" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \"grant\" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \"Knowingly relying\" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is \"discriminatory\" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \"or any later version\" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \"copyright\" line and a pointer to where the full notice is found.\n\n\nCopyright (C) \n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \nThis program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\nThis is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \"about box\".\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a \"copyright disclaimer\" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .\n", + "name": "@openstapps/api@0.41.1", + "licenses": "GPL-3.0-only", + "repository": "git://gitlab.com/openstapps/api", + "publisher": "Karl-Philipp Wulfert", + "email": "krlwlfrt@gmail.com" + }, + { + "licenseText": "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright © 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\"This License\" refers to version 3 of the GNU General Public License.\n\n\"Copyright\" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n\"The Program\" refers to any copyrightable work licensed under this License. Each licensee is addressed as \"you\". \"Licensees\" and \"recipients\" may be individuals or organizations.\n\nTo \"modify\" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \"modified version\" of the earlier work or a work \"based on\" the earlier work.\n\nA \"covered work\" means either the unmodified Program or a work based on the Program.\n\nTo \"propagate\" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo \"convey\" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \"Appropriate Legal Notices\" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe \"source code\" for a work means the preferred form of the work for making modifications to it. \"Object code\" means any non-source form of a work.\nA \"Standard Interface\" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe \"System Libraries\" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \"Major Component\", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe \"Corresponding Source\" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\na) The work must carry prominent notices stating that you modified it, and giving a relevant date.\nb) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \"keep intact all notices\".\nc) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\nd) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \"aggregate\" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\na) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\nb) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\nc) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\nd) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\ne) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA \"User Product\" is either (1) a \"consumer product\", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \"normally used\" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n\"Installation Information\" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n\"Additional permissions\" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\na) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\nb) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\nc) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\nd) Limiting the use for publicity purposes of names of licensors or authors of the material; or\ne) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\nf) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\nAll other non-permissive additional terms are considered \"further restrictions\" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\nAn \"entity transaction\" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA \"contributor\" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \"contributor version\".\nA contributor's \"essential patent claims\" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \"control\" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a \"patent license\" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \"grant\" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \"Knowingly relying\" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is \"discriminatory\" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \"or any later version\" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \"copyright\" line and a pointer to where the full notice is found.\n\n\nCopyright (C) \n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \nThis program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\nThis is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \"about box\".\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a \"copyright disclaimer\" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .\n", + "name": "@openstapps/configuration@0.29.1", + "licenses": "GPL-3.0-only", + "repository": "git://gitlab.com/openstapps/configuration", + "publisher": "Karl-Philipp Wulfert", + "email": "krlwlfrt@gmail.com" + }, + { + "licenseText": "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright © 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\"This License\" refers to version 3 of the GNU General Public License.\n\n\"Copyright\" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n\"The Program\" refers to any copyrightable work licensed under this License. Each licensee is addressed as \"you\". \"Licensees\" and \"recipients\" may be individuals or organizations.\n\nTo \"modify\" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \"modified version\" of the earlier work or a work \"based on\" the earlier work.\n\nA \"covered work\" means either the unmodified Program or a work based on the Program.\n\nTo \"propagate\" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo \"convey\" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \"Appropriate Legal Notices\" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe \"source code\" for a work means the preferred form of the work for making modifications to it. \"Object code\" means any non-source form of a work.\nA \"Standard Interface\" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe \"System Libraries\" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \"Major Component\", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe \"Corresponding Source\" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\na) The work must carry prominent notices stating that you modified it, and giving a relevant date.\nb) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \"keep intact all notices\".\nc) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\nd) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \"aggregate\" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\na) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\nb) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\nc) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\nd) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\ne) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA \"User Product\" is either (1) a \"consumer product\", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \"normally used\" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n\"Installation Information\" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n\"Additional permissions\" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\na) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\nb) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\nc) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\nd) Limiting the use for publicity purposes of names of licensors or authors of the material; or\ne) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\nf) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\nAll other non-permissive additional terms are considered \"further restrictions\" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\nAn \"entity transaction\" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA \"contributor\" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \"contributor version\".\nA contributor's \"essential patent claims\" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \"control\" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a \"patent license\" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \"grant\" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \"Knowingly relying\" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is \"discriminatory\" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \"or any later version\" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \"copyright\" line and a pointer to where the full notice is found.\n\n\nCopyright (C) \n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \nThis program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\nThis is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \"about box\".\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a \"copyright disclaimer\" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .\n", + "name": "@openstapps/core@0.67.0", + "licenses": "GPL-3.0-only", + "repository": "git://gitlab.com/openstapps/core", + "publisher": "Karl-Philipp Wulfert", + "email": "krlwlfrt@gmail.com" + }, + { + "licenseText": "# @transistorsoft/capacitor-background-fetch\n\n[![](https://dl.dropboxusercontent.com/s/nm4s5ltlug63vv8/logo-150-print.png?dl=1)](https://www.transistorsoft.com)\n\nBy [**Transistor Software**](http://transistorsoft.com), creators of [**Capacitor Background Geolocation**](http://www.transistorsoft.com/shop/products/capacitor-background-geolocation)\n\n------------------------------------------------------------------------------\n\n*Background Fetch* is a *very* simple plugin which attempts to awaken an app in the background about **every 15 minutes**, providing a short period of background running-time. This plugin will execute your provided `callbackFn` whenever a background-fetch event occurs.\n\nThere is **no way** to increase the rate which a fetch-event occurs and this plugin sets the rate to the most frequent possible — you will **never** receive an event faster than **15 minutes**. The operating-system will automatically throttle the rate the background-fetch events occur based upon usage patterns. Eg: if user hasn't turned on their phone for a long period of time, fetch events will occur less frequently or if an iOS user disables background refresh they may not happen at all.\n\n:new: Background Fetch now provides a [__`scheduleTask`__](#executing-custom-tasks) method for scheduling arbitrary \"one-shot\" or periodic tasks.\n\n### iOS\n- There is **no way** to increase the rate which a fetch-event occurs and this plugin sets the rate to the most frequent possible — you will **never** receive an event faster than **15 minutes**. The operating-system will automatically throttle the rate the background-fetch events occur based upon usage patterns. Eg: if user hasn't turned on their phone for a long period of time, fetch events will occur less frequently.\n- [__`scheduleTask`__](#executing-custom-tasks) seems only to fire when the device is plugged into power.\n- ⚠️ When your app is **terminated**, iOS *no longer fires events* — There is *no such thing* as [__`stopOnTerminate: false`__](https://transistorsoft.github.io/capacitor-background-fetch/interfaces/backgroundfetchconfig.html#stoponterminate) for iOS.\n- iOS can take *days* before Apple's machine-learning algorithm settles in and begins regularly firing events. Do not sit staring at your logs waiting for an event to fire. If your [*simulated events*](#debugging) work, that's all you need to know that everything is correctly configured.\n- If the user doesn't open your *iOS* app for long periods of time, *iOS* will **stop firing events**.\n\n### Android\n- The Android plugin provides a __*Headless*__ mechanism allowing you to continue handling events even after app-termination (see [Receiving Events After App Termination](#receiving-events-after-app-termination-1))\n\n-------------------------------------------------------------\n\n# Contents\n- ### :books: [API Documentation](https://transistorsoft.github.io/capacitor-background-fetch/)\n- ### [Installing the Plugin](#installing-the-plugin)\n- ### [Setup Guides](#setup-guides)\n - [iOS Setup](help/INSTALL-IOS.md)\n - [Android Setup](help/INSTALL-ANDROID.md)\n- ### [Example](#example)\n- ### [Receiving events after app termination](#receiving-events-after-app-termination-1)\n- ### [Debugging](#debugging)\n\n-------------------------------------------------------------\n\n## Installing the plugin\n\n### With `yarn`\n\n```bash\n$ yarn add @transistorsoft/capacitor-background-fetch\n$ npx cap sync\n```\n\n### With `npm`\n```bash\n$ npm install --save @transistorsoft/capacitor-background-fetch\n$ npx cap sync\n```\n\n- Proceed to [Required Setup Guides](#setup-guides)\n\n## Setup Guides\n\n### iOS Setup\n\n- [Required Setup](help/INSTALL-IOS.md)\n\n### Android Setup\n\n- [Required Setup](help/INSTALL-ANDROID.md)\n\n## Example ##\n\n:information_source: This repo contains its own *Example App*. See [`/example`](./example/README.md)\n\n#### Angular Example:\n\n- See API Docs [__`BackgroundFetch.configure`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#configure)\n\n```javascript\nimport { Component } from '@angular/core';\n\nimport {BackgroundFetch} from '@transistorsoft/capacitor-background-fetch';\n\n@Component({\n selector: 'app-home',\n templateUrl: 'home.page.html',\n styleUrls: ['home.page.scss'],\n})\nexport class HomePage {\n constructor() {}\n\n // Initialize in ngAfterContentInit\n // [WARNING] DO NOT use ionViewWillEnter, as that method won't run when app is launched in background.\n ngAfterContentInit() {\n this.initBackgroundFetch();\n }\n\n async initBackgroundFetch() {\n const status = await BackgroundFetch.configure({\n minimumFetchInterval: 15\n }, async (taskId) => {\n console.log('[BackgroundFetch] EVENT:', taskId);\n // Perform your work in an awaited Promise\n const result = await this.performYourWorkHere();\n console.log('[BackgroundFetch] work complete:', result);\n // [REQUIRED] Signal to the OS that your work is complete.\n BackgroundFetch.finish(taskId);\n }, async (taskId) => {\n // The OS has signalled that your remaining background-time has expired.\n // You must immediately complete your work and signal #finish.\n console.log('[BackgroundFetch] TIMEOUT:', taskId);\n // [REQUIRED] Signal to the OS that your work is complete.\n BackgroundFetch.finish(taskId);\n });\n\n // Checking BackgroundFetch status:\n if (status !== BackgroundFetch.STATUS_AVAILABLE) {\n // Uh-oh: we have a problem:\n if (status === BackgroundFetch.STATUS_DENIED) {\n alert('The user explicitly disabled background behavior for this app or for the whole system.');\n } else if (status === BackgroundFetch.STATUS_RESTRICTED) {\n alert('Background updates are unavailable and the user cannot enable them again.')\n }\n }\n }\n\n async performYourWorkHere() {\n return new Promise((resolve, reject) => {\n setTimeout(() => {\n resolve(true);\n }, 5000);\n });\n }\n}\n```\n\n## Receiving Events After App Termination\n\n- Only Android is able to continue receiving events after app termination. See API Docs [__`enableHeadless`__](https://transistorsoft.github.io/capacitor-background-fetch/interfaces/backgroundfetchconfig.html#enableheadless).\n- For iOS, there is __NO SUCH THING__ as [__`stopOnTerminate: false`__](https://transistorsoft.github.io/capacitor-background-fetch/interfaces/backgroundfetchconfig.html#stoponterminate). When an iOS app is terminated, the OS will **no longer fire events**.\n\n## Executing Custom Tasks\n\nIn addition to the default background-fetch task defined by [__`BackgroundFetch.configure`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#configure), you may also execute your own arbitrary \"oneshot\" or periodic tasks (iOS requires additional [Setup Instructions](help/INSTALL-IOS.md#configure-infoplist-new-ios-13)). See API Docs [__`BackgroundFetch.scheduleTask`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#scheduletask). However, all events will be fired into the Callback provided to [__`BackgroundFetch.configure`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#configure).\n\n### ⚠️ iOS:\n- [__`BackgroundFetch.scheduleTask`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#scheduletask) on *iOS* seems only to run when the device is plugged into power.\n- [__`BackgroundFetch.scheduleTask`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#scheduletask) on *iOS* are designed for *low-priority* tasks, such as purging cache files — they tend to be **unreliable for mission-critical tasks**. [__`BackgroundFetch.scheduleTask`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#scheduletask) will *never* run as frequently as you want.\n- The default `fetch` event is much more reliable and fires far more often.\n- [__`BackgroundFetch.scheduleTask`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#scheduletask) on *iOS* stop when the *user* terminates the app. There is no such thing as [__`stopOnTerminate: false`__](https://transistorsoft.github.io/capacitor-background-fetch/interfaces/backgroundfetchconfig.html#stoponterminate) for *iOS*.\n\n```javascript\n// Step 1: Configure BackgroundFetch as usual.\nlet status = await BackgroundFetch.configure({\n minimumFetchInterval: 15\n}, async (taskId) => { // <-- Event callback\n // This is the fetch-event callback.\n console.log(\"[BackgroundFetch] taskId: \", taskId);\n\n // Use a switch statement to route task-handling.\n switch (taskId) {\n case 'com.foo.customtask':\n print(\"Received custom task\");\n break;\n default:\n print(\"Default fetch task\");\n }\n // Finish, providing received taskId.\n BackgroundFetch.finish(taskId);\n}, async (taskId) => { // <-- Task timeout callback\n // This task has exceeded its allowed running-time.\n // You must stop what you're doing and immediately .finish(taskId)\n BackgroundFetch.finish(taskId);\n});\n\n// Step 2: Schedule a custom \"oneshot\" task \"com.foo.customtask\" to execute 5000ms from now.\nBackgroundFetch.scheduleTask({\n taskId: \"com.foo.customtask\",\n forceAlarmManager: true,\n delay: 5000 // <-- milliseconds\n});\n```\n\n\n## Debugging\n\n### iOS Simulated Events\n\n#### :new: `BGTaskScheduler` API for iOS 13+\n\n- :warning: At the time of writing, the new task simulator does not yet work in Simulator; Only real devices. Use [Old BackgroundFetch API](#old-backgroundfetch-api) so simulate events in Simulator.\n- See Apple docs [Starting and Terminating Tasks During Development](https://developer.apple.com/documentation/backgroundtasks/starting_and_terminating_tasks_during_development?language=objc)\n- After running your app in XCode, Click the `[||]` button to initiate a *Breakpoint*.\n- In the console `(lldb)`, paste the following command (**Note:** use cursor up/down keys to cycle through previously run commands):\n```obj-c\ne -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@\"com.transistorsoft.fetch\"]\n```\n- Click the `[ > ]` button to continue. The task will execute and the Callback function provided to [__`BackgroundFetch.configure`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#configure) will receive the event.\n\n\n![](https://dl.dropboxusercontent.com/s/zr7w3g8ivf71u32/ios-simulate-bgtask-pause.png?dl=1)\n\n![](https://dl.dropboxusercontent.com/s/87c9uctr1ka3s1e/ios-simulate-bgtask-paste.png?dl=1)\n\n![](https://dl.dropboxusercontent.com/s/bsv0avap5c2h7ed/ios-simulate-bgtask-play.png?dl=1)\n\n#### Simulating task-timeout events\n\n- Only the new `BGTaskScheduler` api supports *simulated* task-timeout events. To simulate a task-timeout, your `fetchCallback` must not call [__`BackgroundFetch.finish(taskId)`__](https://transistorsoft.github.io/capacitor-background-fetch/classes/backgroundfetch.html#finish):\n\n```javascript\nconst status = await BackgroundFetch.configure({\n minimumFetchInterval: 15\n}, async (taskId) => { // <-- Event callback.\n // This is the task callback.\n console.log(\"[BackgroundFetch] taskId\", taskId);\n //BackgroundFetch.finish(taskId); // <-- Disable .finish(taskId) when simulating an iOS task timeout\n}, async (taskId) => { // <-- Event timeout callback\n // This task has exceeded its allowed running-time.\n // You must stop what you're doing and immediately .finish(taskId)\n console.log(\"[BackgroundFetch] TIMEOUT taskId:\", taskId);\n BackgroundFetch.finish(taskId);\n});\n```\n\n- Now simulate an iOS task timeout as follows, in the same manner as simulating an event above:\n```obj-c\ne -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateExpirationForTaskWithIdentifier:@\"com.transistorsoft.fetch\"]\n```\n\n#### Old `BackgroundFetch` API\n- Simulate background fetch events in XCode using **`Debug->Simulate Background Fetch`**\n- iOS can take some hours or even days to start a consistently scheduling background-fetch events since iOS schedules fetch events based upon the user's patterns of activity. If *Simulate Background Fetch* works, your can be **sure** that everything is working fine. You just need to wait.\n\n### Android Simulated Events\n\n- Observe plugin logs in `$ adb logcat`:\n\n```bash\n$ adb logcat *:S TSBackgroundFetch:V Capacitor/Console:V Capacitor/Plugin:V\n```\n\n- Simulate a background-fetch event on a device (insert *<your.application.id>*) (only works for sdk `21+`:\n```bash\n$ adb shell cmd jobscheduler run -f 999\n```\n- For devices with sdk `<21`, simulate a \"Headless JS\" event with (insert *<your.application.id>*)\n```bash\n$ adb shell am broadcast -a .event.BACKGROUND_FETCH\n\n```\n\n## Licence\n\nThe MIT License\n\nCopyright (c) 2013 Chris Scott, Transistor Software \nhttp://transistorsoft.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "name": "@transistorsoft/capacitor-background-fetch@0.0.6", + "licenses": "MIT", + "repository": "https://github.com/transistorsoft/capacitor-background-fetch", + "publisher": "Transistor Software", + "email": "chris@transistorsoft.com" + }, + { + "licenseText": "Copyright 2017 The Barlow Project Authors (https://github.com/jpt/barlow)\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttp://scripts.sil.org/OFL\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n", + "name": "barlow", + "repository": "https://github.com/jpt/barlow", + "licenses": "OFL-1.1", + "publisher": "JPT" + }, + { + "licenseText": "MIT License\n\nCopyright (c) 2019 martinkasa\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", + "name": "capacitor-secure-storage-plugin@0.7.0", + "licenses": "MIT", + "repository": "https://github.com/martinkasa/capacitor-secure-storage-plugin", + "publisher": "martinkasa" + }, + { + "licenseText": "# PhoneGap Calendar plugin\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![TotalDownloads][total-downloads-image]][npm-url]\n[![Twitter Follow][twitter-image]][twitter-url]\n\n[npm-image]:http://img.shields.io/npm/v/cordova-plugin-calendar.svg\n[npm-url]:https://npmjs.org/package/cordova-plugin-calendar\n[downloads-image]:http://img.shields.io/npm/dm/cordova-plugin-calendar.svg\n[total-downloads-image]:http://img.shields.io/npm/dt/cordova-plugin-calendar.svg?label=total%20downloads\n[twitter-image]:https://img.shields.io/twitter/follow/eddyverbruggen.svg?style=social&label=Follow%20me\n[twitter-url]:https://twitter.com/eddyverbruggen\n\n\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=eddyverbruggen%40gmail%2ecom&lc=US&item_name=cordova%2dplugin%2dcalendar¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)\nEvery now and then kind folks ask me how they can give me all their money.\nOf course I'm happy to receive any amount but I'm just as happy if you simply 'star' this project.\n\n\n \n \n \n \n
\"MarketplaceFor a quick demo app and easy code samples, check out the plugin page at the Verified Plugins Marketplace: http://plugins.telerik.com/plugin/calendar
\n\n1. [Description](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#1-description)\n2. [Installation](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#2-installation)\n\t2. [Automatically](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#automatically)\n\t2. [Manually](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#manually)\n\t2. [PhoneGap Build](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#phonegap-build)\n3. [Usage](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#3-usage)\n4. [Promises](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#4-promises)\n5. [Credits](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#5-credits)\n6. [License](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#6-license)\n\n## 1. Description\n\nThis plugin allows you to add events to the Calendar of the mobile device.\n\n* Works with PhoneGap >= 3.0.\n* For PhoneGap 2.x, see [the pre-3.0 branch](https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/tree/pre-3.0).\n* Compatible with [Cordova Plugman](https://github.com/apache/cordova-plugman).\n* [Officially supported by PhoneGap Build](https://build.phonegap.com/plugins).\n\n### iOS specifics\n* Supported methods: `find`, `create`, `modify`, `delete`, ..\n* All methods work without showing the native calendar. Your app never loses control.\n* Tested on iOS 6+.\n* On iOS 10+ you need to provide a reason to the user for Calendar access. This plugin adds an empty `NSCalendarsUsageDescription` key to the /platforms/ios/*-Info.plist file which you can override with your custom string. To do so, pass the following variable when installing the plugin:\n\n```\ncordova plugin add cordova-plugin-calendar --variable CALENDAR_USAGE_DESCRIPTION=\"This app uses your calendar\"\n```\n\n### Android specifics\n* Supported methods on Android 4: `find`, `create` (silent and interactive), `delete`, ..\n* Supported methods on Android 2 and 3: `create` interactive only: the user is presented a prefilled Calendar event. Pressing the hardware back button will give control back to your app.\n\n### Windows 10 Mobile\n* Supported methods: `createEvent`, `createEventWithOptions`, `createEventInteractively`, `createEventInteractivelyWithOptions` only interactively\n\n## 2. Installation\n\n### Automatically\nLatest release on npm:\n```\n$ cordova plugin add cordova-plugin-calendar\n```\n\nBleeding edge, from github:\n```\n$ cordova plugin add https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git\n```\n\n### Manually\n\n#### iOS\n\n1\\. Add the following xml to your `config.xml`:\n```xml\n\n\n\t\n\n```\n\n2\\. Grab a copy of Calendar.js, add it to your project and reference it in `index.html`:\n```html\n\n```\n\n3\\. Download the source files for iOS and copy them to your project.\n\nCopy `Calendar.h` and `Calendar.m` to `platforms/ios//Plugins`\n\n4\\. Click your project in XCode, Build Phases, Link Binary With Libraries, search for and add `EventKit.framework` and `EventKitUI.framework`.\n\n#### Android\n\n1\\. Add the following xml to your `config.xml`:\n```xml\n\n\n \n\n```\n\n2\\. Grab a copy of Calendar.js, add it to your project and reference it in `index.html`:\n```html\n\n```\n\n3\\. Download the source files for Android and copy them to your project.\n\nAndroid: Copy `Calendar.java` to `platforms/android/src/nl/xservices/plugins` (create the folders/packages).\nThen create a package called `accessor` and copy other 3 java Classes into it.\n\n4\\. Add these permissions to your AndroidManifest.xml:\n```xml\n\n\n```\n\nNote that if you don't want your app to ask for these permissions, you can leave them out, but you'll only be able to\nuse one function of this plugin: `createEventInteractively`.\n\n\n### PhoneGap Build\n\nAdd the following xml to your `config.xml` to always use the latest npm version of this plugin:\n```xml\n\n```\n\nAlso, make sure you're building with Gradle by adding this to your `config.xml` file:\n```xml\n\n```\n\n## 3. Usage\n\nThe table gives an overview of basic operation compatibility:\n\nOperation | Comment | iOS | Android | Windows |\n----------------------------------- | ----------- | --- | ------- | ------- |\ncreateCalendar | | yes | yes | |\ndeleteCalendar | | yes | yes | |\ncreateEvent | silent | yes | yes * | yes ** |\ncreateEventWithOptions | silent | yes | yes * | yes ** |\ncreateEventInteractively | interactive | yes | yes | yes ** |\ncreateEventInteractivelyWithOptions | interactive | yes | yes | yes ** |\nfindEvent | | yes | yes | |\nfindEventWithOptions | | yes | yes | |\nlistEventsInRange | | yes | yes | |\nlistCalendars | | yes | yes | |\nfindAllEventsInNamedCalendars | | yes | | |\nmodifyEvent | | yes | | |\nmodifyEventWithOptions | | yes | | |\ndeleteEvent | | yes | yes | |\ndeleteEventFromNamedCalendar | | yes | | |\ndeleteEventById | | yes | yes | |\nopenCalendar | | yes | yes | |\n\n* \\* on Android < 4 dialog is shown\n* \\** only interactively on windows mobile\n\nBasic operations, you'll want to copy-paste this for testing purposes:\n```js\n // prep some variables\n var startDate = new Date(2015,2,15,18,30,0,0,0); // beware: month 0 = january, 11 = december\n var endDate = new Date(2015,2,15,19,30,0,0,0);\n var title = \"My nice event\";\n var eventLocation = \"Home\";\n var notes = \"Some notes about this event.\";\n var success = function(message) { alert(\"Success: \" + JSON.stringify(message)); };\n var error = function(message) { alert(\"Error: \" + message); };\n\n // create a calendar (iOS only for now)\n window.plugins.calendar.createCalendar(calendarName,success,error);\n // if you want to create a calendar with a specific color, pass in a JS object like this:\n var createCalOptions = window.plugins.calendar.getCreateCalendarOptions();\n createCalOptions.calendarName = \"My Cal Name\";\n createCalOptions.calendarColor = \"#FF0000\"; // an optional hex color (with the # char), default is null, so the OS picks a color\n window.plugins.calendar.createCalendar(createCalOptions,success,error);\n\n // delete a calendar\n window.plugins.calendar.deleteCalendar(calendarName,success,error);\n\n // create an event silently (on Android < 4 an interactive dialog is shown)\n window.plugins.calendar.createEvent(title,eventLocation,notes,startDate,endDate,success,error);\n\n // create an event silently (on Android < 4 an interactive dialog is shown which doesn't use this options) with options:\n var calOptions = window.plugins.calendar.getCalendarOptions(); // grab the defaults\n calOptions.firstReminderMinutes = 120; // default is 60, pass in null for no reminder (alarm)\n calOptions.secondReminderMinutes = 5;\n\n // Added these options in version 4.2.4:\n calOptions.recurrence = \"monthly\"; // supported are: daily, weekly, monthly, yearly\n calOptions.recurrenceEndDate = new Date(2016,10,1,0,0,0,0,0); // leave null to add events into infinity and beyond\n calOptions.calendarName = \"MyCreatedCalendar\"; // iOS only\n calOptions.calendarId = 1; // Android only, use id obtained from listCalendars() call which is described below. This will be ignored on iOS in favor of calendarName and vice versa. Default: 1.\n\n // This is new since 4.2.7:\n calOptions.recurrenceInterval = 2; // once every 2 months in this case, default: 1\n\n // And the URL can be passed since 4.3.2 (will be appended to the notes on Android as there doesn't seem to be a sep field)\n calOptions.url = \"https://www.google.com\";\n\n // on iOS the success handler receives the event ID (since 4.3.6)\n window.plugins.calendar.createEventWithOptions(title,eventLocation,notes,startDate,endDate,calOptions,success,error);\n\n // create an event interactively\n window.plugins.calendar.createEventInteractively(title,eventLocation,notes,startDate,endDate,success,error);\n\n // create an event interactively with the calOptions object as shown above\n window.plugins.calendar.createEventInteractivelyWithOptions(title,eventLocation,notes,startDate,endDate,calOptions,success,error);\n\n // create an event in a named calendar (iOS only, deprecated, use createEventWithOptions instead)\n window.plugins.calendar.createEventInNamedCalendar(title,eventLocation,notes,startDate,endDate,calendarName,success,error);\n\n // find events (on iOS this includes a list of attendees (if any))\n window.plugins.calendar.findEvent(title,eventLocation,notes,startDate,endDate,success,error);\n\n // if you need to find events in a specific calendar, use this one. All options are currently ignored when finding events, except for the calendarName.\n var calOptions = window.plugins.calendar.getCalendarOptions();\n calOptions.calendarName = \"MyCreatedCalendar\"; // iOS only\n calOptions.id = \"D9B1D85E-1182-458D-B110-4425F17819F1\"; // if not found, we try matching against title, etc\n window.plugins.calendar.findEventWithOptions(title,eventLocation,notes,startDate,endDate,calOptions,success,error);\n\n // list all events in a date range (only supported on Android for now)\n window.plugins.calendar.listEventsInRange(startDate,endDate,success,error);\n\n // list all calendar names - returns this JS Object to the success callback: [{\"id\":\"1\", \"name\":\"first\"}, ..]\n window.plugins.calendar.listCalendars(success,error);\n\n // find all _future_ events in the first calendar with the specified name (iOS only for now, this includes a list of attendees (if any))\n window.plugins.calendar.findAllEventsInNamedCalendar(calendarName,success,error);\n\n // change an event (iOS only for now)\n var newTitle = \"New title!\";\n window.plugins.calendar.modifyEvent(title,eventLocation,notes,startDate,endDate,newTitle,eventLocation,notes,startDate,endDate,success,error);\n\n // or to add a reminder, make it recurring, change the calendar, or the url, use this one:\n var filterOptions = window.plugins.calendar.getCalendarOptions(); // or {} or null for the defaults\n filterOptions.calendarName = \"Bla\"; // iOS only\n filterOptions.id = \"D9B1D85E-1182-458D-B110-4425F17819F1\"; // iOS only, get it from createEventWithOptions (if not found, we try matching against title, etc)\n var newOptions = window.plugins.calendar.getCalendarOptions();\n newOptions.calendaName = \"New Bla\"; // make sure this calendar exists before moving the event to it\n // not passing in reminders will wipe them from the event. To wipe the default first reminder (60), set it to null.\n newOptions.firstReminderMinutes = 120;\n window.plugins.calendar.modifyEventWithOptions(title,eventLocation,notes,startDate,endDate,newTitle,eventLocation,notes,startDate,endDate,filterOptions,newOptions,success,error);\n\n // delete an event (you can pass nulls for irrelevant parameters). The dates are mandatory and represent a date range to delete events in.\n // note that on iOS there is a bug where the timespan must not be larger than 4 years, see issue 102 for details.. call this method multiple times if need be\n // since 4.3.0 you can match events starting with a prefix title, so if your event title is 'My app - cool event' then 'My app -' will match.\n window.plugins.calendar.deleteEvent(newTitle,eventLocation,notes,startDate,endDate,success,error);\n\n // delete an event, as above, but for a specific calendar (iOS only)\n window.plugins.calendar.deleteEventFromNamedCalendar(newTitle,eventLocation,notes,startDate,endDate,calendarName,success,error);\n\n // delete an event by id. If the event has recurring instances, all will be deleted unless `fromDate` is specified, which will delete from that date onward. (iOS and android only)\n window.plugins.calendar.deleteEventById(id,fromDate,success,error);\n\n // open the calendar app (added in 4.2.8):\n // - open it at 'today'\n window.plugins.calendar.openCalendar();\n // - open at a specific date, here today + 3 days\n var d = new Date(new Date().getTime() + 3*24*60*60*1000);\n window.plugins.calendar.openCalendar(d, success, error); // callbacks are optional\n```\n\nCreating an all day event:\n```js\n // set the startdate to midnight and set the enddate to midnight the next day\n var startDate = new Date(2014,2,15,0,0,0,0,0);\n var endDate = new Date(2014,2,16,0,0,0,0,0);\n```\n\nCreating an event for 3 full days\n```js\n // set the startdate to midnight and set the enddate to midnight 3 days later\n var startDate = new Date(2014,2,24,0,0,0,0,0);\n var endDate = new Date(2014,2,27,0,0,0,0,0);\n```\n\nExample Response IOS getCalendarOptions\n```js\n{\ncalendarId: null,\ncalendarName: \"calendar\",\nfirstReminderMinutes: 60,\nrecurrence: null,\nrecurrenceEndDate: null,\nrecurrenceInterval: 1,\nsecondReminderMinutes: null,\nurl: null\n}\n```\n\nExmaple Response IOS Calendars\n```js\n{\nid: \"258B0D99-394C-4189-9250-9488F75B399D\",\nname: \"standard calendar\",\ntype: \"Local\"\n}\n```\n\nExmaple Response IOS Event\n```js\n{\ncalendar: \"Kalender\",\nendDate: \"2016-06-10 23:59:59\",\nid: \"0F9990EB-05A7-40DB-B082-424A85B59F90\",\nlastModifiedDate: \"2016-06-13 09:14:02\",\nlocation: \"\",\nmessage: \"my description\",\nstartDate: \"2016-06-10 00:00:00\",\ntitle: \"myEvent\"\n}\n```\n\n### Android 6 (M) Permissions\nOn Android 6 you need to request permission to use the Calendar at runtime when targeting API level 23+.\nEven if the `uses-permission` tags for the Calendar are present in `AndroidManifest.xml`.\n\nSince plugin version 4.5.0 we transparently handle this for you in a just-in-time manner.\nSo if you call `createEvent` we will pop up the permission dialog. After the user granted access\nto his calendar the event will be created.\n\nYou can also manually manage and check permissions if that's your thing.\nNote that the hasPermission functions will return true when:\n\n- You're running this on iOS, or\n- You're targeting an API level lower than 23, or\n- You're using Android < 6, or\n- You've already granted permission.\n\n```js\n // again, this is no longer needed with plugin version 4.5.0 and up\n function hasReadWritePermission() {\n window.plugins.calendar.hasReadWritePermission(\n function(result) {\n // if this is 'false' you probably want to call 'requestReadWritePermission' now\n alert(result);\n }\n )\n }\n\n function requestReadWritePermission() {\n // no callbacks required as this opens a popup which returns async\n window.plugins.calendar.requestReadWritePermission();\n }\n```\n\nThere are similar methods for Read and Write access only (`hasReadPermission`, etc),\nalthough it looks like that if you request read permission you can write as well,\nso you might as well stick with the example above.\n\nNote that backward compatibility was added by checking for read or write permission in the relevant plugins functions.\nIf permission is needed the plugin will now show the permission request popup.\nThe user will then need to allow access and invoke the same method again after doing so.\n\n## 4. Promises\nIf you like to use promises instead of callbacks, or struggle to create a lot of\nevents asynchronously with this plugin then I encourage you to take a look at\n[this awesome wrapper](https://github.com/poetic-labs/native-calender-api) for\nthis plugin. Kudos to [John Rodney](https://github.com/JohnRodney) for this piece of art!\n\n## 5. Credits\n\nThis plugin was enhanced for Plugman / PhoneGap Build by [Eddy Verbruggen](http://www.x-services.nl). I fixed some issues in the native code (mainly for iOS) and changed the JS-Native functions a little in order to make a universal JS API for both platforms.\n* Inspired by [this nice blog of Devgirl](http://devgirl.org/2013/07/17/tutorial-how-to-write-a-phonegap-plugin-for-android/).\n* Credits for the original iOS code go to [Felix Montanez](https://github.com/felixactv8/Phonegap-Calendar-Plugin-ios).\n* Credits for the original Android code go to [Ten Forward Consulting](https://github.com/tenforwardconsulting/Phonegap-Calendar-Plugin-android) and [twistandshout](https://github.com/twistandshout/phonegap-calendar-plugin).\n* Special thanks to [four32c.com](http://four32c.com) for sponsoring part of the implementation, while keeping the plugin opensource.\n\n## 6. License\n\n[The MIT License (MIT)](http://www.opensource.org/licenses/mit-license.html)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "name": "cordova-plugin-calendar@5.1.6", + "licenses": "MIT", + "repository": "https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin", + "publisher": "Eddy Verbruggen", + "email": "eddyverbruggen@gmail.com", + "url": "https://github.com/EddyVerbruggen" + }, + { + "licenseText": "The MIT License (MIT)\r\n\r\nCopyright (c) 2013 pwlin - pwlin05@gmail.com\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of\r\nthis software and associated documentation files (the \"Software\"), to deal in\r\nthe Software without restriction, including without limitation the rights to\r\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r\nthe Software, and to permit persons to whom the Software is furnished to do so,\r\nsubject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n", + "name": "cordova-plugin-file-opener2@3.0.5", + "licenses": "MIT", + "repository": "https://github.com/pwlin/cordova-plugin-file-opener2", + "publisher": "pwlin05@gmail.com" + }, + { + "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2012 James Halliday, Josh Duff, and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "name": "deepmerge@4.2.2", + "licenses": "MIT", + "repository": "https://github.com/TehShrike/deepmerge" + }, + { + "licenseText": "Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n", + "name": "form-data@4.0.0", + "licenses": "MIT", + "repository": "https://github.com/form-data/form-data", + "publisher": "Felix Geisendörfer", + "email": "felix@debuggable.com", + "url": "http://debuggable.com/" + }, + { + "licenseText": "Copyright 2016 Casey Thomas\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "name": "geojson@0.5.0", + "licenses": "MIT", + "repository": "https://github.com/caseycesari/geojson.js", + "publisher": "Casey Cesari" + }, + { + "licenseText": "MIT License\r\n\r\nCopyright (c) 2019 Wi3land\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n", + "name": "ionic-appauth@0.8.5", + "licenses": "MIT", + "repository": "https://github.com/wi3land/ionic-appauth", + "publisher": "wi3land" + }, + { + "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2011-2019 Stefan Goessner, Subbu Allamaraju, Mike Brevoort,\nRobert Krahn, Brett Zamir, Richard Schneider\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", + "name": "jsonpath-plus@6.0.1", + "licenses": "MIT", + "repository": "https://github.com/s3u/JSONPath", + "publisher": "Stefan Goessner" + }, + { + "licenseText": "Leaflet.markercluster\n=====================\n\nProvides Beautiful Animated Marker Clustering functionality for [Leaflet](http://leafletjs.com), a JS library for interactive maps.\n\n*Requires Leaflet 1.0.0*\n\n![cluster map example](example/map.png)\n\nFor a Leaflet 0.7 compatible version, [use the leaflet-0.7 branch](https://github.com/Leaflet/Leaflet.markercluster/tree/leaflet-0.7)
\nFor a Leaflet 0.5 compatible version, [Download b128e950](https://github.com/Leaflet/Leaflet.markercluster/archive/b128e950d8f5d7da5b60bd0aa9a88f6d3dd17c98.zip)
\nFor a Leaflet 0.4 compatible version, [Download the 0.2 release](https://github.com/Leaflet/Leaflet.markercluster/archive/0.2.zip)\n\n\n## Table of Contents\n * [Using the plugin](#using-the-plugin)\n * [Building, testing and linting scripts](#building-testing-and-linting-scripts)\n * [Examples](#examples)\n * [Usage](#usage)\n * [Options](#options)\n * [Defaults](#defaults)\n * [Customising the Clustered Markers](#customising-the-clustered-markers)\n * [Customising Spiderfy shape positions](#customising-spiderfy-shape-positions)\n * [All Options](#all-options)\n * [Enabled by default (boolean options)](#enabled-by-default-boolean-options)\n * [Other options](#other-options)\n * [Chunked addLayers options](#chunked-addlayers-options)\n * [Events](#events)\n * [Additional MarkerClusterGroup Events](#additional-markerclustergroup-events)\n * [Methods](#methods)\n * [Group methods](#group-methods)\n * [Adding and removing Markers](#adding-and-removing-markers)\n * [Bulk adding and removing Markers](#bulk-adding-and-removing-markers)\n * [Getting the visible parent of a marker](#getting-the-visible-parent-of-a-marker)\n * [Refreshing the clusters icon](#refreshing-the-clusters-icon)\n * [Other Group Methods](#other-group-methods)\n * [Clusters methods](#clusters-methods)\n * [Getting the bounds of a cluster](#getting-the-bounds-of-a-cluster)\n * [Zooming to the bounds of a cluster](#zooming-to-the-bounds-of-a-cluster)\n * [Other clusters methods](#other-clusters-methods)\n * [Handling LOTS of markers](#handling-lots-of-markers)\n * [License](#license)\n * [Sub-plugins](#sub-plugins)\n\n\n## Using the plugin\nInclude the plugin CSS and JS files on your page after Leaflet files, using your method of choice:\n* [Download the `v1.4.1` release](https://github.com/Leaflet/Leaflet.markercluster/archive/v1.4.1.zip)\n* Use unpkg CDN: `https://unpkg.com/leaflet.markercluster@1.4.1/dist/`\n* Install with npm: `npm install leaflet.markercluster`\n\nIn each case, use files in the `dist` folder:\n* `MarkerCluster.css`\n* `MarkerCluster.Default.css` (not needed if you use your own `iconCreateFunction` instead of the default one)\n* `leaflet.markercluster.js` (or `leaflet.markercluster-src.js` for the non-minified version)\n\n### Building, testing and linting scripts\nInstall jake `npm install -g jake` then run `npm install`\n* To check the code for errors and build Leaflet from source, run `jake`.\n* To run the tests, run `jake test`.\n\n### Examples\nSee the included examples for usage.\n\nThe [realworld example](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.388.html) is a good place to start, it uses all of the defaults of the clusterer.\nOr check out the [custom example](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-custom.html) for how to customise the behaviour and appearance of the clusterer\n\n### Usage\nCreate a new MarkerClusterGroup, add your markers to it, then add it to the map\n\n```javascript\nvar markers = L.markerClusterGroup();\nmarkers.addLayer(L.marker(getRandomLatLng(map)));\n... Add more layers ...\nmap.addLayer(markers);\n```\n\n## Options\n### Defaults\nBy default the Clusterer enables some nice defaults for you:\n* **showCoverageOnHover**: When you mouse over a cluster it shows the bounds of its markers.\n* **zoomToBoundsOnClick**: When you click a cluster we zoom to its bounds.\n* **spiderfyOnMaxZoom**: When you click a cluster at the bottom zoom level we spiderfy it so you can see all of its markers. (*Note: the spiderfy occurs at the current zoom level if all items within the cluster are still clustered at the maximum zoom level or at zoom specified by `disableClusteringAtZoom` option*)\n* **removeOutsideVisibleBounds**: Clusters and markers too far from the viewport are removed from the map for performance.\n* **spiderLegPolylineOptions**: Allows you to specify [PolylineOptions](http://leafletjs.com/reference.html#polyline-options) to style spider legs. By default, they are `{ weight: 1.5, color: '#222', opacity: 0.5 }`.\n\nYou can disable any of these as you want in the options when you create the MarkerClusterGroup:\n```javascript\nvar markers = L.markerClusterGroup({\n\tspiderfyOnMaxZoom: false,\n\tshowCoverageOnHover: false,\n\tzoomToBoundsOnClick: false\n});\n```\n\n### Customising the Clustered Markers\nAs an option to MarkerClusterGroup you can provide your own function for creating the Icon for the clustered markers.\nThe default implementation changes color at bounds of 10 and 100, but more advanced uses may require customising this.\nYou do not need to include the .Default css if you go this way.\nYou are passed a MarkerCluster object, you'll probably want to use `getChildCount()` or `getAllChildMarkers()` to work out the icon to show.\n\n```javascript\nvar markers = L.markerClusterGroup({\n\ticonCreateFunction: function(cluster) {\n\t\treturn L.divIcon({ html: '' + cluster.getChildCount() + '' });\n\t}\n});\n```\n\nCheck out the [custom example](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-custom.html) for an example of this.\n\nIf you need to update the clusters icon (e.g. they are based on markers real-time data), use the method [refreshClusters()](#refreshing-the-clusters-icon).\n\n### Customising Spiderfy shape positions\nYou can also provide a custom function as an option to MarkerClusterGroup to override the spiderfy shape positions. The example below implements linear spiderfy positions which overrides the default circular shape.\n\n```javascript\nvar markers = L.markerClusterGroup({\n\tspiderfyShapePositions: function(count, centerPt) {\n var distanceFromCenter = 35,\n markerDistance = 45,\n lineLength = markerDistance * (count - 1),\n lineStart = centerPt.y - lineLength / 2,\n res = [],\n i;\n\n res.length = count;\n\n for (i = count - 1; i >= 0; i--) {\n res[i] = new Point(centerPt.x + distanceFromCenter, lineStart + markerDistance * i);\n }\n\n return res;\n }\n});\n```\n\n### All Options\n#### Enabled by default (boolean options)\n* **showCoverageOnHover**: When you mouse over a cluster it shows the bounds of its markers.\n* **zoomToBoundsOnClick**: When you click a cluster we zoom to its bounds.\n* **spiderfyOnMaxZoom**: When you click a cluster at the bottom zoom level we spiderfy it so you can see all of its markers. (*Note: the spiderfy occurs at the current zoom level if all items within the cluster are still clustered at the maximum zoom level or at zoom specified by `disableClusteringAtZoom` option*).\n* **removeOutsideVisibleBounds**: Clusters and markers too far from the viewport are removed from the map for performance.\n* **animate**: Smoothly split / merge cluster children when zooming and spiderfying. If `L.DomUtil.TRANSITION` is false, this option has no effect (no animation is possible).\n\n#### Other options\n* **animateAddingMarkers**: If set to true (and `animate` option is also true) then adding individual markers to the MarkerClusterGroup after it has been added to the map will add the marker and animate it into the cluster. Defaults to false as this gives better performance when bulk adding markers. addLayers does not support this, only addLayer with individual Markers.\n* **disableClusteringAtZoom**: If set, at this zoom level and below, markers will not be clustered. This defaults to disabled. [See Example](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld-maxzoom.388.html). Note: you may be interested in disabling `spiderfyOnMaxZoom` option when using `disableClusteringAtZoom`.\n* **maxClusterRadius**: The maximum radius that a cluster will cover from the central marker (in pixels). Default 80. Decreasing will make more, smaller clusters. You can also use a function that accepts the current map zoom and returns the maximum cluster radius in pixels.\n* **polygonOptions**: Options to pass when creating the L.Polygon(points, options) to show the bounds of a cluster. Defaults to empty, which lets Leaflet use the [default Path options](http://leafletjs.com/reference.html#path-options).\n* **singleMarkerMode**: If set to true, overrides the icon for all added markers to make them appear as a 1 size cluster. Note: the markers are not replaced by cluster objects, only their icon is replaced. Hence they still react to normal events, and option `disableClusteringAtZoom` does not restore their previous icon (see [#391](https://github.com/Leaflet/Leaflet.markercluster/issues/391)).\n* **spiderLegPolylineOptions**: Allows you to specify [PolylineOptions](http://leafletjs.com/reference.html#polyline-options) to style spider legs. By default, they are `{ weight: 1.5, color: '#222', opacity: 0.5 }`.\n* **spiderfyDistanceMultiplier**: Increase from 1 to increase the distance away from the center that spiderfied markers are placed. Use if you are using big marker icons (Default: 1).\n* **iconCreateFunction**: Function used to create the cluster icon. See [the default implementation](https://github.com/Leaflet/Leaflet.markercluster/blob/15ed12654acdc54a4521789c498e4603fe4bf781/src/MarkerClusterGroup.js#L542) or the [custom example](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-custom.html).\n* **spiderfyShapePositions**: Function used to override spiderfy default shape positions. \n* **clusterPane**: Map pane where the cluster icons will be added. Defaults to L.Marker's default (currently 'markerPane'). [See the pane example](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-pane.html).\n\n#### Chunked addLayers options\nOptions for the [addLayers](#bulk-adding-and-removing-markers) method. See [#357](https://github.com/Leaflet/Leaflet.markercluster/issues/357) for explanation on how the chunking works.\n* **chunkedLoading**: Boolean to split the addLayer**s** processing in to small intervals so that the page does not freeze.\n* **chunkInterval**: Time interval (in ms) during which addLayers works before pausing to let the rest of the page process. In particular, this prevents the page from freezing while adding a lot of markers. Defaults to 200ms.\n* **chunkDelay**: Time delay (in ms) between consecutive periods of processing for addLayers. Default to 50ms.\n* **chunkProgress**: Callback function that is called at the end of each chunkInterval. Typically used to implement a progress indicator, e.g. [code in RealWorld 50k](https://github.com/Leaflet/Leaflet.markercluster/blob/master/example/marker-clustering-realworld.50000.html#L33-L49). Defaults to null. Arguments:\n 1. Number of processed markers\n 2. Total number of markers being added\n 3. Elapsed time (in ms)\n\n## Events\nLeaflet events like `click`, `mouseover`, etc. are just related to _Markers_ in the cluster.\nTo receive events for clusters, listen to `'cluster' + ''`, ex: `clusterclick`, `clustermouseover`, `clustermouseout`.\n\nSet your callback up as follows to handle both cases:\n\n```javascript\nmarkers.on('click', function (a) {\n\tconsole.log('marker ' + a.layer);\n});\n\nmarkers.on('clusterclick', function (a) {\n\t// a.layer is actually a cluster\n\tconsole.log('cluster ' + a.layer.getAllChildMarkers().length);\n});\n```\n\n### Additional MarkerClusterGroup Events\n\n- **animationend**: Fires when marker clustering/unclustering animation has completed\n- **spiderfied**: Fires when overlapping markers get spiderified (Contains ```cluster``` and ```markers``` attributes)\n- **unspiderfied**: Fires when overlapping markers get unspiderified (Contains ```cluster``` and ```markers``` attributes)\n\n## Methods\n\n### Group methods\n\n#### Adding and removing Markers\n`addLayer`, `removeLayer` and `clearLayers` are supported and they should work for most uses.\n\n#### Bulk adding and removing Markers\n`addLayers` and `removeLayers` are bulk methods for adding and removing markers and should be favoured over the single versions when doing bulk addition/removal of markers. Each takes an array of markers. You can use [dedicated options](#chunked-addlayers-options) to fine-tune the behaviour of `addLayers`.\n\nThese methods extract non-group layer children from Layer Group types, even deeply nested. _However_, be noted that:\n- `chunkProgress` jumps backward when `addLayers` finds a group (since appending its children to the input array makes the total increase).\n- Groups are not actually added into the MarkerClusterGroup, only their non-group child layers. Therfore, `hasLayer` method will return `true` for non-group child layers, but `false` on any (possibly parent) Layer Group types.\n\nIf you are removing a lot of markers it will almost definitely be better to call `clearLayers` then call `addLayers` to add the markers you don't want to remove back in. See [#59](https://github.com/Leaflet/Leaflet.markercluster/issues/59#issuecomment-9320628) for details.\n\n#### Getting the visible parent of a marker\nIf you have a marker in your MarkerClusterGroup and you want to get the visible parent of it (Either itself or a cluster it is contained in that is currently visible on the map).\nThis will return null if the marker and its parent clusters are not visible currently (they are not near the visible viewpoint)\n```javascript\nvar visibleOne = markerClusterGroup.getVisibleParent(myMarker);\nconsole.log(visibleOne.getLatLng());\n```\n\n#### Refreshing the clusters icon\nIf you have [customized](#customising-the-clustered-markers) the clusters icon to use some data from the contained markers, and later that data changes, use this method to force a refresh of the cluster icons.\nYou can use the method:\n- without arguments to force all cluster icons in the Marker Cluster Group to be re-drawn.\n- with an array or a mapping of markers to force only their parent clusters to be re-drawn.\n- with an L.LayerGroup. The method will look for all markers in it. Make sure it contains only markers which are also within this Marker Cluster Group.\n- with a single marker.\n```javascript\nmarkers.refreshClusters();\nmarkers.refreshClusters([myMarker0, myMarker33]);\nmarkers.refreshClusters({id_0: myMarker0, id_any: myMarker33});\nmarkers.refreshClusters(myLayerGroup);\nmarkers.refreshClusters(myMarker);\n```\n\nThe plugin also adds a method on L.Marker to easily update the underlying icon options and refresh the icon.\nIf passing a second argument that evaluates to `true`, the method will also trigger a `refreshCluster` on the parent MarkerClusterGroup for that single marker.\n```javascript\n// Use as many times as required to update markers,\n// then call refreshClusters once finished.\nfor (i in markersSubArray) {\n\tmarkersSubArray[i].refreshIconOptions(newOptionsMappingArray[i]);\n}\nmarkers.refreshClusters(markersSubArray);\n\n// If updating only one marker, pass true to\n// refresh this marker's parent clusters right away.\nmyMarker.refreshIconOptions(optionsMap, true); \n```\n\n#### Other Group Methods\n* **hasLayer**(layer): Returns true if the given layer (marker) is in the MarkerClusterGroup.\n* **zoomToShowLayer**(layer, callback): Zooms to show the given marker (spiderfying if required), calls the callback when the marker is visible on the map.\n\n### Clusters methods\nThe following methods can be used with clusters (not the group). They are typically used for event handling.\n\n#### Getting the bounds of a cluster\nWhen you receive an event from a cluster you can query it for the bounds.\n```javascript\nmarkers.on('clusterclick', function (a) {\n\tvar latLngBounds = a.layer.getBounds();\n});\n```\n\nYou can also query for the bounding convex polygon.\nSee [example/marker-clustering-convexhull.html](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-convexhull.html) for a working example.\n```javascript\nmarkers.on('clusterclick', function (a) {\n\tmap.addLayer(L.polygon(a.layer.getConvexHull()));\n});\n```\n\n#### Zooming to the bounds of a cluster\nWhen you receive an event from a cluster you can zoom to its bounds in one easy step.\nIf all of the markers will appear at a higher zoom level, that zoom level is zoomed to instead.\n`zoomToBounds` takes an optional argument to pass [options to the resulting `fitBounds` call](http://leafletjs.com/reference.html#map-fitboundsoptions).\n\nSee [marker-clustering-zoomtobounds.html](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-zoomtobounds.html) for a working example.\n```javascript\nmarkers.on('clusterclick', function (a) {\n\ta.layer.zoomToBounds({padding: [20, 20]});\n});\n```\n\n#### Other clusters methods\n* **getChildCount**: Returns the total number of markers contained within that cluster.\n* **getAllChildMarkers(storage: array | undefined, ignoreDraggedMarker: boolean | undefined)**: Returns an array of all markers contained within this cluster (storage will be used if provided). If ignoreDraggedMarker is true and there is currently a marker dragged, the dragged marker will not be included in the array.\n* **spiderfy**: Spiderfies the child markers of this cluster\n* **unspiderfy**: Unspiderfies a cluster (opposite of spiderfy)\n\n## Handling LOTS of markers\nThe Clusterer can handle 10,000 or even 50,000 markers (in chrome). IE9 has some issues with 50,000.\n- [realworld 10,000 example](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.10000.html)\n- [realworld 50,000 example](https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.50000.html)\n\nNote: these two examples use the `chunkedLoading` option set to true in order to avoid locking the browser for a long time.\n\n## License\n\nLeaflet.markercluster is free software, and may be redistributed under the MIT-LICENSE.\n\n[![Build Status](https://travis-ci.org/Leaflet/Leaflet.markercluster.png?branch=master)](https://travis-ci.org/Leaflet/Leaflet.markercluster)\n\n## Sub-plugins\nLeaflet.markercluster plugin is very popular and as such it generates high and\ndiverse expectations for increased functionalities.\n\nIf you are in that case, be sure to have a look first at the repository\n[issues](https://github.com/Leaflet/Leaflet.markercluster/issues) in case what\nyou are looking for would already be discussed, and some workarounds would be proposed.\n\nCheck also the below sub-plugins:\n\n| Plugin | Description | Maintainer |\n| :----- | :---------- | :--------- |\n| [Leaflet.FeatureGroup.SubGroup](https://github.com/ghybs/Leaflet.FeatureGroup.SubGroup) | Creates a Feature Group that adds its child layers into a parent group when added to a map (e.g. through L.Control.Layers). Typical usage is to dynamically add/remove groups of markers from Marker Cluster. | [ghybs](https://github.com/ghybs) |\n| [Leaflet.MarkerCluster.LayerSupport](https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport) | Brings compatibility with L.Control.Layers and other Leaflet plugins. I.e. everything that uses direct calls to map.addLayer and map.removeLayer. | [ghybs](https://github.com/ghybs) |\n| [Leaflet.MarkerCluster.Freezable](https://github.com/ghybs/Leaflet.MarkerCluster.Freezable) | Adds the ability to freeze clusters at a specified zoom. E.g. freezing at maxZoom + 1 makes as if clustering was programmatically disabled. | [ghybs](https://github.com/ghybs) |\n| [Leaflet.MarkerCluster.PlacementStrategies](https://github.com/adammertel/Leaflet.MarkerCluster.PlacementStrategies) | Implements new strategies to position clustered markers (eg: clock, concentric circles, ...). Recommended to use with circleMarkers. [Demo](https://adammertel.github.io/Leaflet.MarkerCluster.PlacementStrategies/demo/demo1.html) | [adammertel](https://github.com/adammertel) / [UNIVIE](http://carto.univie.ac.at/) |\n| [Leaflet.MarkerCluster.List](https://github.com/adammertel/Leaflet.MarkerCluster.List) | Displays child elements in a list. Suitable for mobile devices. [Demo](https://adammertel.github.io/Leaflet.MarkerCluster.List/demo/demo1.html) | [adammertel](https://github.com/adammertel) / [UNIVIE](http://carto.univie.ac.at/) |\n", + "name": "leaflet.markercluster@1.5.3", + "licenses": "MIT", + "repository": "https://github.com/Leaflet/Leaflet.markercluster" + }, + { + "licenseText": "BSD 2-Clause License\r\n\r\nCopyright (c) 2010-2022, Vladimir Agafonkin\r\nCopyright (c) 2010-2011, CloudMade\r\nAll rights reserved.\r\n\r\nRedistribution and use in source and binary forms, with or without\r\nmodification, are permitted provided that the following conditions are met:\r\n\r\n1. Redistributions of source code must retain the above copyright notice, this\r\n list of conditions and the following disclaimer.\r\n\r\n2. Redistributions in binary form must reproduce the above copyright notice,\r\n this list of conditions and the following disclaimer in the documentation\r\n and/or other materials provided with the distribution.\r\n\r\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\r\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\r\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\r\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\r\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\r\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n", + "name": "leaflet@1.8.0", + "licenses": "BSD-2-Clause", + "repository": "https://github.com/Leaflet/Leaflet" + }, + { + "licenseText": "Copyright (c) JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n", + "name": "moment@2.29.3", + "licenses": "MIT", + "repository": "https://github.com/moment/moment", + "publisher": "Iskren Ivov Chernev", + "email": "iskren.chernev@gmail.com", + "url": "https://github.com/ichernev" + }, + { + "licenseText": "The MIT License\n\nCopyright (c) 2018 David Fannin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "name": "ngx-logger@4.3.3", + "licenses": "MIT", + "repository": "https://github.com/dbfannin/ngx-logger", + "publisher": "David Fannin", + "email": "dbfannin.npm@gmail.com" + }, + { + "licenseText": "MIT License\r\n\r\nCopyright (c) 2017-2021 Jean-Francois Cere\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n", + "name": "ngx-markdown@13.1.0", + "licenses": "MIT", + "repository": "https://github.com/jfcere/ngx-markdown", + "publisher": "Jean-Francois Cere", + "email": "jfcere@hotmail.com" + }, + { + "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2013-2020 Uri Shaked and contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "name": "ngx-moment@6.0.2", + "licenses": "MIT", + "repository": "https://github.com/urish/ngx-moment", + "publisher": "Uri Shaked" + }, + { + "licenseText": "\n\n# opening_hours\n\n[![GitHub CI]](https://github.com/opening-hours/opening_hours.js/actions?query=workflow%3A%22Continuous+Integration%22)\n[![license NPM](https://img.shields.io/npm/l/opening_hours.svg)][ohlib.github]\n[![required Node.js version](https://img.shields.io/node/v/opening_hours.svg)][ohlib.github]\n[![version NPM](https://img.shields.io/npm/v/opening_hours.svg)][ohlib.npmjs]\n[![monthly downloads via NPM](https://img.shields.io/npm/dm/opening_hours.svg)][ohlib.npmjs]\n[![total downloads via NPM](https://img.shields.io/npm/dt/opening_hours.svg)][ohlib.npmjs]\n\n[github ci]: https://github.com/opening-hours/opening_hours.js/workflows/Continuous%20Integration/badge.svg\n\n\n\n\n## Summary\n\nThe [opening_hours][key:opening_hours] tag is used in [OpenStreetMap](https://openstreetmap.org) to describe time ranges when a facility (for example, a café) is open. This library exists to easily extract useful information (e.g. whether a facility is open at a specific time, next time it's going to open/close, or a readable set of working hours) from the [complex syntax][oh:specification].\n\nExamples of some complex opening_hours values:\n\n```text\nMo,Tu,Th,Fr 12:00-18:00; Sa,PH 12:00-17:00; Th[3],Th[-1] off\nMo-Fr 12:00-18:00; We off; Sa,PH 12:00-17:00; Th[3],Th[-1] off\n```\n\nA library which is open from 12:00 to 18:00 on workdays (Mo-Fr) except Wednesday, and from 12:00 to 17:00 on Saturday and public holidays. It also has breaks on the third and last Thursday of each month.\n\n```text\nopen; Tu-Su 08:30-09:00 off; Tu-Su,PH 14:00-14:30 off; Mo 08:00-13:00 off\n```\n\nAn around-the-clock shop with some breaks.\n\n\n\n## Table of Contents\n\n- [Evaluation tool](#evaluation-tool)\n- [Installation](#installation)\n - [For Developer](#for-developer)\n - [Web developer](#web-developer)\n - [NodeJS developer](#nodejs-developer)\n- [Versions](#versions)\n- [Synopsis](#synopsis)\n- [Library API](#library-api)\n - [Simple API](#simple-api)\n - [High-level API](#high-level-api)\n - [Iterator API](#iterator-api)\n- [Features](#features)\n - [Time ranges](#time-ranges)\n - [Points in time](#points-in-time)\n - [Weekday ranges](#weekday-ranges)\n - [Holidays](#holidays)\n - [Month ranges](#month-ranges)\n - [Monthday ranges](#monthday-ranges)\n - [Week ranges](#week-ranges)\n - [Year ranges](#year-ranges)\n - [States](#states)\n - [Comments](#comments)\n- [Testing](#testing)\n - [Regression testing](#regression-testing)\n - [Testing with real data](#testing-with-real-data)\n - [Large scale](#large-scale)\n - [Small scale](#small-scale)\n - [Test it yourself (the geeky way)](#test-it-yourself-the-geeky-way)\n- [Performance](#performance)\n- [Used by other projects](#used-by-other-projects)\n- [Projects that previously used the library](#projects-that-previously-used-the-library)\n - [YoHours](#yohours)\n- [Bindings and ports](#bindings-and-ports)\n- [Other implementations](#other-implementations)\n- [Related links](#related-links)\n- [ToDo](#todo)\n- [How to contribute](#how-to-contribute)\n - [Translating the evaluation tool and the map](#translating-the-evaluation-tool-and-the-map)\n - [Translating error messages and warnings](#translating-error-messages-and-warnings)\n - [Holiday Data](#holiday-data)\n - [Core code](#core-code)\n - [Commit hooks](#commit-hooks)\n - [Documentation](#documentation)\n- [Authors](#authors)\n- [Contributors](#contributors)\n- [Credits](#credits)\n- [Stats](#stats)\n- [License](#license)\n\n\n\n## Evaluation tool\n\nPlease have a look at the [evaluation tool] which can give you an impression of how this library can be used and what it is capable of.\n\nA mirror is set up at \n\n## Installation\n\n### For Developer\n\nJust clone the repository:\n\n```sh\ngit clone --recursive https://github.com/opening-hours/opening_hours.js.git\n```\n\nand install the required dependencies:\n\n```sh\nnpm install\npip install -r requirements.txt\n```\n\nand build the library:\n\n```sh\nnpm run build\n```\n\nSee the [Testing](#testing) section for details around writing and running tests\n\n### Web developer\n\nIf you are a web developer and want to use this library you can do so by including the current version from here:\n\n\n\nTo get started checkout the [simple_index.html](/examples/simple_index.html) file.\n\n### NodeJS developer\n\nInstall using npm/yarn.\n\n```sh\nnpm install opening_hours\n```\n\nor\n\n```sh\nyarn add opening_hours\n```\n\n## Versions\n\nThe version number consists of a major release, minor release and patch level (separated by a dot).\n\nFor version 2.2.0 and all later, [Semantic Versioning](http://semver.org/spec/v2.0.0.html) is used:\n\n- The major release is only increased if the release breaks backward compatibility.\n- The minor release is increased if new features are added.\n- The patch level is increased to bundle a bunch of commits (minor changes like bug fixes and improvements) into a new tested version.\n\nCheck [releases on GitHub] for a list of the releases and their Changelog.\n\n## Synopsis\n\n```js\nconst opening_hours = require(\"opening_hours\");\nvar oh = new opening_hours(\"We 12:00-14:00\");\n\nvar from = new Date(\"01 Jan 2012\");\nvar to = new Date(\"01 Feb 2012\");\n\n// high-level API\n{\n var intervals = oh.getOpenIntervals(from, to);\n for (var i in intervals)\n console.log(\n \"We are \" +\n (intervals[i][2] ? \"maybe \" : \"\") +\n \"open from \" +\n (intervals[i][3] ? '(\"' + intervals[i][3] + '\") ' : \"\") +\n intervals[i][0] +\n \" till \" +\n intervals[i][1] +\n \".\"\n );\n\n var duration_hours = oh.getOpenDuration(from, to).map(function (x) {\n return x / 1000 / 60 / 60;\n });\n if (duration_hours[0])\n console.log(\n \"For the given range, we are open for \" + duration_hours[0] + \" hours\"\n );\n if (duration_hours[1])\n console.log(\n \"For the given range, we are maybe open for \" +\n duration_hours[1] +\n \" hours\"\n );\n}\n\n// helper function\nfunction getReadableState(startString, endString, oh, past) {\n if (past === true) past = \"d\";\n else past = \"\";\n\n var output = \"\";\n if (oh.getUnknown()) {\n output +=\n \" maybe open\" +\n (oh.getComment()\n ? ' but that depends on: \"' + oh.getComment() + '\"'\n : \"\");\n } else {\n output +=\n \" \" +\n (oh.getState() ? \"open\" : \"close\" + past) +\n (oh.getComment() ? ', comment \"' + oh.getComment() + '\"' : \"\");\n }\n return startString + output + endString + \".\";\n}\n\n// simple API\n{\n var state = oh.getState(); // we use current date\n var unknown = oh.getUnknown();\n var comment = oh.getComment();\n var nextchange = oh.getNextChange();\n\n console.log(getReadableState(\"We're\", \"\", oh, true));\n\n if (typeof nextchange === \"undefined\")\n console.log(\"And we will never \" + (state ? \"close\" : \"open\"));\n else\n console.log(\n \"And we will \" +\n (oh.getUnknown(nextchange) ? \"maybe \" : \"\") +\n (state ? \"close\" : \"open\") +\n \" on \" +\n nextchange\n );\n}\n\n// iterator API\n{\n var iterator = oh.getIterator(from);\n\n console.log(getReadableState(\"Initially, we're\", \"\", iterator, true));\n\n while (iterator.advance(to)) {\n console.log(\n getReadableState(\"Then we\", \" at \" + iterator.getDate(), iterator)\n );\n }\n\n console.log(getReadableState(\"And till the end we're\", \"\", iterator, true));\n}\n```\n\n## Library API\n\n- `var oh = new opening_hours('We 12:00-14:00', nominatim_object, mode);`\n\n - `value (mandatory, type: string)`: Constructs opening_hours object, given the opening_hours tag value. Throws an error string if the expression is malformed or unsupported.\n\n - `nominatim_object (optional, type: object or null)`: Used in order to calculate the correct times for holidays and variable times (e.g. sunrise, dusk, see under [Time ranges][ohlib.time-ranges]).\n\n The nominatim-object should contain the fields `{lat, lon, address: {country_code, state}}`. The location (`lat` and `lon`) is used to calculate the correct values for sunrise and sunset.\n\n The country code and the state is needed to calculate the correct public holidays (PH) and school holidays (SH).\n\n Based on the coordinates or the OSM id of the facility, the other parameters can be queried using [reverse geocoding with Nominatim][nominatim].\n The JSON obtained from this online service can be passed in as the second argument of the constructor.\n The data returned by Nominatim should be in the local language (the language of the country for which the opening hours apply). If not, *accept-language* can be used as parameter in the request URL.\n To get started, see [this example query](https://nominatim.openstreetmap.org/reverse?format=json&lat=49.5487429714954&lon=9.81602098644987&zoom=5&addressdetails=1) or [have a look in the API-reference](https://nominatim.org/release-docs/develop/api/Overview/)\n\n The `nominatim_object` can also be `null` in which case a default location will be used.\n This can be used if you don’t care about correct opening hours for more complex opening_hours values.\n\n - `optional_conf_param (optional, either of type number or object)`:\n\n If this parameter is of the type number then it is interpreted as 'mode' (see below). Alternatively it can be an object with any of the following keys:\n\n - `mode (type: (integer) number, default: 0)`: In OSM, the syntax originally designed to describe opening hours, is now used to describe a few other things as well. Some of those other tags work with points in time instead of time ranges. To support this the mode can be specified. \\_Note that it is recommended to use the tag_key parameter instead, which automatically sets the appropriate mode.\\_If there is no mode specified, opening_hours.js will only operate with time ranges and will throw an error when the value contains points in times.\n\n - 0: time ranges (opening_hours, lit, …) default\n - 1: points in time\n - 2: both (time ranges and points in time, used by collection_times, service_times, …)\n\n - `tag_key (type: string, default: undefined)`: The name of the key (Tag key). For example 'opening_hours' or 'lit'. Please always specify this parameter. If you do, the mode will be derived from the 'tag_key' parameter. Default is undefined e.g. no default value.\n\n - `map_value (type: boolean, default: false)`: Map certain values to different (valid) oh values. For example for the lit tag the value 'yes' is valid but not for opening_hours.js. If this parameter 'yes' is mapped to `sunset-sunrise open \"specified as yes: At night (unknown time schedule or daylight detection)\"`.\n\n - `warnings_severity (type: number, default: 4)`: Can be one of the following numbers. The severity levels (including the codes) match the syslog specification. The default is level 4 to not break backwards compatibility. Lower levels e.g. 5 include higher levels e.g. 4.\n\n ```text\n 4: warning\n 5: notice\n 6: info\n 7: debug\n ```\n\n - `locale (type: string, default: i18next.language || 'en')`: Defines the locale for errors and warnings.\n\n - additional_rule_separator (type boolean, default true)`: Allows to disable the \"additional_rule_separator not used after time wrapping midnight\" check giving rise to the warning \"This rule overwrites parts of the previous rule. This happens because normal rules apply to the whole day and overwrite any definition made by previous rules. You can make this rule an additional rule by using a \",\" instead of the normal \";\" to separate the rules. Note that the overwriting can also be desirable in which case you can ignore this warning.\"\n\n- `var warnings = oh.getWarnings();`\n\n Get warnings which appeared during parsing as human readable string array with one element per violation. Almost all warnings can be auto-corrected and are probably interpreted as intended by the mapper. However, this is not a granite of course.\n\n This function performs some additional testing and can thus also theoretically throw an error like all other functions which parse the time.\n\n- `var prettified = oh.prettifyValue(argument_hash);`\n\n Return a prettified version of the opening_hours value. The value is generated by putting the tokens back together to a string.\n\n The function accepts an optional hash.\n\n The key 'conf' can hold another hash with configuration options. One example:\n\n ```js\n {\n rule_sep_string: '\\n',\n print_semicolon: false\n }\n ```\n\n Look in the source code if you need more.\n\n If the key 'rule_index' is a number then only the corresponding rule will be prettified.\n\n If the key 'get_internals' is true then an object containing internal stuff will be returned instead. The format of this internal object may change in minor release.\n\n- `var every_week_is_same = oh.isWeekStable();`\n\n Checks whether open intervals are same for every week. Useful for giving a user hint whether time table may change for another week.\n\n- `var is_equal_to = oh.isEqualTo(new opening_hours('We 12:00-16:00'), start_date);`\n\n Check if this opening_hours object has the same meaning as the given\n opening_hours object (evaluates to the same state for every given time).\n\n The optional parameter `start_date` (Date object) specifies the start date at which the comparison will begin.\n\n `is_equal_to` is a list:\n\n 1. Boolean which is true if both opening_hours objects have the same\n meaning, otherwise false.\n\n 2. Object hash containing more information when the given objects differ in meaning. Example:\n\n ```js\n {\n \"matching_rule\": 1,\n \"matching_rule_other\": 0,\n \"deviation_for_time\": {\n \"1445637600000\": [\n \"getState\",\n \"getUnknown\",\n \"getComment\",\n ],\n },\n }\n ```\n\n### Simple API\n\nThis API is useful for one-shot checks, but for iteration over intervals you should use the more efficient [iterator API][ohlib.iterator-api].\n\n- `var is_open = oh.getState(date);`\n\n Checks whether the facility is open at the given *date*. You may omit *date* to use current date.\n\n- `var unknown = oh.getUnknown(date);`\n\n Checks whether the opening state is conditional or unknown at the given *date*. You may omit *date* to use current date.\n Conditions can be expressed in comments.\n If unknown is true then is_open will be false since it is not sure if it is open.\n\n- `var state_string = oh.getStateString(date, past);`\n\n Return state string at given *date*. Either 'open', 'unknown' or 'closed?'. You may omit *date* to use current date.\n\n If the boolean parameter `past` is true you will get 'closed' else you will get 'close'.\n\n- `var comment = oh.getComment(date);`\n\n Returns the comment (if one is specified) for the facility at the given *date*. You may omit *date* to use current date.\n Comments can be specified for any state.\n\n If no comment is specified this function will return undefined.\n\n- `var next_change = oh.getNextChange(date, limit);`\n\n Returns date of next state change. You may omit *date* to use current date.\n\n Returns undefined if the next change cannot be found. This may happen if the state won't ever change (e.g. `24/7`) or if search goes beyond *limit* (which is *date* + ~5 years if omitted).\n\n- `var rule_index = oh.getMatchingRule(date);`\n\n Returns the internal rule number of the matching rule. You may omit *date* to use current date.\n A opening_hours string can consist of multiple rules from which one of them is used to evaluate the state for a given point in time. If no rule applies, the state will be closed and this function returns undefined.\n\n To prettify this rule, you can specify `rule_index` as parameter for `oh.prettifyValue` like this:\n\n ```js\n var matching_rule = oh.prettifyValue({ rule_index: rule_index });\n ```\n\n### High-level API\n\nHere and below, unless noted otherwise, all arguments are expected to be and all output will be in the form of Date objects.\n\n- `var intervals = oh.getOpenIntervals(from, to);`\n\n Returns array of open intervals in a given range, in a form of\n\n ```JavaScript\n [ [ from1, to1, unknown1, comment1 ], [ from2, to2, unknown2, comment2 ] ]\n ```\n\n Intervals are cropped with the input range.\n\n- `var duration = oh.getOpenDuration(from, to);`\n\n Returns an array with two durations for a given date range, in milliseconds. The first element is the duration for which the facility is open and the second is the duration for which the facility is maybe open (unknown is used).\n\n### Iterator API\n\n- `var iterator = oh.getIterator(date);`\n\n Constructs an iterator which can go through open/close points, starting at *date*. You may omit *date* to use current date.\n\n- `var current_date = iterator.getDate();`\n\n Returns current iterator position.\n\n- `iterator.setDate(date);`\n\n Set iterator position to date.\n\n- `var is_open = iterator.getState();`\n\n Returns whether the facility is open at the current iterator position.\n\n- `var unknown = iterator.getUnknown();`\n\n Checks whether the opening state is conditional or unknown at the current iterator position.\n\n- `var state_string = iterator.getStateString(past);`\n\n Return state string. Either 'open', 'unknown' or 'closed?'.\n\n If the boolean parameter `past` is true you will get 'closed' else you will get 'close'.\n\n- `var comment = iterator.getComment();`\n\n Returns the comment (if one is specified) for the facility at the current iterator position in time.\n\n If no comment is specified this function will return undefined.\n\n- `var matching_rule = iterator.getMatchingRule();`\n\n Returns the index of the matching rule starting with zero.\n\n- `var had_advanced = iterator.advance(limit);`\n\n Advances an iterator to the next position, but not further than *limit* (which is current position + ~5 years if omitted and is used to prevent infinite loop on non-periodic opening_hours, e.g. `24/7`), returns whether the iterator was moved.\n\n For instance, returns false if the iterator would go beyond *limit* or if there's no next position (`24/7` case).\n\n## Features\n\nAlmost everything from opening_hours definition is supported, as well as some extensions (indicated as **EXT** below).\n\n**WARN** indicates that the syntax element is evaluated correctly, but there is a better way to express this. A warning will be shown.\n\n- See the [formal specification][oh:specification] as of version `0.6.0`.\n\n- Opening hours consist of multiple rules separated by semicolon (`Mo 10:00-20:00; Tu 12:00-18:00`) or by other separators as follows.\n\n- Supports [fallback rules][oh:specification:fallback rule] (`We-Fr 10:00-24:00 open \"it is open\" || \"please call\"`).\n\n Note that only the rule which starts with `||` is a fallback rule. Other rules which might follow are considered as normal rules.\n\n- Supports [additional rules][oh:specification:additional rule] or cooperative values (`Mo-Fr 08:00-12:00, We 14:00-18:00`). A additional rule is treated exactly the same as a normal rule, except that a additional rule does not overwrite the day for which it applies. Note that a additional rule does not use any data from previous or from following rules.\n\n A rule does only count as additional rule if the previous rule ends with a time range (`12:00-14:00, We 16:00-18:00`, but does not continue with a time range of course), a comment (`12:00-14:00 \"call us\", We 16:00-18:00`) or the keywords 'open', 'unknown' or 'closed' (`12:00-14:00 unknown, We 16:00-18:00`)\n\n- Rule may use `off` keyword to indicate that the facility is closed at that time (`Mo-Fr 10:00-20:00; 12:00-14:00 off`). `closed` can be used instead if you like. They mean exactly the same.\n\n- Rule consists of multiple date (`Mo-Fr`, `Jan-Feb`, `week 2-10`, `Jan 10-Feb 10`) and time (`12:00-16:00`, `12:00-14:00,16:00-18:00`) conditions\n\n- If a rule's date condition overlap with previous rule, it overrides (as opposed to extends) the previous rule. E.g. `Mo-Fr 10:00-16:00; We 12:00-18:00` means that on Wednesday the facility is open from 12:00 till 18:00, not from 10:00 to 18:00.\n\n This also applies for time ranges spanning midnight. This is the only way to be consistent. Example: `22:00-02:00; Th 12:00-14:00`. By not overriding specifically for midnight ranges, we could get either `22:00-02:00; Th 00:00-02:00,12:00-14:00,22:00-02:00` or `22:00-02:00; Th 00:00-02:00,12:00-14:00` and deciding which interpretation was really intended cannot always be guessed.\n\n- Date ranges (calendar ranges) can be separated from the time range by a colon (`Jan 10-Feb 10: 07:30-12:00`) but this is not required. This was implemented to also parse the syntax proposed by [Netzwolf][oh:spec:separator_for_readability].\n\n### Time ranges\n\n- Supports sets of time ranges (`10:00-12:00,14:00-16:00`)\n\n - **WARN:** Accept `10-12,14-16` as abbreviation for the previous example. Please don’t use this as this is not very explicit.\n - Correctly supports ranges wrapping over midnight (`10:00-26:00`, `10:00-02:00`)\n\n- Supports 24/7 keyword (`24/7`, which means always open. Use [state keywords][ohlib.states] to express always closed.)\n\n - **WARN:** 24/7 is handled as a synonym for `00:00-24:00`, so `Mo-Fr 24/7` (though not really correct, because of that you should avoid it or replace it with \"open\". A warning will be given if you use it anyway for that purpose) will be handled correctly\n\n *The use of 24/7 as synonym is never needed and should be avoided in cases where it does not mean 24/7.* In cases where a facility is really open 24 hours 7 days a week thats where this value is for.\n\n- **WARN:** Supports omitting time range (`Mo-Fr; Tu off`)\n\n *A warning will be given as this is not very explicit. See [issue 49](https://github.com/opening-hours/opening_hours.js/issues/49).*\n\n- **WARN:** Supports space as time interval separator, i.e. `Mo 12:00-14:00,16:00-20:00` and `Mo 12:00-14:00 16:00-20:00` are the same thing\n- **WARN:** Supports dot as time separator (`12.00-16.00`)\n- Complete support for dawn/sunrise/sunset/dusk (variable times) keywords (`10:00-sunset`, `dawn-dusk`). To calculate the correct values, the latitude and longitude are required which are included in the JSON returned by [Nominatim] \\(see in the [Library API][ohlib.library-api] how to provide it\\). The calculation is done by [suncalc].\n\n If the coordinates are missing, constant times will be used (dawn: '05:30', sunrise: '06:00', sunset: '18:00', dusk: '18:30').\n\n If the end time (second time in time range) is near the sunrise (for instance `sunrise-08:00`) than it can happen that the sunrise would actually be after 08:00 which would normally be interpreted as as time spanning midnight. But with variable times, this only partly applies. The rule here is that if the end time is lesser than the constant time (or the actual time) for the variable time in the start time (in that example sunrise: '06:00') then it is interpreted as the end time spanning over midnight. So this would be a valid time range spanning midnight: `sunrise-05:59`.\n\n A second thing to notice is that if the variable time becomes greater than the end time and the end time is greater than the constant time than this time range will be ignored (e.g `sunrise-08:00` becomes `08:03-08:00` for one day, it is ignored for this day).\n\n- Support calculation with variable times (e.g. `sunrise-(sunset-00:30)`: meaning that the time range ends 30 minutes before sunset; `(sunrise+01:02)-(sunset-00:30)`).\n\n- Supports open end (`10:00+`). It is interpreted as state unknown and the comment \"Specified as open end. Closing time was guessed.\" if there is no comment specified.\n\n If a facility is open for a fix time followed by open end the shortcut `14:00-17:00+` can be used (see also [proposal page](https://wiki.openstreetmap.org/wiki/Proposed_features/opening_hours_open_end_fixed_time_extension)).\n\n Open end applies until the end of the day if the opening time is before 17:00. If the opening time is between 17:00 and 21:59 the open end time ends 10 hours after the opening. And if the opening time is after 22:00 (including 22:00) the closing time will be interpreted as 8 hours after the opening time.\n\n- `07:00+,12:00-16:00`: If an open end time is used in a way that the first time range includes the second one (`07:00+` is interpreted as `07:00-24:00` and thus includes the complete `12:00-16:00` time selector), the second time selector cuts of the part which would follow after 16:00.\n\n### Points in time\n\n- In mode 1 or 2, points in time are evaluated. Example: `Mo-Fr 12:00,15:00,18:00; Su (sunrise+01:00)`. Currently a point in time is interpreted as an interval of one minute. It was the easiest thing to implement and has some advantages. See [here](https://github.com/AMDmi3/opening_hours.js/issues/12) for discussion.\n- To express regular points in time, like each hour, a abbreviation can be used to express the previous example `Mo-Fr 12:00-18:00/03:00` which means from 12:00 to 18:00 every three hours.\n\n### Weekday ranges\n\n- Supports set of weekdays and weekday ranges (`Mo-We,Fr`)\n- Supports weekdays which wrap to the next week (`Fr-Mo`)\n- Supports constrained weekdays (`Th[1,2-3]`, `Fr[-1]`)\n- Supports calculations based on constrained weekdays (`Sa[-1],Sa[-1] +1 day` e.g. last weekend in the month, this also works if Sunday is in the next month)\n\n### Holidays\n\n- Supports public holidays (`open; PH off`, `PH 12:00-13:00`).\n\n - Countries with PH definition:\n\n - [Australia][ph-au]\n - [Austria][ph-at] ([footnotes][ph-at] are ignored)\n - [Belgium][ph-be] (See [issue #115](https://github.com/opening-hours/opening_hours.js/issues/115) for details)\n - [Brazil][ph-br]\n - [Canada][ph-ca]\n - [Czech Republic][ph-cz]\n - [Denmark][ph-dk]\n - [England and Wales][ph-gb]\n - [France][ph-fr]\n - [Germany][ph-de] ([footnotes][ph-de] are ignored)\n - [Hungary][ph-hu]\n - [Ireland][ph-ie]\n - [Italy][ph-it] (Without the Saint Patron day, see [comment](https://github.com/opening-hours/opening_hours.js/pull/74#issuecomment-76194891))\n - [Ivory Coast][ph-ci] (Without the four islamic holidays because they can not be calculated and depend on subjective ad-hoc definition)\n - [Netherlands][ph-ne]\n - [New Zealand][ph-nz] (Provincial holiday is not handled. See [PR #333](https://github.com/opening-hours/opening_hours.js/pull/333) for details.)\n - [Poland][ph-nl]\n - [Romania][ph-ro]\n - [Russian][ph-ru]\n - [Slovenian][ph-si]\n - [Sweden][ph-se]\n - [Switzerland][ph-ch]\n - [Ukraine][ph-ua]\n - [United states][ph-us] (Some special cases are [currently not handled](https://github.com/opening-hours/opening_hours.js/issues/69#issuecomment-74103181))\n - [Vietnam][ph-vn] (Some public holidays cannot currently be calulated by the library and are missing. See https://github.com/opening-hours/opening_hours.js/pull/388)\n\n - **EXT:** Supports limited calculations based on public holidays (e.g. `Sa,PH -1 day open`). The only two possibilities are currently +1 and -1. All other cases are not handled. This seems to be enough because the only thing which is really used is -1.\n\n- Support for school holidays (`SH 10:00-14:00`).\n\n - Countries with SH definition:\n\n - Germany, see [hc]\n - Austria\n - Romania\n - Hungary\n\n- There can be two cases which need to be separated (this applies for PH and SH):\n\n 1. `Mo-Fr,PH`: The facility is open Mo-Fr and PH. If PH is a Sunday for example the facility is also open. This is the default case.\n 2. **EXT:** `PH Mo-Fr`: The facility is only open if a PH falls on Mo-Fr. For example if a PH is on the weekday Wednesday then the facility will be open, if PH is Saturday it will be closed.\n\n- If there is no comment specified by the rule, the name of the holiday is used as comment.\n\n- To evaluate the correct holidays, the country code and the state (could be omitted but this will probably result in less correctness) are required which are included in the JSON returned by [Nominatim] \\(see in the [Library API][ohlib.library-api] how to provide it\\).\n\n- If your country or state is missing or wrong you can [add it][ohlib.contribute.holidays]. Please note that issues for missing or wrong holidays cannot be handled. There are just to many countries for them to be handled by one spare time maintainer. See also [issue #300](https://github.com/opening-hours/opening_hours.js/issues/300).\n\n### Month ranges\n\n- Supports set of months and month ranges (`Jan,Mar-Apr`)\n- Supports months which wrap to the next year (`Dec-Jan`)\n\n### Monthday ranges\n\n- Supports monthday ranges across multiple months (`Jan 01-Feb 03 10:00-20:00`)\n- Supports monthday ranges within single month (`Jan 01-26 10:00-20:00`), with periods as well `Jan 01-29/7 10:00-20:00`, period equals 1 should be avoided)\n- Supports monthday ranges with years (`2013 Dec 31-2014 Jan 02 10:00-20:00`, `2012 Jan 23-31 10:00-24:00`)\n- Supports monthday ranges based on constrained weekdays (`Jan Su[1]-Feb 03 10:00-20:00`)\n- Supports calculation based on constrained weekdays in monthday range (`Jan Su[1] +1 day-Feb 03 10:00-20:00`)\n- Supports movable events like easter (`easter - Apr 20: open \"Around easter\"`) Note that if easter would be after the 20th of April for one year, this will be interpreted as spanning into the next year currently.\n- Supports calculations based on movable events (`2012 easter - 2 days - 2012 easter + 2 days: open \"Around easter\"`)\n- Supports multiple monthday ranges separated by a comma (`Jan 23-31/3,Feb 1-12,Mar 1`)\n\n### Week ranges\n\n- [The ISO 8601 definition for week 01 is the week with the year's first Thursday in it.](https://en.wikipedia.org/wiki/ISO_week_date#First_week)\n- Supports week ranges (`week 04-07 10:00-20:00`)\n- Supports periodic weeks (`week 2-53/2 10:00-20:00`)\n- Supports multiple week ranges (`week 1,3-5,7-30/2 10:00-20:00`)\n\n### Year ranges\n\n- **EXT:** Supports year ranges (`2013,2015,2050-2053,2055/2,2020-2029/3 10:00-20:00`)\n\n- **EXT:** Supports periodic year (either limited by range or unlimited starting with given year) (`2020-2029/3,2055/2 10:00-20:00`)\n\n There is one exception. It is not necessary to use a year range with a period of one (`2055-2066/1 10:00-20:00`) because this means the same as just the year range without the period (`2055-2066 10:00-20:00`) and should be expressed like this …\n\n The _oh.getWarnings()_ function will give you a warning if you use this anyway.\n\n- **EXT:** Supports way to say that a facility is open (or closed) from a specified year without limit in the future (`2055+ 10:00-20:00`)\n\n### States\n\n- A facility can be in two main states for a given point in time: `open` (true) or `closed` (false).\n\n - But since the state can also depend on other information (e.g. weather depending, call us) than just the time, a third state (called `unknown`) can be expressed (`Mo unknown; Th-Fr 09:00-18:00 open`)\n\n In that case the main state is false and unknown is true for Monday.\n\n- instead of `closed` `off` will also work\n\n### Comments\n\n- Supports (additional) comments (`Mo unknown \"on appointment\"; Th-Fr 09:00-18:00 open \"female only\"; Su closed \"really\"`)\n\n - The string which is delimited by double-quotes can contain any character (except a double-quote sign)\n - unknown can be omitted (just a comment (without [state][ohlib.states]) will also result in unknown)\n - value can also be just a double-quoted string (`\"on appointment\"`) which will result in unknown for any given time.\n\n## Testing\n\nThis project has become so complex that development without extensive testing would be madness.\n\n### Regression testing\n\nA node.js based test framework is bundled. You can run it with `node test/test.js` or with `make check-full`. Note that the number of lines of the test framework almost match up with the number of lines of the actual implementation :)\n\nIncluded in the `test` directory are the log outputs of the previous testing runs. By comparing to these logs and assuming that the checkedd-in logs are always passing, it allows the developer to validate if the number of passed tests have changed since the last feature implementation.\n\nThe current results of this test are also tracked in the repository and can be viewed [here](/test.en.log). Note that this file uses [ANSI escape code](https://en.wikipedia.org/wiki/ANSI_escape_code) which can be interpreted by cat in the terminal. `make check` compares the test output with the output from the last commit and shows you a diff.\n\n### Testing with real data\n\n#### Large scale\n\nTo see how this library performances in the real OpenStreetMap world you can run `make osm-tag-data-check` or `node scripts/real_test.js` (data needs to be exported first) to try to process every value which uses the opening_hours syntax from [taginfo] with this library.\n\nCurrently (Mai 2015) this library can parse 97 % (383990/396167) of all opening_hours values in OSM. If identical values appear multiple times then each value counts.\nThis test is automated by now. Have a look at the [opening_hours-statistics][].\n\n#### Small scale\n\nA python script to search with regular expressions over OSM opening_hours style tags is bundled. You can run it with `make run-regex_search` or `./scripts/regex_search.py` which will search on the opening_hours tag. To search over different tags either use `make run-regex_search \"SEARCH=$tagname\"` (this also makes sure that the tag you would like to search on will be downloaded if necessary) or run `./scripts/regex_search.py $path_to_downloaded_taginfo_json_file`.\n\nThis script not only shows you if the found value can be processed with this library or not, it also indicates using different colors if the facility is currently open (open: green, unknown: magenta, closed: blue).\n\nIt also offers filter options (e.g. only errors) and additional things like a link to [taginfo].\n\nHint: If you want to do quality assurance on tags like opening_hours you can also use this script and enter a regex for values you would like to check and correct (if you have no particular case just enter a dot which matches any character which results in every value being selected). Now you see how many values match your search pattern. As you do QA you probably only want to see values which can not be evaluated. To do this enter the filter \"failed\".\nTo improve the speed of fixing errors, a [feature](https://github.com/opening-hours/opening_hours.js/issues/29) was added to load those failed values in JOSM. To enable this, append \" josm\" to the input line. So you will have something like \"failed josm\" as argument. Now you can hit enter and go through the values.\n\n[taginfo]: https://taginfo.openstreetmap.org/\n\n### Test it yourself (the geeky way)\n\nYou want to try some opening_hours yourself? Just run `make run-interactive_testing` or `node ./scripts/interactive_testing.js` which will open an primitive interpreter. Just write your opening_hours value and hit enter and you will see if it can be processed (with current state) or not (with error message). The answer is JSON encoded.\n\nTesting is much easier by now. Have a look at the [evaluation tool][ohlib.evaluation-tool]. The reason why this peace of code was written is to have an interface which can be accessed from other programming languages. It is used by the python module [pyopening_hours].\n\n## Performance\n\nSimple node.js based benchmark is bundled. You can run it with `node ./scripts/benchmark.js` or with `make benchmark`.\n\nThe library allows ~9k/sec constructor calls and ~9k/sec openIntervals() calls with one week period on author's Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz running NodeJS 7.7.1, Linux 4.4.38-11 virtualized under Xen/Qubes OS). This may further improve in the future.\n\n## Used by other projects\n\nThis library is known to the used by the following projects:\n\n| Project | Additional Information |\n| ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [osm24.eu](https://github.com/dotevo/osm24) |\n| [OpenBeerMap](https://openbeermap.github.io) | [issue for integration](https://github.com/OpenBeerMap/OpenBeerMap.github.io/issues/25) |\n| [opening_hours_map] |\n| [ulm-opening-hours](https://github.com/cmichi/ulm-opening-hours) |\n| [YoHours][] | A simple editor for OpenStreetMap opening hours, [GitHub](https://github.com/PanierAvide/panieravide.github.io/tree/master/yohours) |\n| [opening_hours_server.js] | A little server answering query‘s for opening_hours and check if they can be evaluated. |\n| [opening_hours-statistics] | Visualization of the data quality and growth over time in OSM. |\n| [www.openstreetmap.hu](http://www.openstreetmap.hu/) | old version of this library, see also |\n| [osmopeninghours][] | JavaScript library which provides a more abstract, specialized API and Italian localization. It returns a JavaScript object for a given time interval (see [example.json](https://github.com/digitalxmobile-dev/osmopeninghours/blob/master/example/example.json)). |\n| [ComplexAlarm](https://github.com/ypid/ComplexAlarm) | Java/Android. Using the JS implementation through [js-evaluator-for-android](https://github.com/evgenyneu/js-evaluator-for-android). |\n| [MapComplete](https://github.com/pietervdvn/MapComplete) | An OpenStreetMap-editor which aims to be really simple to use by offering multiple themes |\n\nIf you use this library please let me know.\n\n## Projects that previously used the library\n\n| Project | Additional Information |\n| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [JOSM](https://josm.openstreetmap.de/) | [ticket for integration in 13.11](https://josm.openstreetmap.de/ticket/9157), [ticket for removal in 20.03](https://josm.openstreetmap.de/ticket/18140) |\n\n### YoHours\n\nYoHours currently only checks with this lib if the opening_hours value can be evaluated at all and links to the [evaluation tool][ohlib.evaluation-tool] if yes. There might be more integration with YoHours and opening_hours.js in the future. See \n\n[opening_hours_map]: https://github.com/opening-hours/opening_hours_map\n[pyopening_hours]: https://github.com/ypid/pyopening_hours\n[opening_hours_server.js]: https://github.com/ypid/opening_hours_server.js\n[opening_hours-statistics]: https://github.com/ypid/opening_hours-statistics\n[yohours]: http://github.pavie.info/yohours/\n[osmopeninghours]: https://github.com/digitalxmobile-dev/osmopeninghours\n\n## Bindings and ports\n\n- Python: (using the JS implementation through Python subprocess and JSON passing to a Node.JS process executing the JS implementation, access to the [simple API](https://github.com/opening-hours/opening_hours.js#simple-api))\n- Java/Nashorn: (using the JS implementation through [Nashorn](https://openjdk.java.net/projects/nashorn/), Status: Nashorn provides access to all features of the JS implementation)\n- Java/Android: (using the JS implementation through [js-evaluator-for-android](https://github.com/evgenyneu/js-evaluator-for-android), Status: Library runs on Android, Return code/Result passing from JS to Java not yet clear/tested)\n\n## Other implementations\n\n- Java: (Implementation using [JavaCC](https://de.wikipedia.org/wiki/JavaCC) as Lexer/Parser compiler generator, Status: Basic language features implemented)\n- PHP: (reimplementation, Status: Basic language features implemented)\n- C: Implementation in C.\n- JavaScript: In the words of the author \"It only supports the human readable parts and not this complete crazy overengineered specification.\" Only covers a very small subset of the spec and API, which is a design goal. There is no clear definition/spec what \"simple\" or \"crazy\" means (seems subjective and might change over time, ref: [open end syntax listed as TODO in the code](https://github.com/ubahnverleih/simple-opening-hours/blob/a81c9f2b260114be049e335b6a751977f9425919/src/simple-opening-hours.ts#L32)). Also refer to [issue 143](https://github.com/opening-hours/opening_hours.js/issues/143#issuecomment-259721731).\n- Ruby: \n\n## Related links\n\n- [fossgis project page on the OSM wiki][fossgis-project]\n\n## ToDo\n\nList of missing features which can currently not be expressing in any other way without much pain.\nPlease share your opinion on the [talk page](https://wiki.openstreetmap.org/wiki/Talk:Key:opening_hours) (or the discussion page of the proposal if that does exist) if you have any idea how to express this (better).\n\n- Select single (or more, comma separated) (school|public) holidays. [Proposed syntax](https://wiki.openstreetmap.org/wiki/Proposed_features/opening_hours_holiday_select): `SH(Sommerferien)`\n- Depending on moon position like `\"low tide only\"`. Suncalc lib does support moon position. Syntax needed.\n- If weekday is PH than the facility will be open weekday-1 this week. Syntax something like: `We if (We +1 day == PH) else Th` ???\n\nList of features which can make writing easier:\n\n- `May-Aug: (Mo-Th 9:00-20:00; Fr 11:00-22:00; Sa-Su 11:00-20:00)`\n\n- Last day of the month.\n\n ```text\n Jan 31,Mar 01 -1 day,Mar 31,Apr 30,May 31,Jun 30,Jul 31,Aug 31,Sep 30,Oct 31,Nov 30,Dec 31 open\n ```\n\n Better syntax needed? This example is valid even if the evaluation tool does not agree. It simily does not yet implement this.\n\n Ref and source: \n\n## How to contribute\n\nYou can contribute in the usual manner as known from git (and GitHub). Just fork, change and make a pull request.\n\n### Translating the evaluation tool and the map\n\nThis project uses for translation.\n\nTranslations can be made in the file [js/i18n-resources.js][ohlib.js/i18n-resources.js]. Just copy the whole English block, change the language code to the one you are adding and make your translation. You can open the [index.html](/index.html) to see the result of your work. ~~To complete your localization add the translated language name to the other languages~~ (you don’t have to do this anymore. Importing that form somewhere, WIP, see gen_word_error_correction.js). Week and month names are translated by the browser using the `Date.toLocaleString` function.\n\nNote that this resource file does also provide the localization for the [opening_hours_map]. This can also be tested by cloning the project and linking your modified opening_hours.js working copy to the opening_hours.js directory (after renaming it) inside the opening_hours_map project. Or just follow the installation instructions from the [opening_hours_map].\n\n### Translating error messages and warnings\n\nTranslations for error messages and warnings for the opening_hours.js library can be made in the file [locales/core.js][ohlib.js/locales/core.js]. You are encouraged to test your translations. Checkout the [Makefile][ohlib.makefile] and the [test framework][ohlib.test.js] for how this can be done.\n\n### Holiday Data\n\nPlease do not open issues for missing holidays. It is obvious that there are more missing holidays then holidays which are defined in this library. Instead consider if you can add your missing holidays and send me a pull request or patch. If you are hitting a problem because some holidays depend on variable days or something like this, consider opening a unfinished PR so that the more complicated things can be discussed there.\n\nHolidays can be added to the file [index.js][ohlib.opening_hours.js]. Have a look at the current definitions for [other holidays][ohlib.holidays].\n\nPlease refer to the [holiday documentation][ohlib.docs.holiday] for more details about the data format.\n\nPlease consider adding a test (with a time range of one year for example) to see if everything works as expected and to ensure that it will stay that way.\nSee under [testing][ohlib.testing].\n\nIn case your holiday definition does only change the `holiday_definitions` variable (and not core code) it is also ok to test the definition using the `scripts/PH_SH_exporter.js` script. In that case writing a test is not required but still appreciated. Example: `./scripts/PH_SH_exporter.js --verbose --from=2016 --to=2016 --public-holidays --country dk --state dk /tmp/dk_holidays.txt`\n\n### Core code\n\nBe sure to add one or more tests if you add new features or enhance error tolerance or the like.\nSee under [testing][ohlib.testing].\n\n#### Commit hooks\n\nNote that there is a git pre-commit hook used to run and compare the test framework before each commit. Hooks are written as shell scripts using [husky](https://github.com/typicode/husky) and should be installed to git automatically when running `npm install`. If this does not happen, you can manually run `npm run postinstall`.\n\n#### Documentation\n\nAll functions are documented, which should help contributers to get started.\n\nThe documentation looks like this:\n\n```js\n/* List parser for constrained weekdays in month range {{{\n * e.g. Su[-1] which selects the last Sunday of the month.\n *\n * :param tokens: List of token objects.\n * :param at: Position where to start.\n * :returns: Array:\n * 0. Constrained weekday number.\n * 1. Position at which the token does not belong to the list any more (after ']' token).\n */\nfunction getConstrainedWeekday(tokens, at) {}\n```\n\nThe opening brackets `{{{` (and the corresponding closing onces) are used to fold the source code. See [Vim folds](http://vim.wikia.com/wiki/Folding).\n\n## Authors\n\n| Autor | Contact | Note |\n| --------------------------------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [Dmitry Marakasov](https://github.com/AMDmi3) | | Initial coding and design and all basic features like time ranges, week ranges, month ranges and week ranges. |\n| [Robin Schneider](https://me.ypid.de/) | | Maintainer (since September 2013). Added support for years, holidays, unknown, comments, open end, fallback/additional rules (and more), wrote getWarnings, prettifyValue, translated demo page to English and German and extended it to enter values yourself (now called [evaluation tool][ohlib.evaluation-tool]). |\n\n## Contributors\n\nRefer to the [Changelog](https://github.com/opening-hours/opening_hours.js/blob/master/CHANGELOG.rst)\n\n## Credits\n\n- [Netzwolf](http://www.netzwolf.info/) (He developed the first and very feature complete JS implementation for opening_hours (time_domain.js, [mirror](https://openingh.ypid.de/netzwolf_mirror/)). His implementation did not create selector code to go through time as this library does (which is a more advanced design). time_domain.js has been withdrawn in favor of opening_hours.js but a few parts where reused (mainly the error tolerance and the online evaluation for the [evaluation tool][ohlib.evaluation-tool]). It was also very useful as prove and motivation that all those complex things used in the [opening_hours syntax][oh:specification] are possible to evaluate with software :) )\n- Also thanks to FOSSGIS for hosting a public instance of this service. See the [wiki][fossgis-project].\n- The [favicon.png](/img/favicon.png) is based on the file ic_action_add_alarm.png from the [Android Design Icons](https://developer.android.com/downloads/design/Android_Design_Icons_20131106.zip) which is licensed under [Creative Commons Attribution 2.5](https://creativecommons.org/licenses/by/2.5/). It represents a clock next to the most common opening_hours value (by far) which is `24/7` and a check mark.\n\n## Stats\n\n- [Open HUB](https://www.openhub.net/p/opening_hours)\n\n## License\n\nAs of version 3.4, opening_hours.js is licensed under the [GNU Lesser General Public License v3.0]() only.\n\nNote that the original work from Dmitry Marakasov is published under the BSD 2-clause \"Simplified\" (BSD-2-Clause) license which is included in this repository under the commit hash [b2e11df02c76338a3a32ec0d4e964330d48bdd2d](https://github.com/opening-hours/opening_hours.js/tree/b2e11df02c76338a3a32ec0d4e964330d48bdd2d).\n\n\n\n[nominatim]: https://wiki.openstreetmap.org/wiki/Nominatim#Reverse_Geocoding_.2F_Address_lookup\n[suncalc]: https://github.com/mourner/suncalc\n[fossgis-project]: https://wiki.openstreetmap.org/wiki/FOSSGIS/Server/Projects/opening_hours.js\n[issue-report]: /../../issues\n[releases on github]: /../../releases\n[key:opening_hours]: https://wiki.openstreetmap.org/wiki/Key:opening_hours\n[oh:specification]: https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification\n[oh:specification:fallback rule]: https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification#fallback_rule_separator\n[oh:specification:additional rule]: https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification#additional_rule_separator\n[oh:spec:any_rule_separator]: https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification#any_rule_separator\n[oh:spec:separator_for_readability]: https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification#separator_for_readability\n\n\n\n[ohlib.iterator-api]: #iterator-api\n[ohlib.time-ranges]: #time-ranges\n[ohlib.states]: #states\n[ohlib.holidays]: #holidays\n[ohlib.contribute.holidays]: /src/holidays/\n[ohlib.evaluation-tool]: #evaluation-tool\n[ohlib.library-api]: #library-api\n[ohlib.testing]: #testing\n[ohlib.docs.holiday]: /holidays/README.md\n[ohlib.js/locales/core.js]: /src/locales/core.js\n[ohlib.opening_hours.js]: /index.js\n[ohlib.test.js]: /test.js\n[ohlib.makefile]: /Makefile\n[ohlib.js/i18n-resources.js]: /site/js/i18n-resources.js\n[ohlib.npmjs]: https://www.npmjs.org/package/opening_hours\n[ohlib.github]: https://github.com/opening-hours/opening_hours.js\n[hc]: https://gitlab.com/ypid/hc\n[evaluation tool]: https://openingh.openstreetmap.de/evaluation_tool/\n[schulferien.org]: http://www.schulferien.org/iCal/\n[ph-at]: https://de.wikipedia.org/wiki/Feiertage_in_%C3%96sterreich\n[ph-au]: https://en.wikipedia.org/wiki/Public_holidays_in_Australia\n[ph-be]: https://de.wikipedia.org/wiki/Feiertage_in_Belgien\n[ph-br]: https://pt.wikipedia.org/wiki/Feriados_no_Brasil\n[ph-ca]: https://en.wikipedia.org/wiki/Public_holidays_in_Canada\n[ph-ch]: https://www.bj.admin.ch/dam/bj/de/data/publiservice/service/zivilprozessrecht/kant-feiertage.pdf.download.pdf/kant-feiertage.pdf\n[ph-ci]: https://fr.wikipedia.org/wiki/Jour_f%C3%A9ri%C3%A9#_C%C3%B4te_d%27Ivoire\n[ph-cz]: https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic\n[ph-de]: https://de.wikipedia.org/wiki/Feiertage_in_Deutschland\n[ph-dk]: https://en.wikipedia.org/wiki/Public_holidays_in_Denmark\n[ph-fr]: https://fr.wikipedia.org/wiki/F%EAtes_et_jours_f%E9ri%E9s_en_France\n[ph-gb]: https://www.gov.uk/bank-holidays#england-and-wales\n[ph-hu]: https://en.wikipedia.org/wiki/Public_holidays_in_Hungary\n[ph-ie]: https://en.wikipedia.org/wiki/Public_holidays_in_the_Republic_of_Ireland\n[ph-it]: http://www.governo.it/Presidenza/ufficio_cerimoniale/cerimoniale/giornate.html\n[ph-ne]: https://nl.wikipedia.org/wiki/Feestdagen_in_Nederland\n[ph-nl]: https://pl.wikipedia.org/wiki/Dni_wolne_od_pracy_w_Polsce\n[ph-nz]: https://en.wikipedia.org/wiki/Public_holidays_in_New_Zealand\n[ph-ro]: https://en.wikipedia.org/wiki/Public_holidays_in_Romania#Official_non-working_holidays\n[ph-ru]: https://ru.wikipedia.org/wiki/%D0%9F%D1%80%D0%B0%D0%B7%D0%B4%D0%BD%D0%B8%D0%BA%D0%B8_%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B8\n[ph-se]: https://en.wikipedia.org/wiki/Public_holidays_in_Sweden\n[ph-si]: http://www.vlada.si/o_sloveniji/politicni_sistem/prazniki/\n[ph-ua]: https://uk.wikipedia.org/wiki/%D0%A1%D0%B2%D1%8F%D1%82%D0%B0_%D1%82%D0%B0_%D0%BF%D0%B0%D0%BC%27%D1%8F%D1%82%D0%BD%D1%96_%D0%B4%D0%BD%D1%96_%D0%B2_%D0%A3%D0%BA%D1%80%D0%B0%D1%97%D0%BD%D1%96\n[ph-us]: https://en.wikipedia.org/wiki/Public_holidays_in_the_United_States\n[ph-vn]: https://vi.wikipedia.org/wiki/C%C3%A1c_ng%C3%A0y_l%E1%BB%85_%E1%BB%9F_Vi%E1%BB%87t_Nam\n\n\n", + "name": "opening_hours@3.8.0", + "licenses": "LGPL-3.0-only", + "repository": "https://github.com/opening-hours/opening_hours.js", + "publisher": "Dmitry Marakasov", + "email": "amdmi3@amdmi3.ru" + }, + { + "licenseText": " Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n \n", + "name": "rxjs@6.6.7", + "licenses": "Apache-2.0", + "repository": "https://github.com/reactivex/rxjs", + "publisher": "Ben Lesh", + "email": "ben@benlesh.com" + }, + { + "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2019 Vladimir Kharlampidi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "name": "swiper@8.1.6", + "licenses": "MIT", + "repository": "https://github.com/nolimits4web/Swiper", + "publisher": "Vladimir Kharlampidi" + }, + { + "licenseText": "Copyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.", + "name": "tslib@2.4.0", + "licenses": "0BSD", + "repository": "https://github.com/Microsoft/tslib", + "publisher": "Microsoft Corp." + }, + { + "licenseText": "The MIT License\n\nCopyright (c) 2010-2022 Google LLC. https://angular.io/license\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "name": "zone.js@0.11.5", + "licenses": "MIT", + "repository": "https://github.com/angular/angular", + "publisher": "Brian Ford" + } +] diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-Black.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-Black.ttf new file mode 100644 index 00000000..9675b8ae Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-Black.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-BlackItalic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-BlackItalic.ttf new file mode 100644 index 00000000..23145953 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-BlackItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-Bold.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-Bold.ttf new file mode 100644 index 00000000..28f2d3a5 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-Bold.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-BoldItalic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-BoldItalic.ttf new file mode 100644 index 00000000..9dc16ade Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-BoldItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-ExtraBold.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-ExtraBold.ttf new file mode 100644 index 00000000..22901110 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-ExtraBold.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-ExtraBoldItalic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-ExtraBoldItalic.ttf new file mode 100644 index 00000000..9e30cef6 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-ExtraBoldItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-ExtraLight.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-ExtraLight.ttf new file mode 100644 index 00000000..34f02514 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-ExtraLight.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-ExtraLightItalic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-ExtraLightItalic.ttf new file mode 100644 index 00000000..14f2370f Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-ExtraLightItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-Italic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-Italic.ttf new file mode 100644 index 00000000..dc46deb2 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-Italic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-Light.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-Light.ttf new file mode 100644 index 00000000..f3c5b701 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-Light.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-LightItalic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-LightItalic.ttf new file mode 100644 index 00000000..bf782868 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-LightItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-Medium.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-Medium.ttf new file mode 100644 index 00000000..11d4ab20 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-Medium.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-MediumItalic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-MediumItalic.ttf new file mode 100644 index 00000000..62a4fb21 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-MediumItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-Regular.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-Regular.ttf new file mode 100644 index 00000000..d39c293e Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-Regular.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-SemiBold.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-SemiBold.ttf new file mode 100644 index 00000000..58a64305 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-SemiBold.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-SemiBoldItalic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-SemiBoldItalic.ttf new file mode 100644 index 00000000..8cbb7bff Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-SemiBoldItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-Thin.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-Thin.ttf new file mode 100644 index 00000000..a9d7cb96 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-Thin.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/Barlow-ThinItalic.ttf b/frontend/app/src/assets/fonts/barlow/Barlow-ThinItalic.ttf new file mode 100644 index 00000000..8678b997 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow/Barlow-ThinItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow/OFL.txt b/frontend/app/src/assets/fonts/barlow/OFL.txt new file mode 100644 index 00000000..2f22ba6c --- /dev/null +++ b/frontend/app/src/assets/fonts/barlow/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2017 The Barlow Project Authors (https://github.com/jpt/barlow) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Black.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Black.ttf new file mode 100644 index 00000000..f5329d16 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Black.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-BlackItalic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-BlackItalic.ttf new file mode 100644 index 00000000..8452a3a7 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-BlackItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Bold.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Bold.ttf new file mode 100644 index 00000000..256f9247 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Bold.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-BoldItalic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-BoldItalic.ttf new file mode 100644 index 00000000..f3931738 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-BoldItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraBold.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraBold.ttf new file mode 100644 index 00000000..3ee08949 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraBold.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraBoldItalic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraBoldItalic.ttf new file mode 100644 index 00000000..9a31493f Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraBoldItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraLight.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraLight.ttf new file mode 100644 index 00000000..35ec98d6 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraLight.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraLightItalic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraLightItalic.ttf new file mode 100644 index 00000000..507a387a Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ExtraLightItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Italic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Italic.ttf new file mode 100644 index 00000000..6df5e6b3 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Italic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Light.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Light.ttf new file mode 100644 index 00000000..1776e63f Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Light.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-LightItalic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-LightItalic.ttf new file mode 100644 index 00000000..3cc79a7b Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-LightItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Medium.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Medium.ttf new file mode 100644 index 00000000..82e45ac0 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Medium.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-MediumItalic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-MediumItalic.ttf new file mode 100644 index 00000000..8b033571 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-MediumItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Regular.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Regular.ttf new file mode 100644 index 00000000..9f3aab8c Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Regular.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-SemiBold.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-SemiBold.ttf new file mode 100644 index 00000000..86c6801d Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-SemiBold.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-SemiBoldItalic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-SemiBoldItalic.ttf new file mode 100644 index 00000000..19465344 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-SemiBoldItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Thin.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Thin.ttf new file mode 100644 index 00000000..8cd93e51 Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-Thin.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ThinItalic.ttf b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ThinItalic.ttf new file mode 100644 index 00000000..2364ec5b Binary files /dev/null and b/frontend/app/src/assets/fonts/barlow_condensed/BarlowCondensed-ThinItalic.ttf differ diff --git a/frontend/app/src/assets/fonts/barlow_condensed/OFL.txt b/frontend/app/src/assets/fonts/barlow_condensed/OFL.txt new file mode 100644 index 00000000..2f22ba6c --- /dev/null +++ b/frontend/app/src/assets/fonts/barlow_condensed/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2017 The Barlow Project Authors (https://github.com/jpt/barlow) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/frontend/app/src/assets/i18n/de.json b/frontend/app/src/assets/i18n/de.json new file mode 100644 index 00000000..3ce22d59 --- /dev/null +++ b/frontend/app/src/assets/i18n/de.json @@ -0,0 +1,544 @@ +{ + "ok": "Ok", + "yes": "Ja", + "no": "Nein", + "abort": "Abbrechen", + "save": "Speichern", + "back": "Zurück", + "export": "Exportieren", + "share": "Teilen", + "timeSuffix": "Uhr", + "modal": { + "DISMISS_NEUTRAL": "Schließen", + "DISMISS_CANCEL": "Abbrechen", + "DISMISS_CONFIRM": "Bestätigen", + "DISMISS": "Schließen", + "TITLE_EDIT": "Bearbeiten", + "dismiss_warn_pending_changes": { + "TITLE": "Ausstehende Änderungen", + "SAVE": "Speichern", + "DISCARD": "Verwerfen", + "CANCEL": "Abbrechen" + }, + "settings": "Einstellungen" + }, + "app": { + "ui": { + "CLOSE": "Schließen", + "ERROR": "Fehler" + }, + "errors": { + "SERVICE": "Fehler bei Dienstausführung.", + "UNKNOWN": "Unbekannter Fehler.", + "OFFLINE": "Keine Internetverbindung", + "CONNECTION_ERROR": "Verbindungsfehler" + } + }, + "assessments": { + "TITLE": "Noten", + "courseOfStudyAssessments": { + "PROGRESS": "Fortschritt", + "ASSESSMENTS": "Bewertungen" + } + }, + "auth": { + "messages": { + "encourage_login": "Für mehr einloggen", + "default": { + "authorizing": "Autorisierung läuft...", + "logged_in_success": "Erfolgreich eingeloggt.", + "logged_out_success": "Erfolgreich ausgeloggt.", + "log_out_alert": { + "header": "Komplett ausloggen", + "message": "Du wurdest innerhalb der App ausgeloggt. Soll zudem die Browser Session beendet werden? Wähle im Zweifelsfall \"Ja\"." + } + }, + "paia": { + "authorizing": "Autorisierung (Bibliothek) läuft...", + "logged_in_success": "Erfolgreich ins Bibliothekskonto eingeloggt.", + "logged_out_success": "Erfolgreich aus dem Bibliothekskonto ausgeloggt.", + "log_out_alert": { + "header": "Ausgeloggt...", + "message": "Du wurdest aus der App ausgeloggt. Möchtest du Dich dazu vom Identitätsanbieter der Bibliothek in Deinem Browser ausloggen? Falls unsicher, bitte wähle \"Ja\"." + } + } + } + }, + "common": { + "openingHours": { + "closing": "Schließt {{relativeDateTime}}", + "closing_soon_warning": "Schließt bald! Um {{time}} Uhr", + "closing_today": "Schließt um {{time}} Uhr", + "state_closed": "Geschlossen", + "state_maybe": "Vielleicht Geöffnet", + "state_open": "Geöffnet", + "opening": "Öffnet {{relativeDateTime}}", + "opening_today": "Öffnet um {{time}} Uhr", + "opening_soon_warning": "Öffnet bald! Um {{time}} Uhr" + } + }, + "dashboard": { + "header": { + "title_morning": "Guten Morgen", + "title_day": "Guten Tag", + "title_evening": "Guten Abend", + "title_night": "Gute Nacht" + }, + "navigation": { + "title": "Dashboard", + "item": { + "catalog": "Vorlesungsv.", + "canteen": "Mensa", + "map": "Campus", + "settings": "Einstellungen", + "search": "Suche" + } + }, + "news": { + "title": "Aktuelles", + "moreNews": "Mehr Nachrichten" + }, + "schedule": { + "title": "Nächste Einheit", + "noEvent": "Kein Eintrag gefunden", + "noEventLink": "Jetzt Termine im Stundenplan hinzufügen." + }, + "canteens": { + "title": "Deine Mensa", + "no_favorite_prefix": "Du hast noch keine Mensa als deinen Favoriten markiert. Nutze die", + "no_favorite_link": "Übersicht der Mensen", + "no_favorite_suffix": "um einen Favorit zu wählen.", + "choose_favorite": "Wähle einen Favorit", + "no_dishes_available": "Aktuell sind keine Gerichte verfügbar." + }, + "favorites": { + "title": "Deine Favoriten", + "no_favorite_prefix": "Du hast noch keine Favoriten markiert. Nutze die", + "no_favorite_link": "Suche", + "no_favorite_suffix": "um Favoriten zu wählen." + } + }, + "data": { + "REFRESH_ACTION": "Aktualisieren", + "REFRESHING": "Aktualisierung läuft...", + "detail": { + "TITLE": "Detailansicht", + "NOT_FOUND": "Nicht gefunden", + "COULD_NOT_CONNECT": "Verbindung fehlgeschlagen", + "address": { + "TITLE": "Adresse", + "STREET": "Straße", + "POSTCODE": "Postleitzahl", + "CITY": "Stadt", + "REGION": "Region", + "COUNTRY": "Land", + "POST_OFFICE_BOX": "Postfach" + }, + "offers": { + "TITLE": "Angebote", + "default": "Standard", + "employee": "Angestellte", + "guest": "Gäste", + "student": "Studierende", + "sold_out": "Ausverkauft!" + } + }, + "chips": { + "add_events": { + "ADDED_ALL": "Hinzugefügt", + "ADDED_SOME": "Manche Termine Hinzugefügt", + "REMOVED_ALL": "Termine Auswählen", + "UNAVAILABLE": "Keine Termine Verfügbar", + "popover": { + "ALL": "Alle Termine", + "AT": "um", + "UNTIL": "bis", + "SINGLE": "Einzel" + } + } + }, + "types": { + "dish": { + "CHARACTERISTICS": "Zutaten", + "EMPTY_DISHES": "Keine Angebote verfügbar", + "detail": { + "breakfast": "Frühstück", + "dinner": "Abendessen", + "lunch": "Mittagessen", + "AVG_NUTRITION_INFO": "Durchschnittliche Nährwertangaben", + "CALORIES": "Brennwert", + "FAT_TOTAL": "Fett", + "FAT_SATURATED": "davon gesättigte Fettsäuren", + "CARBOHYDRATE": "Kohlenhydrate", + "SALT": "Salz", + "SUGAR": "davon Zucker", + "PROTEIN": "Protein" + } + }, + "origin": { + "TITLE": "Ursprung", + "USER": "Nutzer", + "REMOTE": "Datenquelle", + "detail": { + "CREATED": "Erstellt am", + "UPDATED": "Aktualisiert am", + "MODIFIED": "Geändert am", + "INDEXED": "Indexiert am", + "MAINTAINER": "zur Verfügung gestellt von", + "RESPONSIBLE": "Verantwortlich" + } + } + } + }, + "favorites": { + "page": { + "TITLE": "Favoriten" + } + }, + "feedback": { + "page": { + "TITLE": "Feedback" + }, + "form": { + "name": { + "label": "Name", + "placeholder": "Dein Name" + }, + "type": { + "label": "Feedback-Art", + "values": { + "bug": "Fehler", + "comment": "Kommentar" + } + }, + "email": { + "label": "E-Mail", + "placeholder": "deine@mailadresse" + }, + "message": { + "label": "Nachricht", + "placeholder": "Deine Nachricht an uns... (minimal {{number}} Zeichen lang)" + }, + "termsAgree": [ + "Hiermit bestätige ich, dass ich die Datenschutzerklärung gelesen habe und ihnen zustimme.", + "Hier geht es zu unserer Datenschutzerklärung" + ], + "protocolDataAgree": "Ich bin damit einverstanden, dass die folgenden Protokolldaten zur Nachverfolgbarkeit von Fehlern mitversandt werden. Es erfolgt keine Weitergabe dieser Daten an Dritte.", + "submit": "Absenden", + "protocolData": { + "show": "Protokolldaten einblenden", + "hide": "Protokolldaten ausblenden" + } + }, + "system_messages": { + "success": "Danke für Dein Feedback." + } + }, + "map": { + "page": { + "TITLE": "Karte", + "search_bar": { + "placeholder": "Gebäude, Points of Interest, Mensen und mehr" + }, + "buttons": { + "SHOW_LIST": "Als Liste ansehen", + "MORE": "Mehr" + }, + "geolocation": { + "TITLE": "Standort nicht verfügbar", + "NOT_ENABLED": "Die Standortermittlung auf dem Gerät ist nicht aktiviert", + "NOT_ALLOWED": "Du hast den Zugriff auf deinen Standort für diese App abgelehnt. Nutze die Datenschutz-Einstellungen deines Gerätes um den Zugriff zu erlauben." + } + }, + "modals": { + "single": { + "TITLE": "Angezeigter Ort" + }, + "list": { + "TITLE": "Angezeigte Orte" + } + } + }, + "catalog": { + "title": "Vorlesungsverzeichnis", + "detail": { + "EMPTY_SEMESTER": "Keine Verzeichnisdaten für das ausgewählte Semester vorhanden", + "EMPTY_CATALOG": "Keine Veranstaltung in diesem Bereich gefunden" + } + }, + "library": { + "account": { + "title": "Bibliothekskonto", + "greeting": "Hallo", + "login": { + "success": "Du bist eingeloggt und kannst Dein Konto nutzen.", + "error": "Du bist nicht eingeloggt oder deine Sitzung ist abgelaufen." + }, + "pages": { + "profile": { + "title": "Deine persönlichen Daten", + "labels": { + "id": "Bibliotheksausweisnummer", + "name": "Name", + "email": "E-Mail", + "address": "Adresse", + "expires": "Nutzungsberechtigung", + "status": "Status", + "type": "Typ", + "note": "Nachricht" + }, + "values": { + "unlimited": "unbefristet", + "expires": "endet am" + } + }, + "holds": { + "title": "Bestellungen und Vormerkungen", + "labels": { + "title": "Titel", + "about": "Mehr Informationen", + "label": "Signatur", + "endtime": "Abzuholen bis", + "storage": "Abholbereit" + }, + "holds": "Bestellungen", + "reservations": "Vormerkungen" + }, + "checked_out": { + "title": "Deine Ausleihen", + "labels": { + "title": "Titel", + "about": "Mehr Informationen", + "label": "Signatur", + "endtime": "Leihfristende", + "renewals": "Verlängerungen" + } + }, + "fines": { + "title": "Gebühren", + "labels": { + "amount": "Betrag", + "about": "Information", + "date": "Leihfristende", + "item": "Artikel", + "edition": "Ausgabe", + "feetype": "Gebührenart", + "feeid": "Gebühren ID", + "total_amount": "Gesamtbetrag" + } + } + }, + "actions": { + "cancel": { + "header": "Vormerkung löschen", + "text": "Soll die Vormerkung von \"{{value}}\" gelöscht werden?", + "unknown_book": "unbekannter Titel", + "success": "Vormerkung erfolgreich gelöscht." + }, + "renew": { + "header": "Ausleihfrist verlängern", + "text": "Soll die Ausleihfrist von \"{{value}}\" verlängert werden?", + "unknown_book": "unbekannter Titel", + "success": "Ausleihfrist erfolgreich verlängert." + } + } + } + }, + "menu": { + "context": { + "title": "Kontext Menü", + "sort": { + "title": "Sortierung", + "relevance": "Relevanz", + "name": "Name", + "date": "Datum", + "type": "Typ" + }, + "filter": { + "title": "Filter", + "options": "Optionen", + "showAll": "alle anzeigen" + }, + "settings": "Einstellungen" + } + }, + "news": { + "title": "Aktuelles" + }, + "canteens": { + "title": "Mensa" + }, + "search": { + "title": "Universal Suche", + "type": "Suche", + "search_bar": { + "placeholder": "Veranstaltungen, Personen, Orte und mehr" + }, + "instruction": "Finde alle Informationen rund ums Studium und den Campus", + "nothing_found": "Keine Ergebnisse" + }, + "hebisSearch": { + "title": "Bibliothekssuche", + "type": "Bibliothek", + "search_bar": { + "placeholder": "Bücher, mehrteilige Werke, Zeitschriften und mehr" + }, + "instruction": "Durchsuche den Katalog der Bibliothek", + "nothing_found": "Keine Ergebnisse", + "detail": { + "title": "Titel", + "description": "Umfang", + "firstPublished": "Erscheinungsjahr" + }, + "daia": { + "availability": "Verfügbarkeit", + "status": "Status", + "status_states": { + "checked_out": "ausgeliehen", + "not_yet_available": "noch nicht verfügbar", + "not_available": "nicht verfügbar", + "library_only": "nur vor Ort benutzbar", + "available": "ausleihbar", + "unknown": "unbekannt" + }, + "dueDate": "Leihfristende", + "location": "Standort", + "signature": "Signatur", + "comment": "Kommentar", + "order": "bestellen", + "reserve": "vormerken", + "issn": "ISSN", + "ejournal": "ejournal", + "unknownAvailability": "Keine Information vorhanden", + "unavailableAvailability": "System nicht erreichbar", + "fulltext": "Zum Volltext", + "holdings": "Bestand" + } + }, + "schedule": { + "toCalendar": { + "reviewModal": { + "TITLE": "Termine bestätigen", + "EXPORT": "Zum Kalender exportieren", + "DOWNLOAD": "Termine herunterladen", + "INCLUDE_CANCELLED": "Abgesagte Termine einbeziehen", + "shareData": { + "TITLE": "Kalender", + "TEXT": "Enthält Termine aus der StApps App", + "FILE_NAME": "kalender" + }, + "dialogs": { + "toCalendarConfirm": { + "TITLE": "Zum Kalender exportieren", + "DESCRIPTION": "Termine zum Gerätekalender exportieren?" + }, + "cannotShare": { + "TITLE": "Teilen nicht möglich", + "DESCRIPTION": "Die Teilen Funktionalität wird von diesem Browser nicht unterstützt." + }, + "unsupportedFileType": { + "TITLE": "Dateityp nicht unterstützt", + "DESCRIPTION": "Kalenderdateien können von diesem Browser aus nicht geteilt werden." + }, + "failedShare": { + "TITLE": "Fehler beim Teilen", + "DESCRIPTION": "Unbekannter Fehler beim Teilen." + } + } + } + }, + "view": { + "today": "Heute" + }, + "recurring": "Stundenplan", + "calendar": "Kalender", + "single": "Einzeltermine", + "addEventModal": { + "addEvent": "Events Hinzufügen" + }, + "card": { + "forEach": "Alle", + "until": "bis" + } + }, + "chips": { + "addEvent": { + "addEvent": "Event hinzufügen", + "addedToEvents": "Event hinzugefügt", + "pastEvent": "Event ist vorbei" + } + }, + "profile": { + "title": "Meine App", + "titleLogins": "Logins", + "titleCourses": "Meine Kurse", + "role_guest": "Gastnutzer", + "buttons": { + "default": { + "log_in": "Login", + "log_out": "Ausloggen" + }, + "paia": { + "log_in": "Login Bibliothek", + "log_out": "Ausloggen (Bibliothek)" + } + }, + "userInfo": { + "studentId": "Matrikelnr.", + "username": "Nutzername", + "email": "Email", + "logInPrompt": "Bitte loggen Sie sich ein, um Ihre Nutzerdaten sehen zu können." + }, + "courses": { + "today": "Heute", + "no_courses": "Heute stehen keine Termine mehr an." + } + }, + "settings": { + "resetAlert.title": "Alle Einstellungen zurücksetzen?", + "resetAlert.message": "Sind Sie sich sicher, alle Einstellungen auf ihre Anfangswerte zurückzusetzen?", + "resetAlert.buttonYes": "Ja", + "resetAlert.buttonCancel": "Abbrechen", + "resetToast.message": "Einstellungen wurden zurückgesetzt", + "title": "Einstellungen", + "resetSettings": "Einstellungen zurücksetzen", + "calendar": { + "title": "Kalender", + "sync": { + "title": "Synchronisierung", + "unavailableWeb": "Synchronisierung mit dem Gerätekalender wird im Web nicht unterstützt.", + "syncWithCalendar": "Mit Gerätekalender synchronisieren", + "eventNotifications": "Bei Terminänderungen benachrichtigen" + }, + "export": { + "title": "Export", + "exportEvents": "Alle Termine exportieren", + "backup": "Backup", + "restore": "Wiederherstellen", + "fileName": "kalender_backup", + "dialogs": { + "backup": { + "save": { + "title": "StApps Kalender Backup", + "message": "Enthält eine vollständige Terminliste des Kalenders. Diese Datei kann zum wiederherstellen des Kalenders wieder importiert werden." + } + }, + "restore": { + "rejectFile": { + "title": "Ungültige Datei", + "message": "Die ausgewählte Datei ist keine gültige StApps Kalender Backup-Datei." + }, + "success": { + "title": "Wiederherstellung erfolgreich", + "message": "Der Kalender wurde erfolgreich wiederhergestellt." + }, + "error": { + "title": "Wiederherstellung fehlgeschlagen", + "message": "Beim Wiederherstellen des Kalenders ist ein Fehler aufgetreten." + } + } + } + } + } + } +} diff --git a/frontend/app/src/assets/i18n/en.json b/frontend/app/src/assets/i18n/en.json new file mode 100644 index 00000000..4075ccf1 --- /dev/null +++ b/frontend/app/src/assets/i18n/en.json @@ -0,0 +1,544 @@ +{ + "ok": "Ok", + "yes": "Yes", + "no": "No", + "abort": "Abort", + "save": "Save", + "back": "back", + "export": "Export", + "share": "Share", + "timeSuffix": "", + "modal": { + "DISMISS_NEUTRAL": "Close", + "DISMISS_CANCEL": "Cancel", + "DISMISS_CONFIRM": "Confirm", + "DISMISS": "Close", + "TITLE_EDIT": "Edit", + "dismiss_warn_pending_changes": { + "TITLE": "Pending changes", + "SAVE": "Save", + "DISCARD": "Discard", + "CANCEL": "Cancel" + }, + "settings": "Settings" + }, + "app": { + "ui": { + "CLOSE": "Close", + "ERROR": "Error" + }, + "errors": { + "SERVICE": "Service error.", + "UNKNOWN": "Unknown problem.", + "OFFLINE": "No internet connection", + "CONNECTION_ERROR": "Connection error" + } + }, + "assessments": { + "TITLE": "Grades", + "courseOfStudyAssessments": { + "PROGRESS": "Progress", + "ASSESSMENTS": "Assessments" + } + }, + "auth": { + "messages": { + "encourage_login": "Log in for more", + "default": { + "authorizing": "Authorizing...", + "logged_in_success": "Successfully logged in.", + "logged_out_success": "Successfully logged out.", + "log_out_alert": { + "header": "Complete logout", + "message": "You are now logged out in your app. Do you want to log out from your identity provider as well? If unsure, please choose \"Yes\"." + } + }, + "paia": { + "authorizing": "Authorizing (library)...", + "logged_in_success": "Successfully logged in to library.", + "logged_out_success": "Successfully logged out from library.", + "log_out_alert": { + "header": "Logged out...", + "message": "You are now logged out within the app. Do you also want to end the browser session? If in doubt, choose \"Yes\"." + } + } + } + }, + "common": { + "openingHours": { + "closing": "Closing {{relativeDateTime}}", + "closing_soon_warning": "Closing soon! At {{time}}", + "closing_today": "Closing at {{time}}", + "state_closed": "Closed", + "state_maybe": "Maybe open", + "state_open": "Open", + "opening": "Opens {{relativeDateTime}}", + "opening_today": "Opens at {{time}}", + "opening_soon_warning": "Opens soon! At {{time}}" + } + }, + "dashboard": { + "header": { + "title_morning": "Good Morning", + "title_day": "Good Day", + "title_evening": "Good Evening", + "title_night": "Good Night" + }, + "navigation": { + "title": "Dashboard", + "item": { + "catalog": "Course Catalog", + "canteen": "Canteens", + "map": "Map", + "settings": "Settings", + "search": "Search" + } + }, + "news": { + "title": "News", + "moreNews": "More News" + }, + "schedule": { + "title": "Next Unit", + "noEvent": "No entry found", + "noEventLink": "Add appointments to the timetable now." + }, + "canteens": { + "title": "Your canteen", + "no_favorite_prefix": "You haven't yet marked a canteen as your favorite. Use the", + "no_favorite_link": "overview of the canteens", + "no_favorite_suffix": "to mark a favorite.", + "choose_favorite": "Mark a favorite", + "no_dishes_available": "There are currently no dishes available." + }, + "favorites": { + "title": "Your favorites", + "no_favorite_prefix": "You have not yet marked any favorites. Use the", + "no_favorite_link": "Search", + "no_favorite_suffix": "to choose favorites." + } + }, + "data": { + "REFRESH_ACTION": "Refresh", + "REFRESHING": "Refreshing...", + "detail": { + "TITLE": "Details", + "NOT_FOUND": "Not found", + "COULD_NOT_CONNECT": "Couldn't connect", + "address": { + "TITLE": "address", + "STREET": "street", + "POSTCODE": "postcode", + "CITY": "city", + "REGION": "region", + "COUNTRY": "country", + "POST_OFFICE_BOX": "post office box" + }, + "offers": { + "TITLE": "offers", + "default": "Default", + "employee": "Employees", + "guest": "Guests", + "student": "Students", + "sold_out": "Sold Out!" + } + }, + "chips": { + "add_events": { + "ADDED_ALL": "Added", + "ADDED_SOME": "Added Some Events", + "REMOVED_ALL": "Choose Events", + "UNAVAILABLE": "No Associated Events", + "popover": { + "ALL": "All Events", + "AT": "at", + "UNTIL": "until", + "SINGLE": "single" + } + } + }, + "types": { + "dish": { + "CHARACTERISTICS": "Ingredients", + "EMPTY_DISHES": "No Offers Available", + "detail": { + "breakfast": "Breakfast", + "dinner": "Dinner", + "lunch": "Lunch", + "AVG_NUTRITION_INFO": "Average Nutrition Facts", + "CALORIES": "Calories", + "FAT_TOTAL": "Fat", + "FAT_SATURATED": "Saturated Fat", + "CARBOHYDRATE": "Carbohydrate", + "SALT": "Salt", + "SUGAR": "Sugars", + "PROTEIN": "Protein" + } + }, + "origin": { + "TITLE": "origin", + "USER": "user", + "REMOTE": "remote", + "detail": { + "CREATED": "created at", + "UPDATED": "updated at", + "MODIFIED": "modified at", + "INDEXED": "indexed", + "MAINTAINER": "maintainer", + "RESPONSIBLE": "responsible entity" + } + } + } + }, + "favorites": { + "page": { + "TITLE": "Favorites" + } + }, + "feedback": { + "page": { + "TITLE": "Feedback" + }, + "form": { + "name": { + "label": "Name", + "placeholder": "Your name" + }, + "type": { + "label": "Type of feedback", + "values": { + "bug": "Bug", + "comment": "Comment" + } + }, + "email": { + "label": "Mail", + "placeholder": "your@mailaddress" + }, + "message": { + "label": "Message", + "placeholder": "Your message for us... (minimum {{number}} characters)" + }, + "termsAgree": [ + "I hereby confirm that I have read and agree to the terms of privacy policy.", + "Here you can find our privacy policy" + ], + "protocolDataAgree": "I agree to provide the following protocol data for easier traceability of errors. The data will not be forwarded to any third parties.", + "submit": "Submit", + "protocolData": { + "show": "Show protocol data", + "hide": "Hide protocol data" + } + }, + "system_messages": { + "success": "Thank you for your feedback." + } + }, + "map": { + "page": { + "TITLE": "Map", + "search_bar": { + "placeholder": "Buildings, points of interests, canteens and more" + }, + "buttons": { + "SHOW_LIST": "Show as list", + "MORE": "More" + }, + "geolocation": { + "TITLE": "Location not available", + "NOT_ENABLED": "Location services are not enabled on your device", + "NOT_ALLOWED": "The app is not allowed to access your location. Use your device privacy settings to allow it again." + } + }, + "modals": { + "single": { + "TITLE": "Place shown" + }, + "list": { + "TITLE": "Places shown" + } + } + }, + "catalog": { + "title": "course catalog", + "detail": { + "EMPTY_SEMESTER": "No catalog data available for selected semester", + "EMPTY_CATALOG": "No events were found in this area" + } + }, + "library": { + "account": { + "title": "library account", + "greeting": "Hello", + "login": { + "success": "You are logged-in and ready to access your account.", + "error": "Not logged in or login expired." + }, + "pages": { + "profile": { + "title": "library profile", + "labels": { + "id": "Card number", + "name": "Name", + "email": "Email", + "address": "Address", + "expires": "Membership", + "status": "Status", + "type": "Type", + "note": "Note" + }, + "values": { + "unlimited": "unlimited", + "expires": "expires" + } + }, + "holds": { + "title": "Orders and reservations", + "labels": { + "title": "Title", + "about": "More information", + "label": "Shelfmark", + "endtime": "Available for pickup until", + "storage": "Available for pickup" + }, + "holds": "orders", + "reservations": "reservations" + }, + "checked_out": { + "title": "checked out items", + "labels": { + "title": "Title", + "about": "More information", + "label": "Label", + "endtime": "Due date", + "renewals": "Renewals" + } + }, + "fines": { + "title": "fines", + "labels": { + "amount": "Amount", + "about": "About", + "date": "Due date", + "item": "Item", + "edition": "Edition", + "feetype": "Fee type", + "feeid": "Fee ID", + "total_amount": "Total amount" + } + } + }, + "actions": { + "cancel": { + "header": "Cancel reservation", + "text": "Are you sure you want to extend the lending period of \"{{value}}\"?", + "unknown_book": "unknown title", + "success": "Reservation cancelled successfully." + }, + "renew": { + "header": "Extend lending period", + "text": "Are you sure you want to extend the lending period of \"{{value}}\"?", + "unknown_book": "unknown title", + "success": "Lending period extended successfully." + } + } + } + }, + "menu": { + "context": { + "title": "context menu", + "sort": { + "title": "sort", + "relevance": "relevance", + "name": "name", + "date": "date", + "type": "type" + }, + "filter": { + "title": "filter", + "options": "options", + "showAll": "show all" + }, + "settings": "settings" + } + }, + "news": { + "title": "News" + }, + "canteens": { + "title": "Canteens" + }, + "search": { + "title": "Universal Search", + "type": "Search", + "search_bar": { + "placeholder": "Events, places, persons and more" + }, + "instruction": "Find all information related to your studies and campus", + "nothing_found": "No results" + }, + "hebisSearch": { + "title": "Library Search", + "type": "Library", + "search_bar": { + "placeholder": "Books, journals, multipart items and more" + }, + "instruction": "Search through the vast library catalogue", + "nothing_found": "No results", + "detail": { + "title": "Title", + "description": "Scope", + "firstPublished": "Year of publication" + }, + "daia": { + "availability": "Availability", + "status": "Status", + "status_states": { + "checked_out": "checked out", + "not_yet_available": "not yet available", + "not_available": "not available", + "library_only": "for use in library only", + "available": "available", + "unknown": "unknown" + }, + "dueDate": "Due date", + "location": "Location", + "signature": "Shelfmark", + "comment": "Remark", + "order": "request", + "reserve": "reserve", + "issn": "ISSN", + "ejournal": "ejournal", + "unknownAvailability": "No information available", + "unavailableAvailability": "System unreachable", + "fulltext": "Full text", + "holdings": "Holdings" + } + }, + "schedule": { + "toCalendar": { + "reviewModal": { + "TITLE": "Confirm events", + "EXPORT": "Export to calendar", + "DOWNLOAD": "Download events", + "INCLUDE_CANCELLED": "Include cancelled events", + "shareData": { + "TITLE": "Calendar", + "TEXT": "Contains events from StApps", + "FILE_NAME": "calendar" + }, + "dialogs": { + "toCalendarConfirm": { + "TITLE": "Export to calendar", + "DESCRIPTION": "Do you want to export the selected events to your device calendar?" + }, + "cannotShare": { + "TITLE": "Sharing failed", + "DESCRIPTION": "Your browser does not support sharing." + }, + "unsupportedFileType": { + "TITLE": "Unsupported file type", + "DESCRIPTION": "Your browser does not support sharing calendar files." + }, + "failedShare": { + "TITLE": "Sharing failed", + "DESCRIPTION": "Sharing failed. Please try again." + } + } + } + }, + "view": { + "today": "Today" + }, + "recurring": "Recurring", + "calendar": "Calendar", + "single": "Single Events", + "addEventModal": { + "addEvent": "Add Events" + }, + "card": { + "forEach": "Every", + "until": "until" + } + }, + "chips": { + "addEvent": { + "addEvent": "Add event", + "addedToEvents": "Added to events", + "pastEvent": "Event is over" + } + }, + "profile": { + "title": "My App", + "titleLogins": "Logins", + "titleCourses": "My Courses", + "role_guest": "guest user", + "buttons": { + "default": { + "log_in": "Login", + "log_out": "Logout" + }, + "paia": { + "log_in": "Library Login", + "log_out": "Log Out (Library)" + } + }, + "userInfo": { + "studentId": "Matriculation Nr.", + "username": "Username", + "email": "Email", + "logInPrompt": "Please log in to view your user data." + }, + "courses": { + "today": "Today", + "no_courses": "There are no more appointments scheduled today." + } + }, + "settings": { + "resetAlert.title": "Reset all settings?", + "resetAlert.message": "Are you sure to reset all settings to their default values?", + "resetAlert.buttonYes": "yes", + "resetAlert.buttonCancel": "cancel", + "resetToast.message": "Settings reset", + "title": "Settings", + "resetSettings": "Reset Settings", + "calendar": { + "title": "Calendar", + "sync": { + "title": "Sync", + "unavailableWeb": "Sync with device calendar is not available in web version.", + "syncWithCalendar": "Sync with device calendar", + "eventNotifications": "Event update notifications" + }, + "export": { + "title": "Export", + "exportEvents": "Export all events", + "backup": "Backup", + "restore": "Restore", + "fileName": "calendar_backup", + "dialogs": { + "backup": { + "save": { + "title": "StApps Calendar Backup", + "message": "Contains a list of all events in the calendar. You can import this file to restore your calendar." + } + }, + "restore": { + "rejectFile": { + "title": "Invalid file", + "message": "The file you selected is not a valid backup file." + }, + "success": { + "title": "Restore successful", + "message": "Calendar has been restored successfully." + }, + "error": { + "title": "Restore failed", + "message": "Backup file is corrupted." + } + } + } + } + } + } +} diff --git a/frontend/app/src/assets/icon/favicon.png b/frontend/app/src/assets/icon/favicon.png new file mode 100644 index 00000000..b7705366 Binary files /dev/null and b/frontend/app/src/assets/icon/favicon.png differ diff --git a/frontend/app/src/assets/icons.min.woff2 b/frontend/app/src/assets/icons.min.woff2 new file mode 100644 index 00000000..81dd2c19 Binary files /dev/null and b/frontend/app/src/assets/icons.min.woff2 differ diff --git a/frontend/app/src/assets/imgs/header.svg b/frontend/app/src/assets/imgs/header.svg new file mode 100644 index 00000000..637036c1 --- /dev/null +++ b/frontend/app/src/assets/imgs/header.svg @@ -0,0 +1,197 @@ + + + +image/svg+xml + diff --git a/frontend/app/src/assets/imgs/logo.png b/frontend/app/src/assets/imgs/logo.png new file mode 100644 index 00000000..c841e8de Binary files /dev/null and b/frontend/app/src/assets/imgs/logo.png differ diff --git a/frontend/app/src/assets/imgs/open stapps logo.svg b/frontend/app/src/assets/imgs/open stapps logo.svg new file mode 100644 index 00000000..128d61cc --- /dev/null +++ b/frontend/app/src/assets/imgs/open stapps logo.svg @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/app/src/assets/imgs/profile-card-head.svg b/frontend/app/src/assets/imgs/profile-card-head.svg new file mode 100644 index 00000000..c3ca1a54 --- /dev/null +++ b/frontend/app/src/assets/imgs/profile-card-head.svg @@ -0,0 +1,57 @@ + + + + + + image/svg+xml + + Person + + + + + + Person + + diff --git a/frontend/app/src/environments/environment.production.ts b/frontend/app/src/environments/environment.production.ts new file mode 100644 index 00000000..c19d7443 --- /dev/null +++ b/frontend/app/src/environments/environment.production.ts @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2018-2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +// The file contents for the current environment will overwrite these during build. +// The build system defaults to the dev environment which uses `environment.ts`, but if you do +// `ng build --env=prod` then `environment.production.ts` will be used instead. +// The list of which env maps to which file can be found in `.angular-cli.json`. + +export const environment = { + backend_url: 'https://mobile.server.uni-frankfurt.de', + app_host: 'mobile.app.uni-frankfurt.de', + custom_url_scheme: 'de.anyschool.app', + backend_version: '2.0.0', + production: true, +}; + +/* + * In development mode, to ignore zone related error stack frames such as + * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can + * import the following file, but please comment it out in production mode + * because it will have performance impact when throw error + */ +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/frontend/app/src/environments/environment.ts b/frontend/app/src/environments/environment.ts new file mode 100644 index 00000000..7849551f --- /dev/null +++ b/frontend/app/src/environments/environment.ts @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2018-2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +// The file contents for the current environment will overwrite these during build. +// The build system defaults to the dev environment which uses `environment.ts`, but if you do +// `ng build --env=prod` then `environment.production.ts` will be used instead. +// The list of which env maps to which file can be found in `.angular-cli.json`. + +export const environment = { + backend_url: 'https://mobile.server.uni-frankfurt.de', + app_host: 'mobile.app.uni-frankfurt.de', + custom_url_scheme: 'de.anyschool.app', + backend_version: '2.0.0', + production: false, +}; + +/* + * In development mode, to ignore zone related error stack frames such as + * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can + * import the following file, but please comment it out in production mode + * because it will have performance impact when throw error + */ +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/frontend/app/src/global.scss b/frontend/app/src/global.scss new file mode 100644 index 00000000..44fd495a --- /dev/null +++ b/frontend/app/src/global.scss @@ -0,0 +1,140 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +// http://ionicframework.com/docs/theming/ +@import '~@ionic/angular/css/normalize.css'; +@import '~@ionic/angular/css/structure.css'; +@import '~@ionic/angular/css/typography.css'; +@import '~@ionic/angular/css/core.css'; + +@import '~@ionic/angular/css/padding.css'; +@import '~@ionic/angular/css/float-elements.css'; +@import '~@ionic/angular/css/text-alignment.css'; +@import '~@ionic/angular/css/text-transformation.css'; +@import '~@ionic/angular/css/flex-utils.css'; +@import '~@ionic/angular/css/display.css'; + +// https://swiperjs.com/angular#styles +@import 'swiper/scss'; +@import 'swiper/scss/controller'; + +// @import 'material-symbols/rounded.scss'; +@import './theme/material-symbols.scss'; +@import './theme/common/_ion-content-parallax.scss'; + +/* StApps */ + +stapps-icon { + --size-unit: 1px; + --weight: 400; + --grade: 0; + --fill: 0; +} + +.map-location-pin { + font-variation-settings: 'FILL' 1; + color: var(--ion-color-tertiary); + + &::before { + content: attr(name); + position: absolute; + top: 0; + left: 0; + font-variation-settings: 'FILL' 0; + color: white; + z-index: -1; + } +} + +ion-item { + h2.name { + font-weight: bold; + } + ion-thumbnail { + background: transparent; + --size: 36px; + display: flex; + align-items: center; + padding: 10px; + margin: 0; + ion-icon { + width: 100%; + height: 100%; + color: white; + display: block; + } + } +} + +ion-item, +ion-card.compact { + ion-grid, + ion-col { + padding-inline-start: 0; + padding-top: 0; + padding-bottom: 0; + } +} + +.centeredMessageContainer { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + min-height: 50vh; + margin: 20px; + + ion-icon { + font-size: 64px; + } + + ion-label { + font-size: x-large; + } +} + +.add-event-popover { + --width: fit-content; + --max-width: 95%; +} + +ion-card.bold-header { + ion-card-header { + font-weight: bold; + } +} +ion-header { + stapps-favorite-button { + ion-icon { + color: var(--ion-color-primary-contrast); + } + } +} + +.ion-content-parallax { + @include ion-content-parallax(); +} + +ion-alert { + button.alert-button.preferred { + background-color: var(--ion-color-primary); + color: var(--ion-color-primary-contrast); + } + button.alert-button.default { + background-color: transparent; + color: var(--ion-color-primary); + } +} diff --git a/frontend/app/src/index.html b/frontend/app/src/index.html new file mode 100644 index 00000000..c39e6c12 --- /dev/null +++ b/frontend/app/src/index.html @@ -0,0 +1,30 @@ + + + + + + StApps + + + + + + + + + + + + + + + + + + diff --git a/frontend/app/src/main.ts b/frontend/app/src/main.ts new file mode 100644 index 00000000..bac43391 --- /dev/null +++ b/frontend/app/src/main.ts @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2018, 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +import {enableProdMode} from '@angular/core'; +import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {AppModule} from './app/app.module'; +import {environment} from './environments/environment'; + +if (environment.production) { + enableProdMode(); +} + +platformBrowserDynamic() + .bootstrapModule(AppModule) + // eslint-disable-next-line unicorn/prefer-top-level-await + .catch(async error => console.error(error)); diff --git a/frontend/app/src/polyfills.ts b/frontend/app/src/polyfills.ts new file mode 100644 index 00000000..3a7b7b01 --- /dev/null +++ b/frontend/app/src/polyfills.ts @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2018, 2019 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes recent versions of Safari, Chrome (including + * Opera), Edge on the desktop, and iOS and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + +/*************************************************************************************************** + * BROWSER POLYFILLS + */ + +/** + * By default, zone.js will patch all possible macroTask and DomEvents + * user can disable parts of macroTask/DomEvents patch by setting following flags + * because those flags need to be set before `zone.js` being loaded, and webpack + * will put import in the top of bundle, so user need to create a separate file + * in this directory (for example: zone-flags.ts), and put the following flags + * into that file, and then add the following code before importing zone.js. + * import './zone-flags'; + * + * The flags allowed in zone-flags.ts are listed here. + * + * The following flags will work for all browsers. + * + * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick + * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + * + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + * + * (window as any).__Zone_enable_cross_context_check = true; + * + */ + +/*************************************************************************************************** + * Zone JS is required by default for Angular itself. + */ +import 'zone.js'; // Included with Angular CLI. + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ + +/** + * Date, currency, decimal and percent pipes. + * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 + */ +// import 'intl'; // Run `npm install --save intl`. +/** + * Need to import at least one locale-data with intl. + */ +// import 'intl/locale-data/jsonp/en'; diff --git a/frontend/app/src/test.ts b/frontend/app/src/test.ts new file mode 100644 index 00000000..01f23c58 --- /dev/null +++ b/frontend/app/src/test.ts @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +// This file is required by karma.conf.js and loads recursively all the .spec and framework files +import 'zone.js/testing'; +import {getTestBed} from '@angular/core/testing'; +import { + BrowserDynamicTestingModule, + platformBrowserDynamicTesting, +} from '@angular/platform-browser-dynamic/testing'; + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +declare const require: any; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); +// Then we find all the tests. +const context = require.context('./', true, /\.spec\.ts$/); +// And load the modules. +context.keys().map(context); diff --git a/frontend/app/src/theme/_fonts.scss b/frontend/app/src/theme/_fonts.scss new file mode 100644 index 00000000..2ab69531 --- /dev/null +++ b/frontend/app/src/theme/_fonts.scss @@ -0,0 +1,51 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@font-face { + font-family: 'Barlow'; + src: url('../assets/fonts/barlow/Barlow-Regular.ttf'); + font-weight: 400; + font-style: normal; +} +@font-face { + font-family: 'Barlow'; + src: url('../assets/fonts/barlow/Barlow-SemiBold.ttf'); + font-weight: 700; + font-style: normal; +} +@font-face { + font-family: 'Barlow'; + src: url('../assets/fonts/barlow/Barlow-Bold.ttf'); + font-weight: 800; + font-style: normal; +} +@font-face { + font-family: 'Barlow Condensed'; + src: url('../assets/fonts/barlow_condensed/BarlowCondensed-Regular.ttf'); + font-weight: 400; + font-style: normal; +} +@font-face { + font-family: 'Barlow Condensed'; + src: url('../assets/fonts/barlow_condensed/BarlowCondensed-SemiBold.ttf'); + font-weight: 700; + font-style: normal; +} +@font-face { + font-family: 'Barlow Condensed'; + src: url('../assets/fonts/barlow_condensed/BarlowCondensed-Bold.ttf'); + font-weight: 800; + font-style: normal; +} diff --git a/frontend/app/src/theme/common/_helper.scss b/frontend/app/src/theme/common/_helper.scss new file mode 100644 index 00000000..9b4ea081 --- /dev/null +++ b/frontend/app/src/theme/common/_helper.scss @@ -0,0 +1,70 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.no-padding-right { + padding-right: 0 !important; +} + +.no-padding-inline-start { + padding-inline-start: 0 !important; +} + +.display-flex { + display: flex; +} + +.clickable { + cursor: pointer; +} + +%vertical-list { + ul { + margin: 0; + padding: 0; + + li { + list-style-type: none; + } + + li img { + max-height: 1.25rem; + vertical-align: text-bottom; + filter: invert(45%) sepia(0%) saturate(0%) hue-rotate(227deg) brightness(97%) contrast(82%); + } + } +} + +%horizontal-list { + @extend %vertical-list; + ul { + li { + display: inline; + } + li:not(:first-child):before { + content: ' • '; + } + } +} + +.vertical-list { + @extend %vertical-list; +} + +.horizontal-list { + @extend %vertical-list; + li { + display: inline; + } +} diff --git a/frontend/app/src/theme/common/_ion-button.scss b/frontend/app/src/theme/common/_ion-button.scss new file mode 100644 index 00000000..63094009 --- /dev/null +++ b/frontend/app/src/theme/common/_ion-button.scss @@ -0,0 +1,54 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +app-root { + // Change default border radius + ion-buttons ion-button.button, + .button { + &:not(.button-round) { + --border-radius: var(--border-radius-default); + } + } + + .button { + font-size: var(--font-size-sm); + font-weight: var(--font-weight-semi-bold); + --padding-top: var(--spacing-sm); + --padding-bottom: var(--spacing-sm); + height: auto; + + // Add default border, so buttons have the same size + &:not([fill='outline'])::part(native) { + border: var(--border-width-default) solid transparent; + } + + &[fill='outline']::part(native) { + border: var(--border-width-default) solid rgba(var(--ion-color-primary-contrast-rgb), 0.2); + } + + &.button-active { + font-weight: var(--font-weight-bold); + --background: var(--ion-color-tertiary); + + ion-icon { + color: var(--ion-color-secondary); + } + } + } + + ion-menu-button.button { + font-size: var(--font-size-lg); + } +} diff --git a/frontend/app/src/theme/common/_ion-content-parallax.scss b/frontend/app/src/theme/common/_ion-content-parallax.scss new file mode 100644 index 00000000..ea54ebb4 --- /dev/null +++ b/frontend/app/src/theme/common/_ion-content-parallax.scss @@ -0,0 +1,55 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@mixin ion-content-parallax( + $parallax-background: var(--ion-color-primary), + $background: var(--ion-color-light), + $parallax-strength: 2, + $overscroll-padding: 720px, + $content-size: 230px +) { + &::part(background) { + background: $background; + } + &::part(scroll) { + perspective: 2px; + perspective-origin: center top; + } + > div { + transform-style: preserve-3d; + position: relative; + + &::after { + content: ' '; + position: absolute; + top: 0; + right: 0; + left: 0; + + $height: calc($content-size + $overscroll-padding); + $translateY: calc($overscroll-padding * $parallax-strength); + $translateZ: calc(-1px * $parallax-strength); + $transform-origin: calc($parallax-strength * $parallax-strength * $overscroll-padding); + + height: $height; + width: 150%; + transform-origin: 50% $transform-origin; + transform: translate3d(0px, $translateY, $translateZ) scale($parallax-strength); + z-index: -1; + + background: $parallax-background; + } + } +} diff --git a/frontend/app/src/theme/common/_ion-header.scss b/frontend/app/src/theme/common/_ion-header.scss new file mode 100644 index 00000000..b08d3731 --- /dev/null +++ b/frontend/app/src/theme/common/_ion-header.scss @@ -0,0 +1,5 @@ +app-root ion-header[class*='header-'] { + &:after { + background-image: unset; + } +} diff --git a/frontend/app/src/theme/common/_ion-img.scss b/frontend/app/src/theme/common/_ion-img.scss new file mode 100644 index 00000000..5d088c38 --- /dev/null +++ b/frontend/app/src/theme/common/_ion-img.scss @@ -0,0 +1,5 @@ +app-root { + ion-thumbnail { + background: transparent; + } +} diff --git a/frontend/app/src/theme/common/_ion-input.scss b/frontend/app/src/theme/common/_ion-input.scss new file mode 100644 index 00000000..2838c006 --- /dev/null +++ b/frontend/app/src/theme/common/_ion-input.scss @@ -0,0 +1,40 @@ +$icon-size: 23px; + +app-root ion-searchbar[class*='sc-ion-searchbar-'] { + --border-radius: var(--border-radius-default); + padding-top: 0; + padding-bottom: 0; + height: 38px; + + &.filterable { + padding-left: 0; + padding-right: 0; + --box-shadow: none; + position: relative; + + ion-menu-button { + position: absolute; + right: 5px; + z-index: 1; + } + + .searchbar-clear-button { + right: 45px; + } + } + + ion-icon.searchbar-search-icon { + width: $icon-size; + height: $icon-size; + top: 50%; + transform: translateY(-50%); + left: var(--spacing-sm); + color: var(--ion-color-medium-shade); + } + + input.searchbar-input { + padding-top: var(--spacing-xs); + padding-bottom: var(--spacing-xs); + padding-left: calc(var(--spacing-lg) + #{$icon-size}); + } +} diff --git a/frontend/app/src/theme/common/_ion-modal.scss b/frontend/app/src/theme/common/_ion-modal.scss new file mode 100644 index 00000000..596253bb --- /dev/null +++ b/frontend/app/src/theme/common/_ion-modal.scss @@ -0,0 +1,12 @@ +@import '../../theme/util/mixins'; + +ion-modal { + &.modal-large { + --height: 100%; + + @include ion-md-up { + --height: 70vh; + --max-height: 800px; + } + } +} diff --git a/frontend/app/src/theme/common/_ion-popover.scss b/frontend/app/src/theme/common/_ion-popover.scss new file mode 100644 index 00000000..6446fa54 --- /dev/null +++ b/frontend/app/src/theme/common/_ion-popover.scss @@ -0,0 +1,19 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.sc-ion-popover-ios-h, +.sc-ion-popover-md-h { + --width: 98vw; +} diff --git a/frontend/app/src/theme/common/_ion-refresher.scss b/frontend/app/src/theme/common/_ion-refresher.scss new file mode 100644 index 00000000..115d32cf --- /dev/null +++ b/frontend/app/src/theme/common/_ion-refresher.scss @@ -0,0 +1,27 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +ion-refresher { + background-color: var(--ion-color-primary); + text-transform: uppercase; + + .refresher-pulling-icon, + .refresher-pulling-text, + .refresher-refreshing-text { + font-size: var(--font-size-xs); + font-weight: var(--font-weight-semi-bold); + --ion-text-color: var(--ion-color-primary-contrast); + } +} diff --git a/frontend/app/src/theme/common/_ion-toolbar.scss b/frontend/app/src/theme/common/_ion-toolbar.scss new file mode 100644 index 00000000..ade500e4 --- /dev/null +++ b/frontend/app/src/theme/common/_ion-toolbar.scss @@ -0,0 +1,77 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +app-root ion-toolbar.in-toolbar { + --background: var(--ion-color-primary); + --border-color: var(--ion-color-primary); + --color: var(--ion-color-primary-contrast); + --ion-toolbar-color: var(--ion-color-primary-contrast); + --min-height: unset; + --padding-start: 0; + --padding-end: 0; + --padding-top: 0; + --padding-bottom: 0; + --opacity: 1; + padding: 0 var(--spacing-md) var(--spacing-md); + + &:first-of-type { + --padding-top: 0; + --padding-bottom: 0; + padding-bottom: 0; + } + + &:last-of-type { + --padding-top: 0; + --padding-bottom: 0; + } + + ion-segment { + &:last-of-type { + --padding-bottom: 0; + padding-bottom: 0; + } + } + + ion-menu-button.filter { + --padding-start: var(--spacing-lg); + --padding-end: var(--spacing-lg); + + ion-icon { + margin-right: var(--spacing-md); + font-size: var(--font-size-lg); + } + } + + ion-title { + font-weight: var(--font-weight-black); + font-size: var(--font-size-lg); + } + + ion-menu-button { + width: auto; + } + + ion-back-button { + --icon-margin-end: var(--spacing-xs); + height: 42px; // this prevents the back button to become a .x px value + } +} + +app-root ion-toolbar.in-toolbar ion-searchbar, +.stapps-searchbar { + padding-left: 0; + padding-right: 0; + --box-shadow: none; +} diff --git a/frontend/app/src/theme/common/_swiper.scss b/frontend/app/src/theme/common/_swiper.scss new file mode 100644 index 00000000..20f7f3ea --- /dev/null +++ b/frontend/app/src/theme/common/_swiper.scss @@ -0,0 +1,53 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +@import '../../theme/util/mixins'; + +.swiper.card-swiper { + overflow: visible; + padding-right: var(--spacing-lg); + + .swiper-slide { + display: flex; + flex-direction: column; + height: auto; // required for same height of cards + + a { + color: var(--ion-color-text); + text-decoration: none; + } + } + .swiper-button-prev, + .swiper-button-next { + --swiper-navigation-size: 20px; + top: calc(-1 * var(--spacing-lg)); + transform: translateY(0%); + font-weight: var(--font-weight-black); + color: var(--ion-color-dark); + + @include ion-md-down { + display: none; + } + } + + .swiper-button-prev { + right: 30px; + left: auto; + } + + .swiper-button-next { + right: 0; + } +} diff --git a/frontend/app/src/theme/common/_typo.scss b/frontend/app/src/theme/common/_typo.scss new file mode 100644 index 00000000..50d3119c --- /dev/null +++ b/frontend/app/src/theme/common/_typo.scss @@ -0,0 +1,18 @@ +body app-root { + .title, + .title[class*='sc-ion-label'] { + font-size: var(--font-size-md); + font-weight: var(--font-weight-semi-bold); + // TODO Condensed Font + } + .title-sub, + .title-sub[class*='sc-ion-label'] { + font-size: var(--font-size-md); + font-weight: var(--font-weight-regular); + // TODO Condensed Font + } + + .title-sub { + color: var(--ion-color-text); + } +} diff --git a/frontend/app/src/theme/common/_typography.scss b/frontend/app/src/theme/common/_typography.scss new file mode 100644 index 00000000..71af95b7 --- /dev/null +++ b/frontend/app/src/theme/common/_typography.scss @@ -0,0 +1,3 @@ +a { + cursor: pointer; +} diff --git a/frontend/app/src/theme/components/_card.scss b/frontend/app/src/theme/components/_card.scss new file mode 100644 index 00000000..01b1f31b --- /dev/null +++ b/frontend/app/src/theme/components/_card.scss @@ -0,0 +1,37 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +.card { + box-shadow: var(--shadow-cards); + background-color: var(--ion-color-primary-contrast); + border-radius: var(--border-radius-default); + padding: var(--spacing-md); + font-size: var(--font-size-sm); + font-weight: var(--font-weight-bold); + text-align: left; + display: block; + height: 100%; + transition: transform 250ms ease-in-out, box-shadow 250ms ease-in-out; +} + +@media (hover: hover) { + a.card, + .card.clickable { + &:hover { + transform: translate(-5px, -5px); + box-shadow: var(--shadow-cards-hover); + } + } +} diff --git a/frontend/app/src/theme/components/_section.scss b/frontend/app/src/theme/components/_section.scss new file mode 100644 index 00000000..d3814393 --- /dev/null +++ b/frontend/app/src/theme/components/_section.scss @@ -0,0 +1,12 @@ +.section-headline { + font-size: var(--font-size-lg); + font-weight: var(--font-weight-black); + font-stretch: condensed; + text-transform: uppercase; + margin-bottom: var(--spacing-sm); + + width: 100%; + display: flex; + flex-direction: revert; + justify-content: space-between; +} diff --git a/frontend/app/src/theme/material-symbols.scss b/frontend/app/src/theme/material-symbols.scss new file mode 100644 index 00000000..67582cce --- /dev/null +++ b/frontend/app/src/theme/material-symbols.scss @@ -0,0 +1,40 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +@font-face { + font-family: 'Material Symbols Rounded'; + font-style: normal; + font-weight: 100 700; + font-display: block; + src: url('../assets/icons.min.woff2') format('woff2'); +} + +.material-symbols-rounded { + //noinspection CssNoGenericFontName + font-family: 'Material Symbols Rounded'; + font-weight: normal; + font-style: normal; + font-size: 24px; + line-height: 1; + letter-spacing: normal; + text-transform: none; + display: inline-block; + white-space: nowrap; + word-wrap: normal; + direction: ltr; + -webkit-font-smoothing: antialiased; // Support for all WebKit browsers + -moz-osx-font-smoothing: grayscale; // Support for Firefox + text-rendering: optimizeLegibility; // Support for Safari and Chrome + font-feature-settings: 'liga'; // Support for IE +} diff --git a/frontend/app/src/theme/util/_mixins.scss b/frontend/app/src/theme/util/_mixins.scss new file mode 100644 index 00000000..d7e2b6b7 --- /dev/null +++ b/frontend/app/src/theme/util/_mixins.scss @@ -0,0 +1,98 @@ +/*! + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Breakpoints copied from node_modules/@ionic/angular/css/display.css + */ + +@mixin ion-sm-up { + @media (min-width: 576px) { + @content; + } +} + +@mixin ion-sm-down { + @media (max-width: 575.98px) { + @content; + } +} + +@mixin ion-md-up { + @media (min-width: 768px) { + @content; + } +} + +@mixin ion-md-down { + @media (max-width: 767.98px) { + @content; + } +} + +@mixin ion-lg-up { + @media (min-width: 992px) { + @content; + } +} + +@mixin ion-lg-down { + @media (max-width: 991.98px) { + @content; + } +} + +@mixin ion-xl-up { + @media (min-width: 1200px) { + @content; + } +} + +@mixin ion-xl-down { + @media (max-width: 1199.98px) { + @content; + } +} + +@mixin phoneLandscape { + @media (max-height: 500px) and (orientation: landscape) { + @content; + } +} + +@mixin phonePortraitSmall { + @media (max-height: 700px) and (orientation: portrait) { + @content; + } +} + +@mixin auto-grid($item-width) { + // fit as many items on the page while keeping items >$item-width, + // but also ensure items get shrunk on small screens + grid-template-columns: repeat(auto-fit, minmax(calc(min($item-width, 100%)), 1fr)); +} + +@mixin border-radius-in-parallax($border-radius) { + border-radius: $border-radius; + // explicitly place element in 3D space + // Safari seems to sometimes get confused + // and disregard border radius in some cases + transform: translateZ(0); +} + +@mixin content-padding { + margin-inline-start: calc( + clamp(0px, (100% - var(--preferred-content-width)) / 2, var(--content-inline-start-padding-bias)) + ); +} diff --git a/frontend/app/src/theme/variables.scss b/frontend/app/src/theme/variables.scss new file mode 100644 index 00000000..bc681cc2 --- /dev/null +++ b/frontend/app/src/theme/variables.scss @@ -0,0 +1,183 @@ +/*! + * Copyright (C) 2022 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +// Ionic Variables and Theming. For more info, please see: +// http://ionicframework.com/docs/theming/ + +/** Ionic CSS Variables **/ +:root { + /** primary **/ + --ion-color-primary: #488aff; + --ion-color-primary-rgb: 72, 138, 255; + --ion-color-primary-contrast: #fff; + --ion-color-primary-contrast-rgb: 255, 255, 255; + --ion-color-primary-shade: #3f79e0; + --ion-color-primary-tint: #5a96ff; + + /** secondary **/ + --ion-color-secondary: #32db64; + --ion-color-secondary-rgb: 50, 219, 100; + --ion-color-secondary-contrast: #fff; + --ion-color-secondary-contrast-rgb: 255, 255, 255; + --ion-color-secondary-shade: #2cc158; + --ion-color-secondary-tint: #47df74; + + /** tertiary **/ + --ion-color-tertiary: #f4a942; + --ion-color-tertiary-rgb: 244, 169, 66; + --ion-color-tertiary-contrast: #fff; + --ion-color-tertiary-contrast-rgb: 255, 255, 255; + --ion-color-tertiary-shade: #d7953a; + --ion-color-tertiary-tint: #f5b255; + + /** success **/ + --ion-color-success: #10dc60; + --ion-color-success-rgb: 16, 220, 96; + --ion-color-success-contrast: #fff; + --ion-color-success-contrast-rgb: 255, 255, 255; + --ion-color-success-shade: #0ec254; + --ion-color-success-tint: #28e070; + + /** warning **/ + --ion-color-warning: #ffce00; + --ion-color-warning-rgb: 255, 206, 0; + --ion-color-warning-contrast: #000; + --ion-color-warning-contrast-rgb: 0, 0, 0; + --ion-color-warning-shade: #e0b500; + --ion-color-warning-tint: #ffd31a; + + /** danger **/ + --ion-color-danger: #f53d3d; + --ion-color-danger-rgb: 245, 61, 61; + --ion-color-danger-contrast: #fff; + --ion-color-danger-contrast-rgb: 255, 255, 255; + --ion-color-danger-shade: #d83636; + --ion-color-danger-tint: #f65050; + + /** light **/ + --ion-color-light: #f4f4f4; + --ion-color-light-rgb: 244, 244, 244; + --ion-color-light-contrast: #000; + --ion-color-light-contrast-rgb: 0, 0, 0; + --ion-color-light-shade: #d7d7d7; + --ion-color-light-tint: #f5f5f5; + + /** medium **/ + --ion-color-medium: #989aa2; + --ion-color-medium-rgb: 152, 154, 162; + --ion-color-medium-contrast: #000; + --ion-color-medium-contrast-rgb: 0, 0, 0; + --ion-color-medium-shade: #86888f; + --ion-color-medium-tint: #a2a4ab; + + /** dark **/ + --ion-color-dark: #222; + --ion-color-dark-rgb: 34, 34, 34; + --ion-color-dark-contrast: #fff; + --ion-color-dark-contrast-rgb: 255, 255, 255; + --ion-color-dark-shade: #1e1e1e; + --ion-color-dark-tint: #383838; + + /** StApps **/ + --placeholder-gray: #f1f0ed; + --calender-date-line-gray: #dbdbdb; + --calender-background-color: #fff; + --calender-background-color-rgb: 255, 255, 255; + --calender-blue-card: var(--ion-color-primary-tint); + --calender-blue-card-rgb: 26, 113, 154; + --calender-black-card: #000000; + --calender-black-card-rgb: 0, 0, 0; + --calender-default-card: var(--ion-color-light); + /** Change the colors of the toolbar and the toolbar text here **/ + --map-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), + 0 1px 5px 0 rgba(0, 0, 0, 0.12); + + --ion-color-text: #000; + --ion-color-field-bg: #fff; + --ion-color-light-icon: #e6e6e6; + + --linear-gradient: linear-gradient(135deg, var(--ion-color-primary-shade), var(--ion-color-tertiary)); + + // Shadows + --shadow-default: 0px 0px 10px 4px #ddd; + --shadow-cards: 0 0 8px 1px #ddd; + --shadow-cards-hover: 5px 5px 8px 4px #ccc; + --shadow-profile-card: 0 2px 6px 6px rgba(0, 0, 0, 0.06), 0 4px 5px 12px rgba(0, 0, 0, 0.04), + 0 5px 6px 20px rgba(0, 0, 0, 0.02); + + // Fonts + --ion-font-family: 'Barlow', Helvetica, Arial, sans-serif; + --headline-font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif; + + --font-size-xxs: 10px; + --font-size-xs: 12px; + --font-size-sm: 14px; + --font-size-md: 16px; + --font-size-lg: 20px; + --font-size-xl: 24px; + + --font-weight-thin: 200; + --font-weight-regular: 400; + --font-weight-semi-bold: 700; + --font-weight-bold: 800; + --font-weight-black: 900; + + // Spacing + --spacing-xs: 4px; + --spacing-sm: 8px; + --spacing-md: 12px; + --spacing-lg: 16px; + --spacing-xl: 20px; + --spacing-xxl: 24px; + + --border-color-default: #dedd; + --border-width-default: 1px; + --border-radius-default: 8px; + + --header-spacing-bottom: 70px; + --navigation-rail-width: 80px; + --navigation-rail-item-height: 56px; + + --icon-stroke-width: 1.2; + + --tablet-top-bar-height: 96px; + + --ion-tabbar-height: 50px; +} + +html, +body { + font-family: var(--ion-font-family); + background-color: var(--ion-color-primary); +} + +@import '~swiper/css/navigation'; + +// Import all other styles +@import 'fonts'; +@import 'common/typo'; +@import 'common/helper'; +@import 'common/ion-button'; +@import 'common/ion-header'; +@import 'common/ion-input'; +@import 'common/ion-modal'; +@import 'common/ion-popover'; +@import 'common/ion-refresher'; +@import 'common/ion-toolbar'; +@import 'common/swiper'; +@import 'common/typography'; + +@import 'components/card'; +@import 'components/section'; diff --git a/frontend/app/tsconfig.app.json b/frontend/app/tsconfig.app.json new file mode 100644 index 00000000..65c9a8a4 --- /dev/null +++ b/frontend/app/tsconfig.app.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/app" + }, + "files": ["src/main.ts", "src/polyfills.ts"], + "include": ["src/**/*.d.ts"] +} diff --git a/frontend/app/tsconfig.json b/frontend/app/tsconfig.json new file mode 100644 index 00000000..43abf762 --- /dev/null +++ b/frontend/app/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "./node_modules/@openstapps/configuration/tsconfig.json", + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "declaration": false, + "emitDecoratorMetadata": true, + "strictPropertyInitialization": false, + "resolveJsonModule": true, + "downlevelIteration": true, + "importHelpers": true, + "module": "es2020", + "target": "es2017", + "lib": ["es2020", "dom"] + } +} diff --git a/frontend/app/tsconfig.spec.json b/frontend/app/tsconfig.spec.json new file mode 100644 index 00000000..7931f7f6 --- /dev/null +++ b/frontend/app/tsconfig.spec.json @@ -0,0 +1,14 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/spec", + "baseUrl": "./", + "types": ["jasmine", "node"], + "paths": { + "@capacitor/*": ["__mocks__/@capacitor/*"] + } + }, + "files": ["src/test.ts"], + "exclude": ["cypress"], + "include": ["src/polyfills.ts", "**/*.spec.ts", "**/*.d.ts"] +}